:root{--bg: #0d1117;--surface: #161b22;--surface-2: #21262d;--border: #30363d;--text: #e6edf3;--muted: #9198a1;--primary: #1f6feb;--primary-hover: #388bfd;--danger: #f85149;--recording: #f85149;--radius: 12px;font-family:Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);line-height:1.5}#root{min-height:100vh}.app{max-width:1100px;margin:0 auto;padding:1.5rem;display:flex;flex-direction:column;min-height:100vh}.app-header h1{margin:0;font-size:1.75rem;letter-spacing:.5px}.tagline{margin:.25rem 0 0;color:var(--muted)}.app-footer{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--muted);font-size:.875rem}.main-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.5rem;align-items:start;margin-top:1.5rem}.stage{display:flex;flex-direction:column;gap:1rem}@media (max-width: 900px){.main-layout{grid-template-columns:1fr}.history{max-height:260px}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem}.card.center{text-align:center}.record-wrap{display:flex;justify-content:center;margin-bottom:1rem}.record-button{width:200px;height:200px;border-radius:50%;border:4px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;transition:transform .15s ease,border-color .15s ease;font-size:1.1rem;font-weight:600}.record-button:hover{transform:scale(1.03);border-color:var(--primary)}.record-button:active{transform:scale(.97)}.record-button.recording{border-color:var(--recording);background:#f851491f;animation:pulse-ring 1.4s ease-in-out infinite}@keyframes pulse-ring{0%,to{box-shadow:0 0 #f8514973}50%{box-shadow:0 0 0 18px #f8514900}}.record-icon{width:26px;height:26px;border-radius:50%;background:var(--recording)}.record-button:not(.recording) .record-icon{background:var(--muted)}.waveform{display:flex;align-items:center;justify-content:center;gap:3px;height:110px;margin:1rem 0}.waveform-bar{width:5px;background:linear-gradient(to top,var(--primary),var(--primary-hover));border-radius:3px;transition:height 60ms linear}.hint{color:var(--muted);max-width:46ch;margin:0 auto;min-height:1.5em}.accent-select{display:inline-flex;align-items:center;gap:.5rem;margin-top:.75rem;color:var(--muted);font-size:.85rem}.accent-select select{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.35rem .6rem;font-size:.85rem;cursor:pointer}.accent-select select:disabled{opacity:.6;cursor:not-allowed}.live-transcript{min-height:1.5em;font-size:1.05rem;background:var(--surface-2);border-radius:8px;padding:.75rem 1rem;margin:1rem auto 0;max-width:100%}.live-transcript em{color:var(--muted)}.prompt-text{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;resize:vertical}.prompt-text:focus{outline:2px solid var(--primary-hover);outline-offset:2px}.actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-top:1rem}button{font:inherit;padding:.7rem 1.4rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;transition:background .15s ease,border-color .15s ease;min-height:44px}button:hover:not(:disabled){border-color:var(--primary-hover)}button:focus-visible{outline:2px solid var(--primary-hover);outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--primary);border-color:var(--primary);font-weight:600}button.primary:hover:not(:disabled){background:var(--primary-hover)}.image-panel{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);min-height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:1rem 0}.image-panel img{max-width:100%;max-height:70vh;display:block}.loading{display:flex;align-items:center;gap:.75rem;color:var(--muted)}.spinner{width:22px;height:22px;border:3px solid var(--border);border-top-color:var(--primary-hover);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.meta{font-size:.85rem;margin:.5rem 0 0}.image-placeholder{padding:2rem;color:var(--muted);max-width:40ch}.image-placeholder .placeholder-title{font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.notice{color:#d29922;background:#d299221f;border:1px solid rgba(210,153,34,.4);border-radius:8px;padding:.75rem 1rem;margin:1rem 0 0}.history{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}.history h2{margin:0 0 .75rem;font-size:1rem}.history ul{list-style:none;margin:0;padding:0;max-height:60vh;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem}.history-item{display:flex;align-items:center;gap:.6rem;text-align:left;padding:.5rem;width:100%;min-height:64px}.history-item img{width:56px;height:56px;object-fit:cover;border-radius:6px;flex-shrink:0}.history-thumb-placeholder{width:56px;height:56px;border-radius:6px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--muted);flex-shrink:0}.history-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.85rem}.history li{display:flex;flex-direction:column}.history-actions{display:flex;gap:.35rem;padding:.25rem .5rem .5rem}.history-action{flex:1;background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.3rem .5rem;font-size:.75rem;cursor:pointer;transition:border-color .15s ease,color .15s ease}.history-action:hover{border-color:var(--primary);color:var(--primary-hover)}.history-action-danger:hover{border-color:var(--danger);color:var(--danger)}.feedback{text-align:left}.feedback h2{margin-top:0}.rating{display:flex;gap:.25rem;margin-bottom:.75rem}.rating-star{font-size:1.5rem;padding:.25rem .5rem;color:var(--muted);min-height:0}.rating-star.active{color:#f0b429}.error{color:var(--danger);background:#f851491a;border:1px solid rgba(248,81,73,.4);border-radius:8px;padding:.75rem 1rem;margin:1rem 0 0}.status{color:var(--primary-hover);margin:1rem 0 0}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
