:root{--ink:#10231a;--muted:#68776f;--dark:#063b24;--green:#11944e;--lime:#20b563;--soft:#eaf8ef;--pale:#f5fbf7;--line:#dce8e0;--white:#fff;--shadow:0 24px 70px rgba(8,61,37,.1)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;margin:0;color:var(--ink);background:radial-gradient(circle at 92% 5%,rgba(32,181,99,.12),transparent 22rem),#f8fbf9;font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}a{color:inherit;text-decoration:none}svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}
.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;width:min(1240px,calc(100% - 40px));height:80px;margin:auto;border-bottom:1px solid rgba(6,59,36,.1)}.brand{display:flex;align-items:center;gap:10px;width:max-content}.brand img{width:42px;height:42px;border-radius:50%;background:#fff;object-fit:contain}.brand span{display:flex;flex-direction:column;line-height:1}.brand strong{font-size:1.08rem;letter-spacing:-.035em}.brand small{margin-top:6px;color:var(--green);font-size:.62rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.topbar-badges{display:flex;gap:8px}.topbar-badges span{padding:8px 11px;border:1px solid var(--line);border-radius:999px;color:#53655b;background:#ffffffb3;font-size:.72rem;font-weight:700}.help-link{justify-self:end;color:#506259;font-size:.78rem;font-weight:700}
.intro{max-width:820px;margin:72px auto 40px;padding:0 24px;text-align:center}.intro-pill{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--green);background:#ffffffbf;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.intro-pill i{width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 5px rgba(32,181,99,.11)}h1{margin-bottom:18px;font-size:clamp(2.7rem,5.5vw,5.1rem);line-height:1;letter-spacing:-.065em}h1 span{color:transparent;background:linear-gradient(110deg,var(--dark),var(--lime));background-clip:text;-webkit-background-clip:text}.intro>p{max-width:650px;margin:0 auto;color:var(--muted);font-size:1.02rem;line-height:1.7}
.workspace{width:min(1120px,calc(100% - 32px));margin:0 auto 100px}.workflow{display:flex;align-items:center;justify-content:center;margin-bottom:22px;padding:16px 28px;border:1px solid #fff;border-radius:22px;background:#ffffffb8;box-shadow:0 12px 35px rgba(8,61,37,.05);backdrop-filter:blur(12px)}.workflow-step{display:flex;align-items:center;gap:10px;color:#8a9890}.workflow-step>b{display:grid;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:.75rem;place-items:center}.workflow-step>span{display:flex;flex-direction:column}.workflow-step strong{font-size:.76rem}.workflow-step small{margin-top:3px;font-size:.62rem}.workflow-step.is-active,.workflow-step.is-complete{color:var(--ink)}.workflow-step.is-active>b{border-color:var(--green);color:#fff;background:var(--green);box-shadow:0 7px 16px rgba(17,148,78,.25)}.workflow-step.is-complete>b{border-color:var(--soft);color:var(--green);background:var(--soft)}.workflow>i{width:80px;height:1px;margin:0 22px;background:var(--line)}
.upload-panel,.preview-panel,.export-panel{border:1px solid #fff;border-radius:28px;background:#fffffff0;box-shadow:var(--shadow)}.upload-panel{display:grid;grid-template-columns:.75fr 1.25fr;gap:32px;align-items:center;padding:28px}.panel-label{display:block;margin-bottom:9px;color:var(--green);font-size:.65rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.upload-copy h2,.panel-heading h2,.help-section h2{margin-bottom:8px;font-size:1.55rem;line-height:1.15;letter-spacing:-.045em}.upload-copy p,.panel-heading p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.6}.drop-zone{display:flex;min-height:132px;align-items:center;justify-content:center;gap:16px;padding:22px;border:1.5px dashed #a9cdb7;border-radius:20px;background:var(--pale);cursor:pointer;transition:.2s}.drop-zone:hover,.drop-zone:focus-visible,.drop-zone.is-dragging{border-color:var(--green);background:#ecf9f1;outline:none;transform:translateY(-2px)}.upload-icon{display:grid;width:50px;height:50px;flex:none;border-radius:16px;color:#fff;background:linear-gradient(145deg,var(--dark),var(--lime));box-shadow:0 12px 22px rgba(17,148,78,.22);place-items:center}.upload-icon svg{width:23px}.drop-copy{display:flex;flex-direction:column}.drop-copy strong{font-size:.88rem}.drop-copy small{margin-top:7px;color:var(--muted);font-size:.72rem}.drop-copy u{color:var(--green);font-weight:700}.file-card{min-height:92px;align-items:center;gap:14px;padding:18px 20px;border:1px solid #cde6d5;border-radius:18px;background:var(--pale)}.file-card:not([hidden]){display:flex}.file-icon{display:grid;width:48px;height:56px;flex:none;border-radius:8px;color:#fff;background:linear-gradient(145deg,#0b7943,var(--lime));font-size:.58rem;font-weight:900;place-items:center}.file-details{display:flex;min-width:0;flex:1;flex-direction:column}.file-details strong{overflow:hidden;font-size:.84rem;text-overflow:ellipsis;white-space:nowrap}.file-details small{margin-top:6px;color:var(--muted);font-size:.68rem}.file-card button{padding:7px 10px;border:0;color:var(--green);background:transparent;font-size:.7rem;font-weight:800;cursor:pointer}.file-check{display:grid;width:28px;height:28px;border-radius:50%;color:#fff;background:var(--lime);font-size:.75rem;place-items:center}
.preview-panel,.export-panel{margin-top:20px;padding:28px}.panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.panel-heading h2{margin-bottom:0}.preview-status{display:flex;min-width:0;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:999px;color:#607067;background:#fafcfb;font-size:.7rem;font-weight:700}.preview-status i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--lime)}.preview-status span{overflow:hidden;max-width:250px;text-overflow:ellipsis;white-space:nowrap}.book-frame{position:relative;overflow:hidden;min-height:660px;border:1px solid var(--line);border-radius:20px;background:#fff}.preview-tip{position:absolute;z-index:5;top:14px;left:50%;padding:8px 11px;border-radius:999px;color:#fff;background:#063b24e8;box-shadow:0 7px 18px rgba(6,59,36,.2);font-size:.64rem;font-weight:700;pointer-events:none;transform:translateX(-50%)}#book-container{min-height:660px}._df_book{height:660px}.df-container{background:#fff!important}.df-ui-wrapper{background:#063b24ed!important}
.export-panel.is-locked .export-card{opacity:.62}.export-heading{align-items:center}.ready-badge{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;color:#826e3d;background:#fff7df;font-size:.68rem;font-weight:800}.ready-badge i{width:7px;height:7px;border-radius:50%;background:#e0a51a}.export-panel.is-ready .ready-badge{color:var(--green);background:var(--soft)}.export-panel.is-ready .ready-badge i{background:var(--lime)}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.export-card{position:relative;padding:25px;border:1px solid var(--line);border-radius:22px;background:#fbfdfb;transition:.2s}.export-card.recommended{border-color:#abd8ba;background:linear-gradient(145deg,#f8fdf9,#edf9f1)}.export-panel.is-ready .export-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(8,61,37,.08)}.recommend-label{position:absolute;top:20px;right:20px;padding:6px 8px;border-radius:999px;color:var(--green);background:#dff5e7;font-size:.58rem;font-weight:800;text-transform:uppercase}.recommend-label.neutral{color:#5c6a62;background:#eef2ef}.export-icon{display:grid;width:50px;height:50px;margin-bottom:22px;border-radius:15px;place-items:center}.export-icon svg{width:24px}.moodle-icon{color:#fff;background:linear-gradient(145deg,var(--dark),var(--lime))}.html-icon{color:var(--green);background:var(--soft)}.export-card h3{margin-bottom:8px;font-size:1.12rem;letter-spacing:-.035em}.export-card>p{min-height:42px;margin-bottom:18px;color:var(--muted);font-size:.76rem;line-height:1.55}.export-card ul{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 22px;padding:0;list-style:none}.export-card li{padding:6px 8px;border:1px solid var(--line);border-radius:999px;color:#607067;background:#fff;font-size:.61rem;font-weight:700}.export-button{display:flex;width:100%;height:48px;align-items:center;justify-content:center;gap:10px;border-radius:13px;font-size:.76rem;font-weight:800;cursor:pointer;transition:.2s}.export-button svg{width:17px}.export-button.primary{border:0;color:#fff;background:linear-gradient(135deg,var(--dark),var(--green));box-shadow:0 10px 24px rgba(17,148,78,.2)}.export-button.secondary{border:1px solid #b8d5c2;color:var(--dark);background:#fff}.export-button:hover:not(:disabled){transform:translateY(-1px)}.export-button:disabled{border-color:#dfe7e1;color:#98a39c;background:#eef2ef;box-shadow:none;cursor:not-allowed}.privacy-line{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px 0 0;color:var(--muted);font-size:.69rem}
.help-section{display:grid;grid-template-columns:.7fr 1.3fr;gap:70px;width:min(1120px,calc(100% - 32px));margin:0 auto 100px;padding:45px;border-radius:28px;color:#fff;background:radial-gradient(circle at 90% 0%,rgba(32,181,99,.24),transparent 35%),var(--dark);box-shadow:0 30px 70px rgba(6,59,36,.2)}.help-section .panel-label{color:#8ceab0}.help-section h2{max-width:310px;font-size:2rem}.help-section ol{display:grid;gap:14px;margin:0;padding:0;list-style:none}.help-section li{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid #ffffff1f;border-radius:16px;background:#ffffff0f}.help-section li>b{display:grid;width:34px;height:34px;flex:none;border-radius:11px;color:var(--dark);background:#9aefb9;font-size:.74rem;place-items:center}.help-section li>span{display:flex;flex-direction:column}.help-section li strong{font-size:.78rem}.help-section li small{margin-top:5px;color:#ffffffa6;font-size:.67rem;line-height:1.4}footer{display:flex;justify-content:space-between;width:min(1120px,calc(100% - 32px));margin:auto;padding:25px 0 35px;border-top:1px solid var(--line);color:var(--muted);font-size:.68rem}footer a{color:var(--green);font-weight:800}
.toast{position:fixed;z-index:100;bottom:26px;left:50%;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:11px 17px;border-radius:999px;color:#fff;background:#063b24f5;box-shadow:0 16px 40px rgba(6,59,36,.25);opacity:0;pointer-events:none;transform:translate(-50%,15px);transition:.25s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast-icon{display:grid;width:22px;height:22px;border-radius:50%;color:var(--dark);background:#9aefb9;font-size:.68rem;place-items:center}.toast-message{font-size:.72rem;font-weight:700;white-space:nowrap}
@media(max-width:800px){.topbar{grid-template-columns:1fr auto}.topbar-badges{display:none}.intro{margin-top:55px}.workflow{justify-content:space-between;padding:14px}.workflow-step small{display:none}.workflow>i{width:28px;margin:0 8px}.upload-panel,.help-section{grid-template-columns:1fr}.upload-panel{gap:18px}.help-section{gap:25px}.export-grid{grid-template-columns:1fr}}
@media(max-width:560px){.topbar{width:calc(100% - 28px);height:70px}.brand img{width:37px;height:37px}.help-link{font-size:.7rem}.intro{margin:45px auto 30px}.intro h1{font-size:2.65rem}.intro>p{font-size:.88rem}.workspace{width:calc(100% - 20px);margin-bottom:70px}.workflow-step>span{display:none}.workflow>i{flex:1}.upload-panel,.preview-panel,.export-panel{padding:18px;border-radius:22px}.drop-zone{min-height:140px;flex-direction:column;text-align:center}.file-card{gap:9px;padding:13px}.file-card button{padding:5px}.file-check{display:none}.panel-heading{align-items:flex-start;flex-direction:column}.preview-status{max-width:100%}.book-frame,#book-container,._df_book{min-height:520px;height:520px}.preview-tip{display:none}.export-card{padding:21px}.privacy-line{align-items:flex-start}.help-section{width:calc(100% - 20px);margin-bottom:60px;padding:28px 20px}.help-section h2{font-size:1.65rem}footer{align-items:flex-start;flex-direction:column;gap:10px;width:calc(100% - 28px)}.toast-message{overflow:hidden;max-width:260px;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important}}
