/* The five apps, rebuilt. Everything is drawn on a 1280 x 800 screen, so 1em is 16 of
   those pixels, and it scales with whatever frame it's in. */
@font-face { font-family: Figtree; src: url(/fonts/figtree.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/mono-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

.frame { position: relative; display: block; width: 100%; overflow: hidden; container-type: inline-size; }
.app { --out: cubic-bezier(.2, .7, .15, 1); }
:where(.app) :where(p, h1, h2, h3, h4, ul, ol, dl, dd, figure, table) { margin: 0; padding: 0; }
:where(.app) :where(h1, h2, h3, h4) { font: inherit; letter-spacing: normal; line-height: inherit; text-wrap: auto; }
:where(.app) :where(p) { text-wrap: auto; max-width: none; }
:where(.app) :where(ul, ol) { list-style: none; }
:where(.app) :where(svg, img) { display: block; max-width: 100%; }
:where(.app) :where(b, strong, em, i) { color: inherit; }
.app [hidden] { display: none !important; }
.app .mono { font-size: inherit; color: inherit; text-transform: none; }
.app { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: 14.4em minmax(0, 1fr); width: 100%; height: 50em; color: var(--ai); background: var(--ap); font: 400 1.25cqw/1.4 Figtree, Arial, sans-serif; text-align: left; overflow: hidden; -webkit-user-select: none; user-select: none; }
.hero-frame { aspect-ratio: auto; }
.hero-frame .app { position: relative; font-size: max(1.25cqw, 11.5px); }
.app button, .app input, .app textarea { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 0; text-align: inherit; }
.app button { cursor: pointer; }
.app i, .app em { font-style: normal; }
.app b, .app h3, .app h4 { font-weight: 600; }
.app u { text-decoration: none; }
.app :focus-visible { outline: 2px solid var(--aa); outline-offset: 1px; }
.i { display: inline-block; flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.app .mono { font-family: 'JetBrains Mono', Consolas, monospace; font-weight: 700; letter-spacing: -.02em; }

.app-fo { --ap: #f5f8ff; --ai: #0f172a; --am: #64748b; --al: #dfe7f5; --ac: #fff; --aa: #2563eb; --side: #3b82f6; --side-ink: #fff; --side-on: rgba(255, 255, 255, .2); --side-on-ink: #fff; }
.app-rp { --ap: #040915; --ai: #f1f5f9; --am: #94a3b8; --al: #1e293b; --ac: #0e1729; --aa: #818cf8; --side: #0e1729; --side-ink: #a9b5c8; --side-on: #1c2447; --side-on-ink: #8f9bff; grid-template-columns: 12em minmax(0, 1fr); }
.app-ex { --ap: #fafaf9; --ai: #18181b; --am: #6f6f77; --al: #e7e5e4; --ac: #fff; --aa: #2563eb; --side: #1b1b1e; --side-ink: #e4e4e7; --side-on: #343437; --side-on-ink: #fff; grid-template-columns: 12em minmax(0, 1fr); }
.app-tc { --ap: #fafaf9; --ai: #18181b; --am: #71716d; --al: #e4e4e1; --ac: #fff; --aa: #00a3ff; --side: #2d2d33; --side-ink: #ececef; --side-on: #2b3c4b; --side-on-ink: #35b4ff; grid-template-columns: 12.8em minmax(0, 1fr); }

.a-side { display: flex; flex-direction: column; min-height: 0; background: var(--side); color: var(--side-ink); }
.a-brand { display: flex; align-items: center; min-height: 3.9em; padding: .6em 1.2em .2em; }
.a-nav { flex: 1; min-height: 0; padding: 0 .7em; }
.a-nav p { padding: 1.3em .95em .5em; font-size: .64em; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.app .a-nav button { display: flex; align-items: center; gap: .72em; width: 100%; padding: .4em .68em; margin-bottom: .16em; border-radius: .45em; font-size: .85em; transition: background .2s; }
.app .a-nav button.on { background: var(--side-on); color: var(--side-on-ink); }
.a-nav span { flex: 1; }
.app .a-badge { display: grid; place-items: center; min-width: 1.75em; height: 1.75em; border-radius: 50%; background: #35b4ff; color: #0b1a26; font-size: .68em; font-weight: 700; }
.a-foot { display: grid; gap: .5em; padding: .9em 1.2em; }
.a-foot .a-line { display: flex; align-items: center; gap: .7em; font-size: .8em; opacity: .85; }
.a-user { display: grid; font-size: .78em; line-height: 1.3; }
.a-user i { opacity: .75; font-size: .9em; }

.a-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.a-bar { display: flex; flex: none; align-items: center; gap: .7em; height: 3.1em; padding: 0 1.25em; border-bottom: 1px solid var(--al); }
.a-search { display: flex; align-items: center; gap: .7em; width: 27em; max-width: 60%; padding: .48em .8em; border: 1px solid var(--al); border-radius: .5em; background: var(--ac); color: var(--am); font-size: .8em; white-space: nowrap; overflow: hidden; }
.a-fill { flex: 1; }
.a-view { display: none; flex: 1; min-height: 0; padding: 1.2em 1.25em; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--am) 45%, transparent) transparent; }
.a-view.on { display: block; animation: app-in .35s var(--out); }
[inert] .a-view { overflow: hidden; }
@keyframes app-in { from { opacity: 0; translate: 0 .5em; } }
.app h3 { font-size: 1.25em; letter-spacing: -.01em; line-height: 1.2; }
.app h4 { font-size: .9em; }
.a-sub { margin-top: .2em; color: var(--am); font-size: .82em; }
.a-btn { display: inline-flex; align-items: center; gap: .5em; padding: .42em .8em !important; border: 1px solid var(--al) !important; border-radius: .45em !important; background: var(--ac) !important; font-size: .78em !important; white-space: nowrap; transition: filter .2s, border-color .2s; }
button.a-btn:hover { border-color: var(--am) !important; }
.a-btn.a-blue { background: var(--aa) !important; border-color: var(--aa) !important; color: #fff; }
button.a-blue:hover { filter: brightness(.92); }
button.a-btn:disabled { color: var(--am); cursor: default; }
.a-ic { display: grid; place-items: center; width: 1.9em; height: 1.9em; font-size: .85em; }
.a-seg { display: inline-flex; border: 1px solid var(--al); border-radius: .45em; background: var(--ac); overflow: hidden; font-size: .76em; }
.a-seg > * { padding: .45em .85em !important; white-space: nowrap; }
.a-seg > .on { background: var(--aa); color: #fff; }
.a-list { margin: .5em 0 1.3em; border: 1px solid var(--al); border-radius: .5em; background: var(--ac); overflow: hidden; }
.a-none { padding: 1em 1.1em; color: var(--am); font-size: .8em; }
.a-tag { display: inline-block; padding: .18em .6em; border-radius: .3em; background: #fef3c7; color: #92400e; font-size: .68em; }
.a-toast { position: absolute; left: 50%; bottom: 1.4em; z-index: 5; max-width: 90%; padding: .7em 1.1em; border-radius: .5em; background: #111827; color: #fff; font-size: .82em; translate: -50% 1em; opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--out); }
.a-toast.on { opacity: 1; translate: -50% 0; }
.a-toast.bad { background: #b91c1c; }
.a-ghost { position: absolute; left: 0; top: 0; z-index: 6; opacity: 0; color: #0f172a; font-size: 1.15em; filter: drop-shadow(0 .1em .15em rgba(0, 0, 0, .3)); transition: translate .9s cubic-bezier(.5, .05, .2, 1), opacity .4s; pointer-events: none; }
.a-ghost.on { opacity: 1; }
.a-ghost .i { fill: #fff; stroke-width: 1.8; }
.app .bump { animation: bump .5s var(--out); }
@keyframes bump { 30% { scale: 1.22; } }

/* FlightOps */
.fo-logo { display: flex; align-items: center; gap: 0; position: relative; color: #fff; font-size: 1.55em; font-style: italic; line-height: 1; }
.fo-logo b { font-weight: 700; padding-left: .58em; letter-spacing: -.04em; }
.fo-logo u { position: absolute; left: 0; height: .13em; background: #fff; transform: skewX(-20deg); }
.fo-logo u:nth-child(1) { top: .13em; width: .62em; }
.fo-logo u:nth-child(2) { top: .41em; left: .16em; width: .44em; }
.fo-logo u:nth-child(3) { top: .69em; left: .32em; width: .24em; }
.fo-sched.on { display: flex; flex-direction: column; }
.fo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5em .55em; margin: .75em 0 .7em; padding: .5em .55em; border: 1px solid var(--al); border-radius: .55em; background: var(--ac); }
.fo-tools > b { padding: 0 .4em; font-size: .84em; font-weight: 500; white-space: nowrap; }
.fo-quiet { color: var(--am); }
.fo-board { flex: none; border: 1px solid var(--al); border-radius: .55em; background: var(--ac); overflow: hidden; }
.fo-in { position: relative; --label: 9.2em; --hd: 2.2em; --grp: 1.5em; --rh: 2.5em; }
.fo-hours { display: grid; grid-template-columns: var(--label) repeat(15, minmax(0, 1fr)); align-items: center; height: var(--hd); }
.fo-hours span { padding-left: .6em; font-size: .68em; }
.fo-group { display: flex; align-items: center; height: calc(var(--grp) / .62); padding-left: 1em; border-block: 1px solid var(--al); background: #f2f6fd; color: #475569; font-size: .62em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.fo-group { --grp: 1.5em; }
.fo-row { display: flex; align-items: center; height: var(--rh); background: repeating-linear-gradient(to right, #e6edf8 0 1px, transparent 1px calc(100% / 15)) var(--label) 0 / calc(100% - var(--label)) 100% no-repeat; transition: opacity .3s; }
.fo-name { width: var(--label); padding-left: .62em; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.fo-name b { display: block; font-size: .75em; }
.fo-name i { display: block; color: var(--am); font-size: .56em; letter-spacing: .03em; text-transform: uppercase; }
.fo-row.off { opacity: .28; }
.fo-lanes { position: absolute; left: var(--label); right: 0; pointer-events: none; }
.fo-lanes--ac { top: calc(var(--hd) + var(--grp)); height: calc(var(--rh) * 6); }
.fo-lanes--in { top: calc(var(--hd) + var(--grp) * 2 + var(--rh) * 6); height: calc(var(--rh) * 5); }
.app .fo-bk { position: absolute; left: calc((var(--at) - 6) / 15 * 100%); top: calc(var(--row) * var(--rh) + .17em); width: calc(var(--len) / 15 * 100%); height: calc(var(--rh) - .34em); padding: .12em .5em; border: 1px solid var(--k); border-left-width: .24em; border-radius: .32em; background: var(--kb); line-height: 1.25; white-space: nowrap; overflow: hidden; pointer-events: auto; cursor: grab; touch-action: none; transition: left .16s var(--out), top .16s var(--out), opacity .3s, box-shadow .25s, scale .25s var(--out); }
.app .fo-bk b { display: block; font-size: .68em; overflow: hidden; text-overflow: ellipsis; }
.app .fo-bk i { display: block; color: #475569; font-size: .62em; }
.fo-dual { --k: #60a5fa; --kb: #e0efff; }
.fo-solo { --k: #ec4899; --kb: #fddcec; }
.fo-sim { --k: #22c1d6; --kb: #d5f7fa; }
.fo-check { --k: #ef4444; --kb: #fddada; }
.app .fo-bk.mirror { opacity: .62; pointer-events: none; }
.app .fo-bk.up { z-index: 3; box-shadow: 0 .6em 1.4em rgba(15, 23, 42, .28); scale: 1.04; cursor: grabbing; }
.app .fo-bk.slow { transition: left .9s cubic-bezier(.5, .05, .2, 1), top .9s cubic-bezier(.5, .05, .2, 1), box-shadow .25s, scale .25s; }
.app .fo-bk.bad { --k: #dc2626; --kb: #fecaca; animation: nope .3s; }
.app .fo-bk.off { opacity: .2; }
@keyframes nope { 25% { translate: -.18em 0; } 75% { translate: .18em 0; } }
.fo-now { position: absolute; z-index: 2; left: var(--label); right: 0; top: 0; bottom: 0; pointer-events: none; }
.fo-now > i { position: absolute; left: calc((15.683 - 6) / 15 * 100%); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ef3340; }
.fo-now em { position: absolute; left: 50%; top: 0; translate: -50% 0; padding: 0 .4em; border-radius: .25em; background: #ef3340; color: #fff; font-size: .58em; font-weight: 600; }
.fo-two { display: grid; grid-template-columns: minmax(0, 1fr) 17em; gap: 1.5em; margin-top: 1.2em; }
.fo-two h4 i { color: var(--am); font-weight: 400; }
.fo-flight { display: grid; grid-template-columns: 7em 8em 9.5em minmax(0, 1fr) auto; align-items: center; gap: .4em; min-height: 3.1em; padding: .4em .8em; border-top: 1px solid var(--al); }
.a-list > li:first-child, .a-list > .a-none[hidden] + li { border-top: 0; }
.fo-flight > span, .fo-flight > b { font-size: .8em; }
.fo-flight > .fo-act { font-size: 1em; }
.fo-dot::before { content: ''; display: inline-block; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: var(--k); }
.fo-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-who i { color: var(--am); }
.fo-act { display: flex; align-items: center; justify-content: flex-end; gap: .4em; }
.app .a-warn { padding: .42em .8em; border: 1px solid #fbbf24; border-radius: .45em; background: #fffbeb; color: #92400e; font-size: .78em; white-space: nowrap; transition: background .2s; }
.app .a-warn.ok { border-color: #86efac; background: #f0fdf4; color: #166534; }
.app .shake { animation: nope .12s 4; }
.fo-clock { font-size: .8em; font-variant-numeric: tabular-nums; color: #166534; }
.fo-squawk { margin-top: .5em; padding: .9em 1em; border: 1px solid #fcd9a0; border-radius: .5em; background: #fffaf0; font-size: .95em; }
.fo-squawk > b { font-size: .8em; }
.fo-squawk > p { margin-top: .35em; font-size: .8em; }
.fo-squawk .fo-squawk-row { display: flex; align-items: center; gap: .7em; margin-top: .8em; }
.fo-squawk-row i { flex: 1; color: var(--am); }
.fo-squawk-row .a-tag { font-size: .88em; }
.fo-squawk-row .a-btn { font-size: 1em !important; }
.fo-fleet { display: grid; gap: .8em; align-content: start; }
.fo-card { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 1.2em; padding: 1em; border: 1px solid var(--al); border-radius: .55em; background: var(--ac); }
.fo-card.soon { border-color: #fcd34d; }
.fo-plane > b { display: block; font-size: 1em; }
.fo-plane > i { color: var(--am); font-size: .76em; }
.fo-plane dl { display: flex; gap: 1.4em; margin-top: .8em; }
.fo-plane dt { color: var(--am); font-size: .64em; text-transform: uppercase; letter-spacing: .05em; }
.fo-plane dd { font-size: .86em; font-weight: 600; }
.fo-card li { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; align-items: center; gap: 1em; padding: .35em 0; }
.fo-gauge { height: .5em; border-radius: .25em; background: #e6edf8; overflow: hidden; }
.fo-gauge u { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: #3b82f6; transition: width .8s var(--out), background .4s; }
li.soon .fo-gauge u { background: #f59e0b; }
.fo-job { line-height: 1.25; }
.fo-job b { display: block; font-size: .8em; }
.fo-job i { color: var(--am); font-size: .7em; }
.fo-job em { color: var(--ai); }
li.soon .fo-job em { color: #b45309; }

/* Client Reporting */
.app-rp { background: radial-gradient(60em 26em at 100% 0, #0c1030, transparent), var(--ap); }
.app-rp .a-side { border-right: 1px solid var(--al); }
.app-rp .a-brand { border-bottom: 1px solid var(--al); margin-bottom: 1em; min-height: 4em; padding: .5em 1em; }
.rp-logo { display: flex; align-items: center; gap: .5em; color: #fff; line-height: 1.02; }
.rp-logo > span { display: grid; }
.rp-logo b { font-size: 1.35em; font-weight: 700; letter-spacing: .02em; }
.rp-logo i { color: #1ea0f2; font-size: .58em; letter-spacing: .32em; }
.rp-tower { width: 1.9em; height: auto; overflow: visible; }
.rp-tower .w1 { animation: wave 2.4s infinite; }
.rp-tower .w2 { animation: wave 2.4s .3s infinite; }
@keyframes wave { 0%, 55%, 100% { opacity: 1; } 20% { opacity: .15; } }
.app-rp .a-view { padding: 1.4em 6.4em 2em; }
.app .rp-back { display: inline-flex; align-items: center; gap: .4em; margin-bottom: 1.1em; color: var(--am); font-size: .8em; }
.app .rp-back:hover { color: var(--ai); }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.app .rp-cta { display: inline-flex; align-items: center; gap: .4em; padding: .5em .95em; border-radius: .5em; background: var(--aa); color: #fff; font-size: .72em; font-weight: 600; white-space: nowrap; transition: background .2s; }
.app button.rp-cta:hover { background: #6d79f3; }
.app button.rp-cta:disabled { background: #3d4579; cursor: default; }
.rp-panel { margin-top: 1.1em; padding: .85em; border: 1px solid #26334a; border-radius: .7em; background: var(--ac); }
.rp-range { display: flex; flex-wrap: wrap; gap: .8em 1.6em; }
.rp-range label { color: var(--am); font-size: .64em; letter-spacing: .07em; text-transform: uppercase; }
.rp-range .a-seg { display: flex; margin-top: .55em; border-color: #334155; background: #1e2838; color: var(--ai); font-size: 1.25em; letter-spacing: 0; text-transform: none; }
.app-rp .a-seg > button:not(.on):hover { background: #2a374c; }
.rp-cap { margin: -.2em -1.3em .9em; padding: 0 1.3em .75em; border-bottom: 1px solid #26334a; color: var(--am); font-size: .64em; letter-spacing: .07em; text-transform: uppercase; }
.rp-when { font-size: .74em; }
.rp-when b { font-weight: 500; }
.rp-when i { color: #7b8aa2; }
.rp-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6em; margin-top: .75em; }
.rp-cards > div { padding: .6em .65em .55em; border: 1px solid #2b384e; border-radius: .5em; background: #152033; line-height: 1.3; white-space: nowrap; }
.rp-cards span { display: block; color: var(--am); font-size: .66em; }
.rp-cards b { display: block; font-size: 1.28em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rp-cards i { font-size: .64em; }
.rp-cards em { color: var(--am); }
.rp-cards .up { color: #34d399; }
.rp-cards .down { color: #fb7185; }
.rp-sub { margin: 1em 0 .5em; font-size: .76em; font-weight: 600; }
.rp-chart { position: relative; border: 1px solid #26334a; border-radius: .7em; cursor: crosshair; }
.rp-chart svg { display: block; width: 100%; height: auto; }
.rp-grid path { stroke: #53627a; stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.rp-grid text { fill: #94a3b8; font-size: 12.500px; transition: opacity .3s; }
.rp-prev { fill: none; stroke: #5d6d88; stroke-width: 2; stroke-dasharray: 5 5; transition: opacity .35s; }
.rp-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; animation: draw 1.5s var(--out) both; }
.rp-cross { opacity: 0; transition: opacity .2s; }
.rp-cross path { stroke: #cbd5e1; stroke-width: 1; }
.rp-cross circle { stroke: #fff; stroke-width: 2; }
.rp-chart.on .rp-cross, .rp-chart.on .rp-tip { opacity: 1; }
.rp-tip { position: absolute; top: .8em; margin-left: .7em; padding: .5em .7em; border: 1px solid #334155; border-radius: .4em; background: #0b1222; color: #f1f5f9; font-size: .7em; line-height: 1.35; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rp-tip.flip { translate: calc(-100% - 1.6em) 0; }
.rp-tip b, .rp-tip i { display: block; }
.rp-tip b { color: #94a3b8; font-weight: 400; }
.rp-tip i { color: #94a3b8; }
.rp-find { display: flex; align-items: center; gap: .6em; color: var(--am); font-size: .86em; }
.app .rp-find input { flex: 1; padding: .5em .6em; border-radius: .4em; background: #1e2838; color: var(--ai); user-select: text; -webkit-user-select: text; }
.rp-clients { padding: 0; overflow: hidden; }
.rp-clients > li { display: flex; align-items: center; gap: .7em; padding: .75em 1em; border-top: 1px solid #26334a; }
.rp-clients > li:first-child { border-top: 0; }
.rp-av { display: grid; place-items: center; flex: none; width: 1.8em; height: 1.8em; border-radius: .45em; background: #15233f; color: #4f9dff; }
.rp-who { flex: 1; min-width: 0; line-height: 1.35; }
.rp-who > b { font-size: .8em; font-weight: 500; }
.rp-who > i { display: block; color: #7b8aa2; font-size: .67em; overflow: hidden; text-overflow: ellipsis; }
.app .rp-review { margin-left: .7em; padding: .12em .5em; border-radius: .3em; background: #3a2c11; color: #f9b233; font-size: .58em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: .12em; }
.app .rp-review:hover { background: #553f13; }
.app .rp-review.ok { background: #0f3326; color: #4ade80; text-transform: none; letter-spacing: 0; font-size: .64em; cursor: default; }
.rp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: .6em; font-size: .72em; }
.rp-pick em { color: var(--am); margin-right: .3em; }
.app .rp-pick button, .app .rp-open { padding: .32em .7em; border: 1px solid #3a4961; border-radius: .4em; background: #1a2436; }
.app .rp-pick button:hover, .app .rp-open:hover { border-color: var(--aa); }
.app .rp-open { font-size: .72em; }
.rp-empty { display: grid; justify-items: center; gap: .3em; padding: 4em 1em; color: var(--am); text-align: center; }
.rp-empty > .i { width: 2em; height: 2em; }
.rp-empty p { color: var(--ai); font-size: .9em; }
.rp-empty i { font-size: .76em; }

/* Executive Intelligence */
.app-ex .a-brand { min-height: 2.9em; padding: .6em .95em; font-size: .95em; }
.app-ex .a-nav { padding: .3em .45em; }
.ex-top { display: flex; flex: none; align-items: center; justify-content: flex-end; height: 2.8em; padding: 0 1.6em; border-bottom: 1px solid var(--al); background: var(--ac); }
.app-ex .a-view { padding: 1.3em 6.4em 2em; }
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ex-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65em; margin-top: .9em; }
.ex-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ex-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-kpi { padding: .8em .85em .75em; border: 1px solid var(--al); border-radius: .5em; background: var(--ac); white-space: nowrap; overflow: hidden; }
.ex-kpi > span { display: flex; align-items: center; gap: .5em; color: var(--am); font-size: .63em; letter-spacing: .04em; text-transform: uppercase; }
.ex-kpi > b { display: block; margin: .22em 0 .1em; font-size: 1.22em; letter-spacing: -.02em; line-height: 1.2; }
.ex-kpi > b.red { color: #e11d48; }
.ex-kpi > b.green { color: #15803d; }
.ex-kpi > i { color: var(--am); font-size: .66em; }
.ex-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85em; margin: .85em 0; }
.ex-card { padding: .9em .85em .7em; border: 1px solid var(--al); border-radius: .5em; background: var(--ac); }
.ex-card > b { display: block; font-size: .78em; }
.ex-card > i { display: block; color: var(--am); font-size: .68em; margin-bottom: .6em; }
.ex-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.ex-card text { fill: #6f6f77; font-size: 13px; }
.ex-axis { fill: none; stroke: #6f6f77; }
.ex-grid { fill: none; stroke: #dddcda; stroke-dasharray: 4 4; }
.ex-line { fill: none; stroke: #2563eb; stroke-width: 2.500; stroke-dasharray: 1; animation: draw 1.4s var(--out) both; }
.ex-line.ink { stroke: #18181b; }
.ex-dot { fill: #fff; stroke: #2563eb; stroke-width: 2.500; transform-box: fill-box; transform-origin: center; animation: pop .4s calc(var(--i) * .16s + .4s) var(--out) both; transition: scale .25s var(--out); }
.ex-dot.hot { scale: 1.5; }
@keyframes pop { from { transform: scale(0); } }
.ex-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s calc(var(--i) * .07s + .1s) var(--out) both; transition: opacity .25s; }
.ex-bar.down { transform-origin: 50% 0; }
@keyframes grow { from { transform: scaleY(0); } }
.ex-bar.blue { fill: #2563eb; }
.ex-bar.red { fill: #e11d48; }
.ex-bar.green { fill: #16a34a; }
.ex-card svg:has(.hot) .ex-bar:not(.hot), .ex-card svg:has(.hot) .ex-arc:not(.hot) { opacity: .4; }
.ex-mix { display: grid; justify-items: center; }
.ex-mix svg { width: 62%; }
.ex-mix ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .2em .9em; font-size: .68em; }
.ex-mix li { display: flex; align-items: center; gap: .4em; }
.ex-mix li u { width: .7em; height: .7em; border-radius: 50%; }
.ex-mix li em { color: var(--am); }
.ex-arc { transform-box: view-box; transform-origin: 50% 50%; animation: turn .8s calc(var(--i) * .08s) var(--out) both; transition: opacity .25s; }
@keyframes turn { from { opacity: 0; transform: rotate(-40deg) scale(.8); } }
.ex-hbars { display: grid; gap: .6em; padding: .4em 0 .5em; }
.ex-hbars li { display: grid; grid-template-columns: 8em minmax(0, 1fr); align-items: center; gap: .6em; }
.ex-hbars span { color: var(--am); font-size: .72em; text-align: right; }
.ex-hbars u { display: block; height: 1.5em; width: calc(var(--w) * 100%); border-radius: 0 .2em .2em 0; transform-origin: 0 50%; animation: growx .7s calc(var(--i) * .08s) var(--out) both; }
.ex-funnel { display: grid; gap: .7em; padding: .3em 0 .5em; }
.ex-funnel span { display: flex; justify-content: space-between; font-size: .74em; }
.ex-funnel em { color: var(--am); }
.ex-funnel u { display: block; margin-top: .3em; height: .5em; border-radius: .25em; background: #eeedeb; }
.ex-funnel u b { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: #2563eb; transform-origin: 0 50%; animation: growx .8s calc(var(--i) * .08s) var(--out) both; }
@keyframes growx { from { transform: scaleX(0); } }
.ex-leads li { display: flex; justify-content: space-between; gap: 1em; padding: .5em 0; border-top: 1px solid var(--al); font-size: .78em; line-height: 1.3; }
.ex-leads li:first-child { border-top: 0; }
.ex-leads span { display: grid; }
.ex-leads span:last-child { text-align: right; }
.ex-leads i { color: var(--am); font-size: .88em; }
.ex-tip { position: absolute; z-index: 4; left: 0; top: 0; padding: .4em .7em; border-radius: .4em; background: #18181b; color: #fff; font-size: .72em; white-space: nowrap; translate: -50% calc(-100% - .6em); opacity: 0; pointer-events: none; transition: opacity .2s, left .3s var(--out), top .3s var(--out); }
.ex-tip.on { opacity: 1; }

/* Traffic Control */
.tc-logo { display: flex; align-items: center; gap: .15em; color: #fff; }
.tc-logo svg { width: 1.6em; height: auto; }
.tc-logo b { font-size: .95em; font-weight: 700; letter-spacing: -.01em; line-height: .88; }
.app-tc .a-user { padding-top: .7em; border-top: 1px solid #45454c; }
.app-tc h3 { font-size: 1.3em; }
.tc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; margin: 1.1em 0; }
.tc-stat { display: flex; align-items: center; gap: .85em; padding: 1.35em 1.25em; border: 1px solid var(--al); border-radius: .8em; background: var(--ac); box-shadow: inset .18em 0 0 #1aa3ea; }
.tc-stat.red { box-shadow: inset .18em 0 0 #d21f2b; }
.tc-stat > span { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: #dff2fd; color: #1796dc; }
.tc-stat.red > span { background: #fde3e5; color: #d21f2b; }
.tc-stat p { color: #55555a; font-size: .76em; line-height: 1.3; }
.tc-stat b { display: block; width: max-content; color: var(--ai); font-size: 2em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tc-card { padding: .9em .85em; border: 1px solid var(--al); border-radius: .8em; background: var(--ac); }
.tc-call { display: flex; align-items: center; gap: .7em; padding: .7em 0; border-bottom: 1px solid #ebebe8; overflow: hidden; }
.tc-call b { display: block; font-size: .78em; line-height: 1.3; }
.tc-call > span:nth-child(2) { flex: 1; line-height: 1.3; }
.tc-call > span:nth-child(2) i { color: var(--am); font-size: .68em; }
.tc-ic { display: grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: #dcf7e5; color: #17a34a; font-size: .78em; transition: background .3s, color .3s; }
.tc-call.miss .tc-ic { background: #fde3e5; color: #d21f2b; }
.tc-at { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 0 .35em; color: #66666b; font-size: .68em; text-align: right; }
.tc-at i { grid-column: 1 / -1; }
.tc-call.ringing { animation: arrive .5s var(--out); background: linear-gradient(90deg, transparent, #e9f6ff 12% 88%, transparent); }
.tc-call.ringing .tc-ic { background: #d8efff; color: #0784d6; animation: ringing .5s infinite; }
@keyframes arrive { from { opacity: 0; max-height: 0; padding-block: 0; } to { max-height: 4em; } }
@keyframes ringing { 25% { rotate: -14deg; } 75% { rotate: 14deg; } }
.tc-head { display: flex; align-items: center; justify-content: space-between; }
.tc-flow { display: grid; grid-template-columns: minmax(0, 1fr) 17em; gap: 1.3em; margin-top: 1em; align-items: start; }
.tc-active { margin-left: .5em; padding: .16em .6em; border-radius: .3em; background: #d9f8e3; color: #14713a; font-size: .74em; font-weight: 500; }
.tc-flow label { color: #3c3c40; font-size: .74em; line-height: 1.5; }
.tc-flow h4 { margin-bottom: .7em; }
.app .tc-flow textarea, .tc-opt label span { display: block; width: 100%; margin-top: .25em; padding: .5em .7em; border: 1px solid var(--al); border-radius: .5em; background: #fff; color: var(--ai); font-size: 1.05em; line-height: 1.4; resize: none; user-select: text; -webkit-user-select: text; }
.tc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; margin-top: 1em; }
.tc-opt { display: grid; gap: .55em; align-content: start; padding: .9em; border: 1px solid var(--al); border-radius: .8em; background: var(--ac); box-shadow: inset .18em 0 0 #1aa3ea; transition: background .3s, scale .3s var(--out); }
.tc-opt.hit { background: #e3f4ff; scale: 1.03; }
.tc-opt p span { padding: .16em .5em; border-radius: .4em; background: #f0f0ee; font-size: .78em; }
.tc-opt.hit p span { background: #bfe5ff; }
.tc-phone { display: grid; justify-items: center; gap: .3em; padding: 1.5em 1.2em 1.4em; border-radius: 1.8em; background: #1f1f23; color: #fff; text-align: center; }
.tc-line { color: #a6a6ad; font-size: .76em; }
.tc-say { display: grid; place-items: center; min-height: 6.4em; font-size: .86em; line-height: 1.35; }
.tc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.app .tc-keys button { width: 2.7em; height: 2.7em; border-radius: 50%; background: #37373d; font-size: 1.05em; text-align: center; transition: background .15s, scale .15s; }
.app .tc-keys button:hover { background: #4a4a52; }
.app .tc-keys button:active { background: #6d6d77; scale: .93; }
.app .tc-dial { display: grid; place-items: center; width: 3em; height: 3em; margin-top: .8em; border-radius: 50%; background: #22a94f; transition: background .3s, rotate .4s var(--out); }
.tc-phone.on .tc-dial { background: #d92c37; }
.tc-msgs.on { display: grid; }
.tc-two { display: grid; grid-template-columns: 20em minmax(0, 1fr); padding: 0; min-height: 34em; overflow: hidden; }
.tc-threads { border-right: 1px solid var(--al); }
.tc-threads h4 { padding: 1em; }
.app .tc-threads button { display: flex; align-items: center; gap: .7em; width: 100%; padding: .8em 1em; border-top: 1px solid var(--al); line-height: 1.3; }
.app .tc-threads button.on { background: #eef7fd; }
.tc-threads button > span:nth-child(2) { flex: 1; min-width: 0; }
.tc-threads b { display: block; font-size: .8em; }
.tc-threads i { display: block; color: var(--am); font-size: .72em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-threads em { color: var(--am); font-size: .68em; }
.tc-av { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: #dff2fd; color: #0b6ea6; font-size: .78em; }
.tc-thread { display: flex; flex-direction: column; min-height: 0; }
.tc-to { padding: 1.2em 1.2em 1em; border-bottom: 1px solid var(--al); font-size: .84em; font-weight: 600; }
.tc-thread ul { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .5em; padding: 1.1em; overflow: auto; }
.tc-thread li { max-width: 75%; padding: .5em .85em; border-radius: .8em .8em .8em .2em; background: #efefec; font-size: .8em; animation: rise .4s var(--out); overflow-wrap: anywhere; }
.tc-thread li.us { align-self: flex-end; border-radius: .8em .8em .2em .8em; background: #00a3ff; color: #00131f; }
.tc-thread form { display: flex; gap: .6em; padding: .9em 1em; border-top: 1px solid var(--al); }
.app .tc-thread input { flex: 1; min-width: 0; padding: .5em .8em; border: 1px solid var(--al); border-radius: .5em; font-size: .8em; user-select: text; -webkit-user-select: text; }
.app-tc .a-blue { color: #00131f; }

/* B6 Billing, drawn in the site's own type and colors since there's nothing to copy */
.app-b6 { display: flex; flex-direction: column; gap: 1.8em; padding: 3em 3.4em 2.6em; color: #f2f1ee; background: #141618; font-family: "Inter Tight", Arial, sans-serif; --aa: #ff7a54; }
.b6-read { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6em 2em; }
.b6-read span { display: block; color: #9aa1a7; font-size: 1.12em; }
.app .b6-read b { display: block; font-size: 3em; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.b6-read p:last-child { text-align: right; }
.app-b6 .bars { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.bars .hit { fill: transparent; }
.bars .pri { fill: #d9d8d4; }
.bars .int { fill: #ff7a54; }
.bars g { transition: opacity .2s; }
.bars:has(.on) g:not(.on) { opacity: .4; }
.b6-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4em; }
.b6-sliders label > span { display: flex; justify-content: space-between; color: #9aa1a7; font-size: 1.12em; }
.b6-sliders output { color: #f2f1ee; }
.app input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.2em; margin: 0; background: none; cursor: pointer; }
.app input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #3a3f44; }
.app input[type=range]::-moz-range-track { height: 2px; background: #3a3f44; }
.app input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8px; border: 0; border-radius: 50%; background: #ff7a54; }
.app input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #ff7a54; }

/* a hero that's too narrow for a sidebar */
@container (max-width: 760px) {
  .hero-frame .app { display: block; height: auto; min-height: 34em; font-size: 13.5px; }
  .hero-frame .a-side { display: block; }
  .hero-frame .a-brand { min-height: 0; padding: .9em 1em .5em; margin: 0; border: 0; }
  .hero-frame .a-nav { display: flex; gap: .2em; padding: 0 .6em .6em; overflow-x: auto; scrollbar-width: none; }
  .hero-frame .a-nav p, .hero-frame .a-foot, .hero-frame .a-bar, .hero-frame .ex-top { display: none; }
  .hero-frame .a-nav button { width: auto; flex: none; padding: .6em .75em; margin: 0; }
  .hero-frame .a-nav button[data-not] { display: none; }
  .hero-frame .a-view { padding: 1.1em .9em 1.6em; max-height: 46em; }
  .hero-frame .a-sub { margin-bottom: .2em; }
  .fo-days, .fo-quiet, .hero-frame .fo-tools .a-blue, .hero-frame .fo-tools .a-fill { display: none; }
  .fo-board { overflow-x: auto; }
  .fo-in { width: 62em; }
  .fo-name { position: sticky; left: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; height: 100%; background: #fff; border-right: 1px solid var(--al); }
  .hero-frame .fo-two, .hero-frame .tc-flow, .hero-frame .tc-two { grid-template-columns: minmax(0, 1fr); }
  .hero-frame .fo-flight { grid-template-columns: auto 1fr; gap: .2em .8em; padding: .8em; }
  .hero-frame .fo-who, .hero-frame .fo-act { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-frame .fo-card { grid-template-columns: minmax(0, 1fr); }
  .hero-frame .fo-card li { grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: .7em; }
  .hero-frame .rp-cards, .hero-frame .ex-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-frame .ex-grid2 { grid-template-columns: minmax(0, 1fr); }
  .hero-frame .ex-card text { font-size: 18px; }
  .hero-frame .rp-grid text { font-size: 26px; }
  .hero-frame .rp-grid text:nth-of-type(4n + 1) ~ text[text-anchor=middle] { opacity: 1; }
  .hero-frame .rp-range { display: grid; }
  .hero-frame .tc-stats, .hero-frame .tc-opts { grid-template-columns: minmax(0, 1fr); gap: .6em; }
  .hero-frame .tc-stat { padding: .8em 1em; }
  .hero-frame .tc-two { min-height: 0; }
  .hero-frame .tc-threads { border-right: 0; border-bottom: 1px solid var(--al); }
  .hero-frame .app-b6 { display: flex; min-height: 0; padding: 1.4em 1.2em; gap: 1.2em; }
  .hero-frame .app-b6 .bars { flex: none; height: 13em; }
  .hero-frame .b6-read b { font-size: 1.8em; }
  .hero-frame .b6-sliders { grid-template-columns: minmax(0, 1fr); gap: .7em; }
  .hero-frame .app input, .hero-frame .app textarea { font-size: 16px; }
}

/* ---------- in the project page's window ---------- */
.js-anim .win--live .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s cubic-bezier(.62,0,.22,1); }
.js-anim .reveal.in .win--live .frame { clip-path: inset(0 0 0 0); }
/* on a phone the window is already the phone version */
@media (max-width: 900px) {
  .case-visual.is-live { padding: 0; }
  .case-visual.is-live .phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .win--live .frame { clip-path: none !important; }
  .app, .app * { animation-duration: .01ms !important; }
}
