/* FRANK voice workspace: a single live task, with quiet controls and progressive fields. */
.agent-screen[hidden],.agent-screen [hidden]{display:none!important}
.agent-screen{isolation:isolate;background:#010611;color:#f2f1ed;font-family:Inter,"Helvetica Neue",Arial,sans-serif}
.agent-screen::before{content:"";position:fixed;z-index:-2;inset:0;pointer-events:none;background:radial-gradient(ellipse 48% 43% at 52% 19%,#0b2140 0%,#041125 44%,transparent 100%),linear-gradient(180deg,#020915,#010611 70%)}
.agent-screen::after{content:"";position:fixed;z-index:-1;inset:0;pointer-events:none;opacity:.12;background:url('/assets/frank-midnight-v2.png') right center/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent 15%,#000 100%)}
.agent-shell{max-width:none;min-height:100dvh;padding:0 clamp(20px,4.8vw,82px);display:flex;flex-direction:column}
.agent-top{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:74px;padding:9px 0;background:#010611ed;backdrop-filter:blur(18px);border:0}
.agent-top img{width:126px;height:auto;max-height:43px;object-fit:contain;object-position:left}
.agent-top-label{font-size:.57rem;letter-spacing:.27em;color:#6f839e;font-weight:600}
.agent-top button{justify-self:end;padding:9px 0;border:0;background:none;color:#9db0ca;font-size:.72rem;font-weight:500;text-decoration:none;letter-spacing:.02em}
.agent-top button:hover{color:#fff}
.agent-main{width:min(100%,740px);flex:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;margin:0 auto;padding:34px 0 42px}
.agent-orb{width:116px;height:116px;margin:0 auto 20px;display:grid;place-items:center;position:relative;border:1px solid #688eb350;border-radius:50%;background:radial-gradient(circle at 50% 45%,#13385c 0%,#071b35 41%,#020b19 73%);box-shadow:0 0 0 13px #789fc008,0 0 0 28px #809fc006,0 0 72px #24517b30,inset 0 0 28px #06101e}
.agent-orb::before{content:"";position:absolute;inset:15px;border:1px solid #95b1ca31;border-radius:50%}
.agent-orb::after{content:"";position:absolute;inset:-3px;border-top:1px solid #fb6930;border-right:1px solid transparent;border-bottom:1px solid transparent;border-left:1px solid transparent;border-radius:50%;transform:rotate(-34deg)}
.agent-orb i{display:none}
.agent-orb span{display:block;width:11px;height:11px;overflow:hidden;text-indent:-999px;border-radius:50%;background:#fa632c;box-shadow:0 0 16px #f76b38,0 0 36px #f76b3866}
.agent-screen:has(#agent-live[aria-pressed="true"]) .agent-orb::after{animation:agentOrbit 4s linear infinite}
.agent-screen:has(#agent-live[aria-pressed="true"]) .agent-orb span{animation:frankPulse 1.1s ease-in-out infinite alternate}
.agent-overline{text-align:center;color:#e26b3e;font-size:.57rem;letter-spacing:.27em;font-weight:700}
.agent-overline span{font-size:.4rem;vertical-align:middle;margin:0 .5em}
.agent-main h1{max-width:710px;margin:13px auto 8px;text-align:center;font-size:clamp(1.95rem,3.5vw,3.15rem);font-weight:400;letter-spacing:-.052em;line-height:1.14;text-wrap:balance}
.agent-subline{max-width:500px;margin:0 auto 19px;color:#8ea1b9;font-size:.9rem;line-height:1.5;text-align:center}
.agent-main>.agent-voice{width:min(100%,580px);max-width:none;margin:0 auto 17px;padding:5px;display:grid;grid-template-columns:auto 1fr;gap:6px;align-items:center;border:1px solid #35516d82;border-radius:18px;background:#071529b8;box-shadow:0 18px 50px #0004;position:relative;top:auto}
.agent-voice #agent-live,.agent-main>.agent-voice #agent-live{width:auto;height:48px;padding:0 17px;border:1px solid #556c84a1;border-radius:13px;background:#10253d;color:#f2f1ed;box-shadow:none;font-size:.74rem;font-weight:600;letter-spacing:.01em;text-transform:none;white-space:nowrap;transition:background .2s,border-color .2s}
.agent-voice #agent-live:hover{background:#19334f;border-color:#f36b39;box-shadow:none;transform:none}
.agent-voice #agent-live[aria-pressed="true"]{background:#162d48;color:#fff;border-color:#f36b39;box-shadow:0 0 0 1px #f36b3950}
.agent-voice #agent-live svg{width:17px;height:17px;flex:none;color:#f47745}
.agent-voice #agent-live[aria-pressed="true"] svg{color:#ff9b70}
.agent-pulse{width:7px;height:7px;background:#fa6933;box-shadow:0 0 10px #fa693399;flex:none}
.agent-voice #agent-live[aria-pressed="true"] .agent-pulse{background:#fa6933;box-shadow:0 0 12px #fa6933}
.agent-voice form{min-width:0;min-height:48px;display:flex;gap:0;border:0}
.agent-voice form input{min-width:0;width:100%;background:transparent!important;border:0!important;border-radius:0!important;color:#f0f2f4;font-size:.84rem;padding:10px 9px;box-shadow:none!important}
.agent-voice form input::placeholder{color:#7589a3}
.agent-voice form button{width:38px;flex:0 0 38px;border:0;border-radius:10px;background:transparent;color:#f16b3a;font-size:1.25rem}
.agent-main>.agent-choices{width:min(100%,580px);max-width:none;margin:2px auto 0;display:flex;justify-content:center;gap:10px}
.agent-main>.agent-choices button{flex:1;min-height:45px;padding:10px 15px;border:1px solid #3b536e94;border-radius:999px;background:#0716299c;box-shadow:none;color:#cbd6e3;font-size:.79rem;font-weight:500;text-align:center;letter-spacing:0}
.agent-main>.agent-choices button:hover{background:#112842;border-color:#f36b39;color:#fff}
.agent-main>.agent-choices button strong{font-weight:500}
.agent-main>.agent-choices button span{display:none}
.agent-step{width:100%;margin:3px auto 0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.agent-progress{display:flex;justify-content:space-between;align-items:center;padding:0 0 9px;border:0;color:#e87547;font-size:.61rem;font-weight:700;letter-spacing:.19em}
.agent-progress button{border:0;background:none;color:#93a6bf;text-decoration:none;font-size:.74rem}
.agent-stage{scroll-margin-top:98px;padding:23px clamp(20px,3vw,32px) 24px;border:1px solid #29415c9c;border-radius:21px;background:linear-gradient(145deg,#091a30e8,#061326ec);box-shadow:0 20px 60px #0004;animation:agentReveal .28s ease-out}
.agent-stage h2{font-size:clamp(1.45rem,2.7vw,2.15rem);font-weight:400;line-height:1.14;letter-spacing:-.035em;margin:0 0 7px}
.agent-stage>p{color:#94a9c1;font-size:.84rem;line-height:1.5;margin:0 0 17px}
.agent-stage label{margin:13px 0;color:#bacadd;font-size:.74rem;font-weight:500;letter-spacing:.01em}
.agent-stage label span{color:#8298b1}
.agent-stage input,.agent-stage select,.agent-stage textarea{background:#031024c9;border:1px solid #36516f;border-radius:10px;color:#f2f1ed;min-height:48px;padding:12px 13px;font-size:.91rem}
.agent-stage input:focus,.agent-stage select:focus,.agent-stage textarea:focus{border-color:#f17342;outline:2px solid #f1734230}
.agent-stage textarea{min-height:92px}
.agent-stage input[type=file]{font-size:.75rem}
.agent-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.agent-amenities{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 19px}
.agent-amenities label{width:auto;margin:0;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #35506c;border-radius:999px;background:#0a1b30;color:#acbed2;font-size:.71rem;letter-spacing:0;cursor:pointer}
.agent-amenities label:has(input:checked){border-color:#f17342;background:#342235;color:#fff}
.agent-amenities input{width:14px;height:14px;min-height:0;margin:0;padding:0;accent-color:#f17342;flex:none}
.agent-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}
.agent-categories button{min-height:48px;padding:12px 14px;border:1px solid #38526e;border-radius:10px;background:#0b1f36;color:#d5e0eb;text-align:left;font-size:.82rem}
.agent-categories button:hover,.agent-categories button.selected{border-color:#f17342;background:#192a43;color:#fff}
.agent-missing{border-top:1px solid #2a4059;padding-top:12px;margin-top:17px;color:#9fb3cc}
.agent-missing>button,.agent-missing div button,.agent-missing a{display:inline-block;border:0;background:none;color:#ec8e66;text-decoration:underline;margin-right:14px;padding:7px 0;font-size:.76rem;font-weight:600}
.agent-fields{display:grid;gap:4px}
.agent-hint{font-size:.73rem;color:#879bb4}
.agent-similar{color:#efab8b;font-size:.78rem;line-height:1.5}
.agent-similar button{border:0;background:none;color:#ff9d6e;text-decoration:underline;cursor:pointer;padding:0}
.agent-step #agent-status{color:#f5a67d;min-height:0;font-size:.78rem;margin:10px 2px}
.agent-step #agent-status:empty{display:none}
.agent-step-actions{display:flex;gap:10px;margin-top:11px;justify-content:flex-end}
.agent-step-actions button{flex:0 1 auto;min-width:150px;min-height:45px;padding:11px 18px;border:1px solid #f16b3a;border-radius:10px;background:#f16b3a;color:#061222;font-size:.8rem;font-weight:700}
.agent-step-actions button:hover{background:#ff895d}
#agent-review-summary{line-height:1.6}
#agent-review-summary div{padding:8px 0;border-bottom:1px solid #263f5b;color:#d6e3f2;font-size:.81rem}
#agent-review-summary strong{display:block;color:#8fa7c5;font-size:.63rem;text-transform:uppercase;letter-spacing:.12em}
#agent-global-status{min-height:0;margin:6px auto;color:#f4a26f;text-align:center;font-size:.77rem}
#agent-global-status:empty{display:none}
.agent-caption{width:min(100%,620px);margin:13px auto 0;padding:0 3px;color:#aebed0;font-size:.78rem;line-height:1.55;text-align:center;max-height:3.2em;overflow:hidden}
.agent-caption:empty{display:none}
.agent-transcript{width:min(100%,620px);margin:10px auto 0;color:#778da9;text-align:center}
.agent-transcript summary{cursor:pointer;font-size:.68rem;letter-spacing:.04em;list-style:none}
.agent-transcript summary::-webkit-details-marker{display:none}
.agent-transcript summary::after{content:'  ⌄';color:#dc764c}
.agent-transcript[open] summary::after{content:'  ⌃'}
.agent-conversation{width:100%;max-height:24vh;overflow:auto;display:grid;gap:7px;margin:13px auto 0;padding:2px;text-align:left;scrollbar-width:thin;scrollbar-color:#49617c transparent}
.agent-line{margin:0;padding:10px 13px;border-radius:10px;background:#0b1f36;color:#d9e3ef;font-size:.78rem;line-height:1.45;white-space:pre-wrap}
.agent-line.person{justify-self:end;background:#172c45}
.agent-line.agent{justify-self:start}
.agent-main #agent-change{margin:14px auto 0;border:0;background:none;color:#869db7;font-size:.72rem;text-decoration:none}
.agent-bottom{border:0;color:#647b99;padding:12px 0 20px;text-align:center;font-size:.53rem;letter-spacing:.2em}
.agent-screen:has(#agent-step:not([hidden])) .agent-main{justify-content:flex-start;padding-top:12px}
.agent-screen:has(#agent-step:not([hidden])) .agent-orb{width:56px;height:56px;margin-bottom:10px;box-shadow:0 0 0 7px #a1bed608,0 0 22px #315d8733}
.agent-screen:has(#agent-step:not([hidden])) .agent-orb::before{inset:8px}
.agent-screen:has(#agent-step:not([hidden])) .agent-orb span{width:7px;height:7px}
.agent-screen:has(#agent-step:not([hidden])) .agent-main h1{font-size:clamp(1.35rem,2.4vw,1.75rem);margin:7px auto 3px}
.agent-screen:has(#agent-step:not([hidden])) .agent-subline{font-size:.76rem;margin-bottom:12px}
.agent-screen:has(#agent-step:not([hidden])) .agent-main>.agent-voice{margin:0 auto 15px}
@keyframes agentOrbit{to{transform:rotate(326deg)}}
@keyframes agentReveal{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){
 .agent-screen::after{opacity:.06;background-position:center right}
 .agent-shell{padding:0 16px;min-height:100dvh}
 .agent-top{grid-template-columns:1fr auto;min-height:65px}
 .agent-top img{width:108px;max-height:34px}
 .agent-top-label{display:none}
 .agent-top button{font-size:.63rem}
 .agent-main{padding:23px 0 27px}
 .agent-orb{width:90px;height:90px;margin-bottom:17px}
 .agent-main h1{font-size:clamp(1.75rem,7vw,2.2rem)}
 .agent-subline{font-size:.81rem;margin-bottom:17px}
 .agent-main>.agent-voice{grid-template-columns:auto 1fr;gap:2px;margin:0 auto 13px;padding:4px;border-radius:15px}
 .agent-voice #agent-live,.agent-main>.agent-voice #agent-live{width:48px;height:45px;padding:0;justify-content:center;border-radius:11px}
 .agent-live-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .agent-pulse{width:10px;height:10px}
 .agent-voice form{min-height:45px}
 .agent-voice form input{font-size:.79rem;padding:9px 4px}
 .agent-main>.agent-choices{gap:8px}
 .agent-main>.agent-choices button{min-height:42px;padding:9px 12px;font-size:.72rem}
 .agent-step{margin-top:2px}
 .agent-stage{scroll-margin-top:75px;padding:20px 16px;border-radius:17px}
 .agent-stage h2{font-size:1.55rem}
 .agent-stage>p{font-size:.78rem}
 .agent-grid,.agent-categories{grid-template-columns:1fr}
 .agent-amenities{gap:6px}
 .agent-amenities label{padding:7px 10px;font-size:.68rem}
 .agent-step-actions button{min-width:132px}
 .agent-caption{font-size:.73rem}
 .agent-bottom{font-size:.45rem}
 .agent-screen:has(#agent-step:not([hidden])) .agent-main{padding-top:4px}
 .agent-screen:has(#agent-step:not([hidden])) .agent-orb{width:48px;height:48px;margin-bottom:8px}
 .agent-screen:has(#agent-step:not([hidden])) .agent-main h1{font-size:1.38rem}
 .agent-screen:has(#agent-step:not([hidden])) .agent-subline{margin-bottom:10px}
}
@media(prefers-reduced-motion:reduce){.agent-orb::after,.agent-orb span,.agent-stage{animation:none!important;transition:none!important}}
/* The FRANK face is the sole visual anchor. Keep the entire voice desk on one midnight surface. */
.agent-screen,.agent-screen::before,.agent-top{background:#010611!important}
.agent-screen::after{display:none!important}
.agent-top{backdrop-filter:none!important}
.agent-main{width:min(100%,700px)}
.agent-portrait{width:116px;height:116px;margin:0 auto 22px;display:grid;place-items:center;position:relative}
.agent-portrait img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 13px 24px rgba(0,0,0,.32))}
.agent-screen:has(#agent-live[aria-pressed="true"]) .agent-portrait img{filter:drop-shadow(0 0 18px rgba(249,100,45,.3))}
.agent-main h1{max-width:670px;font-size:clamp(2rem,3.3vw,3rem)}
.agent-main>.agent-voice{width:min(100%,580px);display:flex;gap:0;padding:0 0 3px;border:0;border-bottom:1px solid #496079;border-radius:0;background:transparent;box-shadow:none}
.agent-voice #agent-live,.agent-main>.agent-voice #agent-live{height:48px;padding:0 14px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.agent-voice #agent-live:hover,.agent-voice #agent-live[aria-pressed="true"]{border:0;background:transparent;box-shadow:none;color:#fff}
.agent-voice #agent-live svg{width:20px;height:20px}
.agent-voice form{flex:1;border-left:1px solid #263a54;padding-left:13px}
.agent-voice form button{border-radius:0}
.agent-main>.agent-choices{gap:30px;justify-content:flex-start;margin:16px auto 0}
.agent-main>.agent-choices button{min-height:40px;flex:none;padding:5px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#aebfd1;text-align:left;font-size:.82rem}
.agent-main>.agent-choices button:hover{border:0;background:transparent;color:#fff}
.agent-main>.agent-choices button::after{content:none}
.agent-stage{padding:20px 0 24px;border:0;border-radius:0;background:transparent;box-shadow:none}
.agent-stage input,.agent-stage select,.agent-stage textarea{background:transparent;border:0;border-bottom:1px solid #344b66;border-radius:0;padding:13px 3px}
.agent-stage input:focus,.agent-stage select:focus,.agent-stage textarea:focus{outline:0;border-color:#f17342}
.agent-amenities label,.agent-categories button{background:transparent;border:0;border-bottom:1px solid #29425b;border-radius:0}
.agent-amenities label:has(input:checked),.agent-categories button:hover,.agent-categories button.selected{background:transparent;border:0;border-bottom:1px solid #f17342}
.agent-line{border-radius:0;background:transparent;border-left:1px solid #f17342}
.agent-line.person{background:transparent;border-left-color:#496079}
.agent-screen:has(#agent-step:not([hidden])) .agent-portrait{width:54px;height:54px;margin-bottom:12px}
@media(max-width:650px){.agent-portrait{width:92px;height:92px;margin-bottom:16px}.agent-main>.agent-voice{gap:0;padding:0 0 4px}.agent-voice #agent-live,.agent-main>.agent-voice #agent-live{width:48px;padding:0 10px 0 0}.agent-stage{padding:16px 0}.agent-screen:has(#agent-step:not([hidden])) .agent-portrait{width:50px;height:50px;margin-bottom:8px}}
.agent-portrait img{transform:scale(1.9)}
.agent-step-actions button,.agent-step-actions button:hover{min-width:0;min-height:36px;padding:7px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#f58050;font-size:.82rem}
.agent-step-actions button:hover{color:#ffab82}
.agent-text-action{border:0;border-bottom:1px solid #f17342;border-radius:0;padding:7px 0;background:transparent;color:#f59a71;font-size:.78rem;cursor:pointer}
.agent-missing{border:0}
