@charset "UTF-8";
:root{color-scheme:light;--ink:#080808;--paper:#f7f5ee;--muted:#77766f;--ease:cubic-bezier(.22,1,.36,1);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink)}body{color:var(--ink);-webkit-font-smoothing:antialiased}body:has(.split-home){overflow:hidden}button,input,textarea,a{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #7d9eff;outline-offset:4px}a{color:inherit}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.split-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:100vh;height:100dvh;min-height:280px}.home-half{min-width:0;position:relative}.voice-half{color:var(--paper);background:var(--ink)}.file-half{color:var(--ink);background:var(--paper)}.home-action{display:block;position:relative;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none;color:inherit;text-align:left;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}.home-action:focus-visible{outline-offset:-7px}.home-action:disabled{opacity:1}.home-title{position:absolute;top:calc(env(safe-area-inset-top,0px) + clamp(58px,11vh,150px));left:clamp(20px,5.6vw,90px);right:16px;font-size:clamp(23px,6vw,58px);font-weight:640;line-height:1.1;letter-spacing:-.055em}.home-center{position:absolute;top:44%;left:0;right:0;display:flex;align-items:center;flex-direction:column;gap:0}.hero-icon{display:flex;align-items:center;justify-content:center;width:clamp(88px,24vw,160px);height:clamp(88px,24vw,160px);border:2px solid currentColor;border-radius:50%;transition:transform .26s var(--ease);flex-shrink:0}.hero-icon svg{width:44%;height:44%;stroke-width:1.55}.home-caption{font-size:clamp(14px,3.7vw,19px);font-weight:500;margin-top:22px}.home-detail{font-size:12px;line-height:1.5;opacity:.6;margin-top:7px;text-align:center}.home-pill{background:var(--ink);color:var(--paper);border-radius:999px;padding:11px 17px;margin-top:19px;font-size:14px;font-weight:560;line-height:1.2}.home-footer{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 33px);left:0;right:0;display:flex;justify-content:center;gap:10px;font-size:12px;letter-spacing:.06em;opacity:.47}.home-footer span{font-size:14px;line-height:10px}.home-action:active .hero-icon{transform:scale(.91)}.home-action:active .home-pill{opacity:.75}
.app-sheet{position:fixed;inset:0;z-index:20;height:100vh;height:var(--sheet-height,100dvh);top:var(--sheet-top,0px);bottom:auto;overflow:hidden;animation:sheet-in .26s var(--ease);padding-top:env(safe-area-inset-top,0px);contain:layout style}.voice-sheet{background:var(--ink);color:var(--paper);display:flex;flex-direction:column;color-scheme:dark}.upload-sheet{background:var(--paper);color:var(--ink);display:flex;flex-direction:column}.sheet-header{height:72px;min-height:72px;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px max(18px,env(safe-area-inset-left,0px)) 10px max(18px,env(safe-area-inset-right,0px));border-bottom:1px solid #ffffff12}.sheet-header h2{font-size:17px;font-weight:570;letter-spacing:-.025em;margin:0;text-align:center}.icon-button{width:44px;height:44px;border:1px solid #ffffff26;border-radius:50%;background:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:30px}.upload-sheet .icon-button{border-color:#08080820}.header-balance{width:44px}.language-button{display:flex;gap:6px;align-items:center;justify-content:center;min-width:58px;height:44px;padding:0 9px;border:1px solid #ffffff26;background:none;border-radius:25px;color:inherit;font-size:12px}.language-button>span:first-child{font-size:20px}.voice-status-row{display:flex;align-items:center;gap:12px;margin:20px 24px 8px;min-height:32px}.voice-status-row>span:nth-child(2){font-size:13px;line-height:1.4;flex:1;color:#b7b6b0}.voice-status-row time{font:13px ui-monospace,SFMono-Regular,monospace;color:#a4a39f;flex-shrink:0;font-variant-numeric:tabular-nums}.hold-wave{display:flex;align-items:center;gap:3px;height:24px;width:29px;flex-shrink:0}.hold-wave i{width:3px;height:20px;background:currentColor;border-radius:4px;transform:scaleY(.3);animation:wave 1s ease-in-out infinite}.hold-wave i:nth-child(2){animation-delay:-.4s}.hold-wave i:nth-child(3){animation-delay:-.8s}.hold-wave i:nth-child(4){animation-delay:-.2s}.hold-wave i:nth-child(5){animation-delay:-.6s}.is-finished .hold-wave i,.is-error .hold-wave i{animation:none;transform:scaleY(.2)}.editor-wrap{flex:1;min-height:80px;position:relative;padding:12px 24px 8px}.editor-wrap textarea{display:block;width:100%;height:100%;resize:none;background:none;border:0;color:var(--paper);font-size:clamp(23px,6vw,34px);line-height:1.45;letter-spacing:-.035em;outline-offset:0;padding:0;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.editor-wrap textarea::placeholder{color:#77766f}.voice-bottom{padding:8px 18px calc(12px + env(safe-area-inset-bottom,0px));flex-shrink:0}.text-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-bottom:15px}.text-tools button{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:7px;min-height:44px;padding:9px 0;border:0;border-radius:14px;background:transparent;color:#bbb9b2;transition:transform .18s var(--ease),opacity .18s}.text-tools button:active{transform:scale(.91);opacity:.7}.text-tools small{font-size:12px;line-height:1.2;white-space:nowrap}.text-tools svg{width:22px;height:22px}.record-toggle{min-height:58px;width:100%;max-width:360px;margin:auto;display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:32px;background:var(--paper);color:var(--ink);font-size:16px;font-weight:600;transition:transform .2s var(--ease)}.record-toggle:active{transform:scale(.96)}.record-glyph{height:14px;width:14px;border-radius:4px;background:currentColor}.is-finished .record-glyph,.is-error .record-glyph{border-radius:50%}.hold-hint{text-align:center;color:#8d8c86;font-size:12px;line-height:1.4;margin:10px 0 0;min-height:17px}.is-error .voice-status-row>span:nth-child(2){color:#ffb3a9}.language-sheet{position:absolute;inset:90px 12px max(12px,env(safe-area-inset-bottom,0px));z-index:30;background:#20201e;border:1px solid #ffffff20;border-radius:26px;display:flex;flex-direction:column;padding:20px;box-shadow:0 20px 60px #0006;animation:sheet-in .2s var(--ease)}.language-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.language-head h3{font-size:21px;letter-spacing:-.035em;margin:0}.language-sheet input{width:100%;min-height:48px;margin:18px 0 12px;border:1px solid #ffffff30;background:#111;color:white;padding:12px 14px;border-radius:12px;font-size:16px}.hold-language-list{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;flex:1;min-height:0}.hold-language-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;background:none;color:var(--paper);border:0;border-bottom:1px solid #ffffff0e;text-align:left;padding:10px;font-size:16px}.hold-language-list button.is-selected{background:#ffffff15;border-radius:12px}.hold-language-list small{font-size:12px;margin-left:auto}.hold-language-list span{flex-shrink:0}
.upload-scroll{padding:10px 24px calc(30px + env(safe-area-inset-bottom,0px));overflow-y:auto;flex:1;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.upload-intro{margin:38px auto 26px;text-align:center;max-width:440px}.upload-intro .hero-icon{margin:0 auto 28px;width:84px;height:84px;border-width:1.5px}.upload-intro h3{font-size:clamp(30px,8vw,45px);font-weight:550;line-height:1.06;letter-spacing:-.065em;margin:0 0 17px}.upload-intro p{font-size:15px;line-height:1.55;color:var(--muted);max-width:300px;margin:auto}.primary-button,.secondary-button{border-radius:999px;min-height:52px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:550;font-size:15px;padding:13px 20px;text-decoration:none;border:1px solid var(--ink);background:var(--ink);color:var(--paper);transition:transform .18s var(--ease);width:100%}.secondary-button{color:var(--ink);background:transparent}.primary-button:active,.secondary-button:active{transform:scale(.97)}.file-caption{font-size:13px;line-height:1.5;text-align:center;color:var(--muted);overflow-wrap:anywhere}.upload-progress-card{margin:28px 0;padding:20px;border:1px solid #08080822;border-radius:20px}.progress-label{display:flex;justify-content:space-between;gap:16px;font-size:13px;line-height:1.4}.progress-label strong,.progress-label span{min-width:0;overflow-wrap:anywhere;font-weight:500}.progress-label b{flex-shrink:0;font-size:13px;font-variant-numeric:tabular-nums}.progress-track{height:4px;background:#08080812;border-radius:4px;overflow:hidden;margin:14px 0}.progress-track>div{height:100%;width:0;background:currentColor;border-radius:4px}.upload-progress-card>p:not(.file-caption){font-size:15px;margin:12px 0 8px}.upload-progress-card .file-caption{text-align:left;margin:0 0 12px}.upload-progress-card.is-error{border-color:#a52d22}.upload-progress-card.is-error #uploadStatusText{color:#a52d22}.upload-progress-card.is-processing .progress-track>div{width:40%!important;animation:processing 1.4s ease-in-out infinite}.text-button{display:inline-block;border:0;padding:10px 0;background:none;color:inherit;font-size:14px;text-underline-offset:4px}.live-model-progress{margin:8px 24px 12px;color:#c6c4bd}.live-model-progress .progress-track{background:#ffffff20}.is-indeterminate .progress-track>div{animation:processing 1.4s ease-in-out infinite}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 15px}.result-heading h3{font-size:25px;letter-spacing:-.045em;margin:0;font-weight:570}.result-heading span{font-size:12px;color:var(--muted)}.upload-result textarea{display:block;width:100%;min-height:260px;font-size:18px;line-height:1.65;padding:18px;border:1px solid #08080820;border-radius:18px;background:#ffffff85;color:var(--ink);resize:vertical;touch-action:pan-y}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.result-actions .text-button{grid-column:1/-1;text-align:center}.archive-link{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #0808081a;text-decoration:none;margin-top:32px;padding:22px 0;font-size:14px}.archive-link span{font-size:22px}.toast{position:fixed;left:50%;bottom:calc(30px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;max-width:calc(100vw - 32px);padding:14px 21px;border:1px solid #ffffff30;border-radius:99px;background:#252525;color:var(--paper);font-size:14px;text-align:center;box-shadow:0 8px 32px #0003}.noscript-note{position:fixed;bottom:12px;margin:12px;background:white;color:black;padding:12px;z-index:50}
.document-page{background:var(--paper);color:var(--ink);min-height:100vh;overflow:auto}.document-wrap{max-width:850px;margin:0 auto;padding:calc(24px + env(safe-area-inset-top,0px)) 22px calc(32px + env(safe-area-inset-bottom,0px))}.document-nav{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:34px;font-size:14px}.document-nav a{text-decoration:none;padding:10px 0}.document-wrap h1{font-size:clamp(29px,7vw,42px);font-weight:550;letter-spacing:-.055em;line-height:1.1;overflow-wrap:anywhere}.document-meta{color:var(--muted);font-size:13px;line-height:1.5}.history-item{border-top:1px solid #08080825;padding:22px 0}.history-item>a{text-decoration:none;display:block}.history-item h2{font-size:19px;line-height:1.3;margin:0 0 9px;letter-spacing:-.035em;overflow-wrap:anywhere}.history-item p{font-size:15px;line-height:1.6;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}.history-actions{display:flex;gap:24px;align-items:center;font-size:13px}.history-actions form{margin:0}.document-transcript{font-family:inherit;font-size:20px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:32px 0}.document-actions{display:flex;flex-wrap:wrap;gap:10px}.document-actions>*{width:auto;min-width:110px}.alert{padding:16px;border:1px solid #08080825;border-radius:14px;font-size:15px;line-height:1.5;margin:20px 0}.alert.error{border-color:#a52d22;color:#a52d22}
@keyframes sheet-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes wave{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}@keyframes processing{from{transform:translateX(-110%)}to{transform:translateX(360%)}}
@media(min-width:700px){.home-title{top:14%;left:15%;font-size:clamp(38px,4.5vw,68px)}.home-center{top:43%}.home-caption,.home-pill{font-size:18px}.home-detail{font-size:14px}.home-footer{font-size:12px;bottom:50px}.voice-sheet .sheet-header,.voice-status-row,.voice-bottom,.editor-wrap,.live-model-progress{width:min(100%,820px);margin-left:auto;margin-right:auto}.voice-status-row{padding-left:24px;padding-right:24px}.upload-scroll{width:min(100%,580px);margin:auto}.text-tools small{font-size:12px}.text-tools button{gap:10px}.voice-bottom{padding-bottom:24px}.editor-wrap{padding-top:24px}.language-sheet{max-width:540px;margin:0 auto}}
@media(max-width:359px){.home-title{font-size:22px;left:17px}.hero-icon{width:84px;height:84px}.home-pill{padding:10px 12px;font-size:13px}.home-caption{font-size:13px}.sheet-header{padding-left:12px;padding-right:12px}.sheet-header h2{font-size:15px}.voice-bottom{padding-left:10px;padding-right:10px}.text-tools{grid-template-columns:repeat(3,1fr);gap:0}.text-tools button{min-height:44px;padding:6px 0;flex-direction:row;gap:6px}.text-tools small{font-size:10px}.text-tools svg{width:18px;height:18px}.editor-wrap{padding-left:18px;padding-right:18px}.home-footer{font-size:10px;gap:6px}}
@media(max-height:600px){.home-title{top:45px;font-size:23px}.home-center{top:43%}.hero-icon{width:76px;height:76px}.home-caption{margin-top:12px}.home-pill{margin-top:12px}.home-footer{bottom:20px}.sheet-header{min-height:56px;height:56px}.voice-status-row{margin-top:8px}.voice-bottom{padding-top:0;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}.text-tools{margin-bottom:6px}.text-tools button{min-height:40px;padding:5px 0;gap:4px}.record-toggle{min-height:46px}.hold-hint{margin-top:6px}.upload-intro{margin:15px auto 20px}.upload-intro .hero-icon{width:62px;height:62px;margin-bottom:18px}.upload-intro h3{font-size:29px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hold-wave i{transform:scaleY(.5)}}
@media print{.document-nav,.document-actions,.history-actions{display:none}.document-page{background:#fff}.document-wrap{max-width:none;padding:0}.document-transcript{font-size:12pt;line-height:1.6}.document-wrap h1{font-size:22pt}}
.keyboard-open .text-tools,.keyboard-open .hold-hint{display:none}.keyboard-open .voice-bottom{padding:6px 18px 8px}.keyboard-open .record-toggle{min-height:44px}.keyboard-open .sheet-header{height:56px;min-height:56px}.keyboard-open .voice-status-row{margin-top:5px;margin-bottom:0;min-height:28px}.keyboard-open .editor-wrap{min-height:40px;padding-top:6px}.keyboard-open .language-sheet{top:62px}

@media(max-height:390px){.home-title{top:24px;font-size:21px}.home-center{top:40%}.hero-icon{width:62px;height:62px}.home-caption{margin-top:10px}.home-pill{margin-top:10px;padding:8px 12px}.home-detail{font-size:12px}.home-footer{bottom:14px}.hold-hint{display:none}.text-tools{grid-template-columns:repeat(6,1fr)}.text-tools small{display:none}.text-tools button{min-height:32px}.record-toggle{min-height:40px}.sheet-header{height:50px;min-height:50px}.voice-status-row{margin-top:4px;margin-bottom:0}.editor-wrap{padding-top:4px;min-height:40px}}

@media(min-width:700px){.text-tools{grid-template-columns:repeat(6,minmax(0,1fr))}.text-tools button{flex-direction:column;min-height:60px}.text-tools small{font-size:12px}}

/* Home a quattro azioni: trascrizione sopra, studio audio sotto. */
body:has(.home-quadrants){overflow:auto}
.home-quadrants{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));height:100vh;height:100dvh;min-height:460px;background:#080808}
.home-band{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);justify-items:center;padding:clamp(18px,3.2vh,34px) max(16px,env(safe-area-inset-left,0px)) 22px max(16px,env(safe-area-inset-right,0px))}
.transcription-band{grid-template-rows:auto auto minmax(0,1fr);row-gap:clamp(12px,2.1vh,22px);padding-top:calc(env(safe-area-inset-top,0px) + 12px);color:#080808;background:#fff}
.studio-band{color:#fff;background:#080808;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
.home-brand{margin:0;font-size:clamp(14px,3.8vw,19px);font-weight:700;line-height:1.2;letter-spacing:-.045em}
.home-band-heading{display:flex;align-items:center;gap:clamp(12px,4vw,26px);width:min(100%,720px);margin:0;font-size:clamp(12px,3.1vw,16px);font-weight:650;line-height:1.3;letter-spacing:.025em;text-align:center;text-transform:uppercase}
.home-band-heading::before,.home-band-heading::after{content:"";flex:1;min-width:0;height:1px;background:currentColor;opacity:.48}
.home-band-heading span{flex-shrink:0}
.home-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,5vw,40px);align-items:center;width:min(100%,720px);min-height:0}
.home-tool-wrap{display:flex;min-width:0;height:100%;align-items:center}
.home-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(12px,2vh,19px);width:100%;min-width:0;min-height:44px;margin:0;padding:10px 0;border:0;border-radius:18px;background:transparent;color:inherit;font:inherit;text-align:center;text-decoration:none;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#liveMicButton.home-tool{touch-action:none}
.home-tool:focus-visible{outline:3px solid #7d9eff;outline-offset:2px}
.home-tool-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:clamp(76px,min(31vw,18vh),156px);height:clamp(76px,min(31vw,18vh),156px);width:clamp(76px,min(31vw,18dvh),156px);height:clamp(76px,min(31vw,18dvh),156px);border:2px solid currentColor;border-radius:50%;box-shadow:0 0 0 3px #08080805,0 2px 8px #08080822;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.studio-band .home-tool-icon{box-shadow:0 0 0 3px #ffffff05,0 0 10px #ffffff18}
.home-tool-icon svg{width:48%;height:48%;stroke-width:1.65;pointer-events:none}
.home-tool-label{font-size:clamp(18px,5vw,27px);font-weight:600;line-height:1.16;letter-spacing:-.035em}
.home-tool:active .home-tool-icon{transform:scale(.94)}
.home-tool:disabled{cursor:wait;opacity:.6}
@media(hover:hover){.home-tool:hover .home-tool-icon{transform:translateY(-2px)}}
@media(max-height:600px){.home-quadrants .home-band{padding-top:16px;padding-bottom:14px}.home-quadrants .transcription-band{padding-top:calc(env(safe-area-inset-top,0px) + 8px);row-gap:10px}.home-quadrants .studio-band{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}.home-tool{gap:10px;padding:8px 0}.home-tool-label{font-size:18px}.home-tool-icon{width:80px;height:80px}}
@media(prefers-reduced-motion:reduce){.home-tool-icon{transition:none}.home-tool:hover .home-tool-icon,.home-tool:active .home-tool-icon{transform:none}}

/* Info separate dai comandi: un tocco sulla i non avvia microfono o caricamento. */
.home-quadrants .home-tool-wrap{position:relative;justify-content:center}
.home-quadrants .home-info-link{position:absolute;top:0;right:0}
