/* Live case: keep the bilingual header and prototype rules alongside the shared story shell. */
.mate-case-prototype{margin-block:var(--space-4);border:1px solid var(--mate-story-line);border-radius:var(--space-2);overflow:hidden;background:#f6f8fb}
.mate-case-prototype iframe{display:block;width:100%;height:clamp(42rem,82svh,54rem);border:0}
.mate-case-prototype[hidden]{display:none}

/* Match the main site’s language switch without touching the product demo. */
.mate-story-identity{display:flex;align-items:center;gap:clamp(.55rem,2vw,1rem);white-space:nowrap}
.mate-story .mate-locale-pair{display:inline-flex;align-items:center;gap:.26em;min-block-size:2.5rem;font:700 .73rem/1.2 var(--portfolio-type);text-decoration:none}
.mate-locale-pair i{font-style:normal}
.mate-locale-pair span{display:inline-grid;place-items:center;min-inline-size:2.55em;padding:.17em .24em;border-radius:.23em}
.mate-locale-pair :lang(zh-CN){font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
.mate-locale-pair[data-current=en] [lang=en],.mate-locale-pair[data-current=zh] [lang=zh-CN]{background:var(--yellow);color:var(--ink)}
html[lang=zh-CN] .mz-case :is(.mate-story-hero,.mz-copy){--portfolio-type:"Courier Prime","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-family:var(--portfolio-type)}
html[lang=zh-CN] .mz-case .mate-story-hero h1,html[lang=zh-CN] .mz-case .mz-copy h2{letter-spacing:0;line-break:strict}
html[lang=zh-CN] .mz-case .mz-copy p:not(.mate-story-kicker){line-height:1.65}

/* ZoomMate-only dark aliases from the ZoomKit subsite Foundation and Compose color ramps. */
.mz-case :is(.mz-round,dialog.mate-case-prototype,.mz-avatar-lab)[data-theme=dark]{
 --mz-palette-gray-100:#fefefe;
 --mz-palette-gray-70:#c2c2c2;
 --mz-palette-gray-20:#424242;
 --mz-palette-gray-80:#d6d6d6;
 --mz-palette-gray-0:#111111;
 --mz-palette-gray-5:#1e1e1e;
 --mz-palette-gray-10:#2c2c2c;
 --mz-palette-blue-10:#1d2c41;
 --mz-palette-blue-20:#234369;
 --mz-palette-blue-80:#bbd9fe;
 --mz-palette-blue-60:#3f96fc;
 --mz-palette-green-80:#bddfbe;
 --mz-palette-green-10:#1f3021;
 --mz-ink:var(--mz-palette-gray-100);
 --mz-muted:var(--mz-palette-gray-70);
 --mz-line:var(--mz-palette-gray-20);
 --mz-focus:var(--mz-palette-gray-80);
 --mz-chrome:var(--mz-palette-gray-0);
 --mz-surface:var(--mz-palette-gray-5);
 --mz-control:var(--mz-palette-gray-10);
 --mz-bubble:var(--mz-palette-blue-10);
 --mz-selected:var(--mz-palette-blue-20);
 --mz-blue:var(--mz-palette-blue-80);
 --mz-accent:var(--mz-palette-blue-60);
 --mz-success:var(--mz-palette-green-80);
 --mz-success-surface:var(--mz-palette-green-10);
 --mz-on-strong:var(--mz-palette-gray-0);
 --mz-hover:color-mix(in srgb,var(--mz-ink) 10%,transparent);
 --mz-input:color-mix(in srgb,var(--mz-ink) 6%,var(--mz-chrome));
 --mz-shadow:0 8px 18px rgb(0 0 0 / .4);
 --zk-fg:var(--mz-ink);--zk-bg:var(--mz-chrome);--zk-focus:var(--mz-focus);--zk-pill:var(--mz-control);
 color-scheme:dark
}
.mz-case .mz-round{
 --mz-product-font:var(--zk-font);--mz-body:var(--zk-type-ui);--mz-body-line:1.25rem;
 --mz-support:var(--zk-space-3);--mz-support-line:1rem
}
.mz-case [hidden]{display:none!important}
.mz-case .mate-story-hero{padding-block:clamp(var(--space-5),4vw,var(--space-7)) var(--space-6)}
.mz-case .mate-story-hero h1{max-width:24ch;font-size:var(--type-section);letter-spacing:-.055em}
.mz-case main{padding-bottom:var(--space-7)}
.mz-story{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:clamp(var(--space-5),5vw,var(--space-8));border-top:1px solid var(--mate-story-line);padding-top:var(--space-6)}
/* Shared editorial stack. The gaps express relationships, not chapter numbers. */
.mz-copy{
 --mz-copy-tight:clamp(.45rem,.7vw,.75rem);
 --mz-copy-gap:clamp(.75rem,1.15vw,1.125rem);
 --mz-copy-section:clamp(1rem,1.45vw,1.5rem);
 min-inline-size:0;max-inline-size:43rem;container-type:inline-size;
 display:flex;flex-direction:column;align-items:flex-start;gap:var(--mz-copy-section)
}
.mz-copy>[data-copy]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--mz-copy-gap);inline-size:100%}
.mz-copy :is(h2,p){margin:0}
.mz-copy h2{
 font:700 clamp(1.625rem,6.95cqi,2.75rem)/var(--leading-heading) var(--portfolio-type);
 letter-spacing:-.04em;text-wrap:balance;max-inline-size:100%
}
.mz-copy h2>span{display:block}
@container (min-width:27rem){
 /* The second sentence stays on one line; size against actual copy width. */
 .mz-copy [data-entry-copy] h2{font-size:clamp(1.625rem,6.45cqi,2.625rem);text-wrap:wrap}
 .mz-copy [data-entry-copy] h2>span{white-space:nowrap}
}
.mz-copy p:not(.mate-story-kicker){font-size:var(--type-body);line-height:var(--leading-body);color:var(--mate-story-muted);max-inline-size:51ch}
.mz-copy a{color:#e6ae7b}
.mz-nav,.mz-chapters{display:flex;align-items:center;gap:var(--space-1)}
.mz-nav{gap:var(--space-2);flex-wrap:wrap}
@media(min-width:701px){
 .mz-copy{min-block-size:clamp(24rem,48svh,27.5rem)}
 .mz-nav{margin-block-start:auto}
}
.mz-nav button{border:1px solid var(--mate-story-line);border-radius:50%;background:transparent;color:inherit;font:700 var(--type-ui)/1 var(--portfolio-type);width:2rem;height:2rem;cursor:pointer}
.mz-nav button[aria-current]{background:#e6ae7b;color:#221912;border-color:#e6ae7b}
.mz-nav button:disabled{opacity:.4;cursor:default}
.mz-nav button:focus-visible{outline:2px solid #e6ae7b;outline-offset:2px}
.mz-case .mz-round{display:grid;place-items:center;width:100%;max-width:39rem;aspect-ratio:1;margin-inline:auto;border:0;background:transparent;color:var(--mz-ink);font:400 var(--mz-body)/var(--mz-body-line) var(--mz-product-font)}
.mz-scene{width:79%;min-width:0;display:grid;align-content:center;gap:.75rem}
.mz-round button,.mz-round input,.mz-round textarea{font:inherit;color:inherit}
.mz-round button{cursor:pointer}
.mz-round :is(button,input):focus-visible{outline:2px solid var(--mz-blue);outline-offset:2px}
.mz-round img{vertical-align:middle;flex:none}
.mz-round .zk-product-avatar{height:auto;max-width:none;object-fit:contain}
.mz-round .zk-product-avatar[src*="sun-yellow"]{background:#fff6d1}
.mz-app-label{font-size:.75rem;color:var(--mz-muted);text-transform:uppercase;letter-spacing:.08em;text-align:center;font-weight:650}
.mz-compare{display:grid;gap:.5rem}
.mz-compare>div{background:var(--mz-surface);border:1px solid var(--mz-line);border-radius:.75rem;min-height:42px;padding:.5rem .75rem;display:flex;align-items:center;gap:.75rem;text-align:left}
.mz-channels button[aria-pressed=true]{border-color:#a2bcf3;background:#e9f0ff;color:#14366d}
.mz-result{margin:0;text-align:center;color:var(--mz-muted);font-size:.75rem;min-height:2em}
.mz-early{position:relative;display:grid;gap:12px;min-width:0}
.mz-early h3{margin:0;text-align:center;font:400 clamp(18px,2vw,24px)/1.167 var(--mz-product-font);letter-spacing:.07px}
.mz-composer{
 --compose-desktop-width:680px;--cb-font:var(--mz-product-font);--cb-text:var(--mz-ink);--cb-surface:var(--mz-input);
 --cb-line:var(--mz-line);--cb-muted:var(--mz-muted);--cb-round-send-surface:var(--mz-ink);--cb-radius:26px;--cb-tool-gap:4px;--cb-tool-padding:0;--cb-input-padding:4px;
 padding:10px;box-shadow:none
}
.mz-composer textarea{height:44px;font-size:16px;line-height:20px;letter-spacing:-.31px}
.mz-round :is(.mz-composer,.mz-desktop-composer):focus-within{border-color:var(--mz-focus)}
.mz-round .mz-desktop-composer .zk-c-send-round:disabled{background:var(--mz-control)}
.mz-composer .zk-c-basic{color:var(--mz-muted);letter-spacing:-.15px;padding:0 8px}
.mz-composer .mz-plus{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:50%;background:none}
.mz-composer .mz-plus:hover,.mz-composer .mz-plus[aria-expanded=true]{background:var(--mz-hover)}
.mz-composer .mz-chip{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:160px;padding:6px 10px;border:.5px solid var(--mz-line);border-radius:16px;background:var(--mz-surface);font-size:var(--mz-body);line-height:var(--mz-support-line);letter-spacing:-.15px}
.mz-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mz-mic{margin-inline:4px}
.mz-flyout{position:absolute;z-index:2;border:1px solid var(--mz-line);border-radius:12px;background:var(--mz-surface);box-shadow:var(--mz-shadow)}
.mz-menu{top:calc(100% - 24px);inset-inline-start:10px;width:min(264px,95%);padding:8px;display:grid;gap:2px;font-size:var(--mz-body);line-height:var(--mz-body-line);letter-spacing:-.15px}
.mz-menu>span,.mz-menu>button{padding:6px 8px;text-align:left;min-height:32px}
.mz-menu>span{color:var(--mz-ink)}
.mz-menu>span:nth-child(2),.mz-menu>span:nth-child(4){border-bottom:1px solid var(--mz-line);margin-bottom:4px;padding-bottom:8px}
.mz-menu>button{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:8px;background:var(--mz-hover);color:var(--mz-ink)}
.mz-market{padding:12px;border:1px solid var(--mz-line);border-radius:12px;background:var(--mz-surface);box-shadow:var(--mz-shadow)}
.mz-catalog-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;font-weight:590;font-size:16px;line-height:20px;letter-spacing:-.31px}
.mz-catalog-title button{border:0;background:none;border-radius:8px;width:24px;height:24px;font-size:16px}
.mz-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mz-card-grid article{display:grid;gap:4px;align-content:start;border:1px solid var(--mz-line);border-radius:10px;padding:8px;min-width:0}
.mz-card-grid article strong{font-weight:590;font-size:var(--mz-body);line-height:var(--mz-body-line);letter-spacing:-.15px}
.mz-card-grid article>span{font-size:var(--mz-support);line-height:var(--mz-support-line);color:var(--mz-muted)}
.mz-card-grid article button{border:0;border-radius:16px;background:var(--mz-hover);padding:4px 10px;justify-self:start;font-size:var(--mz-support);line-height:var(--mz-support-line)}
.mz-card-grid article button:hover{background:var(--mz-control)}
.mz-suggestions{display:grid;gap:2px}
.mz-suggestions button{display:flex;align-items:baseline;gap:8px;text-align:left;border:0;border-radius:8px;background:none;padding:6px 8px;color:var(--mz-muted);font-size:var(--mz-body);line-height:var(--mz-body-line);letter-spacing:-.15px}
.mz-suggestions button span{color:var(--mz-blue)}
.mz-suggestions button:hover{background:var(--mz-hover)}
.mz-channels,.mz-switch{display:flex;justify-content:center;gap:.35rem}
.mz-channels button,.mz-switch button{min-height:34px;border:1px solid var(--mz-line);border-radius:2rem;padding:.3rem .65rem;background:var(--mz-surface);font-weight:550}
.mz-switch button[aria-pressed=true]{background:#23262b;border-color:#23262b;color:white}
.mz-channel-card{background:var(--mz-surface);border:1px solid var(--mz-line);border-radius:.75rem;padding:.8rem;display:grid;gap:.3rem}
.mz-channel-card span,.mz-compare small{color:var(--mz-muted);font-size:.75rem}
.mz-compare>div span{display:grid;gap:.08rem}
.mz-compare p{margin:.25rem 0;text-align:center;color:#14366d}
/* Core 12918:326430 / 326485 / 13757:364792. Keep the actual workspace separate from the editorial canvas. */
.mz-case .mz-round:has(.mz-desktop-scene:not([hidden])){container:workspace-circle / inline-size;overflow:clip}
.mz-case .mz-desktop-scene{width:100%;gap:0}
.mz-workspace-body{
 --workspace-split:clamp(42%,calc(100% - 258px),54%);--composer-underlap:24px;
 position:relative;isolation:isolate;block-size:80cqw;min-width:0
}
.mz-desktop-thread{
 position:absolute;z-index:0;inset:12% auto 3% 10%;inline-size:52%;overflow:hidden;
 font:400 var(--zk-type-ui)/var(--mz-body-line) var(--zk-font);
}
.mz-desk-intro{
 --transcript-row:clamp(35px,6.6cqw,44px);--transcript-gap:var(--zk-space-2);--transcript-fade:clamp(12px,4cqw,28px);
 block-size:100%;overflow:hidden;pointer-events:none;
 mask-image:linear-gradient(to bottom,transparent,#000 var(--transcript-fade),#000 calc(100% - var(--transcript-fade)),transparent)
}
/* Recede only the decorative conversation behind the workspace. */
.mz-case .mz-desktop-thread .mz-desk-intro{filter:blur(5px)}
.mz-desk-transcript-tile{
 display:grid;grid-auto-rows:var(--transcript-row);gap:var(--transcript-gap);padding-block-end:var(--transcript-gap)
}
.mz-desk-skeleton{min-block-size:0}
.mz-desk-skeleton--request{width:76%;justify-self:end;background:var(--mz-bubble);border-radius:var(--zk-space-4)}
.mz-desk-skeleton--reply{width:86%;display:grid;align-content:center;gap:5px}
.mz-desk-skeleton i{display:block;height:5px;border-radius:999px;background:var(--mz-control)}
.mz-desk-skeleton i:nth-child(2){width:80%}
.mz-desk-skeleton i:nth-child(3){width:60%}
@media(prefers-reduced-motion:no-preference){
 .mz-desk-transcript-track{animation:mz-desk-history-scroll 24s linear infinite paused}
 [data-desk-motion] .mz-desk-transcript-track{animation-play-state:running}
}
@keyframes mz-desk-history-scroll{to{transform:translateY(-50%)}}
.mz-desktop-input{
 position:absolute;z-index:1;inset-inline-start:12%;inset-inline-end:calc(100% - var(--workspace-split) - var(--composer-underlap));
 inset-block-end:9%;min-inline-size:0
}
.mz-desktop-composer{
 --cb-line:var(--mz-line);--cb-surface:var(--mz-input);--cb-text:var(--mz-ink);--cb-muted:var(--mz-muted);--cb-round-send-surface:var(--mz-ink);--cb-input-padding:8px 0;--cb-tool-padding:0;
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;
 gap:var(--zk-space-2);padding:8px calc(12px + var(--composer-underlap)) 8px 16px;
 box-shadow:none
}
.mz-desktop-composer .zk-compose-tools{align-self:end;padding-block-end:2px}
.mz-desktop-profile{
 position:absolute;z-index:2;inset:3% 0 0 var(--workspace-split);
 min-inline-size:0;min-block-size:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);
 gap:var(--zk-space-3);padding:var(--zk-space-6) 3.5% var(--zk-space-4) var(--zk-space-3);
 background:var(--mz-surface);border-inline-start:1px solid var(--mz-line);
 border-start-start-radius:var(--zk-space-4);box-shadow:-10px 0 22px -16px rgb(0 0 0 / .52)
}
.mz-desktop-profile::after{
 content:"";position:absolute;z-index:1;inset:0;pointer-events:none;border-radius:inherit;
 /* Match the surrounding dark canvas at both edges and keep the center untouched. */
 background:linear-gradient(to bottom,var(--mz-chrome),transparent) top/100% var(--mz-profile-fade,var(--zk-space-6)) no-repeat,
  linear-gradient(to top,var(--mz-chrome),transparent) bottom/100% var(--mz-profile-fade,var(--zk-space-6)) no-repeat
}
.mz-profile{display:flex;align-items:center;gap:var(--zk-space-2);min-width:0;padding-inline:0}
.mz-profile strong{font:650 var(--zk-type-ui)/var(--zk-leading-meta) var(--zk-font);display:block}
.mz-profile small{display:block;color:var(--mz-muted);font:400 clamp(9px,.95vw,12px)/1.35 var(--zk-font)}
.mz-profile-avatar{position:relative;flex:none;display:block}
.mz-profile-avatar .zk-product-avatar{width:clamp(34px,4vw,56px)}
.mz-profile-avatar .mz-desk-avatar-motion,
.mz-profile-avatar[data-avatar-state]>img{display:none}
.mz-profile-avatar[data-avatar-state]>.mz-desk-avatar-motion{display:block;background:#fff6d1;border-radius:50%}
.mz-desk-content{display:grid;align-content:start;gap:var(--zk-space-3);overflow:auto;min-width:0;padding-inline:0;scrollbar-width:none}
.mz-desk-content details{min-width:0;display:grid}
.mz-desk-content summary{
 display:flex;align-items:center;gap:var(--zk-space-1);margin:0 0 var(--zk-space-1);cursor:pointer;list-style:none;
 color:var(--mz-muted);font:590 var(--mz-support)/16px var(--zk-font)
}
.mz-desk-content summary img{display:block;width:16px;height:16px}
.mz-desk-content details:not([open]) summary img{transform:rotate(-90deg)}
.mz-desk-content summary::-webkit-details-marker{display:none}
.mz-desktop-profile .mz-desk-row{
 display:flex;align-items:center;gap:var(--zk-space-2);width:100%;min-width:0;border:0;border-radius:var(--zk-space-2);
 padding:var(--zk-space-2);background:none;color:var(--mz-ink);text-align:left
}
.mz-desktop-profile .mz-desk-row:is(:hover,[aria-pressed=true]){background:var(--mz-hover)}
.mz-desk-row-copy{display:grid;gap:2px;min-width:0;font:400 var(--zk-type-meta)/var(--zk-leading-meta) var(--zk-font);overflow-wrap:anywhere}
.mz-desk-row-copy small{color:var(--mz-muted);font:400 var(--mz-support)/16px var(--zk-font)}
.mz-desk-row-icon{display:grid;place-items:center;flex:none;inline-size:24px;block-size:24px;border:1px solid var(--mz-line);border-radius:var(--zk-space-1)}
.mz-desk-row-icon img{display:block;width:16px;height:16px}
.mz-desk-row-icon:has(.mz-desk-spinner){color:#0b5cff}
.mz-desk-spinner{display:block;position:relative;width:14px;height:14px;mask:url(assets/zoommate-workspace/progress.svg) center/contain no-repeat}
.mz-desk-spinner::before,.mz-desk-spinner::after{content:"";display:block;width:100%;height:50%;background-size:100% 100%;background-repeat:no-repeat}
.mz-desk-spinner::before{background-image:url(assets/zoommate-workspace/progress-top.svg)}
.mz-desk-spinner::after{background-image:url(assets/zoommate-workspace/progress-bottom.svg);transform:rotate(180deg)}
@container workspace-circle (max-width:485px){
 .mz-workspace-body{--composer-underlap:0px;block-size:83cqw}
 .mz-desktop-thread{inset:6% 14% 27%;inline-size:auto}
 .mz-desk-intro{--transcript-row:33px;--transcript-gap:6px}
 .mz-desk-skeleton--reply{gap:4px}
 .mz-desktop-input{inset-inline:13%;inset-block-end:43%}
 .mz-desktop-composer{padding-block:6px;padding-block-end:14px}
 .mz-desktop-profile{
  inset:54% 0 0;gap:var(--zk-space-1);padding:var(--zk-space-1) 11.5% 0;
  border-inline-start:0;border-block-start:1px solid var(--mz-line);border-start-start-radius:0;
  box-shadow:0 -6px 18px -13px rgb(0 0 0 / .52)
 }
 .mz-desktop-profile{--mz-profile-fade:var(--zk-space-4)}
 .mz-profile{justify-content:start;padding:0}
 .mz-profile-avatar .zk-product-avatar{width:28px}
 .mz-desk-content{max-inline-size:100%;inline-size:100%;justify-self:start}
 .mz-desktop-profile .mz-desk-row{padding-block:var(--zk-space-1)}
}

.mz-last{justify-items:center;text-align:center}
.mate-case-prototype[hidden]{display:none}
@media(max-width:700px){
 .mz-story{grid-template-columns:1fr;gap:var(--space-5)}
 .mz-round{max-width:29rem}
 .mz-nav button{width:2.2rem;height:2.2rem}
 .mz-scene{width:85%}
 .mz-menu{top:50%;inset-inline-start:50%;transform:translate(-50%,-40%)}
}
@media(max-width:420px){
 .mz-case .mate-story-bar,.mz-case main{width:calc(100% - 1.5rem)}
 .mz-round{font-size:.775rem}
 .mz-nav{justify-content:space-between;gap:.25rem;inline-size:100%}
 .mz-nav button{width:2rem;height:2rem}
}
.mz-product-mark{color:#0b5cff;font-size:.9rem}
@media(max-width:420px){
 .mz-early{gap:8px}
 .mz-early h3{font-size:17px}
 .mz-card-grid article{padding:6px}
 .mz-card-grid article img{width:26px}
 .mz-market{padding:8px}
 .mz-card-grid{gap:6px}
 .mz-card-grid article strong{font-size:12px;line-height:16px}
}
@media(max-width:350px){.mz-nav button{width:1.8rem;height:1.8rem}.mz-chapters{gap:2px}}
.mz-round{min-height:0}
@media(max-width:420px){
}

/* Two layers: a documentary photo and one paper carrying the actual findings. */
.mz-research-scene{position:relative;isolation:isolate;width:100%;align-self:stretch;overflow:hidden;border-radius:16px;background:#282420}
.mz-research-reel{position:absolute;inset:0;overflow:hidden;z-index:0;isolation:isolate;--leak:#d6d6df23;--dark:#17171de0;--tint:#303038ca;--film-footer-tint:#15151cba}
.mz-round .mz-research-photo{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;filter:saturate(.78) brightness(.85);opacity:0;transition:opacity .55s ease}
.mz-round .mz-research-photo[data-active]{opacity:1}
@media(prefers-reduced-motion:reduce){.mz-round .mz-research-photo{transition:none}}
.mz-research-intel{position:absolute;z-index:1;inset:auto 0 -7%;margin-inline:auto;width:70%;max-width:26rem;display:grid;gap:var(--zk-space-2);padding:var(--zk-space-4);padding-bottom:calc(var(--zk-space-4) + clamp(100px,11vw,148px));background:#f4ebd9;color:#2d2823;border-top:2px solid #ab7953;transform:rotate(-2deg)}
@media(prefers-reduced-motion:no-preference){
 .mz-research-scene[data-paper-enter] .mz-research-intel{animation:mz-paper-in .66s cubic-bezier(.18,.72,.25,1) both}
 @keyframes mz-paper-in{from{translate:0 65%}to{translate:0 0}}
}
.mz-research-intel h3{font:700 clamp(20px,2.55vw,35px)/var(--leading-heading) var(--portfolio-type);margin:0;letter-spacing:-.035em}
.mz-research-kicker{font:700 clamp(9px,1.06vw,12px)/1.25 var(--portfolio-type);letter-spacing:.055em;text-transform:uppercase;color:#725137;margin:0}
.mz-research-intel ul{list-style:none;padding:0;margin:0;display:grid}
.mz-research-intel li{display:grid;grid-template-columns:4ch minmax(0,1fr);align-items:baseline;gap:var(--zk-space-2);padding-block:var(--zk-space-1);border-top:1px solid #80735d56;font:500 clamp(11px,1.2vw,15px)/1.33 var(--mz-product-font)}
.mz-research-intel li b{font:700 .9em/1.2 var(--portfolio-type);color:#6c4b35}
@media(max-width:700px){.mz-round .mz-research-photo{transform:scale(1.15);transform-origin:center bottom}.mz-research-intel{width:70%;bottom:-8%;padding:var(--zk-space-3);padding-bottom:calc(var(--zk-space-3) + 76px);gap:var(--zk-space-1)}}
@media(max-width:370px){.mz-research-intel{width:72%;bottom:-8%;padding:var(--zk-space-2);padding-bottom:calc(var(--zk-space-2) + 66px);transform:none}.mz-research-intel li{font-size:10px}}



.mz-compose-entry{position:relative;display:grid;gap:inherit}
/* Figma Hero: title ends at y=28, composer starts at y=60. */
.mz-compose-entry .mz-compose-lead{display:grid;row-gap:var(--zk-space-6)}
.mz-early .mz-agent-list{
 top:50%;inset-inline-start:10px;transform:translateY(-50%);width:min(302px,100%);
 max-height:min(508px,calc(100cqi + 24px));padding:var(--zk-space-3);display:grid;align-content:start;gap:2px;
 overflow:auto;overscroll-behavior:contain;scrollbar-width:thin
}
.mz-agent-list hr{height:1px;margin:6px var(--zk-space-2);border:0;background:var(--mz-line)}
.mz-agent-list [data-picker-group],.mz-agent-list .mz-compose-agent-options{display:grid;gap:2px}
.mz-early .mz-agent-list :is(.mz-picker-search,.mz-available-agent,.mz-picker-group-title){
 display:flex;align-items:center;gap:var(--zk-space-2);min-width:0;margin:0;padding:6px var(--zk-space-2);min-height:32px;
 border:0;border-radius:var(--zk-space-2);text-align:start;background:transparent;
 font:400 var(--zk-type-ui)/18px var(--zk-font);letter-spacing:-.15px
}
.mz-early .mz-agent-list .mz-picker-group-title{
 font-size:var(--zk-space-3);line-height:16px;letter-spacing:0;font-weight:590;color:var(--mz-muted)
}
.mz-picker-group-title[aria-expanded=false] img{transform:rotate(-90deg)}
.mz-early .mz-picker-search input{display:block;flex:1;min-width:0;width:100%;padding:0;border:0;background:none}
.mz-early .mz-picker-search input::placeholder{color:var(--mz-muted)}
.mz-early .mz-agent-list button:hover{background:var(--mz-hover)}
.mz-early .mz-agent-list :is(button,input):focus-visible{outline:2px solid var(--zk-focus);outline-offset:-2px}
@container(max-width:350px){
 .mz-early .mz-agent-list{inset-inline-start:50%;transform:translate(-50%,-50%);padding:var(--zk-space-2)}
}

/* Route controls are case navigation, not historical in-product UI. */
.mz-copy .mz-entry-controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--mz-copy-tight) var(--mz-copy-gap);margin:0}
.mz-copy .mz-entry-options{display:flex;gap:2px;padding:2px;border:1px solid var(--mate-story-line);border-radius:20px}
.mz-copy .mz-entry-options button,.mz-copy .mz-replay{
 min-height:32px;border:0;border-radius:16px;background:none;color:var(--mate-story-muted);
 padding:4px 10px;font:700 var(--type-ui)/1.15 var(--portfolio-type);white-space:nowrap;cursor:pointer
}
.mz-copy .mz-entry-options button[aria-pressed=true]{background:#e6ae7b;color:#221912}
.mz-copy .mz-replay{padding-inline:4px;text-decoration:underline;text-underline-offset:.2em}
.mz-copy .mz-entry-controls button:focus-visible{outline:2px solid #e6ae7b;outline-offset:2px}
@media(max-width:380px){
 .mz-copy .mz-entry-options button,.mz-copy .mz-replay{padding-inline:6px}
}

/* The market is a separate product surface, not the Compose Box popover. */
.mz-early-scene{container-type:inline-size}
.mz-market{position:relative;min-width:0;padding:0;overflow:hidden;border-radius:var(--zk-space-3);box-shadow:none}
.mz-market-layout{display:grid;grid-template-columns:minmax(0,76px) minmax(0,1fr);min-height:232px}
.mz-market-rail{display:grid;align-content:start;gap:6px;padding:11px 5px;background:var(--mz-chrome);border-inline-end:1px solid var(--mz-line);font-size:9px;line-height:13px;color:var(--mz-muted)}
.mz-market-rail>*{padding:3px 4px}
.mz-market-rail strong{background:var(--mz-control);border-radius:6px;color:var(--mz-ink);font-weight:590}
.mz-market-content{min-width:0;padding:var(--zk-space-3);display:grid;align-content:start;gap:var(--zk-space-2)}
.mz-market-titles{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.mz-market-titles h3{font:600 16px/20px var(--mz-product-font);margin:0;letter-spacing:-.3px;text-align:start}
.mz-market .mz-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--zk-space-2)}
.mz-market .mz-card-grid article{grid-template-rows:auto minmax(2.25em,auto) 1fr auto;gap:var(--zk-space-1);padding:var(--zk-space-2);border-radius:var(--zk-space-2)}
.mz-market .mz-card-grid article>strong,.mz-market .mz-card-grid article .mz-market-detail-link{align-self:start;font-size:var(--zk-type-meta);line-height:1.24;font-weight:600}
.mz-market .mz-card-grid article button[data-hire]{justify-self:end}
.mz-market .mz-card-grid article .mz-market-detail-link:hover{text-decoration:underline;text-underline-offset:2px}
.mz-market .mz-card-grid article .mz-market-detail-link{background:none;padding:0;color:var(--mz-ink);text-align:start}
.mz-market .mz-card-grid article span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mz-market-overlay{position:absolute;z-index:3;inset:0;background:#22262a59;display:grid;grid-template-rows:minmax(0,1fr);place-items:stretch center;padding:7px}
.mz-market-profile{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;width:min(92%,322px);min-height:0;max-height:100%;padding:9px;border-radius:14px;border:1px solid var(--mz-line);background:var(--mz-surface);box-shadow:var(--mz-shadow)}
.mz-market-profile header{display:flex;align-items:center;gap:7px}
.mz-market-profile header img{width:28px}
.mz-market-profile header h3{margin:0;text-align:start;font:650 15px/19px var(--mz-product-font)}
.mz-market-close{margin-left:auto;border:0;border-radius:50%;background:none;min-width:26px;min-height:26px;font-size:16px}
.mz-market-close:hover{background:var(--mz-hover)}
.mz-profile-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 2px 2px}
.mz-profile-scroll h4{margin:6px 0 2px;font:590 11px/15px var(--mz-product-font);color:var(--mz-muted)}
.mz-profile-scroll p{margin:0;font-size:11px;line-height:15px}
.mz-profile-chips{display:flex;flex-wrap:wrap;gap:3px}
.mz-profile-chips button,.mz-profile-chips span{border:1px solid var(--mz-line);border-radius:12px;background:var(--mz-surface);padding:3px 5px;font:400 10px/13px var(--mz-product-font);text-align:start}
.mz-profile-chips button[aria-pressed=true]{background:var(--mz-selected);border-color:var(--mz-accent);color:var(--mz-blue)}
.mz-profile-prompts{display:grid;justify-items:start}
.mz-profile-scroll .mz-profile-info{margin-top:5px;padding:5px;background:var(--mz-bubble);border-radius:6px}
.mz-market-hire{border:0;border-radius:10px;background:var(--mz-ink);color:var(--mz-on-strong)!important;min-height:28px;font-size:12px;font-weight:590}
@container(max-width:350px){
 .mz-market-layout{grid-template-columns:minmax(0,1fr)}
 .mz-market-rail{display:none}
 .mz-market .mz-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mz-market .mz-card-grid article:nth-child(3){grid-column:auto}
 .mz-market .mz-card-grid article .mz-market-detail-link{font-size:12px;line-height:16px}
 .mz-market .mz-card-grid article span{-webkit-line-clamp:2}
 .mz-suggestions{max-height:104px;overflow:auto;scrollbar-width:thin}
}
@container(max-width:300px){
 .mz-market-layout{min-height:205px}
 .mz-market-content{padding:var(--zk-space-2)}
 .mz-market .mz-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mz-market .mz-card-grid article{padding:4px;gap:3px}
 .mz-market .mz-card-grid article strong,.mz-market .mz-card-grid article .mz-market-detail-link{font-size:10px;line-height:13px}
 .mz-market .mz-card-grid article>span{font-size:9px;line-height:12px}
 .mz-market .mz-card-grid article button[data-hire]{font-size:10px;line-height:13px;padding:3px 6px}
}

/* Keep the prompt list comfortably inside the circular stage on phones. */
@media(max-width:420px){
 .mz-compose-entry .mz-suggestions{width:88%;margin-inline:auto}
 .mz-compose-entry .mz-suggestions button{font-size:var(--mz-support);line-height:var(--mz-support-line)}
 .mz-composer .mz-chip{font-size:var(--mz-support);padding-inline:var(--zk-space-2)}
 .mz-composer .zk-c-basic{font-size:var(--mz-support);padding-inline:var(--zk-space-1)}
}

/* Chapters 3–6 use the same dark color roles as the first product scene. */
.mz-case .mz-product-scene{
 gap:var(--zk-space-3);
 --mz-product-radius:var(--zk-space-3);
 font:400 var(--zk-type-ui)/var(--mz-body-line) var(--zk-font);
}
.mz-case .mz-product-scene .mz-product-surface,
.mz-case .mz-product-scene .mz-compare>div{
 background:var(--mz-surface);
 border:1px solid var(--mz-line);
 border-radius:var(--mz-product-radius);
}
.mz-case .mz-product-scene .mz-product-controls{
 display:flex;flex-wrap:wrap;justify-content:center;gap:var(--zk-space-1);
 width:max-content;max-width:100%;padding:var(--zk-space-1);
 margin:0 auto;border-radius:var(--mz-product-radius);
}
.mz-case .mz-product-scene .mz-product-controls>button{
 min-width:0;min-height:32px;max-width:100%;
 border:1px solid transparent;border-radius:var(--zk-space-2);
 padding:var(--zk-space-1) var(--zk-space-2);color:var(--mz-muted);
 background:none;font:550 var(--zk-type-meta)/var(--zk-leading-meta) var(--zk-font);
}
.mz-case .mz-product-scene .mz-product-controls>button:hover{background:var(--mz-control);color:var(--mz-ink)}
.mz-case .mz-product-scene .mz-product-controls>button[aria-pressed=true]{
 color:var(--mz-ink);background:var(--mz-surface);border-color:var(--mz-line)
}
.mz-case .mz-product-scene :is(button,input):focus-visible{outline:2px solid var(--zk-focus);outline-offset:2px}
.mz-case .mz-product-scene .mz-channel-card,
.mz-case .mz-product-scene .mz-compare>div{padding:var(--zk-space-3)}
.mz-product-scene .mz-app-label,.mz-product-scene .mz-result,
.mz-product-scene .mz-channel-card span,.mz-product-scene .mz-compare small{
 font-size:var(--zk-type-meta);line-height:var(--zk-leading-meta)
}
.mz-product-scene .mz-app-label{letter-spacing:normal;text-transform:none}
.mz-case .mz-desktop-scene .mz-desktop-tabs{
 display:flex;flex-wrap:nowrap;gap:var(--zk-space-1);margin:0;inline-size:100%;min-inline-size:0;max-inline-size:100%;
 justify-content:flex-start;padding:1px 1px 2px;background:none;overflow-x:auto;overflow-y:hidden;
 overscroll-behavior-inline:contain;scrollbar-width:none;box-sizing:border-box
}
.mz-case .mz-desktop-scene .mz-desktop-tabs>button{
 min-height:28px;flex:0 0 auto;max-width:none;white-space:nowrap;border:0;border-radius:999px;color:var(--mz-muted);background:var(--mz-control);
 padding:2px 7px;font:400 var(--mz-support)/1.2 var(--zk-font)
}
.mz-case .mz-desktop-scene .mz-desktop-tabs>button[aria-pressed=true]{background:var(--mz-ink);color:var(--mz-on-strong)}
.mz-finale-content{
 display:grid;justify-items:center;gap:var(--zk-space-3);
 width:min(100%,22rem);padding:var(--zk-space-5) var(--zk-space-4)
}
.mz-finale-avatar{display:grid;inline-size:80px;block-size:80px;aspect-ratio:1;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;touch-action:manipulation}
.mz-finale-avatar>.zk-product-avatar{grid-area:1/1;inline-size:100%;block-size:auto}
.mz-finale-avatar .mz-finale-avatar-motion,.mz-finale-avatar[data-animated]>img{display:none}
.mz-finale-avatar[data-animated] .mz-finale-avatar-motion{display:block}
.mz-finale-title{margin:0;text-align:center;color:var(--mz-ink);font:600 var(--zk-type-body)/var(--zk-leading-meta) var(--zk-font)}
.mz-finale-content [data-mate-launch]{--zk-action-radius:32px}
@media(max-width:420px){
 .mz-case .mz-product-scene{gap:var(--zk-space-2)}
 .mz-case .mz-product-scene .mz-product-controls:not(.mz-desktop-tabs)>button{padding-inline:var(--zk-space-1)}
 .mz-case .mz-product-scene .mz-channel-card,.mz-case .mz-product-scene .mz-compare>div{padding:var(--zk-space-2)}
 .mz-finale-content{gap:var(--zk-space-2);padding:var(--zk-space-3) var(--zk-space-2)}
}

/* The chapter 5 comparison swaps with the workspace, preserving its state. */
.mz-copy p.mz-identity-shift:not(.mate-story-kicker){display:grid;gap:var(--mz-copy-tight);font-size:var(--type-ui);padding-block-start:var(--mz-copy-tight);border-block-start:1px solid var(--mate-story-line)}
.mz-copy .mz-identity-shift .mz-text-action{justify-self:start;min-block-size:28px}
.mz-copy [data-manual-replay]{min-block-size:32px}
.mz-avatar-explanation{display:grid}
.mz-avatar-explanation>span{grid-area:1/1}
.mz-case .mz-avatar-explanation>[hidden]{display:block!important;visibility:hidden}
.mz-text-action{display:inline-flex;align-items:center;min-height:44px;margin:0 var(--space-1) 0 0;padding:0;border:0;background:none;color:#e6ae7b;font:700 var(--type-ui)/var(--leading-meta) var(--portfolio-type);text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.mz-text-action:focus-visible{outline:2px solid #e6ae7b;outline-offset:2px}


/* Chapter 3: one product frame, switching between a source and the ZoomMate thread. */
.mz-product-scene:has(.mz-manual-source){position:relative}
.mz-manual-draft{overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto;block-size:clamp(16rem,27vw,23rem);min-width:0}
.mz-task-body{display:grid;min-block-size:0}
.mz-manual-thread{
 display:flex;flex-direction:column;gap:var(--zk-space-3);min-width:0;overflow-y:auto;overscroll-behavior:contain;
 padding:var(--zk-space-3);scrollbar-width:thin;scrollbar-gutter:stable
}
/* Keep the product preview free of browser chrome. Keep
   the focusable transcript scrollable without reserving or painting a track. */
@media(width > 700px){
 .mz-case .mz-manual-scene .mz-manual-thread{scrollbar-width:none;scrollbar-gutter:auto}
 .mz-case .mz-manual-scene .mz-manual-thread::-webkit-scrollbar{display:none}
}
.mz-manual-thread:focus-visible{outline:2px solid var(--zk-focus);outline-offset:-2px}
.mz-manual-thread article{min-width:0;width:fit-content;max-width:95%;overflow-wrap:anywhere}
.mz-manual-message{align-self:end;display:grid;justify-items:end;gap:var(--zk-space-2)}
.mz-manual-thread .mz-manual-message .mz-manual-bubble{
 padding:var(--zk-space-3) var(--zk-space-4);min-inline-size:40px;max-inline-size:100%;box-sizing:border-box;
 border-radius:16px 16px 6px 16px;background:var(--mz-bubble);color:var(--mz-ink);
 font:400 16px/24px var(--zk-font)
}
.mz-manual-thread :is(p,blockquote){
 margin:0;white-space:pre-wrap;font:400 var(--zk-type-meta)/var(--zk-leading-meta) var(--zk-font)
}
.mz-manual-thread article strong{display:block;font:600 var(--mz-support)/var(--mz-support-line) var(--zk-font);margin-bottom:2px}
.mz-manual-sources{display:grid;gap:6px;min-width:0;inline-size:fit-content;max-inline-size:100%;justify-self:end;list-style:none;padding:0;margin:0}
.mz-manual-sources li{min-width:0}
@media(max-width:700px){
 .mz-manual-thread .mz-manual-message .mz-manual-bubble{padding:var(--zk-space-3);border-radius:20px 4px 20px 20px;background:var(--mz-bubble);font:400 17px/22px var(--zk-font);letter-spacing:-.026em}
}
/* Core 1798:120169: plain output, collapsible process disclosure and linked activity rows. */
.mz-manual-thread .mz-manual-deliverable{width:100%;max-width:100%}
.mz-ai-activity{
 color:var(--mz-muted);margin-bottom:var(--zk-space-5);
 font:400 var(--zk-type-ui)/20px var(--zk-font)
}
.mz-ai-activity summary{
 display:flex;align-items:center;gap:3px;width:fit-content;cursor:pointer;color:var(--mz-muted);list-style:none
}
.mz-ai-activity summary::-webkit-details-marker{display:none}
.mz-ai-activity summary img{width:14px;height:14px;display:block}
.mz-ai-activity:not([open]) summary img{transform:rotate(-90deg)}
.mz-ai-activity summary:focus-visible{outline:2px solid var(--zk-focus);outline-offset:3px}
.mz-ai-activity ul{display:grid;gap:10px;list-style:none;margin:var(--zk-space-3) 0 0;padding:0}
.mz-ai-activity li{
 position:relative;display:grid;grid-template-columns:16px auto minmax(0,1fr);
 gap:6px;align-items:start;padding:var(--zk-space-2) 0
}
.mz-ai-activity li img{display:block;width:16px;height:16px;margin-top:2px}
.mz-ai-activity li span:last-child{margin-inline-start:var(--zk-space-2);min-width:0;overflow-wrap:anywhere}
.mz-ai-activity li:not(:last-child)::after{
 position:absolute;content:"";inset-inline-start:7px;inset-block-start:29px;inset-block-end:-5px;
 inline-size:1px;background:var(--mz-line)
}
.mz-manual-thread .mz-ai-email-subject{font-weight:600;margin-bottom:var(--zk-space-2)}
.mz-manual-thread :is(.mz-manual-reply p,.mz-ai-email-body){font:400 var(--zk-type-ui)/20px var(--zk-font)}
@media(max-width:420px){
 .mz-ai-activity{margin-bottom:var(--zk-space-3)}
 .mz-ai-activity ul{gap:6px;margin-top:var(--zk-space-1)}
 .mz-ai-activity li{gap:4px;padding-block:var(--zk-space-1)}
 .mz-ai-activity li:not(:last-child)::after{inset-block-start:23px}
 .mz-ai-activity li span:last-child{margin-inline-start:var(--zk-space-1)}
}
/* Detached context appears only when the simulated user brings it into this same chat. */
.mz-task-composer-area{position:relative;min-width:0;margin:var(--zk-space-2)}
.mz-manual-source{
 position:absolute;z-index:2;inset-inline:var(--zk-space-1);bottom:calc(100% + var(--zk-space-1));cursor:grab
}
.mz-manual-source:active{cursor:grabbing}
.mz-manual-source,.mz-context-artifact{padding:0;border:0;background:transparent;text-align:start;min-width:0}
.mz-context-slot{display:block}
.mz-context-row{
 display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border-radius:12px;
 background:var(--mz-control);color:var(--mz-ink);box-sizing:border-box;text-align:start
}
.mz-context-icon{display:grid;place-items:center;inline-size:32px;block-size:32px;flex:none;border-radius:8px;background:var(--mz-bubble)}
.mz-context-icon img{display:block;inline-size:16px;block-size:16px}
/* Only the two source icon tiles take the next step up the dark ZoomKit blue ramp. */
.mz-case .mz-manual-scene .mz-context-icon:has(>img:is([src$="/phone.svg"],[src$="/email.svg"])){
 background:var(--mz-palette-blue-20)
}
@media (forced-colors:none){
 @supports (mask-image:url("assets/zoommate-context/phone.svg")){
  .mz-case .mz-manual-scene .mz-context-icon:has(>img[src$="/phone.svg"]){--mz-context-mask:url("assets/zoommate-context/phone.svg")}
  .mz-case .mz-manual-scene .mz-context-icon:has(>img[src$="/email.svg"]){--mz-context-mask:url("assets/zoommate-context/email.svg")}
  .mz-case .mz-manual-scene .mz-context-icon:has(>img:is([src$="/phone.svg"],[src$="/email.svg"]))::before{
   content:"";inline-size:16px;block-size:16px;background:var(--mz-palette-blue-60);
   mask:var(--mz-context-mask) center/contain no-repeat
  }
  .mz-case .mz-manual-scene .mz-context-icon>img:is([src$="/phone.svg"],[src$="/email.svg"]){display:none}
 }
}
.mz-context-copy{display:grid;min-width:0;gap:4px}
.mz-manual-thread .mz-context-row .mz-context-title,.mz-context-row .mz-context-title{display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:590 .875rem/18px var(--zk-font);letter-spacing:-.15px}
.mz-context-meta{display:flex;align-items:center;gap:8px;min-width:0;color:var(--mz-muted);font:400 .75rem/16px var(--zk-font)}
.mz-context-meta span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mz-context-meta span+span{padding-inline-start:8px;border-inline-start:1px solid var(--mz-line);white-space:nowrap}
.mz-manual-source[aria-disabled=true]{opacity:.55;cursor:default}
.mz-task-thinking{display:flex;align-items:center;gap:var(--zk-space-2);min-height:20px}
.mz-task-thinking .zk-thinking-label{font:400 var(--zk-type-meta)/var(--zk-leading-meta) var(--zk-font)}
.mz-note-transfer{position:absolute;z-index:3;box-sizing:border-box;pointer-events:none;overflow:hidden}
@media(max-width:420px){
 .mz-manual-draft{block-size:clamp(15rem,69vw,17rem)}
 .mz-manual-thread{padding:var(--zk-space-2);gap:var(--zk-space-2)}
}
.mz-early-sent{justify-self:end;max-width:90%;margin:0;padding:var(--zk-space-2);border-radius:var(--zk-space-3);background:var(--mz-bubble);overflow-wrap:anywhere}
.mz-round .mz-composer .zk-c-send-round{--cb-round-send-size:30px}

/* The same v29 cue uses WAAPI for repeat clicks, with no forced reflow. */
.mz-case-tap{position:fixed;width:54px;height:54px;margin:-27px 0 0 -27px;box-shadow:inset 0 0 0 1.5px #ffffffe6,0 0 0 1px #0b0b0b1f,0 5px 16px #0b0b0b38;opacity:0;pointer-events:none;background:#2828263d;border-radius:50%;z-index:1002;top:0;left:0}
.mz-case-tap-ring{position:absolute;inset:0;box-shadow:0 0 0 1.5px #28282666;opacity:0;border-radius:50%}
.mz-comparison{position:relative;--arch-active-scale:2.65}
.mz-architecture{position:relative;min-inline-size:0;block-size:clamp(13.5rem,24vw,19rem)}
.mz-architecture-map{position:absolute;inset:0}
.mz-architecture-links{position:absolute;inset:0;inline-size:100%;block-size:100%;overflow:visible}
.mz-architecture-links path{fill:none;stroke:var(--mz-focus);stroke-width:1.25px;vector-effect:non-scaling-stroke;stroke-linecap:round}
.mz-architecture-node{
 position:absolute;inset-inline-start:var(--x);inset-block-start:var(--y);transform:translate(-50%,-50%);
 display:flex;align-items:center;gap:5px;white-space:nowrap;padding:3px 6px;border-radius:var(--zk-space-2);
 color:var(--mz-ink);background:var(--mz-control);font:550 var(--zk-type-meta)/16px var(--zk-font)
}
.mz-architecture-node :is(img,.mz-architecture-avatar){inline-size:26px;block-size:26px;object-fit:contain;flex:none}
.mz-architecture-node:not([data-arch-working]) .mz-architecture-avatar,
.mz-architecture-node[data-arch-working]>img{display:none}

/* Enlarge only the active face, not the label or the map geometry. */
.mz-architecture-node[data-arch-avatar]{gap:var(--zk-space-3)}
.mz-architecture-node .mz-architecture-avatar{
 transform-origin:right center;transition:transform 220ms ease-out;
}
.mz-architecture-node[data-arch-working]:not([data-arch-working=settling]) .mz-architecture-avatar{transform:scale(var(--arch-active-scale))}
@starting-style{
 .mz-architecture-node[data-arch-working]:not([data-arch-working=settling]) .mz-architecture-avatar{transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){.mz-architecture-node .mz-architecture-avatar{transition:none}}
.mz-architecture-node[data-arch-node=task]{font-weight:650}
.mz-architecture-node[data-arch-node=handoff]{color:var(--mz-muted)}
.mz-architecture-node[data-arch-node=result]{color:var(--mz-muted)}
.mz-architecture-node[data-arch-active]{color:var(--mz-blue);background:var(--mz-selected)}
.mz-architecture-node[data-arch-node=result][data-arch-active]{color:var(--mz-success);background:var(--mz-success-surface)}
.mz-architecture-node[data-arch-node=result]{gap:var(--zk-space-2)}
.mz-result-reel{--reel-step:24px;inline-size:var(--reel-step);transform-origin:right center}
.mz-architecture-node[data-arch-active] .mz-result-reel{transform:scale(var(--arch-active-scale))}
.mz-result-track>svg{display:block;inline-size:var(--reel-step);block-size:var(--reel-step)}
/* Spin through every format, ease into the chosen cell, then hold it. */
@keyframes mz-result-reel{
 from{transform:translateY(0)}
 to{transform:translateY(calc(-1 * var(--reel-step) * var(--reel-stop,4)))}
}
.mz-architecture-node[data-arch-active] .mz-result-track{
 transform:translateY(calc(-1 * var(--reel-step) * var(--reel-stop,4)))
}
@media(prefers-reduced-motion:no-preference){
 .mz-architecture-node[data-arch-active] .mz-result-track:not([data-reel-settled]){
  animation:mz-result-reel 820ms cubic-bezier(.45,.16,.26,1) 590ms 1 both paused
 }
 .mz-comparison[data-compare-playing] .mz-architecture-node[data-arch-active] .mz-result-track{animation-play-state:running}
}
@media(max-width:420px){.mz-result-reel{--reel-step:20px}}

.mz-architecture-token{
 inline-size:26px;block-size:26px;border-radius:7px;display:grid;place-items:center;
 background:var(--mz-bubble);border:1px solid var(--mz-accent);box-shadow:none
}
@media(max-width:420px){
 .mz-case .mz-comparison{gap:var(--zk-space-1);--arch-active-scale:2.4}
 .mz-architecture{block-size:12rem}
 .mz-architecture-node{font-size:11px;gap:3px;padding:2px 4px}
 .mz-architecture-node[data-arch-avatar]{gap:7px}
 .mz-architecture-node :is(img,.mz-architecture-avatar){inline-size:20px;block-size:20px}
}

.mz-case .mz-desktop-scene .mz-desktop-tabs::-webkit-scrollbar{display:none}
.mz-case .mz-desktop-scene .mz-desktop-tabs>button:focus-visible{outline-color:var(--mz-focus);outline-offset:-2px}

@media(max-width:420px){
 .mz-copy .mz-entry-options:has([data-model]){max-inline-size:100%;min-inline-size:0}
 .mz-copy .mz-entry-options button[data-model]{min-inline-size:0;white-space:normal}
}


dialog.mate-case-prototype{
 position:fixed;inset:0;margin:auto;padding:0;max-inline-size:none;max-block-size:none;
 width:min(calc(100% - 2rem),76rem);height:min(calc(100dvh - 2rem),58rem);
 border:1px solid var(--mz-line);border-radius:var(--zk-example-stage-radius);background:var(--mz-surface);
}
dialog.mate-case-prototype[open]{display:block}
dialog.mate-case-prototype::backdrop{background:#101014b8}
dialog.mate-case-prototype .zk-icon-dismiss{
 position:absolute;z-index:2;inset-block-start:max(var(--zk-space-3),env(safe-area-inset-top));
 inset-inline-end:max(var(--zk-space-3),env(safe-area-inset-right));
 background:var(--mz-control);border:1px solid var(--mz-line);box-shadow:var(--mz-shadow)
}
dialog.mate-case-prototype .zk-icon-dismiss:hover{background:color-mix(in srgb,var(--mz-control),var(--mz-ink) 10%)}
dialog.mate-case-prototype .zk-icon-dismiss:focus-visible{outline-offset:2px}
.mate-case-prototype [data-mate-frame]{block-size:100%;min-height:0}
dialog.mate-case-prototype iframe{inline-size:100%;block-size:100%}
@media(max-width:600px){
 dialog.mate-case-prototype{width:100%;height:100dvh;border:0;border-radius:0}
}


/* A chapter and its navigation fit the usable laptop viewport without scaling the product UI. */
.mz-case .mate-story-bar .clock-link{display:inline-flex;align-items:center;inline-size:44px;min-block-size:44px}
.mz-case .mate-story-bar .clock-link svg{inline-size:36px}
.mz-case .mz-case-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-1) var(--space-3);margin:0;color:var(--mate-story-muted);font-size:var(--type-ui)}
@media(min-width:850px) and (min-height:590px){
 .mz-case .mate-story-bar{padding-block:var(--space-1)}
 .mz-case .mate-story-hero{gap:var(--space-2);padding-block:var(--space-2) var(--space-4)}
 .mz-case .mate-story-hero h1{font-size:clamp(1.875rem,4.5svh,3.1rem);max-width:none;line-height:1.08}
 .mz-case main{padding-bottom:var(--space-3)}
 .mz-story{padding-top:var(--space-4)}
 .mz-case .mz-round{max-width:min(39rem,calc(100svh - 11.5rem))}
 .mz-case .mz-manual-draft{max-block-size:calc(100svh - 17.5rem)}
}

/* One larger demo stage for all chapters on wide, tall displays. */
@media(min-width:90rem) and (min-height:52rem){
 .mz-case :is(.mate-story-bar, main){
  width:min(100rem,calc(100% - 2 * var(--page-gutter)))
 }
 .mz-case .mz-round{
  max-width:min(50rem,76svh,calc(100svh - 11.5rem))
 }
 /* Only the transcript needs the extra internal sizing and crop. */
 .mz-case .mz-round:has(>.mz-manual-scene:not([hidden])){container-type:inline-size;overflow:clip}
 .mz-case .mz-manual-scene .mz-manual-draft{
  /* At the existing 79% chat width, 60% minus 20px leaves room for corner shadows. */
  block-size:min(clamp(23rem,58cqi,28.75rem),calc(60cqi - 20px))
 }
}

/* Match the narrow conversation viewport to the product frame. */
@media(max-width:700px){
 .mz-case .mz-round:has(>.mz-manual-scene:not([hidden])){
  aspect-ratio:auto;max-width:29rem;overflow:hidden
 }
 .mz-case .mz-manual-scene{width:100%;padding:var(--zk-space-2);gap:0}
 .mz-case .mz-manual-scene .mz-manual-draft{block-size:clamp(18rem,44svh,23rem)}
 .mz-case .mz-manual-scene .mz-manual-thread{overscroll-behavior-y:auto}
 .mz-case .mz-manual-scene .mz-manual-thread>*{flex-shrink:0}
}

/* Chapter 5: keep the same workspace controls when the desktop panel is too shallow. */
.mz-case .mz-mobile-review,.mz-copy .mz-mobile-kicker{display:none}
@media(max-width:1100px), (max-height:660px){
 .mz-story:has(.mz-desktop-scene:not([hidden])){grid-template-columns:minmax(0,1fr);gap:var(--space-5)}
 .mz-story:has(.mz-desktop-scene:not([hidden]))>.mz-copy{min-block-size:0}
 .mz-copy .mz-desktop-kicker{display:none}
 .mz-case .mz-round:has(>.mz-desktop-scene:not([hidden])){aspect-ratio:auto;max-width:29rem}
 .mz-case .mz-desktop-scene>.mz-workspace-body{width:min(100%,23rem);margin-inline:auto;block-size:auto}
 .mz-case .mz-desktop-scene :is(.mz-desktop-thread,.mz-desktop-input){display:none}
 .mz-case .mz-desktop-scene .mz-desktop-profile{
  position:relative;inset:auto;padding:var(--zk-space-3);gap:var(--zk-space-2);
  grid-template-rows:auto auto minmax(0,9rem);border:1px solid var(--mz-line);
  border-radius:var(--zk-space-4);box-shadow:none
 }
 .mz-case .mz-desktop-scene .mz-desktop-profile{--mz-profile-fade:var(--zk-space-3)}
 .mz-copy .mz-mobile-kicker{display:inline}
 .mz-case .mz-desktop-scene>.mz-mobile-review{
  display:grid;justify-self:center;width:min(84%,21rem);padding:var(--zk-space-3) 0;
  gap:var(--zk-space-3)
 }
 .mz-mobile-review-identity{display:flex;align-items:center;gap:var(--zk-space-2);font-size:var(--zk-type-meta)}
 .mz-mobile-review-file{
  display:flex;align-items:center;gap:var(--zk-space-2);width:100%;padding:var(--zk-space-2);
  border:1px solid var(--mz-line);border-radius:12px;background:var(--mz-surface)
 }
 .mz-mobile-review-file>span+span{display:grid;min-width:0;gap:2px}
 .mz-mobile-review-file :is(strong,small){font:inherit;line-height:1.3}
 .mz-mobile-review-file strong{font-weight:600}
 .mz-mobile-review-file small{font-size:var(--zk-type-meta);color:var(--mz-muted)}
 .mz-mobile-review-file .mz-context-icon{color:var(--mz-blue)}
 .mz-mobile-review [data-mate-review]{--zk-action-radius:32px}
}

/* Tablets and short desktop windows have room for four rows in the compact panel. */
@media(min-width:701px) and (max-width:1100px), (min-width:701px) and (max-height:660px){
 .mz-case .mz-desktop-scene .mz-desktop-profile{grid-template-rows:auto auto minmax(0,14rem)}
}
/* The Agent Market already has a panel. On phones it needs no circle behind it. */
@media(max-width:700px){
 .mz-case .mz-round:has(>.mz-early-scene:not([hidden]) .mz-market:not([hidden])){
  background:transparent;border-color:transparent
 }
}


/* Six demos sit directly on the editorial background. Only workspace
   surfaces carry a fill; the stage itself is transparent. */
.mz-case .mz-early h3,.mz-case .mz-finale-title{color:var(--mz-ink)}
.mz-case .mz-compose-entry .mz-suggestions button{color:var(--mz-ink)}
.mz-case .mz-compose-entry .mz-suggestions button span{color:var(--mz-blue)}
.mz-case .mz-workspace-body,.mz-case .mz-mobile-review{
 background:transparent;border-radius:var(--zk-space-4);overflow:hidden
}
@media(max-width:700px){
 .mz-case .mz-desktop-scene>.mz-mobile-review{padding-inline:var(--zk-space-3)}
}


/* Chapter 3 retains the open transcript; no backing card is added. */
.mz-case .mz-manual-scene .mz-manual-draft{background:none;border:0;border-radius:0;box-shadow:none}
.mz-case .mz-round :is(.mz-mic,.mz-plus>img,.mz-picker-search>img,.mz-picker-group-title>img,
 .mz-available-agent>img:not(.zk-product-avatar),.mz-ai-activity img,.mz-desk-content summary>img){
 filter:brightness(0) invert(.73)
}
.mz-case .mz-round .zk-compose-core .zk-c-send-round:focus-visible{outline-color:var(--mz-focus)}
.mz-case :is(.mz-manual-scene,.mz-early-scene) .zk-thinking-orb{color:var(--mz-ink)}
.mz-case :is(.mz-manual-scene,.mz-early-scene) .zk-thinking-label{
 /* Dark neutral strong is #c2c2c2 in both the report and this scene. */
 --task-ink:var(--mz-muted);--zk-task-sweep-dark-sheen:#fafafa
}
.mz-round .mz-desktop-composer .zk-c-send-round:disabled>img{filter:brightness(0) invert(.53)}

/* ZoomKit's neutral primary in Dark Mode; muted secondary/disabled stay distinct. */
.mz-case .mz-round .zk-neutral-action{
 background:var(--zk-accent-strong,var(--mz-ink));color:var(--zk-on-accent-strong,var(--mz-on-strong))
}
.mz-case .mz-round .zk-neutral-action:hover{
 background:color-mix(in srgb,var(--mz-ink) 85%,var(--mz-chrome))
}
.mz-case .mz-round .zk-neutral-action:active{
 background:color-mix(in srgb,var(--mz-ink) 92%,var(--mz-chrome))
}
.mz-case .mz-desktop-scene .mz-desk-content::-webkit-scrollbar{display:none}
.mz-case .mz-desktop-scene .mz-desk-content:focus-visible{outline:2px solid var(--mz-focus);outline-offset:-2px}

/* Keep the opening Figma spacing until the first message is sent. */
.mz-compose-entry .mz-compose-lead:has(.mz-early-sent:not([hidden])){row-gap:var(--zk-space-3)}
.mz-early-response{justify-self:start;max-inline-size:85%;color:var(--mz-ink);font:400 var(--zk-type-ui)/var(--zk-leading-ui) var(--zk-font);overflow-wrap:anywhere}

/* Temporary, transparent drawing plane above the real Chapter 5 workspace. */
.mz-case .mz-round{position:relative}
.mz-build-cursors{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
.mz-build-track{--mz-pencil:var(--mz-blue);--mz-pen-bg:var(--mz-bubble)}
.mz-build-track--compose{--mz-pencil:var(--mz-success);--mz-pen-bg:var(--mz-success-surface)}
.mz-build-track--panel{--mz-pencil:var(--mz-ink);--mz-pen-bg:var(--mz-control)}
.mz-build-track--tasks{--mz-pencil:var(--mz-blue);--mz-pen-bg:var(--mz-selected)}
.mz-build-ink{stroke:var(--mz-pencil);stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.6}
.mz-build-tip{fill:var(--mz-pencil);stroke:var(--mz-chrome);stroke-width:1.3}
.mz-build-nameplate{fill:var(--mz-pen-bg);stroke:var(--mz-pencil);stroke-width:.65}
.mz-build-tag{fill:var(--mz-pencil);font:600 10px var(--zk-font);dominant-baseline:middle}

/* Local ZoomKit avatar playground. Only the selected
   avatar uses the existing renderer, with no work when the chapter is hidden. */
.mz-case .mz-avatar-showcase{--zk-panel:var(--mz-surface);width:min(100%,25rem);padding-inline:var(--zk-space-2)}
.mz-avatar-stage{
 display:grid;grid-template-rows:10.75rem;justify-items:center;align-items:center;
 width:100%;color:var(--mz-ink);gap:var(--zk-space-1)
}
.mz-avatar-showcase .mz-finale-avatar{
 inline-size:var(--mz-avatar-size,128px);block-size:var(--mz-avatar-size,128px)
}
.mz-avatar-showcase .mz-finale-avatar:focus-visible{outline:2px solid var(--mz-focus);outline-offset:2px}
.mz-avatar-swatches button{
 display:grid;place-items:center;min-inline-size:0;padding:var(--zk-space-1);
 border:1px solid transparent;background:transparent;color:inherit;border-radius:var(--zk-space-2);cursor:pointer
}
.mz-avatar-swatches button:hover{background:var(--zk-panel)}
.mz-avatar-swatches button[aria-pressed=true]{
 border-color:var(--zk-focus);background:var(--zk-panel)
}
.mz-case .mz-avatar-lab{
 --zk-panel:var(--mz-surface);--zk-text:var(--mz-muted);
 color:var(--zk-fg);font:400 var(--zk-type-ui)/var(--zk-leading-meta) var(--zk-font);
 color-scheme:dark;width:min(100%,26rem);display:grid;gap:var(--zk-space-4);
 background:var(--zk-panel);border:1px solid var(--zk-line);border-radius:var(--zk-space-4);
 padding:var(--zk-space-4)
}
.mz-lab-top,.mz-lab-footer{
 display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--zk-space-2)
}
.mz-lab-top h3{margin:0;font:650 var(--zk-type-body)/var(--zk-leading-meta) var(--zk-font)}
.mz-lab-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--zk-space-3)}
.mz-lab-text{font:inherit;color:var(--zk-fg);background:transparent;border:0;min-block-size:2rem;padding:0;cursor:pointer}
.mz-lab-text:hover,.mz-lab-footer a:hover{text-decoration:underline;text-underline-offset:3px}
.mz-lab-text:disabled{opacity:.55;cursor:default}
.mz-lab-footer{border-top:1px solid var(--zk-line);padding-top:var(--zk-space-2);font-size:var(--zk-type-meta)}
.mz-lab-footer a{color:var(--zk-fg);text-decoration:none}
.mz-avatar-swatches{display:flex;gap:var(--zk-space-1);flex-wrap:wrap}
.mz-avatar-swatches button{width:2rem;height:2rem}
.mz-avatar-swatches button::before{
 content:"";display:block;width:1.1rem;height:1.1rem;border-radius:50%;
 background:var(--avatar-swatch,var(--zk-bg))
}
.mz-avatar-swatches button[data-avatar-color=""]::before{
 background:conic-gradient(#FFCD00,#FF83B2,#AA8CC6,#8CC6B3,#648BD8,#FFCD00)
}
.mz-case .mz-avatar-lab :is(button,a):focus-visible{
 outline:2px solid var(--zk-focus);outline-offset:2px
}
@media(max-width:700px){
 .mz-case .mz-round:has(>.mz-last:not([hidden])){aspect-ratio:auto}
 .mz-avatar-stage{grid-template-rows:10rem}
}
