/* Reference-fidelity layer for the rebuilt semantic Shalev UI. */
.shalev-shell{background:#031a2e;color:#f5fbff}
.shalev-topbar{height:78px;background:rgba(3,26,46,.93);border-bottom:1px solid rgba(90,202,231,.09);backdrop-filter:blur(18px)}
.shalev-header-inner{max-width:1080px;padding:0 28px}
.shalev-header-logo{width:48px;height:48px}
.shalev-brand-name{font-size:29px;letter-spacing:-.02em}
.shalev-brand-sub{font-size:10px;line-height:1.08;color:rgba(191,229,239,.58)}
.shalev-menu-button{width:39px;height:39px;border:1px solid transparent;border-radius:50%;color:#bcebf3}
.shalev-menu-button:hover{border-color:rgba(89,203,230,.15);background:rgba(255,255,255,.035)}
.shalev-menu-panel{top:61px;right:28px;background:rgba(4,31,52,.985);border-color:rgba(96,210,234,.16)}

.shalev-experience{min-height:calc(100dvh - 78px);background:radial-gradient(circle at 50% 22%,rgba(11,111,169,.13),transparent 31%),linear-gradient(146deg,#031a2e 0%,#05243d 56%,#031827 100%)}
.shalev-stage{width:min(1030px,100%);height:calc(100dvh - 78px);min-height:610px;padding:14px 28px 22px}
.shalev-content-scroll{padding:0 2px}
.shalev-wave-background svg{min-height:100%;opacity:.95}

.shalev-home{min-height:0;height:100%;justify-content:center;padding:10px 0 12px}
.shalev-home-mark{width:184px;height:184px;margin:0 auto 0;filter:drop-shadow(0 17px 38px rgba(38,183,222,.23))}
.shalev-home h1{margin:0 0 24px;font-size:25px;font-weight:400;letter-spacing:-.025em;color:#f6fbfd}
.shalev-intent-grid{width:min(760px,100%);gap:13px}
.shalev-intent-card{min-height:106px;padding:15px 12px 14px;border-radius:14px;border-color:rgba(37,153,199,.48);background:linear-gradient(180deg,rgba(5,42,67,.64),rgba(3,29,49,.76));box-shadow:inset 0 1px 0 rgba(255,255,255,.015)}
.shalev-intent-card:hover,.shalev-intent-card.is-selected{transform:translateY(-2px);border-color:rgba(74,210,237,.76);background:linear-gradient(180deg,rgba(7,53,82,.83),rgba(3,37,60,.9));box-shadow:0 10px 28px rgba(0,0,0,.12),0 0 0 1px rgba(59,203,234,.035) inset}
.shalev-intent-icon{width:36px;height:32px;margin-bottom:7px;color:#9ae8f2}
.shalev-intent-icon svg{width:28px;height:28px;stroke-width:1.55}
.shalev-intent-copy strong{font-size:14px;font-weight:650;letter-spacing:-.01em}
.shalev-intent-copy small{margin-top:3px;font-size:10.5px;color:#829eae}
.shalev-values{margin-top:10px;color:#527889;font-size:9.5px;letter-spacing:.05em}

.shalev-composer-zone{padding-top:5px;padding-bottom:1px}
.shalev-composer{width:min(670px,100%);min-height:52px;padding:3px 5px 3px 8px;border-color:rgba(29,157,211,.88);background:rgba(2,19,34,.76);box-shadow:0 0 24px rgba(15,134,190,.075),inset 0 0 0 1px rgba(255,255,255,.012)}
.shalev-composer textarea{padding:12px 7px;font-size:13.5px;line-height:20px}
.shalev-composer-icon{width:36px;height:36px;color:#78adbd}
.shalev-composer-icon svg{width:18px;height:18px;stroke-width:1.65}
.shalev-voice-launch{color:#8de3ee}
.shalev-send{width:42px;height:42px;border-color:rgba(155,232,247,.42);background:linear-gradient(180deg,#2bb1f2,#188fda);box-shadow:0 0 21px rgba(24,159,226,.24)}
.shalev-send svg{width:18px;height:18px}
.shalev-selected-intent{margin-bottom:7px;background:rgba(5,43,68,.78);border-color:rgba(69,193,222,.18);color:#aae5ed}

.shalev-conversation{width:min(760px,100%);padding:24px 8px 20px}
.shalev-turn{margin-bottom:17px}
.shalev-turn-body{max-width:min(660px,87%);font-size:14.5px;line-height:1.58}
.shalev-turn-user .shalev-turn-body{padding:10px 14px;border-color:rgba(71,184,219,.22);background:linear-gradient(135deg,rgba(14,99,145,.92),rgba(6,71,109,.94));box-shadow:0 8px 22px rgba(0,0,0,.11)}
.shalev-turn-assistant .shalev-turn-body{padding:3px 0;color:#e9f6f8}
.shalev-turn-meta{margin-top:5px;color:#4f7284;font-size:9px}
.shalev-turn-user .shalev-turn-meta{color:#8cb6c5}
.shalev-thinking{padding-left:0}

/* Voice surface */
.shalev-voice-screen{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 50% 43%,rgba(0,126,191,.18),transparent 24%),linear-gradient(155deg,#031a2e,#041f35 60%,#031827);color:#fff}
.shalev-voice-screen .shalev-wave-background{z-index:0;opacity:.68}
.shalev-voice-header{position:relative;z-index:2;width:min(1060px,100%);height:82px;margin:0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between}
.shalev-voice-brand{display:flex;align-items:center;gap:11px}
.shalev-voice-brand img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 7px 18px rgba(31,181,221,.2))}
.shalev-voice-brand .shalev-brand-name{font-size:28px}
.shalev-voice-brand span{display:block;margin-top:4px;font-size:9.5px;line-height:1.05;color:rgba(194,231,240,.5)}
.shalev-voice-close{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(96,210,234,.12);border-radius:50%;background:rgba(255,255,255,.03);color:#9fc6d4}
.shalev-voice-close:hover{background:rgba(255,255,255,.055);color:#fff}
.shalev-voice-close svg{width:19px;height:19px}
.shalev-voice-main{position:relative;z-index:2;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 20px 120px}
.shalev-voice-emblem-wrap{width:278px;height:278px}
.shalev-voice-emblem{width:184px;height:184px}
.shalev-voice-orbit.orbit-one{width:218px;height:218px;border-color:rgba(34,181,226,.34)}
.shalev-voice-orbit.orbit-two{width:252px;height:252px;border-color:rgba(34,181,226,.23)}
.shalev-voice-orbit.orbit-three{position:absolute;width:278px;height:278px;border:1px solid rgba(34,181,226,.12);border-radius:50%;animation:shalevBreathe 2.5s ease-in-out .8s infinite}
.shalev-voice-emblem-wrap.is-listening .orbit-one,.shalev-voice-emblem-wrap.is-speaking .orbit-one{animation-duration:1.8s}
.shalev-voice-emblem-wrap.is-speaking .orbit-two,.shalev-voice-emblem-wrap.is-speaking .orbit-three{animation-duration:1.65s}
.shalev-live-wave{height:76px;width:min(325px,82vw);gap:3px;margin-top:-3px}
.shalev-live-wave span{width:3px;border-radius:999px;background:linear-gradient(180deg,#72e9ff,#17a0f0 58%,#49dbff);box-shadow:0 0 7px rgba(37,189,255,.48)}
.shalev-voice-status{margin-top:2px;font-size:16px;font-weight:500;letter-spacing:-.01em;color:rgba(244,251,255,.88)}
.shalev-voice-controls{position:absolute;z-index:3;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:flex-end;justify-content:center;gap:34px}
.shalev-voice-control-item{display:flex;flex-direction:column;align-items:center;gap:7px;color:#728f9f;font-size:10px}
.shalev-voice-control-item>button{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(75,194,225,.24);border-radius:50%;background:rgba(5,42,68,.88);color:#bcecf5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.01)}
.shalev-voice-control-item>button:hover{background:rgba(8,54,83,.96);color:#fff}
.shalev-voice-control-item>button svg{width:21px;height:21px;stroke-width:1.7}
.shalev-voice-control-item>button[data-muted='true']{border-color:rgba(248,113,113,.5);background:rgba(127,29,29,.28);color:#fecaca}
.shalev-end-control>button{width:66px;height:66px;border:2px solid rgba(178,236,248,.52);background:linear-gradient(180deg,#2aaef0,#158edb);color:#fff;box-shadow:0 0 28px rgba(27,163,229,.3)}
.shalev-end-control>button:hover{background:linear-gradient(180deg,#35b8f4,#1997e4)}
.shalev-end-control>button svg{width:27px;height:27px}
.shalev-end-control span{color:#91acba}
.shalev-voice-error{width:min(430px,100%);padding:26px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:rgba(255,255,255,.055);text-align:center}
.shalev-voice-error>svg{width:38px;height:38px;margin-bottom:12px;color:#fca5a5}
.shalev-voice-error h2{margin:0 0 7px;font-size:18px}
.shalev-voice-error p{margin:0 0 15px;color:#9bb4c0;font-size:13px}
.shalev-voice-error button{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:0;border-radius:999px;background:#168fdb;color:#fff}
.shalev-transcript-backdrop{position:absolute;z-index:10;inset:0;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,8,16,.52);backdrop-filter:blur(4px)}
.shalev-transcript-sheet{width:min(680px,100%);max-height:78vh;display:flex;flex-direction:column;border:1px solid rgba(91,202,228,.14);border-radius:24px 24px 0 0;background:#061e32;box-shadow:0 -18px 60px rgba(0,0,0,.32);overflow:hidden}
.shalev-transcript-sheet>header{height:62px;padding:0 18px;display:flex;align-items:center;border-bottom:1px solid rgba(91,202,228,.1)}
.shalev-transcript-sheet>header>div{flex:1}
.shalev-transcript-sheet h3{margin:0;font-size:15px}
.shalev-transcript-sheet header p{margin:2px 0 0;font-size:9.5px;color:#5f8190}
.shalev-transcript-sheet header button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.035);color:#88a9b6}
.shalev-transcript-sheet header svg{width:16px;height:16px}
.shalev-transcript-list{overflow-y:auto;padding:18px 20px 28px}
.shalev-transcript-turn{margin-bottom:16px}
.shalev-transcript-turn small{display:block;margin-bottom:4px;color:#5d7e8d;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.shalev-transcript-turn p{display:inline-block;max-width:88%;margin:0;color:#dceef2;font-size:13px;line-height:1.5}
.shalev-transcript-turn.is-user{text-align:right}
.shalev-transcript-turn.is-user p{padding:8px 11px;border-radius:14px 14px 4px 14px;background:rgba(19,101,147,.65)}
.shalev-transcript-empty{padding:28px 0;text-align:center;color:#567786;font-size:12px}

@media (max-width:900px){
  .shalev-stage{padding:10px 22px 20px}
  .shalev-home{justify-content:flex-start;padding-top:20px}
  .shalev-home-mark{width:148px;height:148px}
  .shalev-home h1{font-size:23px;margin-bottom:16px}
  .shalev-intent-grid{width:min(480px,100%);grid-template-columns:1fr;gap:8px}
  .shalev-intent-card{min-height:68px;display:grid;grid-template-columns:48px 1fr 22px;grid-template-rows:auto auto;align-items:center;padding:9px 12px;text-align:left}
  .shalev-intent-icon{grid-column:1;grid-row:1/3;width:38px;height:38px;margin:0}
  .shalev-intent-copy{grid-column:2;grid-row:1/3;align-items:flex-start}
  .shalev-intent-arrow{display:block;grid-column:3;grid-row:1/3;align-self:center;color:#68aabd;font-size:24px}
}

@media (max-width:640px){
  .shalev-topbar{height:64px}.shalev-header-inner{padding:0 15px}.shalev-header-logo{width:40px;height:40px}.shalev-brand-name{font-size:23px}.shalev-brand-sub{display:none}.shalev-menu-panel{right:13px;top:54px}
  .shalev-experience{min-height:calc(100dvh - 64px)}.shalev-stage{height:calc(100dvh - 64px);min-height:560px;padding:0 9px 10px}
  .shalev-wave-background svg{transform:scale(1.24);transform-origin:50% 36%}
  .shalev-home{padding-top:13px}.shalev-home-mark{width:122px;height:122px}.shalev-home h1{font-size:20px;margin-bottom:13px}.shalev-intent-grid{gap:7px}.shalev-intent-card{min-height:63px;padding:8px 10px;border-radius:12px}.shalev-intent-icon{width:37px;height:37px}.shalev-intent-icon svg{width:25px;height:25px}.shalev-intent-copy strong{font-size:13px}.shalev-intent-copy small{font-size:10px}
  .shalev-composer-zone{padding-top:3px}.shalev-composer{min-height:49px;padding-left:6px}.shalev-composer textarea{padding:10px 4px;font-size:13px}.shalev-composer-icon{width:33px;height:33px}.shalev-composer-icon svg{width:17px;height:17px}.shalev-send{width:39px;height:39px}.shalev-values{margin-top:7px;font-size:8.5px;gap:7px}
  .shalev-conversation{padding:18px 3px 14px}.shalev-turn-body{max-width:92%;font-size:14px}.shalev-turn-user .shalev-turn-body{padding:9px 12px}
  .shalev-voice-header{height:66px;padding:0 16px}.shalev-voice-brand img{width:38px;height:38px}.shalev-voice-brand .shalev-brand-name{font-size:23px}.shalev-voice-brand span{display:none}.shalev-voice-close{width:36px;height:36px}
  .shalev-voice-main{padding:0 14px 116px}.shalev-voice-emblem-wrap{width:220px;height:220px}.shalev-voice-emblem{width:148px;height:148px}.shalev-voice-orbit.orbit-one{width:184px;height:184px}.shalev-voice-orbit.orbit-two{width:213px;height:213px}.shalev-voice-orbit.orbit-three{width:236px;height:236px}.shalev-live-wave{height:68px;width:270px}.shalev-voice-status{font-size:15px}.shalev-voice-controls{gap:27px;bottom:max(18px,env(safe-area-inset-bottom))}.shalev-voice-control-item>button{width:46px;height:46px}.shalev-end-control>button{width:62px;height:62px}
  .shalev-transcript-sheet{max-height:82vh;border-radius:22px 22px 0 0}
}
