/* windows */
.win { position: relative; display: flex; flex-direction: column; border-radius: var(--r-win); background: var(--surface); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--win-shadow), inset 0 0 0 1px var(--edge); overflow: hidden; color: var(--ink); }
.win-bar { flex: none; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 11px; border-bottom: 1px solid var(--line); font-size: 13px; }
.win-bar b { font-weight: 650; white-space: nowrap; }
.win-tag { margin-left: auto; font-size: 11.5px; font-weight: 560; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s, color .3s; }
.win-body { flex: 1; min-height: 0; padding: 16px 18px 18px; }
.kick { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; font-family: var(--sans); }

.tile { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .3); rotate: -7deg; }
.tile svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; rotate: 7deg; }
.tile.xs { width: 18px; height: 18px; border-radius: 6px; }
.tile.xs svg { width: 11px; height: 11px; }
.av { width: var(--s, 30px); height: var(--s, 30px); border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--c); color: #fff; font-size: 12.5px; font-weight: 650; }
.av.sm { --s: 22px; font-size: 10.5px; }

/* agent marks: the agents' own logos */
.ag { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; }
.ag svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.ag.lgo { background: #fff; box-shadow: inset 0 0 0 1px rgba(12, 17, 48, .1); }
.ag.lgo img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.ag-own { color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; }
.ag-own svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; width: 12px; height: 12px; }

.kind { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; font-weight: 650; color: var(--ink-3); }
@keyframes grow { from { opacity: 0; transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: 0; } }


/* doc: an HTML page an agent made, with its own cover, numbers and chart */
.pg { position: relative; padding: 0 0 16px; overflow: hidden; background: #fff; font-size: 12.5px; color: var(--ink-2); }
.pg-cover { position: relative; height: 158px; margin: 10px 10px 0; border-radius: 11px; overflow: hidden; color: #fff; background: #3a2c20; }
.pg-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.pg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 40, .78), rgba(10, 14, 40, .38) 55%, rgba(10, 14, 40, 0) 85%); }
.pg-cover-in { position: absolute; z-index: 1; left: 16px; right: 40%; bottom: 14px; display: grid; gap: 4px; justify-items: start; }
.pg-chip { padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-size: 10.5px; font-weight: 650; }
.pg-h { font-family: var(--head); font-weight: 600; font-size: 30px; line-height: .98; letter-spacing: -.045em; }
.pg-cover-in p { font-size: 12px; line-height: 1.4; opacity: .9; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 16px 0; }
.pg-stats div { display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; background: #f3f5fa; }
.pg-stats b { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.pg-stats b.up { color: var(--ok); }
.pg-stats small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.pg-tz { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: 0 16px; padding: 0 12px; max-height: 0; opacity: 0; overflow: hidden; border-radius: 10px; background: rgba(57, 65, 255, .07); box-shadow: inset 0 0 0 1px rgba(57, 65, 255, .22); font-size: 12px; color: var(--ink-2); transition: max-height .6s var(--ease), opacity .4s, margin .6s var(--ease), padding .6s var(--ease); }
.pg-tz b { font-weight: 650; color: #3941ff; }
.pg-sec { margin: 14px 16px 0; }
.pg-sec h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.pg-bars { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.pg-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--blue) 24%, white); transform-origin: bottom; animation: rise 1.1s var(--soft) both; animation-delay: calc(.9s + var(--v) * .5s); }
.pg-bars i.hi { background: var(--blue); }
@keyframes rise { from { transform: scaleY(0); } }
.pg-tl { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pg-tl li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.pg-tl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pg-tl li.done::before { background: var(--ok); box-shadow: none; }
.pg-tl b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* shared document styles, used by the example cards */
.doc { font-family: var(--doc); font-size: 15px; line-height: 1.6; color: var(--ink-2); position: relative; }
.doc-h { font-family: var(--doc); font-weight: 520; font-size: 23px; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); margin-bottom: 10px; text-wrap: balance; }
.doc-h.sm { font-size: 19px; }

/* app: a small working web app with its own header */
.app { display: flex; flex-direction: column; gap: 9px; }
.app-h { font-family: var(--head); font-weight: 600; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: var(--r-ctl); background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.field span { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.field b { font-weight: 520; }
.app-btn { display: grid; place-items: center; height: 36px; border-radius: var(--r-ctl); background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 640; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14), 0 6px 14px -8px rgba(31, 95, 229, .8); }
.ap { display: flex; flex-direction: column; gap: 9px; padding: 0 16px 16px; background: #fff; }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.ap-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.ap-brand i { width: 11px; height: 14px; border-radius: 2px 3px 3px 2px; background: #8a5a33; box-shadow: inset 2px 0 0 rgba(0, 0, 0, .2); }
.ap-url { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-hero { display: flex; align-items: center; gap: 13px; margin-bottom: 2px; }
.ap-hero .app-h { margin: 0; }
.ap-sub { font-size: 12.5px; color: var(--ink-2); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--p) * 360deg), var(--surface-3) 0); transition: --p .9s var(--soft); }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-family: var(--head); font-size: 16px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ap-who { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.ap-who b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.avs { display: inline-flex; }
.avs .av { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.avs .av:first-child { margin-left: 0; }
.seats-wait { margin-top: auto; font-size: 11.5px; color: var(--ok); font-weight: 600; opacity: 0; transition: opacity .4s; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .8s var(--soft); }

/* media: a teaser video that keeps playing */
.vid { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.vid-frame { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: #2a2420; color: #fff; isolation: isolate; }
.vid-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 15s ease-in-out infinite alternate; }
.vid-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, transparent 50%, rgba(0, 0, 0, .55)); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.2) translate(-4%, -2%); } }
.vid-cap { position: absolute; z-index: 1; left: 12px; bottom: 12px; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.02; letter-spacing: -.035em; animation: caption 15s ease-in-out infinite; }
@keyframes caption { 0%, 8% { opacity: 0; transform: translateY(8px); } 16%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
.vid-mark { position: absolute; z-index: 1; left: 12px; top: 10px; font-size: 10.5px; font-weight: 650; opacity: .85; }
.vid-ctl { flex: none; display: flex; align-items: center; gap: 9px; padding: 0 2px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vid-ctl .ic { width: 12px; height: 12px; }
.vid-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.vid-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--coral); transform-origin: left; animation: progress 15s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } }

/* automation: a flow you can watch run */
.flow { display: grid; gap: 14px; align-content: center; padding: 14px 12px 10px; }
.fl { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.fl::before { content: ""; position: absolute; left: 16.7%; right: 16.7%; top: 19px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 9px); }
.fl::after { content: ""; position: absolute; top: 15px; left: calc(16.7% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 158, 91, .2); animation: travel 3.6s ease-in-out infinite; }
@keyframes travel { 0% { left: calc(16.7% - 5px); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(83.3% - 5px); opacity: 0; } }
.fl li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; }
.fl-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); rotate: -7deg; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 16px -10px var(--c); animation: node 3.6s ease-in-out infinite; }
.fl li:nth-child(2) .fl-n { animation-delay: 1.6s; }
.fl li:nth-child(3) .fl-n { animation-delay: 3.2s; }
@keyframes node { 0%, 18%, 100% { transform: none; } 6% { transform: scale(1.14); } }
.fl-n svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; rotate: 7deg; }
.fl small { font-size: 11px; font-weight: 560; color: var(--ink-2); text-align: center; line-height: 1.25; }
.fl-out { padding: 7px 10px; border-radius: 9px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); text-align: center; }
.fl-out b { color: var(--ink); font-weight: 650; }
.fl-hit { color: var(--need); font-weight: 600; opacity: 0; transition: opacity .4s; }

/* the automation pieces used in the Create panel */
.mini-bars { display: grid; gap: 9px; font-size: 12px; }
.mini-bars div { display: grid; grid-template-columns: 74px 1fr 18px; gap: 8px; align-items: center; }
.mini-bars span { color: var(--ink-2); white-space: nowrap; }
.mini-bars i { height: 7px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 60%, white) calc(var(--v) * 100%), var(--surface-2) 0); }
.mini-bars b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.autobar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); background: color-mix(in srgb, var(--surface-solid) 70%, transparent); }
.ab-r { margin-left: auto; color: var(--ink-3); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot.ac { background: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 229, .16); }
.dot.need { background: var(--need); box-shadow: 0 0 0 3px rgba(183, 119, 11, .18); }





/* steps, on the dark below the horizon */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 30px; }
.steps button { text-align: left; display: grid; gap: 5px; padding: 0 0 4px; color: rgba(255, 255, 255, .5); transition: color .3s; }
.steps button:hover { color: rgba(255, 255, 255, .78); }
.steps .bar { display: block; height: 2px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-bottom: 14px; overflow: hidden; }
.steps .bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.steps b { font-size: 15.5px; font-weight: 640; color: rgba(255, 255, 255, .72); }
.steps span:last-child { font-size: 14px; line-height: 1.5; }
.steps [aria-selected="true"] { color: rgba(255, 255, 255, .8); }
.steps [aria-selected="true"] b { color: #fff; }
.steps [aria-selected="true"] .bar i { width: 100%; }
.steps.playing [aria-selected="true"] .bar i { width: 0; animation: fill var(--dur, 5200ms) linear forwards; }
.steps.held [aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }


/* ------------------------------------------------------------ sections on paper */
.sec { padding-top: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 30em; text-wrap: pretty; padding-bottom: 6px; }
.sec-foot { margin-top: 26px; font-size: 15px; color: var(--ink-3); max-width: 44em; }
#create .sec-foot { max-width: none; }

/* glass label, readable on any sky */
.glass-label, .sv-cap { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 13.5px; font-weight: 520; color: var(--ink-2); box-shadow: 0 6px 20px -10px rgba(12, 20, 64, .35); }

