:root{font-family:system-ui,Segoe UI,Arial,sans-serif;color:#102A43;--navy:#102A43;--cyan:#13C8D8;--turq:#54E6E1;--pale:#E8FBFC;--purple:#7657D9;--success:#22A06B;--amber:#D99000;--error:#C83C4A;--muted:#718096;--border:#D9E7EC;--state:#13C8D8;box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:transparent;font-size:13px}button,select,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.48;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7657D9;outline-offset:2px}.surface{position:relative;background:rgba(232,251,252,.95);width:100%;height:100%;border:1px solid rgba(167,220,234,.87);box-shadow:0 10px 28px rgba(18,57,97,.25),inset 0 1px 1px #fff;border-radius:20px;overflow:hidden}.compact-view{height:100%;position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 6px 6px}.compact-top{position:absolute;z-index:3;top:4px;right:5px;display:flex;gap:1px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border:0;border-radius:50%;background:rgba(255,255,255,.72);color:#335c7c;font-size:18px;line-height:1}.icon-btn:hover{background:#cff6fa}.compact-drag{-webkit-app-region:drag;display:flex;align-items:center;justify-content:center;margin:4px 0 1px;width:90px;height:68px;cursor:move}.compact-drag img{-webkit-user-drag:none}.compact-drag button{-webkit-app-region:no-drag}.halo{width:78px;height:70px;position:relative;display:flex;justify-content:center;align-items:center;border-radius:50%;background:radial-gradient(circle,rgba(104,255,248,.74),rgba(19,200,216,.35) 50%,rgba(19,200,216,0) 76%);filter:drop-shadow(0 0 7px rgba(19,200,216,.72))}.halo img{width:82%;height:78%;object-fit:cover;border-radius:50%;pointer-events:none}.halo:after{content:'';position:absolute;inset:3px;border-radius:50%;border:2px solid var(--state);opacity:.75;pointer-events:none}.halo[data-state="listening"]:after,.halo[data-state="hearing-you"]:after{animation:pulse 1.8s ease-in-out infinite}.halo[data-state="transcribing"]:after,.halo[data-state="inserting-text"]:after{border-color:var(--purple);border-style:dashed;animation:spin 3s linear infinite}.halo[data-state="inserted"]:after{border-color:var(--success)}.halo[data-state="action-needs-your-help"]:after,.halo[data-state="destination-not-confirmed"]:after{border-color:var(--amber)}.halo[data-state="transcription-failed"]:after{border-color:var(--amber);opacity:.42;border-width:1.5px}.compact-status{font-size:15px;font-weight:700;line-height:18px;text-align:center;letter-spacing:-.3px}.compact-details{font-size:10px;line-height:12px;text-align:center;color:#526b7e;max-width:122px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary{background:linear-gradient(120deg,#13C8D8 0%,#54E6E1 100%);box-shadow:0 2px 8px rgba(19,200,216,.25);color:#102A43;border:0;border-radius:20px;font-size:13px;font-weight:700;min-height:32px;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px}.primary:not(:disabled):hover{filter:brightness(1.03)}.compact-primary{width:124px;min-height:29px;margin-top:3px;padding:2px 7px;font-size:11.5px;white-space:nowrap}.compact-primary .primary-icon{font-size:12px}.mic-status{align-self:flex-start;color:#466477;font-size:10px;white-space:nowrap;max-width:123px;overflow:hidden;text-overflow:ellipsis;margin-top:2px;margin-left:5px}.mic-status>span{color:#13c8d8}.expanded-view{height:100%;display:flex;flex-direction:column;background:rgba(255,255,255,.98);border-radius:20px}.expanded-view[hidden],.compact-view[hidden],.modal-backdrop[hidden],.popup-menu[hidden],[hidden]{display:none!important}.header{display:flex;align-items:center;gap:7px;height:43px;min-height:43px;padding:5px 11px;border-bottom:1px solid #eaf1f5;-webkit-app-region:drag}.brand{display:flex;align-items:center;gap:7px;min-width:0;flex:1;white-space:nowrap}.brand img{width:28px;height:27px;object-fit:cover;border-radius:50%}.brand strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill{background:#e3fcf4;color:#08784c;border-radius:20px;font-size:11px;white-space:nowrap;padding:4px 9px}.window-actions{display:flex;align-items:center}.no-drag{ -webkit-app-region:no-drag}.body-scroll{overflow-y:auto;flex:1;padding:0 15px 10px;scrollbar-width:thin}.hero{display:flex;align-items:center;flex-direction:column;padding:7px 0 9px}.halo.large{width:125px;height:109px;margin:0 auto 2px}.halo.large img{width:82%;height:80%}.hero-status{text-align:center;font-size:15px;min-height:21px;line-height:20px}.hero-status strong{font-weight:700}.hero-status span{color:#526b7e;font-size:13px}.waveform{display:flex;justify-content:center;align-items:center;height:35px;gap:3px;margin:1px auto 0;overflow:hidden}.waveform i{display:inline-block;width:3px;height:10px;border-radius:5px;background:linear-gradient(#15bfff,#54e6e1);transform-origin:center;transition:height .12s linear}.waveform i:nth-child(4n+1){height:19px}.waveform i:nth-child(3n+2){height:26px}.waveform i:nth-child(5n+3){height:11px}.waveform.listening i{animation:wave .75s ease-in-out infinite alternate}.waveform.listening i:nth-child(2n){animation-delay:.16s}.waveform.listening i:nth-child(3n){animation-delay:.28s}.timer{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;margin-top:1px}.voice-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.soft-control{border:1px solid #e1ecf3;background:#f4faff;border-radius:18px;padding:7px 5px;font-size:12px;min-height:33px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.soft-control.cyan{background:#e8fbfc}.soft-control:hover{border-color:#13c8d8}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid var(--border);border-radius:11px;margin-bottom:6px;background:#f8fcfe}.setting-row label{font-size:12px;font-weight:700;white-space:nowrap}.setting-row select{background:transparent;border:0;max-width:180px;font-size:12px;color:#264f69;text-align:right}.secondary-setting{min-height:30px;background:#fff}.information-card{border:1px solid var(--border);border-radius:12px;padding:9px;margin-bottom:8px;background:#fff}.card-title{display:flex;align-items:center;gap:6px;min-height:20px}.card-title strong{font-size:12px;flex:1}.card-symbol{color:#09a7d4}.mini-label{color:#607d8b;font-size:11px}.mini-label.attention{color:#a46b00}.mini-label.success{color:#07885e}textarea{width:100%;height:51px;resize:vertical;min-height:40px;max-height:130px;margin-top:4px;background:#f4f9ff;border:1px solid #edf2f8;border-radius:7px;padding:7px;font-size:13px;line-height:17px;color:#102A43}textarea:read-only{cursor:text}.card-tools{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:4px;margin-top:5px}.card-tools button,.text-link{border:0;background:transparent;font-size:11px;color:#13749a;padding:4px 5px;border-radius:5px}.card-tools button:hover,.text-link:hover{background:#e8fbfc}.destination-card{padding-bottom:4px}.destination-card p{font-size:12px;margin:3px 0 4px;color:#42647b}.primary-block{display:flex;align-items:center;flex-direction:column;gap:6px}.primary-block>.primary{width:100%;min-height:35px}.secondary-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:100%}.secondary-actions button,.insert-btn{background:#f8fcff;border:1px solid #dae9f2;border-radius:16px;font-size:12px;min-height:29px;padding:4px 5px}.insert-btn{width:45%;color:#176887;font-weight:650}.attention-panel{background:#fffbf0;color:#835600;border:1px solid #f3dfa7;border-radius:9px;padding:9px;margin-top:8px}.attention-panel p{margin:3px 0 5px}.attention-actions{display:flex;gap:7px;flex-wrap:wrap}.attention-panel button{border:1px solid #d99000;background:#fff8e1;border-radius:12px;padding:6px 10px;min-height:32px}.footer-nav{display:grid;grid-template-columns:1fr 1fr 1fr;min-height:48px;border-top:1px solid #edf2f6;background:#fff}.tab{border:0;background:transparent;color:#6e8a9d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:10.5px}.tab span{font-size:15px}.tab.active{color:#0088b7;border-bottom:2px solid #00aed8}.popup-menu{position:absolute;right:12px;top:44px;z-index:12;background:#fff;border-radius:10px;border:1px solid var(--border);box-shadow:0 6px 19px #2c5c7840;width:230px;max-width:calc(100% - 24px);padding:6px}.popup-menu button{display:block;width:100%;border:0;background:transparent;font-size:12px;text-align:left;padding:7px;border-radius:5px}.popup-menu button:hover{background:var(--pale)}.modal-backdrop{position:absolute;inset:0;z-index:20;background:#153550a6;display:flex;align-items:center;justify-content:center;padding:12px}.modal{width:100%;max-height:95%;overflow:auto;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 24px #0f314840;padding:12px}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.modal-heading strong{font-size:15px}.modal-note,.modal p{color:#47687f;font-size:12px;line-height:1.4}.modal label{display:block;font-size:12px;font-weight:600;margin:8px 0}.modal input{display:block;width:100%;border:1px solid #bbd6e0;border-radius:8px;padding:9px;margin-top:4px}.modal .primary{width:100%;margin-top:11px}kbd{border:1px solid #bdcfdd;border-radius:4px;padding:1px 4px}.modal #modalMessage{font-size:12px;color:#975500}.modal #signedInBanner{font-size:12px;background:#e3fcf4;padding:9px;border-radius:9px}body.expanded .surface{border-radius:17px}.drag-region{-webkit-app-region:drag}.no-drag{cursor:pointer}@keyframes pulse{0%,100%{transform:scale(.96);opacity:.6}50%{transform:scale(1.09);opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes wave{to{transform:scaleY(.4)}}@media(prefers-reduced-motion:reduce){*,*:after,*:before{animation:none!important;transition:none!important}}
/* v0.1.0.4: file import lives inside Amy's existing expanded panel. */
.version-label{font-size:11px;font-weight:600;color:#496d80;white-space:nowrap;margin-left:2px}
.audio-import-card{padding:9px;margin-bottom:8px}
.file-actions{display:flex;align-items:center;gap:8px;margin-top:7px;flex-wrap:wrap}
.import-btn{background:linear-gradient(115deg,#13C8D8,#54E6E1);border:1px solid #12adba;border-radius:10px;color:#102A43;font-weight:700;font-size:12px;min-height:35px;padding:7px 12px}
.audio-types{font-size:11px;color:#526d80}
.audio-file-status{font-size:11.5px;line-height:1.45;margin:6px 1px 1px;color:#3d6075;overflow-wrap:anywhere}
.backup-selector{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap;font-size:11px;color:#47687f}
.backup-selector label{font-weight:600}
.backup-selector select{flex:1;min-width:155px;max-width:100%;border:1px solid var(--border);border-radius:8px;background:#fff;padding:5px;font-size:11px;color:var(--navy)}
/* v0.1.0.6 — four-tile workspace; the selected tool occupies the same space as the grid. */
.expanded-view{overflow:hidden}
.expanded-view .body-scroll{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0 14px 10px}
.expanded-view .hero{flex:none;padding:3px 0 5px}
.expanded-view .waveform{height:29px}
.expanded-view .voice-controls{flex:none;margin-bottom:6px}
.audio-action-row{flex:none;margin-bottom:9px}
.audio-action-row>.primary{width:100%;min-height:36px}
.feature-stage{flex:1;min-height:0;position:relative;overflow:hidden;border-radius:13px}
.feature-grid{height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
.feature-grid[hidden],.feature-panel[hidden]{display:none!important}
.feature-tile{border:1px solid #b5e9ef;border-radius:14px;background:linear-gradient(135deg,#f5ffff 0%,#e8fbfc 64%,#d5f8fa 100%);box-shadow:0 2px 8px rgba(16,42,67,.09);min-width:0;min-height:0;padding:10px 6px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;text-align:center;transition:background .16s,box-shadow .16s,border-color .16s}
.feature-tile:hover,.feature-tile:focus-visible{background:linear-gradient(135deg,#fff,#d8faff 60%,#bff2f5);border-color:#13c8d8;box-shadow:0 4px 12px rgba(19,200,216,.2)}
.feature-icon{height:46px;min-height:39px;display:flex;align-items:center;justify-content:center}
.feature-icon svg{width:42px;height:42px;fill:none;stroke:#0c7993;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.feature-name{font-weight:750;font-size:14px;line-height:17px;color:#102A43}
.feature-caption{font-size:11px;line-height:13px;color:#537082;max-width:175px}
.feature-panel{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid #b5e9ef;border-radius:13px;background:rgba(248,254,255,.97)}
.feature-topline{height:43px;min-height:43px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9e7ec;padding:5px 10px 5px 13px}
.feature-topline strong{font-size:14px;font-weight:750}
.feature-close{font-size:22px;line-height:1;width:32px;height:32px;background:#e8fbfc;border:1px solid #b5e9ef;border-radius:9px}
.feature-close:hover{background:#d2f7f9}
.feature-content{flex:1;min-height:0;overflow:hidden;padding:10px 11px 9px}
.feature-pane{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;gap:7px}
.feature-pane[hidden]{display:none!important}
.feature-pane .information-card{margin:0;padding:0;border:0;border-radius:0;background:transparent;min-height:0}
.feature-pane .setting-row{margin:0;min-height:38px;flex:none}
.turn-pane .secondary-actions{margin-top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.turn-pane .secondary-actions button{min-height:40px}
.text-pane .transcript-card{height:100%;display:flex;flex-direction:column}
.text-pane textarea{height:auto;min-height:62px;max-height:none;resize:none;flex:1;overflow-y:auto;font-size:13px;line-height:1.45}
.text-pane .card-tools{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.text-pane .card-tools button{font-size:11px;background:#e8fbfc;min-height:30px;white-space:normal}
.destination-pane .destination-card{flex:1;display:flex;flex-direction:column;gap:10px}
.destination-pane .destination-card p{line-height:1.45;overflow-wrap:anywhere}
.destination-pane .destination-card #chooseFieldBtn{margin-top:auto;align-self:flex-start;background:#e8fbfc;border-radius:8px;padding:9px 12px;font-size:12px}
.destination-insert{flex:none;display:flex;justify-content:flex-end}
.destination-insert #insertBtn{width:auto;min-width:130px;height:36px}
.audio-pane .audio-import-card{display:flex;flex-direction:column;gap:5px;height:100%;overflow:hidden}
.audio-pane .audio-types{font-size:10px}
.audio-pane .file-actions{margin:0;gap:5px}
.audio-pane .import-btn{min-height:33px;padding:6px 10px}
.audio-pane .backup-selector{margin:3px 0 0;gap:3px}
.audio-pane .backup-selector select{padding:5px;min-width:0}
.audio-pane .audio-file-status{margin:1px 0;font-size:11px;overflow:hidden;line-height:1.3;max-height:31px}
.audio-recovery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:auto}
.audio-recovery-actions button{background:#e8fbfc;border:1px solid #b5e9ef;border-radius:8px;min-height:31px;font-size:11.5px}
/* Keep recovery guidance IN the four-tile area. Never grow the outer window for an error. */
.feature-stage>.attention-panel{position:absolute;inset:0;z-index:8;margin:0;border-radius:13px;padding:14px;overflow-y:auto;box-shadow:0 2px 8px #102a4322}
.feature-stage>.attention-panel strong{font-size:15px}
.feature-stage>.attention-panel p{font-size:12px;line-height:1.45;margin:8px 0}
.feature-stage>.attention-panel .attention-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-height:575px){.expanded-view .halo.large{height:83px;width:101px}.expanded-view .hero{padding:0}.expanded-view .waveform{height:22px}.expanded-view .voice-controls{margin-bottom:4px}.audio-action-row{margin-bottom:5px}.feature-icon{height:34px;min-height:30px}.feature-icon svg{width:31px;height:31px}.feature-tile{padding:4px;gap:2px}}
