:root{--navy:#071c37;--blue:#155bb8;--ink:#152740;--sub:#576a83;--edge:#dce5ef;--paper:#f4f7fb}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}.studio-top{background:#fff;border-bottom:1px solid var(--edge);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px max(20px,calc((100% - 1160px)/2))}.studio-brand img{width:min(205px,44vw);height:auto;display:block}.studio-top nav{display:flex;align-items:center;gap:19px;flex-wrap:wrap;font-weight:750;font-size:13px}.studio-top nav a:hover{color:var(--blue)}.studio-intro{padding:57px 20px 44px;text-align:center;background:linear-gradient(138deg,#071c37,#124c8e);color:#fff}.eyebrow{color:#92caff;font-size:12px;letter-spacing:.17em;font-weight:800}.studio-intro h1{font:700 clamp(32px,5vw,57px)/1.12 Georgia,serif;max-width:750px;margin:12px auto 15px}.studio-intro p{max-width:690px;margin:0 auto;color:#d6e5fa;font-size:17px}.intro-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:22px}.intro-badges span{border:1px solid #8cc3f76b;background:#ffffff14;border-radius:30px;padding:7px 14px;font-size:12px;font-weight:750}.studio-shell{max-width:1180px;margin:26px auto 0;padding:0 20px}.studio-auth{border:1px solid var(--edge);border-radius:16px;background:#fff;padding:30px;text-align:center}.studio-auth a{display:inline-block;background:var(--blue);color:#fff;padding:11px 18px;border-radius:10px;font-weight:800;margin-top:12px}.studio-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;background:#fff;border:1px solid var(--edge);border-bottom:0;border-radius:17px 17px 0 0;padding:19px 20px}.studio-toolbar>div:first-child{display:grid;gap:2px}.studio-toolbar strong{font-size:20px}.studio-toolbar small{color:var(--sub)}.studio-toolbar-actions,.editor-bottom>div{display:flex;gap:8px;flex-wrap:wrap}.studio-toolbar button,.editor-bottom button,.chapters-head button{border:1px solid #cbd8e8;color:#1c456e;background:#f7fbff;padding:9px 13px;border-radius:9px;font-weight:750}.studio-toolbar button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.studio-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);background:#fff;border:1px solid var(--edge);border-radius:0 0 17px 17px;min-height:510px;overflow:hidden}.studio-sidebar{background:#f9fbfd;padding:22px;border-right:1px solid var(--edge)}.form-field{display:grid;gap:7px;margin-bottom:17px;font-weight:750;font-size:13px}.form-field input,.form-field textarea,.form-field select{border:1px solid #cad6e4;border-radius:9px;padding:11px 13px;background:#fff;width:100%;color:var(--ink);font-weight:450;outline-offset:2px}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{outline:2px solid #73aeeb;border-color:#4f94db}.chapters-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:21px 0 12px}.chapters-head button{padding:8px 10px;white-space:nowrap}.chapter-list{display:grid;gap:7px}.chapter-item{display:flex;align-items:center;border:1px solid transparent;border-radius:10px}.chapter-item.active{background:#e7f1ff;border-color:#b7d3f7}.chapter-item button{display:block;width:100%;padding:12px;text-align:left;border:0;background:transparent;color:var(--ink);font-weight:750;word-break:break-word}.chapter-item small{display:block;color:var(--sub);font-weight:450}.import-wrap{border-top:1px solid var(--edge);padding-top:22px;margin-top:23px}.import-label{display:block;margin-bottom:8px;font-weight:750;color:#1b5184}.import-wrap input{width:100%;font-size:12px}.studio-editor{padding:28px}.studio-editor .form-field input{font-size:19px;font-weight:750}.studio-editor textarea{min-height:420px;resize:vertical;font:16px/1.8 Georgia,serif}.editor-bottom{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;color:var(--sub)}.editor-bottom button{font-size:12px}.studio-next{max-width:1180px;margin:36px auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 20px}.studio-next article{padding:22px;border:1px solid var(--edge);border-radius:15px;background:#fff}.studio-next span{color:var(--blue);font-weight:850}.studio-next h2{font-size:18px;margin:8px 0}.studio-next p{color:var(--sub);margin:0}.studio-disclosure{max-width:1100px;margin:24px auto 55px;padding:0 20px;color:#536b83;font-size:13px}footer{background:var(--navy);color:#d5e6fb;padding:25px 20px;text-align:center;font-size:13px}footer a{text-decoration:underline}#studio-print-manuscript{display:none}@media(max-width:760px){.studio-top{padding:12px 16px}.studio-top nav{gap:10px;font-size:12px}.studio-intro{padding:44px 19px 36px}.studio-layout{grid-template-columns:1fr}.studio-sidebar{border-right:0;border-bottom:1px solid var(--edge)}.studio-editor{padding:19px}.studio-editor textarea{min-height:340px}.studio-next{grid-template-columns:1fr}.studio-toolbar{padding:17px}.studio-toolbar-actions{width:100%}.studio-toolbar-actions button{flex:1 1 140px}.studio-shell{padding:0 12px}}@media print{body{background:#fff}.studio-top,.studio-intro,.studio-shell,.studio-next,.studio-disclosure,footer{display:none!important}#studio-print-manuscript{display:block!important;color:#111;font:12pt/1.6 Georgia,serif;max-width:none}#studio-print-manuscript h1{text-align:center;font-size:30pt;margin:105pt auto 20pt}#studio-print-manuscript .print-author{text-align:center;margin-bottom:120pt}#studio-print-manuscript h2{break-before:page;font-size:21pt;padding-top:45pt}#studio-print-manuscript p{white-space:pre-wrap;overflow-wrap:anywhere}#studio-print-manuscript .print-chapter{break-inside:auto}@page{margin:20mm}}
/* Optional writing coach: always clearly distinguish availability from a paid/print service. */
.studio-ai{border:1px solid #c7ddef;background:#f5faff;padding:18px;border-radius:14px;margin:12px 0 18px}.studio-ai-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.studio-ai-head strong{font-size:17px;color:#124474}.studio-ai-head p{margin:3px 0 0;font-size:12px;color:#55728e}.studio-ai-head>span{font-size:11px;font-weight:700;color:#6685a0}.studio-ai-note{font-size:12px;line-height:1.5;color:#536e88}.studio-ai-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.studio-ai-actions label,.studio-ai-output label{font-size:13px;font-weight:750;color:#204d78}.studio-ai-actions select{padding:9px;border:1px solid #bdd3e7;border-radius:9px;background:#fff;flex:1;min-width:135px}.studio-ai button{border:0;background:#115caa;color:#fff;border-radius:9px;padding:10px 14px;font-weight:750}.studio-ai button:disabled{opacity:.5;cursor:not-allowed}.studio-ai-output{margin-top:16px}.studio-ai-output label{display:block;margin-bottom:8px}.studio-ai-output textarea{width:100%;min-height:155px;padding:12px;border:1px solid #bdd3e7;border-radius:9px;background:#fff;color:#1e364d;resize:vertical}.studio-ai-output button{margin-top:10px}@media print{.studio-ai{display:none!important}}

/* Account-owned Book Studio library: mobile-first, no misleading payment states. */
.studio-cloud{background:#fff;border:1px solid #d3e1f0;border-radius:16px;margin:0 0 16px;padding:20px}
.studio-cloud-head{display:flex;gap:18px;align-items:start;justify-content:space-between;flex-wrap:wrap}
.studio-cloud-head strong{font-size:19px;color:#133e69}
.studio-cloud-head p{color:#516d87;margin:6px 0 12px}
.studio-cloud label{display:grid;gap:7px;font-weight:750;color:#294768}
.studio-cloud select{width:100%;padding:12px;background:#fff;border:1px solid #b4cee6;border-radius:10px;color:#193957}
.studio-cloud-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.studio-cloud button{padding:10px 13px;border-radius:10px;border:1px solid #b8cce0;background:#f3f8fd;color:#18456d;font-weight:750}
.studio-cloud button.primary{background:#115eb4;color:#fff;border-color:#115eb4}
.studio-cloud button:disabled{opacity:.55;cursor:not-allowed}
#studio-cloud-status{margin-bottom:0;font-size:13px;color:#435e79;overflow-wrap:anywhere}
@media(max-width:700px){.studio-cloud{padding:15px 12px}.studio-cloud-actions button{flex:1 1 135px}}

.studio-ebook{background:#fff;border:1px solid #d3e1f0;border-radius:16px;margin:0 0 17px;padding:20px}
.studio-ebook .studio-cloud-head strong{font-size:19px;color:#133e69}
.studio-ebook .studio-cloud-head>a{color:#125cae;font-weight:750;text-decoration:underline}
.studio-ebook-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.studio-ebook-fields label{display:grid;gap:7px;color:#264962;font-size:13px;font-weight:750}
.studio-ebook-fields input,.studio-ebook-fields select,.studio-ebook-fields textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #bbcede;border-radius:10px;padding:11px;background:#fff;color:#1c354a}
.studio-ebook-consent{display:flex;align-items:flex-start;gap:9px;margin:16px 0 8px;font-size:13px}
.studio-ebook-consent input{min-width:18px;min-height:18px;margin-top:2px}
.studio-ebook-note{font-size:12px;color:#637a8a}
#studio-ebook-status{overflow-wrap:anywhere;color:#294e6d;font-weight:600}
#studio-ebook-status a{display:inline-block;text-decoration:underline;color:#125cae}
@media(max-width:720px){.studio-ebook{padding:15px 12px}.studio-ebook-fields{grid-template-columns:1fr}}

/* Publisher distribution guidance: native, accessible and mobile-friendly */
.studio-retail-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.studio-retail-channels article{border:1px solid #ccdced;border-radius:12px;padding:15px;background:#f9fcff}
.studio-retail-channels strong{font-size:15px;color:#1b416b}
.studio-retail-channels p{font-size:13px;color:#486079;line-height:1.5;margin:8px 0 12px}
.studio-retail-channels a{font-size:13px;text-decoration:underline;color:#145db0;font-weight:800;overflow-wrap:anywhere}
#studio-distribution-status{font-size:13px;color:#245779;min-height:18px}
@media(max-width:850px){.studio-retail-channels{grid-template-columns:1fr}}

/* One-step writer-to-EPUB creator, consistent with mobile Book Studio */
.studio-ebook-compose{display:flex;flex-direction:column;justify-content:center;gap:5px}
.studio-ebook-compose button{min-height:44px;padding:10px 12px;background:#f0f7ff;border:1px solid #a4c3e3;border-radius:10px;color:#164b87;font:inherit;font-weight:750;cursor:pointer;text-align:center}
.studio-ebook-compose button:disabled{opacity:.55;cursor:not-allowed}
.studio-ebook-compose small{font-size:12px;color:#506a81;line-height:1.35}

/* Book Studio writing workspace: controls only, never the manuscript canvas. */
.studio-cloud,.studio-ebook,.studio-ai,.studio-next article{border-radius:12px;min-width:0}
.studio-layout{min-width:0}
.studio-toolbar-actions,.studio-cloud-actions,.studio-ai-actions{gap:10px}
.studio-toolbar-actions button,.studio-cloud-actions button,.studio-ai-actions button,
.editor-bottom button,.chapters-head button,.studio-auth a{
  min-height:44px;border-radius:12px;padding:10px 16px;font-weight:700;
  transition:opacity .2s ease,background-color .2s ease,border-color .2s ease;
}
.studio-toolbar-actions button:not(:disabled):hover,
.studio-cloud-actions button:not(:disabled):hover,
.studio-ai-actions button:not(:disabled):hover,
.editor-bottom button:not(:disabled):hover{opacity:.9}
.studio-editor :is(input,select,textarea),.studio-cloud :is(input,select),
.studio-ebook-fields :is(input,select,textarea){min-width:0;border-radius:12px}
.chapter-item{border-radius:12px}
.chapter-item button{overflow-wrap:anywhere}
.studio-shell :is(a,button,input,textarea,select):focus-visible{
  outline:3px solid #3978bb;outline-offset:2px
}
@media(prefers-reduced-motion:reduce){
 .studio-toolbar-actions button,.studio-cloud-actions button,
 .studio-ai-actions button,.editor-bottom button{transition:none}
}

/* Book Studio app-readiness: keep manuscript canvas, print layout and text sizing. */
.studio-intro h1,.studio-toolbar strong,.studio-next h2{letter-spacing:-.028em;text-wrap:balance}
.studio-layout{min-width:0;grid-template-columns:minmax(240px,300px) minmax(0,1fr)}
.studio-sidebar,.studio-editor{min-width:0}
.studio-sidebar{overscroll-behavior-y:contain}
.studio-next article,.studio-ebook,.studio-cloud,.studio-ai{
 box-shadow:0 10px 28px rgba(13,42,73,.05);
}
.studio-top nav a,.studio-top nav button,.chapter-item button,.studio-retail-channels :is(a,button,summary),
.studio-ebook :is(a,button,summary),.studio-cloud :is(a,button,summary){
 min-height:44px;touch-action:manipulation;
}
.studio-top nav a{display:inline-flex;align-items:center}
.studio-toolbar-actions button,.editor-bottom button,.studio-cloud-actions button,.studio-ai-actions button{
 transition:transform .16s ease,background-color .2s ease,border-color .2s ease,opacity .2s ease;
}
.studio-toolbar-actions button:not(:disabled):active,.editor-bottom button:not(:disabled):active{transform:scale(.985)}
@media(max-width:760px){
 .studio-layout{grid-template-columns:minmax(0,1fr)}
 .studio-toolbar-actions,.studio-cloud-actions{min-width:0}
 .studio-top nav{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 .studio-toolbar-actions button,.editor-bottom button,.studio-cloud-actions button,.studio-ai-actions button{transition:none}
 .studio-toolbar-actions button:active,.editor-bottom button:active{transform:none}
}
@media print{.studio-sidebar{overscroll-behavior:auto}}

/* Editorial light canvas: manuscript font, selection and print styles stay intact. */
:root{--paper:#f8fafc;--edge:#dae4ed}
body{background:var(--paper)}
.studio-toolbar,.studio-cloud,.studio-ebook,.studio-ai,.studio-next article{
 border-color:var(--edge);
}
.studio-toolbar strong,.studio-cloud-head strong,.studio-next h2{
 letter-spacing:-.026em;
}
.studio-toolbar,.studio-layout{box-shadow:0 10px 26px rgba(24,54,84,.045)}

/* Customer-first Book Studio: write -> save -> publish, without changing editor IDs. */
.studio-workflow-guide{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:16px 0 12px;padding:12px 15px;border:1px solid #cbddec;border-radius:13px;background:#f3f8fd;color:#214562}
.studio-workflow-guide strong{font-size:13px;margin-right:5px}
.studio-workflow-guide a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:999px;background:white;border:1px solid #bfd4e5;color:#24527b;font-size:13px;font-weight:700;text-decoration:none}
.studio-workflow-guide a:focus-visible{outline:3px solid #3978bb;outline-offset:2px}
.studio-publishing-intro{margin:22px 0 9px;padding:15px 17px;border-radius:13px;background:#f0f5fb;border:1px solid #d3e2ef;color:#244767}
.studio-publishing-intro strong{font-size:17px}
.studio-publishing-intro p{margin:5px 0 0;line-height:1.45;font-size:14px}
#studio-writing,#studio-cloud-heading,#studio-ebook-heading{scroll-margin-top:100px}
@media(max-width:760px){.studio-workflow-guide{gap:6px;padding:11px}.studio-workflow-guide a{font-size:12px;min-height:40px;padding:8px 9px}.studio-publishing-intro{margin-top:15px}}
@media print{.studio-workflow-guide,.studio-publishing-intro{display:none!important}}
