*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#0a0a0f;color:#e0e0e8;min-height:100vh;line-height:1.5}
a{color:#7c8aff;text-decoration:none}
a:hover{text-decoration:underline}
button{cursor:pointer;font:inherit;border:none;background:none;color:inherit}

.app{max-width:720px;margin:0 auto;padding:24px 16px;min-height:100vh;display:flex;flex-direction:column}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #1a1a2e;margin-bottom:24px}
.brand{display:flex;align-items:center;gap:10px;font-size:1.1rem;font-weight:700;letter-spacing:-.02em;color:#e0e0e8}
.brand-icon{width:28px;height:28px}
.auth-actions{display:flex;gap:8px}
.auth-btn{padding:6px 14px;border-radius:6px;font-size:.85rem;font-weight:500;background:#1a1a2e;color:#a0a0b8;border:1px solid #2a2a3e;transition:all .15s}
.auth-btn:hover{background:#22223a;color:#e0e0e8;border-color:#3a3a5e}
.auth-btn.ghost{background:transparent;border-color:#2a2a3e}

.notice{padding:10px 14px;border-radius:8px;font-size:.85rem;margin-bottom:16px;background:#1a1a2e;border:1px solid #2a2a3e}
.notice.ok{background:#0a2a1a;border-color:#1a4a2a;color:#4ade80}
.notice.warn{background:#2a2a0a;border-color:#4a4a1a;color:#fbbf24}
.notice.error{background:#2a0a0a;border-color:#4a1a1a;color:#f87171}

.hero{text-align:center;padding:32px 0 24px}
.hero-icon{margin:0 auto 16px}
.hero-title{font-size:2rem;font-weight:800;letter-spacing:-.03em;margin-bottom:8px;background:linear-gradient(135deg,#7c8aff,#a78bfa,#c084fc);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{color:#8888a0;font-size:1rem;max-width:400px;margin:0 auto}

.upload-zone{border:2px dashed #2a2a3e;border-radius:16px;padding:48px 24px;text-align:center;cursor:pointer;transition:all .2s;background:#0d0d18;margin:16px 0 24px}
.upload-zone:hover,.upload-zone.dragover{border-color:#7c8aff;background:#0d0d20}
.upload-zone.has-file{border-color:#4ade80;border-style:solid;cursor:default}
.upload-zone.has-file:hover{border-color:#4ade80;background:#0d0d18}
.upload-icon{width:48px;height:48px;margin:0 auto 12px;opacity:.5}
.upload-label{font-size:1rem;color:#a0a0b8;margin-bottom:4px}
.upload-hint{font-size:.8rem;color:#666680}
.upload-input{display:none}
.file-info{display:flex;align-items:center;gap:12px;justify-content:center;padding:4px 0}
.file-name{font-weight:600;color:#e0e0e8;font-size:.95rem;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-size{color:#8888a0;font-size:.8rem}
.file-remove{color:#f87171;font-size:.8rem;padding:2px 8px;border-radius:4px;background:#2a0a0a;border:1px solid #4a1a1a}
.file-remove:hover{background:#3a1a1a}

.transcribe-btn{width:100%;padding:14px;border-radius:10px;font-size:1rem;font-weight:600;background:linear-gradient(135deg,#7c8aff,#6366f1);color:#fff;transition:all .15s;margin-bottom:24px}
.transcribe-btn:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}
.transcribe-btn:disabled{opacity:.4;cursor:not-allowed}

.progress-section{margin-bottom:24px}
.progress-bar{height:4px;background:#1a1a2e;border-radius:2px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#7c8aff,#a78bfa);border-radius:2px;transition:width .3s;width:0}
.progress-text{font-size:.85rem;color:#8888a0;margin-top:8px;text-align:center}

.result-section{flex:1;display:flex;flex-direction:column}
.result-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.result-title{font-size:1rem;font-weight:700;color:#e0e0e8}
.result-actions{display:flex;gap:8px}
.result-btn{padding:5px 12px;border-radius:6px;font-size:.8rem;font-weight:500;background:#1a1a2e;color:#a0a0b8;border:1px solid #2a2a3e;transition:all .15s}
.result-btn:hover{background:#22223a;color:#e0e0e8}
.result-btn.copied{background:#0a2a1a;border-color:#1a4a2a;color:#4ade80}
.result-box{background:#0d0d18;border:1px solid #1a1a2e;border-radius:12px;padding:20px;font-size:.9rem;line-height:1.7;color:#d0d0e0;white-space:pre-wrap;word-break:break-word;flex:1;min-height:200px;overflow-y:auto;max-height:500px}

.how-it-works{margin-top:auto;padding-top:32px}
.how-it-works h3{font-size:.9rem;font-weight:700;color:#8888a0;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
.how-it-works ul{list-style:none;display:grid;gap:8px}
.how-it-works li{display:flex;align-items:flex-start;gap:10px;font-size:.85rem;color:#a0a0b8}
.how-it-works li::before{content:"";display:block;width:6px;height:6px;border-radius:50%;background:#7c8aff;margin-top:7px;flex-shrink:0}

.footer{text-align:center;padding:24px 0 8px;font-size:.8rem;color:#555568}

.screen{display:none}
.screen.active{display:flex;flex-direction:column;flex:1}

.spinner{width:32px;height:32px;border:3px solid #1a1a2e;border-top-color:#7c8aff;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}

.cost-note{text-align:center;font-size:.75rem;color:#666680;margin-top:8px}

@media(max-width:480px){
  .app{padding:16px 12px}
  .hero-title{font-size:1.5rem}
  .upload-zone{padding:32px 16px}
}
