:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Noto Sans SC","Microsoft YaHei",sans-serif;color:#17221f;background:#f7f4ed;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.shell{max-width:1390px;margin:auto;padding:0 40px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dcded4}.brand{display:flex;align-items:center;gap:12px;color:#20332b;text-decoration:none;font-size:19px;font-weight:760;letter-spacing:.025em}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:#1e5745;color:#fff;border-radius:8px;font-family:serif;font-size:23px}.brand-light{font-weight:450;color:#64766d}.top-actions{display:flex;align-items:center;gap:22px}.secure-label{font-size:12px;color:#668074}.secure-dot{display:inline-block;width:6px;height:6px;background:#78ac83;border-radius:50%;margin-right:7px;vertical-align:2px}.icon-btn{border:1px solid #d7dcd3;background:#fff;border-radius:50%;width:37px;height:37px;color:#2c4c3e;font-size:18px;display:grid;place-items:center}.intro{padding:53px 0 44px}.eyebrow,.step{font-size:10px;color:#50846c;letter-spacing:.19em;font-weight:800}.eyebrow{display:flex;align-items:center;gap:12px}.line{width:26px;height:1px;background:#50846c}h1{font-family:Georgia,"Noto Serif SC",serif;letter-spacing:-.05em;font-weight:500;font-size:clamp(38px,4.1vw,62px);line-height:1.2;margin:20px 0 15px}h1 em{font-style:normal;color:#477b5f}.intro p{color:#65736a;font-size:15px;line-height:1.7;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:24px}.card{background:#fff;border:1px solid #e3e6dc;box-shadow:0 8px 30px rgba(30,54,42,.035);border-radius:16px;padding:29px 31px 30px;min-width:0}.card-heading,.history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.card-heading h2,.history-heading h2,.settings h2{font-family:Georgia,"Noto Serif SC",serif;font-size:25px;font-weight:600;margin:8px 0 29px}.hint{color:#8a968d;font-size:11px;margin-top:11px}.field-row{display:grid;gap:14px;margin-bottom:16px}.field-row.two{grid-template-columns:1fr 1fr}.field{display:flex;flex-direction:column;gap:9px;color:#53645b;font-size:12px;font-weight:650}.field select,.field input{width:100%;appearance:none;background:#f8f9f5;border:1px solid #e0e5da;border-radius:8px;color:#21382e;height:45px;padding:0 13px;outline:none}.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364786d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}.field select:focus,.field input:focus,textarea:focus{border-color:#4e9872;box-shadow:0 0 0 3px rgba(78,152,114,.12)}.input-label{display:flex;justify-content:space-between;margin:24px 0 9px;color:#53645b;font-size:12px;font-weight:650}.input-label span{color:#a2aca4;font-weight:500}textarea{width:100%;height:126px;resize:vertical;padding:15px;border:1px solid #e0e5da;background:#f8f9f5;border-radius:9px;color:#1c2b24;outline:none;line-height:1.65}textarea::placeholder{color:#a0a9a0}.record-panel{display:flex;align-items:center;gap:16px;background:#f4f8f4;border:1px solid #e4eee4;border-radius:10px;padding:13px 14px;margin-top:13px}.record-btn{background:#fff;color:#286747;border:1px solid #a9d4b6;border-radius:8px;padding:10px 15px;font-weight:700;white-space:nowrap;font-size:13px}.record-btn.recording{background:#b83d34;color:#fff;border-color:#b83d34}.mic-icon{margin-right:6px}.record-meta{font-size:11px;color:#798b7f;line-height:1.6}.record-time{font-weight:760;color:#24553c;font-variant-numeric:tabular-nums;font-size:13px}.record-time span{font-weight:400;color:#a5b2a8}.status{min-height:24px;margin:13px 0 10px;color:#68826e;font-size:12px}.status.error{color:#b23a33}.primary-btn{width:100%;border:0;border-radius:9px;background:#1e6247;color:#fff;min-height:50px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;font-weight:700;box-shadow:0 5px 12px rgba(20,91,57,.13)}.primary-btn:hover{background:#145038}.result{position:relative}.result-language{background:#f2f5ef;color:#47765b;border-radius:5px;padding:6px 8px;font-size:12px;font-weight:760;letter-spacing:.08em}.empty-result{height:424px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-symbol{font-family:Georgia,serif;color:#a9c5ad;font-size:82px;height:119px}.empty-symbol span{color:#a2bca5;font-size:42px}.empty-result h3{font-family:Georgia,"Noto Serif SC",serif;font-size:22px;font-weight:500;color:#314d3b;margin:8px 0}.empty-result p{font-size:13px;color:#96a49a}.filled-result{min-height:424px;display:flex;flex-direction:column}.filled-result[hidden]{display:none}.result-caption{color:#649477;font-size:11px;letter-spacing:.07em;font-weight:750}.translated-text{font-family:Georgia,"Noto Serif SC",serif;font-size:clamp(24px,2.2vw,34px);line-height:1.5;color:#243c2d;white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0 25px}.divider{border-top:1px solid #e9ece5;margin-bottom:21px}.original-text{color:#718077;font-size:14px;line-height:1.75;margin:9px 0 24px;white-space:pre-wrap;overflow-wrap:anywhere}.audio-tools{display:flex;align-items:center;gap:13px;background:#f5f8f3;border-radius:9px;padding:12px;margin-top:auto}.play-btn{border:0;background:#2c7652;color:#fff;width:43px;height:43px;border-radius:50%;flex:none}.audio-main{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%}.audio-title{font-weight:700;font-size:12px;color:#314c3a}.audio-title span{display:block;color:#91a095;font-weight:400;font-size:11px;margin-top:4px}.speed-group{display:flex;gap:3px;background:#e8eee8;padding:3px;border-radius:6px}.speed-group button{border:0;background:transparent;color:#78927e;padding:5px 6px;border-radius:4px;font-size:11px}.speed-group button.active{background:#fff;color:#2f684c;box-shadow:0 1px 3px #c9d5c9}.result-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.result-buttons button{border:1px solid #d7e2d8;background:#fff;color:#286648;border-radius:8px;padding:11px;font-weight:700;font-size:12px}.result-buttons button:hover{background:#f1f7f0}.history-section{padding:49px 0 75px}.history-heading{align-items:center}.history-heading h2{margin:8px 0 22px}.history-heading h2 span{font:500 13px Inter,sans-serif;color:#91a596;margin-left:8px}.text-btn{background:none;border:0;color:#286648;text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:700}.history-list{display:grid;gap:9px}.history-empty{border:1px dashed #cfd9ce;border-radius:9px;color:#96a397;text-align:center;padding:34px;font-size:13px}.history-item{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:18px;background:#fff;border:1px solid #e2e8df;border-radius:9px;padding:14px 16px}.history-index{color:#87a593;font:italic 24px Georgia,serif}.history-text{min-width:0}.history-text strong,.history-text span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-text strong{font-size:14px;color:#324e3b}.history-text span{margin-top:5px;color:#95a097;font-size:12px}.history-item button{background:#f2f7f2;border:0;border-radius:6px;color:#316d4f;padding:9px 11px;font-size:12px}footer{border-top:1px solid #dcded4;display:flex;justify-content:space-between;color:#9ba69a;font-size:11px;padding:23px 0 35px}dialog{border:0;padding:0;max-width:440px;width:calc(100% - 32px);border-radius:14px;box-shadow:0 20px 70px #142a2560}dialog::backdrop{background:#14291fb0}.settings{padding:28px}.settings-head{display:flex;justify-content:space-between}.settings h2{margin-bottom:10px}.settings p{font-size:13px;color:#66796b;line-height:1.6;margin:0 0 22px}.settings .field{margin-bottom:16px}.settings .status{margin-bottom:0}@media(max-width:850px){.shell{padding:0 22px}.workspace{grid-template-columns:1fr}.intro{padding:38px 0 32px}.result{min-height:360px}.empty-result{height:280px}.filled-result{min-height:300px}.history-section{padding-top:38px}}@media(max-width:500px){.shell{padding:0 16px}.topbar{height:69px}.brand{font-size:16px}.brand-mark{width:31px;height:31px;font-size:20px}.secure-label{display:none}.intro{padding:30px 0 26px}.intro h1{font-size:40px;margin:16px 0 11px}.intro p{font-size:13px}.workspace{gap:14px}.card{padding:21px 18px}.card-heading h2{font-size:23px;margin-bottom:23px}.field-row{gap:9px}.field select{font-size:13px}.record-panel{gap:10px}.record-btn{padding:10px}.record-meta{font-size:10px}.history-item{grid-template-columns:32px 1fr auto;gap:9px;padding:12px}.history-index{font-size:20px}.history-item button{padding:8px}.audio-main{flex-wrap:wrap}.speed-group{margin-left:auto}footer span:last-child{display:none}}

.preferences-summary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f8f4;border:1px solid #dbe9dd;border-radius:9px;padding:13px 15px;color:#2f634a;text-align:left;font-size:13px;font-weight:700}
.preferences-summary span:last-child{flex:none;color:#50846c;font-size:12px}
.preferences-summary:hover{background:#eaf4eb}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.settings-grid .field{margin:0}
.record-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:30px;min-width:78px;margin-left:auto}
.record-wave[hidden]{display:none}
.record-wave span{width:3px;height:4px;background:#89a995;border-radius:3px;transition:height 70ms ease,background 70ms ease}
.record-wave.active span{background:#2e9863}
@media(max-width:500px){.record-panel{flex-wrap:wrap}.record-wave{min-width:60px}.settings-grid{gap:10px}.settings{padding:22px}}

/* Compact phone layout keeps the complete input flow in the first viewport. */
@media(max-width:600px){
  .shell{padding:0 16px}
  .topbar{height:62px}
  .topbar .icon-btn{width:44px;height:44px;font-size:21px}
  .intro{padding:13px 0 12px}
  .intro .eyebrow{display:flex;margin-bottom:9px}
  .intro p{display:none}
  .intro h1{font-size:clamp(28px,8vw,34px);line-height:1.18;margin:0;letter-spacing:-.06em}
  .workspace{gap:12px}
  .composer{display:flex;flex-direction:column;padding:14px 17px 17px}
  .composer .card-heading{display:flex;align-items:center;margin-bottom:13px}
  .composer .card-heading h2,.composer .preferences-summary{display:none}
  .composer .hint{margin:0;font-size:11px}
  .composer .record-panel{order:0;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:5px;min-height:112px;margin:18px 0 0;padding:10px;background:#f4f8f4;border:1px solid #e4eee4}
  .composer .record-btn{min-width:120px;min-height:48px;padding:12px;border-radius:10px;font-size:15.6px;box-shadow:0 6px 20px rgba(35,98,61,.1)}
  .composer .mic-icon{font-size:16px;margin-right:7px}
  .composer .record-meta{text-align:center;font-size:11px}
  .composer .record-time{font-size:15px}
  .composer .record-wave{margin:0;min-width:78px}
  .composer .input-label{order:0;margin:0 0 7px;font-size:13px}
  .composer textarea{order:0;min-height:76px;height:90px;resize:vertical}
  .composer .text-resize-handle{order:0;display:flex}
  .composer .status{order:0;min-height:20px;margin:8px 0 6px}
  .composer #translateBtn{order:0;min-height:48px}
}

.text-resize-handle{display:none;align-items:center;justify-content:center;height:18px;touch-action:none;cursor:ns-resize;color:#a3b8a7}
.text-resize-handle span{width:32px;height:4px;border-radius:4px;background:currentColor}
.text-resize-handle:focus-visible{outline:2px solid #4e9872;outline-offset:2px}

