/* AI Studio: the interviewer (Studio canvas + inspector, success, Manage). Layout only; looks come from DS tokens and classes. */
.st-page { flex: 1; }
.st { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st__bar { background: var(--surface-screen); border-bottom: 1px solid var(--stroke-tertiary); padding: 0 24px; }
.st__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.st__bl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st__back { margin-left: -12px; flex: none; }
.st__title { font: var(--heading-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.st__tabs { margin: 0 -4px; overflow-x: auto; }
.st__tabs .ds-tabs-list { border-bottom: 0; gap: 28px; padding-inline: 4px; white-space: nowrap; }
.st__stage { position: relative; flex: 1; min-height: 640px; overflow: hidden; background-color: var(--neutral-50); background-image: radial-gradient(var(--neutral-100) 1px, transparent 1.4px); background-size: 22px 22px; }

/* canvas */
.cv { position: absolute; inset: 0; }
.cv__area { position: absolute; inset: 0; padding: 72px 428px 88px 28px; }
.cv__body { height: 100%; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cv__dv { flex: 1; min-height: 0; position: relative; }
.dev { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: center; transition: transform var(--m-slow) var(--m-ease); background: var(--surface-screen); border-radius: 12px; box-shadow: 0 0 0 1px var(--stroke-secondary), var(--shadow-lg); overflow: hidden; }
.dev--d { width: 1000px; height: 640px; }
.dev--m { width: 360px; height: 700px; border-radius: 24px; box-shadow: 0 0 0 8px var(--neutral-600), var(--shadow-lg); }
.dev__bar { position: relative; z-index: 3; height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--neutral-50); border-bottom: 1px solid var(--stroke-tertiary); }
.dev__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke-secondary); }
.dev--m .dev__bar { height: 44px; padding-top: 6px; }
.dev--m .dev__bar i { display: none; }
.dev__url { margin-left: 12px; flex: 0 1 320px; height: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 4px; background: var(--surface-screen); font: 400 12px/1 var(--font); color: var(--type-secondary); }
.dev--m .dev__url { margin: 0 auto; }
.pg { position: relative; height: calc(100% - 40px); overflow: hidden; overflow: clip; contain: paint; isolation: isolate; clip-path: inset(0); background: var(--surface-screen); }
.dev--m .pg { height: calc(100% - 44px); }
.pg__in { padding: 0 48px 48px; }
.dev--m .pg__in { padding: 0 20px 40px; }
.pg__nav { display: flex; align-items: center; gap: 28px; height: 64px; font: 400 14px/1 var(--font); color: var(--type-secondary); }
.pg__logo { font-weight: 500; font-size: 18px; color: var(--type-primary); margin-right: auto; }
.pg__cta { padding: 9px 16px; border-radius: 8px; background: var(--neutral-600); color: #fff; font-weight: 500; }
.dev--m .pg__nav span:not(.pg__cta) { display: none; }
.pg__hero { padding: 48px 0 32px; display: grid; gap: 12px; justify-items: start; }
.pg__eb { font: 500 12px/1 var(--font); color: var(--brand-300); text-transform: none; }
.pg__h { font: 500 44px/1.1 var(--font); color: var(--type-primary); letter-spacing: -.01em; }
.dev--m .pg__h { font-size: 30px; }
.pg__s { font: 400 18px/1.5 var(--font); color: var(--type-secondary); max-width: 38ch; }
.pg__btn { padding: 12px 20px; border-radius: 8px; background: var(--button-primary); color: #fff; font: 500 14px/1 var(--font); }
.pg__plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dev--m .pg__plans { grid-template-columns: 1fr; }
.pl { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--stroke-secondary); border-radius: 12px; font: 500 16px/1 var(--font); }
.pl--f { border-color: var(--neutral-600); }
.pl__b { margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--neutral-50); text-align: center; font: 500 13px/1 var(--font); color: var(--type-secondary); }
.pg__sec { display: grid; gap: 10px; padding-top: 40px; max-width: 520px; }
.pg__sec--b { padding-top: 24px; }
.pg__ft { padding-top: 48px; }
.ln { display: block; height: 8px; border-radius: 4px; background: var(--neutral-75); }
.ln.w90 { width: 90%; } .ln.w60 { width: 60%; } .ln.w30 { width: 30%; }
.pg__ov { position: absolute; inset: 0; pointer-events: none; }
.pg__hid { position: absolute; right: 16px; bottom: 16px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--neutral-50); color: var(--type-secondary); font: 400 13px/1 var(--font); }

/* launcher */
.fab { position: absolute; bottom: var(--oy, 24px); display: flex; flex-direction: column; gap: 12px; }
.fab.is-r { right: var(--ox, 24px); align-items: flex-end; } .fab.is-l { left: var(--ox, 24px); align-items: flex-start; }
.fab__r { display: flex; align-items: center; gap: 10px; }
.fab__w { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .14)); }
.fab__l { position: relative; display: inline-flex; transform: scale(var(--z, 1)); transition: opacity var(--m-base) var(--m-ease), transform var(--m-base) var(--m-ease); }
.fab.is-r .fab__l { transform-origin: bottom right; } .fab.is-l .fab__l { transform-origin: bottom left; }
.fab__l.is-new { animation: m-pop var(--m-base) var(--m-ease) both; }
.pg__ov.is-late .fab__l { opacity: 0; transform: scale(calc(var(--z, 1) * .9)) translateY(10px); }
.vp { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-full); background: var(--pa); color: var(--pt); font: 500 14px/1 var(--font); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); white-space: nowrap; }
.vp--circle { width: 52px; height: 52px; padding: 0; justify-content: center; } .vp--circle .vp__i { font-size: 18px; }
.vp--avatar { padding: 0 18px 0 8px; }
.vp__st { display: inline-flex; padding-left: 8px; } .vp__st b { width: 28px; height: 28px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-screen); color: var(--type-primary); font: 500 10px/1 var(--font); box-shadow: 0 0 0 2px var(--pa); }
.vp--quote { border-radius: 16px 16px 4px 16px; height: 48px; }
.fab.is-l .vp--quote { border-radius: 16px 16px 16px 4px; }
.vp--th { transform: scale(.6); box-shadow: none; pointer-events: none; }
.fab__cta { position: relative; padding: 10px 14px; border-radius: 12px; background: var(--surface-screen); color: var(--type-primary); font: 400 13px/1.3 var(--font); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); max-width: 200px; }
.fab__cta.is-dark { background: var(--neutral-600); color: #fff; }
.fab__bd { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 8px; background: var(--action-error); color: #fff; font: 500 11px/1 var(--font); font-style: normal; }
.fab__l.fx-pulse.fx-run .vp { animation: fxp 900ms var(--m-ease) 0ms 2 both; }
.fab__l.fx-bounce.fx-run .vp { animation: fxb 900ms var(--m-ease) 0ms 2 both; }
.fab__l.fx-wiggle.fx-run .vp { animation: fxw 800ms var(--m-ease) 0ms 2 both; }
@keyframes fxp { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.1); } }
@keyframes fxb { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-10px); } 65% { transform: translateY(0); } 80% { transform: translateY(-4px); } }
@keyframes fxw { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 60% { transform: rotate(4deg); } 85% { transform: rotate(-2deg); } }

/* interview window */
.win { width: 304px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface-screen); color: var(--type-primary); box-shadow: 0 0 0 1px var(--stroke-tertiary); font: 400 13px/1.45 var(--font); }
.win__h { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--pa); color: var(--pt); font: 500 14px/1.2 var(--font); }
.win__b { height: 250px; overflow: hidden; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.win--thx .win__b { height: auto; justify-content: center; padding: 28px 20px; }
#msgs-in { display: contents; }
.win__in { display: flex; align-items: center; justify-content: space-between; margin: 0 12px; padding: 10px 12px; border: 1px solid var(--stroke-secondary); border-radius: 10px; color: var(--type-tertiary); }
.win__mic { color: var(--pa); }
.win__f { padding: 8px 14px 12px; font: 400 11px/1.4 var(--font); color: var(--type-secondary); }
.msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; }
.msg--ai { align-self: flex-start; background: var(--neutral-50); border-bottom-left-radius: 4px; }
.msg--v { align-self: flex-end; background: var(--pa); color: var(--pt); border-bottom-right-radius: 4px; }
.msg--dots { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--neutral-75); color: var(--type-primary); }
.msg--dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--neutral-300); animation: dot 1.1s var(--m-ease) 4 both; }
.msg--dots i:nth-child(2) { animation-delay: .15s; } .msg--dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg--form { display: grid; gap: 4px; max-width: 100%; width: 100%; }
.msg--form b { font-weight: 500; margin-bottom: 2px; }
.msg__f { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 4px; background: var(--surface-screen); font: 400 12px/1.3 var(--font); }
.msg__f small { color: var(--type-secondary); font: 400 11px/1.3 var(--font); } .msg__st { color: var(--yellow-100); display: inline-flex; gap: 1px; }
.msg__c { margin-top: 2px; font: 400 11px/1.35 var(--font); color: var(--type-secondary); }
.msg--done { display: grid; gap: 6px; justify-items: center; text-align: center; max-width: 100%; width: 100%; background: transparent; padding: 0; }
.msg--done .fa { color: var(--action-success); } .msg--done b { font-weight: 500; font-size: 16px; }
.msg__btn { margin-top: 6px; padding: 8px 14px; border-radius: 8px; background: var(--pa); color: var(--pt); font-weight: 500; }
.win.is-dark { background: var(--neutral-600); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); } .win.is-dark .msg--ai { background: rgba(255, 255, 255, .12); } .win.is-dark .win__in { border-color: rgba(255, 255, 255, .24); } .win.is-dark .win__f { color: rgba(255, 255, 255, .7); }
.win.is-dark .msg__f { background: rgba(255, 255, 255, .1); }
.win.is-match { font-family: Georgia, 'Times New Roman', serif; border-radius: 8px; } .win.is-match .win__h { font-family: Georgia, serif; background: var(--surface-screen); color: var(--type-primary); border-bottom: 2px solid var(--pa); } .win.is-match .msg--v { background: var(--neutral-600); color: #fff; }

/* hotspots */
.hot { position: absolute; inset: -6px; z-index: 3; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; pointer-events: auto; }
.hot--in { inset: 0; border-radius: 0; }
.hot:hover, .hot:focus-visible { outline: calc(2px / var(--k, 1)) solid var(--brand-100); outline-offset: calc(1px / var(--k, 1)); }
.hot::after { content: attr(data-tip); position: absolute; left: 0; bottom: 100%; margin-bottom: calc(6px / var(--k, 1)); padding: calc(3px / var(--k, 1)) calc(8px / var(--k, 1)); border-radius: calc(4px / var(--k, 1)); background: var(--neutral-600); color: #fff; font: 500 calc(12px / var(--k, 1)) / 1.3 var(--font); white-space: nowrap; opacity: 0; transform: translateY(2px); transition: opacity var(--m-fast) var(--m-ease), transform var(--m-fast) var(--m-ease); pointer-events: none; }
.hot--in::after { bottom: auto; top: 100%; margin: calc(6px / var(--k, 1)) 0 0; }
.hot:hover::after, .hot:focus-visible::after { opacity: 1; transform: none; }
.fab.is-r .hot::after { left: auto; right: 0; }

/* toolbar, unsaved bar */
.cv__tools { position: absolute; left: calc((100% - 404px) / 2); bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-lg); z-index: 5; }
.cv__sep { width: 1px; height: 20px; background: var(--stroke-secondary); margin: 0 4px; }
.cv__z { min-width: 40px; text-align: center; font: var(--btn-sm); color: var(--type-secondary); }
.cv__tools .ds-seg .seg-in { height: 32px; padding: 6px 12px; font-size: 13px; }
.ubar { position: absolute; left: calc((100% - 404px) / 2); top: 16px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--surface-screen); border: 1px solid var(--stroke-secondary); box-shadow: var(--shadow-lg); white-space: nowrap; }
.ubar.m-in { animation-name: ubar-in; }
@keyframes ubar-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ubar__t { font: var(--heading-xs); } .ubar__a { display: flex; gap: 8px; }

/* timeline */
.tlw { flex: none; width: min(100%, 760px); margin: 0 auto; padding: 14px 18px 12px; border-radius: 12px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.tlw__top { display: flex; align-items: center; gap: 14px; }
.tlw__c { font: var(--body-md); color: var(--type-secondary); min-width: 0; } .tlw__c b { color: var(--type-primary); font-weight: 500; }
.tl2 { position: relative; display: grid; gap: 6px; padding-top: 30px; }
.tl2__lane { position: absolute; left: 0; right: 0; top: 0; height: 28px; }
.tl__mk { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin-left: 9px; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--stroke-primary); border-radius: 50%; background: var(--surface-screen); color: var(--type-secondary); cursor: pointer; transform: translateX(calc((var(--tw, 600px) - 18px) * var(--p, 0) - 12px)); transition: transform var(--m-base) var(--m-ease), border-color var(--m-fast), background-color var(--m-fast); }
.tl__mk.is-hit { border-color: var(--brand-100); background: var(--brand-10); color: var(--brand-300); }
.tl__mk:hover, .tl__mk:focus-visible { border-color: var(--brand-100); }
.tl__mk:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.tl__tag { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: var(--neutral-600); color: #fff; font: 500 11px/1.3 var(--font); white-space: nowrap; opacity: 0; transition: opacity var(--m-fast); pointer-events: none; }
.tl__mk:hover .tl__tag, .tl__mk:focus-visible .tl__tag { opacity: 1; }
.tl2__tr { position: relative; height: 20px; }
.tl2__tr::before { content: ""; position: absolute; left: 9px; right: 9px; top: 8px; height: 4px; border-radius: 2px; background: var(--neutral-75); }
.tl2__fill { position: absolute; left: 9px; right: 9px; top: 8px; height: 4px; border-radius: 2px; background: var(--neutral-300); transform-origin: left; transform: scaleX(0); }
.tl2__rng { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tl2__rng::-webkit-slider-runnable-track { height: 20px; background: transparent; }
.tl2__rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--surface-screen); border: 2px solid var(--brand-100); box-shadow: var(--shadow-hover); }
.tl2__rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-screen); border: 2px solid var(--brand-100); }
.tl2__rng:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; border-radius: 4px; }
.tl2__ax { display: flex; justify-content: space-between; padding: 0 2px; font: var(--body-sm); color: var(--type-tertiary); }

/* site map */
.smap { width: 100%; max-width: 780px; margin: 0 auto; height: 100%; display: grid; gap: 18px; align-content: center; --pa: var(--brand-100); }
.smap__t { font: var(--heading-md); } .smap__s { color: var(--type-secondary); margin-top: 4px; }
.smap__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.smap__n { display: flex; align-items: center; gap: 6px; font: var(--body-sm); color: var(--type-secondary); flex-wrap: wrap; }
.pt { position: relative; display: grid; gap: 10px; padding: 12px; text-align: left; border: 1px solid var(--stroke-secondary); border-radius: 12px; background: var(--surface-screen); cursor: pointer; font: inherit; color: inherit; transition: transform var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease), border-color var(--m-fast); }
.pt:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pt:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.pt:not(.is-on):not(.is-lock) { background: var(--neutral-25); } .pt:not(.is-on) .pt__l { opacity: .7; } .pt:hover, .pt:focus-visible { border-color: var(--brand-100); }
.pt.is-lock { cursor: not-allowed; background: var(--neutral-25); } .pt.is-lock:hover { transform: none; box-shadow: none; }
.pt__pg { position: relative; display: grid; gap: 6px; align-content: start; height: 72px; padding: 10px; border-radius: 8px; background: var(--neutral-50); overflow: hidden; }
.pt__fab { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-100); animation: m-pop var(--m-base) var(--m-ease) both; }
.pt__hatch { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(80, 86, 95, .12) 0 4px, transparent 4px 9px); }
.pt__l { display: grid; gap: 2px; } .pt__l b { font-weight: 500; font-size: 13px; } .pt__l small { font: var(--body-sm); color: var(--type-secondary); }
.pt__f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; } .pt__s { flex: none; } .pt__l { min-width: 0; } .pt__l small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt__g { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-screen); color: var(--type-secondary); font-size: 10px; box-shadow: 0 0 0 1px var(--stroke-secondary); }

/* after frames */
.fr { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 20px; justify-content: center; align-content: center; }
.fr__c { margin: 0; display: grid; gap: 10px; align-content: start; }
.fr__k { font: var(--heading-xs); } .fr figcaption { display: flex; align-items: center; gap: 8px; }
.fr__bg { min-height: 420px; display: grid; place-items: center; padding: 24px; border-radius: 16px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-card); }
.fr__rd { display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--type-secondary); } .fr__rd b { font-weight: 500; color: var(--type-primary); font-size: 16px; }
.fr__bg--e { place-items: start; } .em { width: 100%; display: grid; gap: 10px; align-content: start; font: var(--body-md); }
.em__h { padding-bottom: 8px; border-bottom: 1px solid var(--stroke-tertiary); } .em__l { display: inline-block; width: 56px; color: var(--type-tertiary); font: var(--body-sm); }
.em__b { display: grid; gap: 10px; padding-top: 6px; justify-items: start; }
.em__q { font: var(--heading-sm); line-height: 1.5; } .em__m { color: var(--type-secondary); font: var(--body-sm); } .em__t { font: var(--body-sm); color: var(--type-secondary); }
.em__btn { margin-top: 6px; padding: 9px 14px; border-radius: 4px; background: var(--button-primary); color: #fff; font: var(--btn-md); }
.em.is-off .em__b { opacity: .4; } .em__off { display: flex; gap: 6px; align-items: center; color: var(--type-secondary); font: var(--body-sm); }

/* inspector */
.insp { position: absolute; top: 16px; right: 24px; bottom: 16px; width: 380px; display: flex; flex-direction: column; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 4; }
.insp__grab, .insp__mn { display: none; }
.insp__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.insp__prog { flex: 1; display: grid; gap: 8px; min-width: 0; }
.insp__step { font: var(--body-md); color: var(--type-secondary); } .insp__step b { font-weight: 500; color: var(--type-primary); }
.insp__bd { flex: 1; overflow-y: auto; padding: 0 20px 20px; scrollbar-width: thin; display: block; }
.insp__bd > * { margin-top: 0; }
.insp__sub { font: var(--body-md); color: var(--type-secondary); margin-bottom: 4px; }
.insp__ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--stroke-tertiary); background: var(--surface-screen); }
.insp__ft:empty { display: none; }
.isec { position: relative; padding: 18px 0; display: grid; gap: 12px; align-content: start; }
.isec + .isec { border-top: 1px solid var(--stroke-tertiary); }
.isec__t { font: var(--heading-xs); } .isec__d { font: var(--body-sm); color: var(--type-secondary); margin-top: -8px; }
.isec__b { display: grid; gap: 14px; min-width: 0; }
.isec.flash::after, .dw.flash::after { content: ""; position: absolute; inset: -6px -8px; border: 2px solid var(--brand-100); border-radius: 12px; pointer-events: none; animation: flash 1.3s var(--m-ease) both; }
.dw { position: relative; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.ds-note.draft { margin-bottom: 4px; }
.sub { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.try { display: grid; gap: 8px; } .try__l { display: inline-flex; gap: 8px; align-items: center; font: var(--body-sm); color: var(--type-secondary); }
.try .tagchip { height: auto; min-height: 20px; max-width: 100%; white-space: normal; text-align: left; padding-block: 3px; }
.add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .add .inp { flex: 1 1 140px; width: auto; }
.trgs { display: grid; gap: 4px; }
.trg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.trg:has(.inp) { flex-wrap: nowrap; gap: 6px; } .trg:has(.inp) .k { white-space: nowrap; flex: none; } .trg__u { white-space: nowrap; min-width: 0; }
.trg.is-off { opacity: .55; }
.trg .inp { width: 60px; flex: none; padding-inline: 10px; }
.trg__u { font: var(--body-md); color: var(--type-secondary); }
.px { display: inline-flex; align-items: center; gap: 8px; color: var(--type-secondary); } .px .inp { width: 80px; }
.ints__l { font: var(--body-sm); color: var(--type-secondary); }
.pgs, .radios { display: grid; gap: 12px; }
.sumline { display: flex; align-items: flex-start; gap: 8px; font: var(--body-sm); color: var(--type-secondary); } .sumline .fa { margin-top: 2px; }
.urls { display: grid; gap: 10px; justify-items: start; }
.url { display: flex; align-items: center; gap: 6px; width: 100%; flex-wrap: wrap; } .url .inp { flex: 1 1 100px; width: auto; } .url__s .ds-select { min-width: 104px; } .url__o { font: var(--body-sm); color: var(--type-secondary); white-space: nowrap; }
.rv { list-style: none; display: grid; }
.rv li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--stroke-tertiary); } .rv li:first-child { border-top: 0; }
.rv__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rv__t b { font-weight: 500; } .rv__t span { font: var(--body-sm); color: var(--type-secondary); }
.dw__c { display: inline-grid; transition: transform var(--m-base) var(--m-ease); } .dw.is-open .dw__c { transform: rotate(180deg); }
.dw { display: grid; justify-items: start; } .dw .btn-text { margin-inline-start: -8px; } .dw__p { justify-self: stretch; } .dw__i { display: grid; gap: 14px; padding-top: 10px; }
/* pickers */
.lks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk { position: relative; display: grid; gap: 8px; padding: 10px; border: 1px solid var(--stroke-secondary); border-radius: 12px; background: var(--surface-screen); cursor: pointer; transition: border-color var(--m-fast), box-shadow var(--m-fast); }
.lk:hover { border-color: var(--brand-100); } .lk.is-on { border-color: var(--brand-100); box-shadow: inset 0 0 0 1px var(--brand-100); }
.lk:has(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.lk .ds-radio { position: absolute; top: 10px; right: 10px; z-index: 1; }
.lk__th { height: 64px; display: grid; place-items: center; border-radius: 8px; background: var(--neutral-50); overflow: hidden; }
.lk__t b { font: var(--body-md); font-weight: 500; }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); cursor: pointer; transition: box-shadow var(--m-fast); }
.sw__i, .ic__i, .ps__i { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw__c { width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw.is-on { box-shadow: 0 0 0 2px var(--brand-100); } .sw:has(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.sw-hex { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; } .sw-hex__c { width: 20px; height: 20px; border-radius: var(--radius-full); border: 1px dashed var(--stroke-secondary); background: var(--c); } .sw-hex .inp { width: 104px; }
.ics { display: flex; flex-wrap: wrap; gap: 8px; }
.ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--stroke-secondary); border-radius: 8px; background: var(--surface-screen); color: var(--type-secondary); cursor: pointer; transition: border-color var(--m-fast), background-color var(--m-fast); }
.ic:hover { border-color: var(--brand-100); } .ic.is-on { border-color: var(--brand-100); background: var(--brand-10); color: var(--brand-300); } .ic:has(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.pos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps { position: relative; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--stroke-secondary); border-radius: 12px; cursor: pointer; transition: border-color var(--m-fast); }
.ps:hover { border-color: var(--brand-100); } .ps.is-on { border-color: var(--brand-100); box-shadow: inset 0 0 0 1px var(--brand-100); } .ps:has(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ps__s { position: relative; height: 40px; border-radius: 4px; background: var(--neutral-50); } .ps__s i { position: absolute; bottom: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--neutral-200); } .ps__s.is-l i { left: 6px; } .ps__s.is-r i { right: 6px; } .ps.is-on .ps__s i { background: var(--brand-100); }
.ps__t { font: var(--body-sm); color: var(--type-secondary); text-align: center; }

/* prefill, success */
.pre { flex: 1; display: grid; place-items: center; padding: 48px 16px; }
.pre__c { width: min(440px, 100%); display: grid; gap: 16px; justify-items: start; padding: 32px; border-radius: 16px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-lg); }
.pre__bar { width: 100%; height: 4px; border-radius: 2px; background: var(--neutral-75); overflow: hidden; } .pre__bar i { display: block; height: 100%; background: var(--brand-100); transform-origin: left; animation: pbar 2.6s var(--m-ease) both; }
@keyframes pbar { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
.pre__t { font: var(--heading-lg); outline: none; } .pre__l { list-style: none; display: grid; gap: 12px; width: 100%; }
.pre__l li { display: flex; align-items: center; gap: 10px; color: var(--type-secondary); opacity: 0; animation: m-in var(--m-base) var(--m-ease) var(--d, 0ms) both; }
.pre__ck { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--action-success); color: #fff; }
.live-page .cv--live { position: absolute; inset: 0; }
.is-zoomout .dev { animation: zout 800ms var(--m-ease) both; }
@keyframes zout { from { opacity: .5; transform: translate(-50%, -50%) scale(calc(var(--k, 1) * 1.7)); } to { opacity: 1; transform: translate(-50%, -50%) scale(var(--k, 1)); } }
.insp--live { padding: 32px 28px; justify-content: center; overflow: auto; }
.live { display: grid; gap: 16px; justify-items: start; }
.live .tpl-iconcircle { margin-bottom: 4px; } .live__t { font: var(--heading-lg); outline: none; } .live__s { color: var(--type-secondary); }
.live__g { display: grid; gap: 10px; width: 100%; margin: 4px 0 8px; }
.live__a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--stroke-secondary); border-radius: 12px; background: var(--surface-screen); color: inherit; text-decoration: none; font: inherit; cursor: pointer; transition: border-color var(--m-fast), transform var(--m-fast) var(--m-ease); }
button.live__a:hover, a.live__a:hover { border-color: var(--brand-100); transform: translateY(-1px); }
.live__a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.live__a--c { cursor: default; align-items: flex-start; }
.live__a .icotile { --icotile-size: 36px; flex: none; } .live__a b { display: block; font-weight: 500; } .live__a small { font: var(--body-sm); color: var(--type-secondary); }
.live__a .inp-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .live__a .inp-act .inp { flex: 1 1 100%; } .live__a .inp { min-width: 0; }

/* manage */
.mg { width: 100%; max-width: 1500px; margin: 0 auto; padding: 32px 40px 96px; display: grid; gap: 24px; align-content: start; }
.mg__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mg__t { display: flex; align-items: center; gap: 12px; } .mg__title { font: var(--heading-xl); outline: none; } .mg__t .icotile { --icotile-size: 36px; }
.mg__a { display: flex; align-items: center; gap: 12px; } .mgt { display: inline-flex; align-items: center; gap: 10px; font: var(--body-md); }
.ds-ctxwrap .fmenu { position: absolute; right: 0; top: calc(100% + 4px); transform-origin: top right; }
.mg__s { display: flex; flex-direction: column; gap: 12px; } .stats__s { order: -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-card); height: 100%; align-content: start; }
.stat__l { font: var(--body-md); color: var(--type-secondary); } .stat__v { font: 500 32px/1.15 var(--font); } .stat__h { font: var(--body-sm); color: var(--type-secondary); }
.stat__sp { color: var(--neutral-300); display: block; height: 32px; } .sp { width: 100%; height: 32px; display: block; }
.mg__g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.mg__c { display: grid; gap: 16px; padding: 20px; border-radius: 12px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); box-shadow: var(--shadow-card); }
.mg__ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .mg__ch h2 { font: var(--heading-sm); display: flex; align-items: center; gap: 8px; }
.rst { list-style: none; display: grid; }
.rst li { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--stroke-tertiary); } .rst li:first-child { border-top: 0; padding-top: 0; }
.rst blockquote { margin: 0; font: var(--body-lg); line-height: 1.5; }
.rst__f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .rst__n { font-weight: 500; margin-right: auto; }
.rst__av { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-10); color: var(--brand-300); font: var(--btn-sm); }
.mg__em { display: grid; gap: 6px; justify-items: center; padding: 32px 16px; text-align: center; color: var(--type-secondary); border: 1.5px dashed var(--stroke-secondary); border-radius: 12px; } .mg__em b { color: var(--type-primary); font-weight: 500; }
.mg__sum { color: var(--type-secondary); }
.wrn { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.wrn li { display: flex; align-items: center; gap: 8px; font: var(--body-md); min-width: 0; } .wrn li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wrn small { color: var(--type-tertiary); font: var(--body-sm); }
.wrn__d { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-100); flex: none; } .wrn li.is-on .wrn__d { background: var(--action-success); }
.mg__l { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--stroke-tertiary); flex-wrap: wrap; }
.mg__lp { width: 120px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--neutral-50); overflow: hidden; } .mg__lt { display: grid; margin-right: auto; } .mg__lt small { color: var(--type-secondary); font: var(--body-sm); }

/* Studio, <1100: the inspector docks below the canvas */
@media (max-width: 1099px) {
  .st__stage { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
  .cv { position: relative; inset: auto; height: clamp(400px, 60vh, 560px); flex: none; }
  .cv__area { padding: 64px 16px 80px; }
  .cv__tools, .ubar { left: 50%; }
  .insp { position: relative; inset: auto; width: auto; margin: 0 16px 24px; max-height: none; overflow: visible; }
  .insp__bd { overflow: visible; }
  .insp__ft { position: sticky; bottom: 0; border-radius: 0 0 16px 16px; }
  .fr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg { padding: 24px; } .mg__g { grid-template-columns: 1fr; }
  .insp--live { margin: 0 16px 24px; }
  .live-page .st__stage { min-height: 0; } .live-page .cv--live { position: relative; height: 420px; }
}
@media (max-width: 600px) {
  .st__bar { padding: 0 16px; } .st__row { min-height: 52px; } .st__title { font-size: 16px; }
  .st { min-height: calc(100svh - 92px); }
  .st__stage { padding-bottom: 112px; flex: 1; }
  .cv { flex: 1; height: auto; min-height: 380px; }
  .cv__area { padding: 56px 8px 64px; }
  .cv__tools { bottom: 10px; max-width: calc(100% - 16px); gap: 4px; padding: 4px; }
  .cv__tools [data-act^="zoom"], .cv__z, .cv__tools .cv__sep:nth-of-type(1) { display: none; }
  .cv__tools .ds-seg .seg-in { padding: 6px 10px; }
  .insp { position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; width: auto; height: min(82svh, 700px); border-radius: 16px 16px 0 0; border-bottom: 0; transform: translateY(calc(100% - 104px)); transition: transform var(--m-slow) var(--m-ease); z-index: 60; overflow: hidden; display: flex; }
  .insp.is-open { transform: none; }
  .insp--live { position: relative; transform: none; height: auto; margin: 0 8px 16px; border-radius: 16px; border-bottom: 1px solid var(--stroke-tertiary); }
  .insp__grab { display: grid; place-items: center; height: 20px; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; flex: none; }
  .insp__grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--stroke-primary); }
  .insp__grab:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
  .insp__hd { padding: 0 16px 12px; flex: none; }
  .insp__mn { display: inline-flex; flex: none; }
  .insp__bd { overflow-y: auto; padding: 0 16px 16px; }
  .insp__ft { position: static; flex: none; padding: 10px 16px; }
  .insp__ft .btn-wp { flex: 1; } .insp__ft .btn-text { flex: none; }
  .fr { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; } .fr__bg { min-height: 0; padding: 16px; } .fr .win { max-width: 100%; width: 100%; }
  .st[data-step="after"] .cv, .st[data-step="where"] .cv { min-height: 0; }
  .st[data-step="after"] .cv__body, .st[data-step="where"] .cv__body { overflow-y: auto; }
  .smap { align-content: start; } .smap__g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pt { padding: 10px; } .pt__f { flex-direction: column; align-items: flex-start; }
  .tlw { padding: 10px 12px; } .tlw__top { flex-wrap: wrap; gap: 8px; } .tlw__c { font: var(--body-sm); }
  .mg { padding: 16px 16px 96px; } .stats { grid-template-columns: 1fr; } .wrn { grid-template-columns: 1fr; } .mg__title { font-size: 20px; }
  .ubar { top: 8px; padding-left: 12px; gap: 8px; } .ubar__t { font-size: 12px; }
  body.is-studio .fpill { left: auto; right: 12px; bottom: 116px; } body.is-studio .fpill__l { left: auto; right: 0; transform-origin: bottom right; } body.sheet-open .fpill { display: none; }
}

/* segmented step progress (DS-GAP) */
.seg { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; }
.seg__b { position: relative; width: 100%; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.seg__f { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: var(--neutral-75); transition: background-color var(--m-base) var(--m-ease); }
.seg__b:hover .seg__f { background: var(--neutral-100); }
.seg__b.is-done .seg__f { background: var(--neutral-300); }
.seg__b.is-cur .seg__f { background: var(--brand-100); }
.seg__b:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 1px; border-radius: 4px; }
.cv__tools .btn-wp, .cv__tools .btn-wpo, .tlw .btn-wpo, .insp .btn-wp, .insp .btn-text, .st .btn-text { white-space: nowrap; }
.cv__tools .btn-wp, .tlw .btn-wpo { display: inline-flex; align-items: center; gap: 6px; }
.mg__lp .vp--th { transform: scale(.5); }
