:root{color-scheme:light;--paper:#f6f5ef;--white:#fffefa;--ink:#1d3029;--muted:#53645b;--line:#e3e5db;--green:#254c3c;--dark:#183a2d;--lime:#d8ea9d;--serif:Georgia,'Times New Roman',serif;--sans:Arial,'Helvetica Neue',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #829849;outline-offset:3px}[hidden]{display:none!important}button:disabled{cursor:not-allowed}
.shell{max-width:1184px;margin:0 auto;padding:0 36px}.top{border-bottom:1px solid #e4e5db;background:#faf9f4}.top-inner{height:73px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:19px;letter-spacing:-.55px}.mark{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--green);color:var(--lime)}.brand-accent{color:#718534}.subtle{display:flex;align-items:center;gap:8px;padding:8px 12px;background:transparent;border:1px solid transparent;border-radius:8px}.subtle:hover{background:#eeefe7}.settings{border-color:#e3e5db;font-size:13px}.intro{padding:49px 0 35px}.intro h1{font-family:var(--serif);font-size:clamp(45px,6.6vw,81px);font-weight:400;line-height:1;letter-spacing:-.063em;margin:0 0 17px}.intro h1 span{color:#6a8033}.intro p{font-size:17px;color:var(--muted);margin:0;line-height:1.5}
.workspace{display:grid;grid-template-columns:minmax(0,1.01fr) minmax(0,1fr);gap:24px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:20px}.setup{padding:27px}.panel h2,.dialog-top h2{font-family:var(--serif);margin:0;font-size:27px;font-weight:400;letter-spacing:-.75px}.drop{width:100%;display:flex;flex-direction:column;align-items:center;border:1px dashed #9ca98b;border-radius:12px;background:#f6f8ef;padding:19px 14px 17px;margin-top:19px;gap:5px;min-height:157px}.drop:is(:hover,.drag){background:#eef2df;border-color:#536c43}.drop strong{font-size:15px;margin-top:4px;max-width:100%;overflow-wrap:anywhere}.drop span:not(.upload-icon),.drop small{font-size:13px;color:#53645b}.drop small{font-size:11px;margin-top:6px}.upload-icon{display:grid;place-items:center;background:#e7eddb;width:36px;height:36px;border-radius:10px;color:var(--green)}.language-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 19px}label{font-size:13px;font-weight:700;display:block;line-height:1.35}select,.dialog-content input{display:block;background:#fffefa;border:1px solid #dce1d5;border-radius:9px;width:100%;min-height:43px;margin-top:7px;padding:8px 10px;color:var(--ink)}select{max-width:100%}.voice-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.text-btn{display:flex;align-items:center;gap:5px;background:none;border:0;color:#305841;font-weight:650;font-size:12px;padding:4px}.text-btn:hover{text-decoration:underline}.voices{display:flex;gap:8px}.voice-mode{background:#fffefa;border:1px solid #dce1d5;border-radius:8px;padding:8px 10px;font-size:12px;min-height:37px;white-space:normal;line-height:1.25}.voice-mode[aria-pressed=true]{border-color:#5b8159;background:#eef3e2}.voice-select{margin:0;min-width:0;flex:1;min-height:37px;font-size:12px}.muted{color:var(--muted);font-size:12px;line-height:1.5}.voice-note{margin:7px 0 14px;min-height:18px}.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--green);color:#fffefa;border:0;border-radius:9px;padding:11px 18px;min-height:46px;position:relative;font-weight:700}.primary .right-icon{position:absolute;right:13px}.primary:hover{background:#326147}.primary:disabled{opacity:.6}.feedback{font-size:13px;line-height:1.4;margin:10px 0 0;color:var(--muted);overflow-wrap:anywhere}.feedback:empty{display:none}.feedback[data-error=true]{color:#893927}
.player{background:radial-gradient(ellipse at 92% 1%,#2e5745 0,transparent 57%),var(--dark);border-radius:20px;color:#f4f6ec;padding:22px 23px 17px;min-height:313px}.player-top{display:flex;align-items:center;gap:8px;color:#d1ddca;font-size:12px;font-weight:600}.player-top svg{color:#d8ea9d}.player-lang{margin-left:auto;color:#e4edda;border:1px solid #63816e;border-radius:20px;padding:5px 9px;font-size:11px}.record{display:flex;gap:20px;margin:20px 0 18px;align-items:center}.cover{width:91px;height:115px;border-radius:4px 8px 8px 4px;flex:none;position:relative;background:linear-gradient(140deg,#537c62,#2b4538 65%);box-shadow:0 6px 17px #081d157a;overflow:hidden;border-left:3px solid #ffffff44;display:grid;align-items:end}.demo-cover{background-image:linear-gradient(0deg,#10272a 0%,#10272a25 76%),url('/lighthouse.webp');background-position:center;background-size:cover}.cover span{font-family:var(--serif);font-size:14px;padding:8px 8px 10px;line-height:1;overflow-wrap:anywhere}.book-info{min-width:0}.book-info div{font-size:11px;color:#c9d9c6;margin-bottom:7px}.book-info h2{font-family:var(--serif);font-size:clamp(24px,3.2vw,38px);font-weight:400;letter-spacing:-.045em;margin:0;overflow-wrap:anywhere;line-height:1.03}.book-info p{margin:8px 0 0;color:#c6d7c5;font-size:13px;overflow-wrap:anywhere}.timeline input{width:100%;display:block;margin:0;accent-color:var(--lime);cursor:pointer}.player-time{display:flex;justify-content:space-between;font-size:11px;color:#d2dfcf;margin-top:5px;font-variant-numeric:tabular-nums}.controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:7px}.transport{display:flex;align-items:center;gap:16px}.player-button,.play,.speed{display:grid;place-items:center;border:0;background:transparent;color:#e8efe6;padding:8px;border-radius:8px}.player-button:hover,.speed:hover{background:#ffffff18}.player-button:disabled{opacity:.38}.play{width:51px;height:51px;border-radius:50%;background:var(--lime);color:#172d21}.play:hover{background:#e9f3ba}.play svg{width:22px;height:22px}.speed{border:1px solid #64816f;justify-self:start;padding:6px 8px;font-size:12px;min-width:38px}.export{justify-self:end}.chapters{margin-top:14px;padding:16px 18px 10px}.chapter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.chapter-header h2{font-size:22px}.chapter-header span{font-size:12px;color:var(--muted)}#chapterList{max-height:235px;overflow:auto}.chapter{width:100%;display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:8px;background:none;border:0;border-radius:8px;text-align:left;padding:8px;color:var(--ink);min-height:39px}.chapter:hover{background:#f4f5eb}.chapter[aria-current=true]{background:#eff3e3;font-weight:700}.chapter .num,.chapter .length{font-size:11px;color:#53645b;font-variant-numeric:tabular-nums}.chapter .caption{overflow-wrap:anywhere;font-size:13px}.chapter[aria-current=true] .num{color:#42664d}
footer{display:flex;justify-content:space-between;gap:12px;color:#57685c;font-size:12px;padding:21px 0 30px;margin-top:29px;border-top:1px solid var(--line)}[data-icon]{display:inline-grid;place-items:center;vertical-align:middle}svg{width:17px;height:17px;display:block}.mark svg,.upload-icon svg{width:20px;height:20px}
dialog{width:min(480px,calc(100% - 24px));border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--white);padding:0}dialog::backdrop{background:#10271db3}.dialog-content{padding:24px}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-content p{line-height:1.5}.dialog-content label{margin-top:14px}.dialog-content .primary{margin-top:17px}.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);border-radius:10px;padding:12px 16px;background:#21372f;color:#fff;max-width:min(520px,calc(100% - 24px));width:max-content;box-shadow:0 3px 25px #0004;font-size:13px;z-index:3}
@media(max-width:780px){.shell{padding:0 22px}.workspace{grid-template-columns:1fr;gap:16px}.intro{padding:32px 0 24px}.intro p{font-size:15px}.top-inner{height:63px}.setup{padding:20px}.player{padding:18px}.record{gap:15px}.book-info h2{font-size:30px}.chapters{margin-top:12px}footer{margin-top:19px}}
@media(max-width:365px){.shell{padding:0 13px}.setup{padding:15px}.brand{font-size:16px}.settings{padding:7px}.voices{flex-wrap:wrap}.voice-select{flex-basis:100%}.cover{width:74px;height:99px}.book-info h2{font-size:25px}}

.demo-lang{margin-top:0;width:auto;min-height:27px;color:#e4edda;background:#294b3b;padding:3px 8px}

.chapter-header{gap:9px;justify-content:flex-start}.chapter-header #chapterCount{margin-right:auto}

.voice-label{font-size:13px;font-weight:700}.voice-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.voice-group{min-width:0}.voice-group h3{font-size:12px;margin:0 0 7px;color:var(--muted);font-weight:600}.voice-card{display:flex;align-items:stretch;border:1px solid #dce1d5;background:#fffefa;border-radius:9px;margin-bottom:5px;min-height:48px}.voice-card:has([aria-pressed=true]){border-color:#5b8159;background:#eef3e2}.voice-card:hover{border-color:#84987c}.voice-pick{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1;min-width:0;gap:3px;text-align:left;padding:6px 7px 6px 9px;border:0;background:transparent;border-radius:9px}.voice-pick strong{font-size:13px}.voice-pick small{color:var(--muted);font-size:11px;line-height:1.2}.voice-play{display:grid;place-items:center;flex:none;width:38px;color:#305841;margin:3px 3px 3px 0;border:0;border-radius:7px;background:#eef2e8}.voice-play:hover,.voice-play[aria-pressed=true]{background:#dce9c8}.voice-play svg{width:15px;height:15px}.voice-gallery+.voice-note{margin-top:5px}
@media(max-width:365px){.voice-gallery{gap:6px}.voice-pick{padding-left:6px}.voice-play{width:32px}}

.preparation{margin:10px 0 15px;color:#dae6cf;font-size:12px;line-height:1.5}.preparation progress{display:block;width:100%;height:7px;margin-top:7px;accent-color:#d8ea9d}

.upload-progress {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.upload-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 7px;
  accent-color: var(--green);
}
.book-summary {
  padding: 9px 11px;
  margin: 11px 0 0;
  background: #eef3e7;
  color: #365341;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.connection-banner {
  background: #faf3df;
  border: 1px solid #e5d8af;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.connection-banner p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.connection-banner .text-btn {
  flex: none;
}
.preparation-eta {
  display: block;
  font-size: 11px;
  margin-top: 7px;
  color: #c1d4bd;
}
.secondary {
  display: block;
  width: 100%;
  border: 1px solid #acbba6;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 13px;
  margin-top: 15px;
  background: #f1f5e8;
  font-weight: 600;
}
.provider-link {
  display: inline-block;
  color: #305841;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.technical-info {
  font-size: 13px;
  margin-top: 15px;
}
.technical-info summary {
  cursor: pointer;
}
.voice-card {
  min-height: 61px;
  padding: 3px;
}
.voice-pick {
  padding: 9px 6px 9px 8px;
}
.voice-pick strong {
  font-size: 14px;
}
.voice-pick small {
  margin-top: 2px;
}
.voice-play {
  min-width: 38px;
  min-height: 44px;
}
.voice-mode {
  min-height: 42px;
}
.setup {
  box-shadow: 0 8px 30px #1d302904;
}
@media (max-width: 440px) {
  .connection-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .voice-mode {
    padding: 7px 9px;
  }
}

.import-formats{margin:12px 0;color:#43534b;font-size:14px;line-height:1.55}.import-formats summary{cursor:pointer}.import-formats p{margin:10px 0}#uploadText{overflow-wrap:anywhere;line-height:1.45}
