@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#172321;--muted:#6f7b76;--line:#e6eae5;--paper:#f6f7f3;--white:#fff;--green:#245c49;--orange:#d66c32;--pale:#edf2ec;--red:#b64734;--shadow:0 22px 60px rgba(22,39,32,.08)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.55 'DM Sans',sans-serif;background:var(--paper)}h1,h2,h3,b,strong{font-family:Manrope,'DM Sans',sans-serif}a{color:inherit}.topbar{height:76px;display:flex;align-items:center;gap:24px;padding:0 max(28px,calc((100vw - 1160px)/2));border-bottom:1px solid rgba(23,35,33,.08);background:rgba(255,255,255,.78);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none}.brand-mark{width:36px;height:36px;border-radius:12px;background:var(--green);color:white;display:grid;place-items:center;font:800 12px Manrope;letter-spacing:-.05em}.brand b{display:block;font:800 16px Manrope;letter-spacing:.05em}.brand small{display:block;color:#87918b;font-size:9px;letter-spacing:.18em;font-weight:700}.top-tag{margin-left:auto;color:#718077;font-size:11px;letter-spacing:.15em;font-weight:700}.admin-link{border:1px solid var(--line);border-radius:99px;padding:9px 15px;text-decoration:none;font-size:13px;font-weight:600;background:#fff}.client-shell{max-width:840px;margin:0 auto;padding:74px 24px 56px}.hero{text-align:center;margin-bottom:36px}.eyebrow{font-weight:700;font-size:11px;letter-spacing:.22em;color:var(--orange)}.hero h1{font-size:clamp(36px,6vw,58px);letter-spacing:-.055em;line-height:1.08;margin:12px 0}.hero h1 em{font-style:normal;color:var(--green)}.hero p{color:var(--muted);margin:0 auto;max-width:570px;font-size:17px}.assistant-card{background:var(--white);border:1px solid #ecefea;border-radius:28px;padding:30px;box-shadow:var(--shadow)}.assistant-head{display:flex;align-items:center;gap:14px;margin-bottom:28px}.orb{height:48px;width:48px;background:radial-gradient(circle at 35% 30%,#fff0d4,#eab076 40%,#bd6332 75%);border-radius:50%;display:grid;place-items:center;color:white;font-size:22px;box-shadow:0 6px 20px #e8c9a0}.assistant-head b{display:block;font:700 16px Manrope}.assistant-head small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.privacy-pill{margin-left:auto;color:var(--green);font-size:11px;font-weight:700;background:var(--pale);border-radius:99px;padding:8px 12px}.assistant-card>label,#questionForm>label{display:block;font-weight:700;font-size:12px;margin:16px 0 8px}.assistant-card select,.field input,.field select,.field textarea,.ask-row input{width:100%;font:inherit;color:var(--ink);border:1px solid #dbe2dc;background:#fbfcfa;border-radius:12px;padding:12px 14px;outline:none}.assistant-card select:focus,.field input:focus,.field textarea:focus,.ask-row input:focus{border-color:#78a18a;box-shadow:0 0 0 3px #dcece1}.length-options{display:flex;gap:8px}.length-option{flex:1;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px;color:#52645b;font:600 13px 'DM Sans';cursor:pointer}.length-option.selected{background:var(--pale);border-color:#bfd4c4;color:var(--green)}.ask-row{display:flex;gap:9px}.ask-row input{flex:1;min-width:0}.icon-button,.send-button{width:48px;height:48px;flex:0 0 48px;border:0;border-radius:13px;display:grid;place-items:center;cursor:pointer}.icon-button{background:#f0f3ee;color:var(--green)}.icon-button.recording{background:#ffebe4;color:#b83d25;animation:pulse 1s infinite}.send-button{background:var(--green);color:white}.icon-button svg,.send-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mic-hint{color:#88948d;font-size:11px;margin:8px 0 0}.answer-panel{margin-top:24px;border-radius:20px;background:#f8faf7;border:1px solid #e9eee9;padding:20px;min-height:112px}.answer-panel.empty{display:grid;align-items:center}.answer-welcome,.answer-copy{display:flex;gap:14px;align-items:flex-start}.sparkle,.answer-icon{width:32px;height:32px;flex:none;border-radius:10px;background:#e9f2e9;color:var(--green);display:grid;place-items:center;font-size:17px}.answer-welcome b,.answer-copy b{font:700 14px Manrope}.answer-welcome p,.answer-copy p{font-size:13px;color:var(--muted);margin:4px 0 0}.answer-copy.error .answer-icon{background:#fbebe6;color:var(--red)}.answer-loading{display:flex;gap:12px;align-items:center;color:#65756b;font-size:13px}.loader{width:20px;height:20px;border:2px solid #dce7dd;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.answer-meta{display:flex;justify-content:space-between;color:var(--green);font-size:10px;letter-spacing:.13em;font-weight:800}.answer-text{white-space:pre-wrap;font:500 17px/1.65 Manrope;margin:14px 0}.audio-player{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;font-weight:700}.audio-player audio{width:min(360px,65%);height:38px}.audio-pending,.answer-disclosure{font-size:11px;color:#75827a}.visual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.visual-card{margin:0}.visual-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#e9eee8}.visual-card figcaption{font-size:11px;color:var(--muted);padding:5px 2px}.levels{display:grid;gap:8px;margin-top:18px}.level{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:11px 13px;background:#fff}.level>span{color:#9aa49d;font:700 11px Manrope}.level b{display:block;font-size:12px}.level small{display:block;color:#87928a;font-size:11px}.level i{margin-left:auto;font-style:normal;font-size:9px;letter-spacing:.12em;font-weight:800;color:#929d95}.level.active{border-color:#d7e5d8}.level.active>span,.level.active i{color:var(--green)}.disclaimer{text-align:center;color:#869188;font-size:11px;margin:20px auto 0;max-width:680px}footer{max-width:1160px;margin:0 auto;padding:22px 24px 32px;display:flex;justify-content:space-between;color:#919a93;font-size:11px;border-top:1px solid #e7eae5}.admin-body{min-height:100vh;background:linear-gradient(135deg,#f4f7f2,#f8f7f3)}.admin-shell{width:min(1180px,100% - 36px);margin:34px auto 70px}.admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.admin-head h1{font-size:clamp(28px,4vw,40px);letter-spacing:-.04em;margin:5px 0}.admin-head p{color:var(--muted);margin:0}.button,.admin-head button,.inline-button{border:0;border-radius:11px;padding:11px 16px;background:var(--green);color:#fff;text-decoration:none;font:700 12px 'DM Sans';cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.button.secondary,.inline-button.secondary{background:#edf2ec;color:var(--green)}.button.danger{background:#faece7;color:#a84330}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:21px;box-shadow:0 10px 35px rgba(26,40,33,.04);margin-bottom:16px}.admin-card h2{font-size:17px;margin:0 0 6px}.admin-card h3{font-size:14px;margin:22px 0 8px}.admin-card>p,.help{font-size:12px;color:var(--muted);margin:0 0 14px}.field{margin:12px 0}.field label{display:block;font-size:11px;font-weight:700;margin-bottom:5px}.field input,.field textarea,.field select{background:#fbfcfa}.field textarea{min-height:105px;resize:vertical}.field textarea.large{min-height:190px}.field .hint{font-size:10px;color:#87928a;margin-top:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.stat-box{border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px}.stat-box b{display:block;font:800 22px Manrope}.stat-box span{font-size:10px;color:var(--muted)}.component-row,.source-row,.answer-row,.visual-row{border-top:1px solid #edf0ec;padding:14px 0;display:flex;align-items:flex-start;gap:12px}.component-row:first-of-type,.source-row:first-of-type,.answer-row:first-of-type,.visual-row:first-of-type{border-top:0}.row-main{flex:1;min-width:0}.row-main b{display:block;font-size:13px}.row-main p{font-size:11px;color:var(--muted);margin:3px 0 0;white-space:pre-wrap}.badge{display:inline-block;border-radius:99px;padding:4px 8px;background:#edf2ec;color:#557564;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.badge.draft,.badge.idea{background:#fff1df;color:#9b682b}.badge.approved{background:#e5f2e8;color:#256342}.badge.rejected{background:#fae9e5;color:#9a4839}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions form{margin:0}.inline-button{font-size:10px;padding:8px 10px}.inline-button.secondary{border:1px solid #dce5dc}.inline-button.danger{background:#faece7;color:#a84330}.section-anchor{scroll-margin-top:24px}.empty-state{padding:22px;background:#f7f9f6;border-radius:12px;color:var(--muted);font-size:12px}.login-shell{max-width:470px;margin:9vh auto;padding:0 20px}.login-card{background:white;border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:var(--shadow)}.login-card h1{font-size:30px;margin:24px 0 5px}.login-card p{color:var(--muted);font-size:13px;margin:0 0 18px}.notice{padding:13px 16px;border-radius:12px;background:#e7f3e8;color:#29563c;font-size:12px;margin-bottom:15px}.notice.error{background:#f9e9e5;color:#9f4934}.split-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.footnote{font-size:10px;color:#87928a;margin-top:11px}@keyframes pulse{50%{transform:scale(1.06);box-shadow:0 0 0 7px #fce4db}}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:680px){.topbar{height:66px;padding:0 16px;gap:12px}.top-tag{display:none}.admin-link{margin-left:auto;font-size:11px;padding:8px 11px}.client-shell{padding:48px 14px 34px}.hero{margin-bottom:25px}.hero p{font-size:15px}.assistant-card{padding:20px 16px;border-radius:23px}.assistant-head{margin-bottom:20px}.privacy-pill{font-size:9px;padding:7px 8px}.length-options{gap:5px}.length-option{padding:10px 4px;font-size:11px}.ask-row{gap:6px}.icon-button,.send-button{width:44px;height:46px;flex-basis:44px}.answer-panel{padding:16px}.visual-grid{grid-template-columns:repeat(2,1fr)}footer{padding:18px 16px 26px;display:grid;gap:5px}.admin-shell{width:calc(100% - 24px);margin:20px auto 50px}.admin-head{display:block}.admin-head>.split-actions{margin-top:14px}.admin-grid,.form-row{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.admin-card{padding:16px}.component-row,.source-row,.answer-row,.visual-row{flex-wrap:wrap}.row-actions{width:100%}}
.embedded{background:transparent}.embedded .client-shell{width:100%;max-width:780px;padding:12px}.embedded .hero{margin-bottom:16px}.embedded .hero h1{font-size:clamp(28px,5vw,40px)}.embedded .hero p{font-size:13px}.embedded .assistant-card{box-shadow:none;border-radius:18px;padding:22px}.embedded .disclaimer{font-size:10px;margin-top:10px}
.ka-land{width:180px;height:92px;object-fit:cover;border-radius:8px;display:block;margin-top:8px}

.voice-question{margin:14px 0 18px}
.voice-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;font-size:1.05rem}
.voice-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-button.recording{background:#a82928;color:#fff}
.voice-question .mic-hint{text-align:center;margin:8px 0 0}

.voice-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#142922;color:#fff}
.voice-stage{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.voice-background,.voice-background img,.voice-dialog .chunk-figure picture,.voice-dialog .chunk-figure img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;margin:0}
.voice-background{z-index:-2}
.voice-header,.voice-footer{position:relative;z-index:2;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}
.voice-header{display:flex;align-items:center;justify-content:space-between;padding-top:max(12px,env(safe-area-inset-top));background:linear-gradient(#091914ed,transparent)}
.voice-header h2{margin:0;font-size:1.3rem;color:#fff}
#closeVoice{width:44px;height:44px;border:0;border-radius:50%;background:#13231de8;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.voice-footer{padding-bottom:max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#091914f5 26%)}
.voice-footer .voice-question{margin:0 auto;max-width:420px}
.voice-footer .mic-hint{color:#fff}
.voice-result{margin-top:auto;position:static;color:#fff}
.voice-dialog .answer-panel{position:static;background:transparent;color:inherit;border:0;margin:0;padding:0;min-height:0}
.voice-dialog .answer-panel.empty,.voice-dialog .answer-meta,.voice-dialog .chunk-copy>p,.voice-dialog .chunk-copy>small,.voice-dialog .answer-disclosure{display:none}
.voice-dialog .chunk-view,.voice-dialog .chunk-copy,.voice-dialog .chunk-figure{display:contents}
.voice-dialog .chunk-figure picture{z-index:-1}
.voice-dialog .chunk-figure figcaption,.voice-dialog .chunk-controls,.voice-dialog .chunk-transcript,.voice-dialog .answer-loading,.voice-dialog .answer-copy,.voice-dialog .audio-player,.voice-dialog .answer-panel>.answer-text{position:relative;margin:0;padding:8px 16px;background:#10231dec;color:#fff}
.voice-dialog .chunk-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.voice-dialog .chunk-transcript .answer-text{color:#fff;max-height:22dvh;overflow:auto}
.voice-dialog .visual-grid{display:none}
@media(max-height:440px){.voice-header,.voice-footer{padding-block:6px}.voice-footer .voice-button{min-height:44px}.voice-dialog .chunk-transcript{display:none}}

.assistant-card .chunk-figure{margin:0 0 12px}
.assistant-card .chunk-figure img{display:block;width:100%;max-height:420px;object-fit:contain}

.voice-dialog .chunk-figure picture,.assistant-card .chunk-figure picture{overflow:hidden}
.assistant-card .chunk-figure picture{display:block}
.voice-dialog .chunk-figure img{will-change:transform,object-position}

.player-icon{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0}
.player-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.voice-footer{margin-top:auto;background:none;padding-bottom:8px}
.voice-footer .voice-button{width:64px;height:64px;min-height:0;margin:auto;padding:0;border-radius:50%;box-shadow:0 3px 14px #0006}
.voice-footer .voice-button svg{width:28px;height:28px}
.voice-footer #micLabel{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.voice-footer .mic-hint{text-shadow:0 1px 4px #000,0 1px 8px #000}
.voice-result{margin-top:0;padding-bottom:env(safe-area-inset-bottom);background:rgba(9,25,20,.36)}
.voice-dialog .chunk-figure figcaption,.voice-dialog .chunk-controls,.voice-dialog .chunk-transcript{background:transparent;text-shadow:0 1px 4px #000}
.voice-dialog .chunk-controls .player-icon{background:rgba(10,31,24,.65);color:#fff;border:1px solid #ffffff45}
@media(max-height:440px){.voice-footer .voice-button{width:48px;height:48px}.voice-footer .voice-button svg{width:24px;height:24px}}

.voice-stage .voice-footer{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));margin:0;padding:0}
.voice-stage .voice-footer .voice-button{width:48px;height:48px}
.voice-stage .voice-footer .voice-button svg{width:24px;height:24px}
.voice-stage .voice-footer .mic-hint{position:absolute;right:0;bottom:calc(100% + 6px);width:min(240px,65vw);margin:0;padding:5px 8px;border-radius:8px;background:#10231dbb;font-size:.8rem;text-align:right}
.voice-stage:has(.chunk-controls) .voice-footer:not(:has(.recording)) .mic-hint{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.voice-stage .voice-result{margin-top:auto;min-height:calc(64px + env(safe-area-inset-bottom));padding-right:calc(72px + env(safe-area-inset-right))}

.voice-stage .answer-panel:not(.empty){display:flex;flex-direction:column}
.voice-stage .chunk-transcript{order:1}
.voice-stage .chunk-controls{order:2}

.theme-cardiomina{--green:#e51c2d;--red:#b71b29;--orange:#b71b29;--paper:#fff;--pale:#fff0f1;--line:#efdadd;--ink:#281719;--muted:#64555a}
.theme-cardiomina .answer-panel{background:#fff8f8;border-color:var(--line)}
.theme-cardiomina .voice-dialog{background:#42151b}
.theme-cardiomina .voice-dialog .answer-panel{background:transparent}
.theme-cardiomina .voice-header{background:linear-gradient(#321116e8,transparent)}
.theme-cardiomina .voice-result{background:rgba(49,14,20,.36)}
.theme-cardiomina .voice-dialog .chunk-controls .player-icon,.theme-cardiomina #closeVoice,.theme-cardiomina .voice-stage .mic-hint{background:#65141cdd;color:#fff}
.theme-cardiomina .voice-button.recording{background:#a70d20;color:#fff}

.voice-brand-layers{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.voice-brand-layers[hidden]{display:none}
.voice-brand-layers .brand-background{position:absolute;inset:0;display:block}
.voice-brand-layers .brand-background img{display:block;width:100%;height:100%;object-fit:cover;animation:cardio-background-beat 30s ease-in-out infinite}
.voice-brand-layers .brand-bottle{position:absolute;left:48%;bottom:10%;height:72%;width:auto;max-width:none;object-fit:contain;transform-origin:center;animation:cardio-bottle-beat 30s ease-in-out infinite}
.voice-brand-layers.paused img{animation-play-state:paused}
@keyframes cardio-background-beat{0%,100%{transform:scale(1.2)}33.333%,50%{transform:scale(1)}83.333%{transform:scale(1.2)}}
@keyframes cardio-bottle-beat{0%,100%{transform:translateX(-50%) scale(.8)}33.333%,50%{transform:translateX(-50%) scale(1.2)}83.333%{transform:translateX(-50%) scale(.8)}}
@media(orientation:portrait){.voice-brand-layers .brand-bottle{left:50%;bottom:18%;height:45%}}
@media(prefers-reduced-motion:reduce){.voice-brand-layers .brand-background img,.voice-brand-layers .brand-bottle{animation:none}.voice-brand-layers .brand-bottle{transform:translateX(-50%)}}

/* Cardiomina player-first experiment; other projects retain their entry screen. */
.direct-player{height:100dvh;overflow:hidden}.direct-player>.topbar,.direct-player>.client-shell,.direct-player>footer{display:none}.direct-player #closeVoice{display:none}
.direct-player .voice-dialog{display:block}.player-exit{color:#fff;font-size:12px;text-decoration:none;padding:11px 14px;border:1px solid #ffffff50;border-radius:24px;background:#42151b99}.player-exit:hover{background:#65141c}
.player-settings-button{position:absolute;z-index:3;left:max(16px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:44px;height:44px;border-radius:50%;border:1px solid #ffffff55;background:#65141cdd;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 14px #0004}.player-settings-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.player-settings-button:hover svg{transform:rotate(25deg)}.player-settings-button svg{transition:transform .2s}.player-settings-button:focus-visible,.player-exit:focus-visible{outline:3px solid white;outline-offset:3px}
.direct-player .chunk-controls{padding-left:76px;min-height:64px}.direct-player .voice-result>.answer-panel>.answer-copy,.direct-player .voice-result>.answer-panel>.answer-loading{margin-bottom:70px}.direct-player .voice-result{padding-left:0}
.player-settings{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #efdadd;border-radius:20px;background:#fffaf9;color:#281719;box-shadow:0 25px 90px #21090d66;overflow:auto}.player-settings::backdrop{background:#1e090bb3;backdrop-filter:blur(5px)}.player-settings>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.player-settings h2{margin:0;font-size:22px}.player-settings header p{font-size:12px;color:#745e64;margin:5px 0 0}.player-settings header button{border:0;border-radius:50%;width:40px;height:40px;flex:none;background:#f6e6e8;color:#65141c;font-size:26px;cursor:pointer}.player-settings label,.player-settings .preference-label{display:block;font-size:12px;font-weight:700;margin:18px 0 8px}.player-settings .length-options{margin:0}.player-settings .length-option.selected{background:#e51c2d;border-color:#e51c2d;color:white}.player-settings .length-option{background:white;color:#64555a;border-color:#efdadd}.player-settings .settings-content{margin-bottom:20px}.player-settings #questionForm{border-top:1px solid #efdadd;margin-top:23px}.player-settings> .button{width:100%;background:#e51c2d;color:white;min-height:44px}.player-settings .ask-row input{background:white}.player-settings .send-button{background:#e51c2d}.player-settings :focus-visible{outline:3px solid #dc8490;outline-offset:3px}
@media(max-height:440px){.player-settings{max-height:calc(100dvh - 16px);padding:16px}.player-settings>header{margin-bottom:10px}}

.player-settings select{width:100%;padding:12px;border:1px solid #efdadd;border-radius:10px;background:white;color:#281719;font:13px "DM Sans",sans-serif;min-height:44px}
