:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#78314e;background:#fff8fa}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px max(4%,calc((100% - 1120px)/2));border-bottom:1px solid #f1d9e3;background:#fff}a{color:#9d315d;text-decoration:none}.logo{font-size:21px;font-weight:800}main{max-width:1120px;margin:auto;padding:40px 24px 80px}.head{text-align:center;margin-bottom:28px}.head h1{font-family:Georgia,serif;font-size:clamp(32px,4.8vw,52px);margin:12px auto;max-width:660px}.head em{color:#dd6590}.head p{color:#9b7182;max-width:760px;margin:0 auto;line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;color:#bf7190;font-weight:750}.notice{display:inline-block;max-width:820px;background:#fff0f4;border:1px solid #f4c4d5;padding:12px 16px;border-radius:14px;font-size:12px;line-height:1.7;margin-top:10px}.layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:26px;align-items:start}form,.summary{border:1px solid #f0d5df;border-radius:26px;background:#fff;padding:25px;box-shadow:0 16px 45px #a64c6820}.editor-card fieldset,fieldset{border:0;border-bottom:1px solid #f4e4e9;padding:14px 0 24px;margin:0 0 16px;min-width:0}legend{font:700 21px Georgia;color:#8c3058;padding:9px 0 4px}label{display:block;margin:14px 0;font-size:13px;font-weight:650;line-height:1.5}input,select,textarea{display:block;margin-top:8px;padding:12px 13px;width:100%;font:inherit;color:#67304a;border:1px solid #e9bfce;border-radius:12px;background:#fffdfd;line-height:1.5}input[type=range]{padding:0;accent-color:#b84270}.line,.toolbar,.pagehead,.price{display:flex;justify-content:space-between;gap:12px;align-items:center}button{border:1px solid #e7b9c9;padding:10px 14px;border-radius:14px;background:#fff5f8;color:#8a2d50;font-weight:700;cursor:pointer}.primary{background:#8e3154;color:#fff;border-color:#8e3154}button:disabled{opacity:.5;cursor:not-allowed}.page{background:#fff8fa;border:1px solid #eed6e0;border-radius:18px;padding:18px;margin:14px 0}.page h3{margin:0 0 4px;font-size:16px}.page-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.page-grid .wide{grid-column:1/-1}.page textarea{min-height:110px;resize:vertical}.photozone{margin:10px 0;font-size:12px}.photozone input{padding:7px}.thumbs{display:flex;flex-wrap:wrap;gap:8px}.thumbs span{position:relative}.thumbs img{width:64px;height:64px;object-fit:cover;border-radius:9px}.thumbs button{position:absolute;right:-5px;top:-5px;border-radius:100%;padding:1px 6px;background:#fff}.cover{background:linear-gradient(135deg,#a55b70,#6e3046);color:#ffe5cb;min-height:340px;padding:35px 20px;border:8px double #deb992;border-radius:12px 24px 24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;text-align:center;box-shadow:8px 8px 0 #c8a38b}.cover h2{font:italic 31px Georgia;overflow-wrap:anywhere}.cover[data-cover=botanico]{background:linear-gradient(135deg,#365845,#132e27)}.cover[data-cover=couro]{background:linear-gradient(135deg,#a65336,#4f261e)}.cover[data-cover=vinho]{background:linear-gradient(135deg,#813047,#390d26)}#previewPages{margin:24px 0;max-height:320px;overflow:auto}.mini{padding:12px 14px;margin:10px 0;background:#fffbfa;border-left:3px solid #ce87a2;border-radius:10px}.mini p{font-size:12px;color:#926b7c;line-height:1.6;margin:6px 0 0}.price{border-top:1px solid #ecd7de;padding-top:20px}.price b{font:700 27px Georgia}.fine,small{font-size:12px;line-height:1.65;color:#9b7182}#status{font-size:13px}.error{color:#bb2449}@media(max-width:780px){header{padding:14px 16px;flex-wrap:wrap}header span{display:none}main{padding:25px 12px}.layout{grid-template-columns:1fr}form,.summary{padding:18px}.head h1{font-size:34px}.line,.toolbar,.pagehead,.price{align-items:flex-start}.toolbar button{width:100%}.page-grid{grid-template-columns:1fr}.page-grid .wide{grid-column:auto}aside{order:-1}.cover{min-height:220px}.cover h2{font-size:24px}}

/* V4.6: ritmo visual e responsividade do editor */
.head{margin-bottom:34px}.head h1{line-height:1.15;overflow-wrap:break-word}.head p{margin:16px auto 0}.notice{max-width:760px;margin:16px auto 0}#editorAvailability{display:block;text-align:center;margin:0 auto 24px}#editorAvailability[hidden]{display:none}
fieldset>p{font-size:13px;line-height:1.7;color:#92677b;margin:12px 0 18px}fieldset>small{display:block;margin:9px 0 20px}.line{flex-wrap:wrap;row-gap:13px}.pagehead{flex-wrap:wrap}.pagehead>div{display:flex;gap:6px;flex-wrap:wrap}.page-grid{gap:12px 17px}.page-grid label{min-width:0}.toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin-top:22px}.toolbar #status{flex-basis:100%;line-height:1.6;min-height:0}.toolbar .primary{box-shadow:0 7px 20px #923a5620}.summary{position:sticky;top:90px}#breakdown{font-size:12px;line-height:1.7;color:#946d7e;margin-top:11px}.photozone input{max-width:100%}input[type=file]{font-size:12px}
@media(max-width:780px){main{padding:26px 14px 66px}.head h1{font-size:clamp(29px,8vw,39px)}.summary{position:static}.layout{gap:20px}.line button{flex-shrink:0}.toolbar button{min-height:44px}.page{padding:15px}.pagehead>div button{padding:8px 10px}.cover{box-shadow:5px 5px 0 #c8a38b}}

/* V4.7: mesma identidade da loja e melhor legibilidade no editor. */
.travel-header{padding:0;background:#fff;border-bottom:1px solid #efd9df}
.travel-nav{max-width:1180px;min-height:82px;margin:auto;padding:8px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.travel-brand{display:flex;align-items:center;flex-shrink:0}.travel-brand img{display:block;width:164px;height:auto;max-height:64px;object-fit:contain}
.travel-nav nav{display:flex;gap:28px;align-items:center}.travel-nav nav a{font-size:13px;color:#773c54;font-weight:650;white-space:nowrap}
.travel-home{padding:12px 16px;border-radius:13px;background:#8e3154;color:#fff;font-size:12px;font-weight:750;white-space:nowrap}
.travel-nav a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #e6a0bc;outline-offset:3px}
.head{margin-bottom:34px}.head h1{line-height:1.2}.head p{margin-bottom:16px}.notice{line-height:1.6}
.layout>*{min-width:0}.layout form,.layout .summary{min-width:0}fieldset{min-width:0}.line{flex-wrap:wrap}.line span{font-size:13px}.line button{white-space:nowrap}
fieldset>p,.summary>p{line-height:1.65}.pagehead{flex-wrap:wrap}.pagehead>div{display:flex;gap:5px;flex-wrap:wrap}
.page-grid{gap:10px 14px}.page label{min-width:0;overflow-wrap:anywhere}.page textarea{min-height:120px}
.toolbar{justify-content:flex-start;flex-wrap:wrap;gap:11px}.toolbar button{min-height:43px}.toolbar #status{flex:1 1 100%;line-height:1.6;min-height:0}
#previewPages .mini{overflow-wrap:anywhere}.cover{box-shadow:5px 6px 0 #c8a38b}.cover h2{line-height:1.23;font-size:clamp(22px,2.6vw,32px)}
.price{gap:15px}.price b{text-align:right;white-space:nowrap}.summary .fine{margin-top:14px}
.availability-notice{display:block;width:min(850px,100%);margin:14px auto 26px;text-align:center}
[hidden]{display:none!important}
@media(max-width:900px){.travel-nav nav{gap:15px}.travel-brand img{width:137px}}
@media(max-width:670px){.travel-nav{min-height:70px;padding:9px 16px;gap:10px}.travel-brand img{width:120px}.travel-nav nav{display:none}.travel-home{font-size:11px;padding:10px 12px}main{padding:26px 15px 55px}.head h1{font-size:clamp(30px,8vw,40px)}.layout{gap:18px}.layout aside{order:0}.page{padding:14px}.line button{max-width:100%}.summary .cover{min-height:245px}.toolbar button{width:100%}.price{align-items:center}}

/* V4.9 — toque, responsividade e legibilidade */
button,input,textarea,select{touch-action:manipulation}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c56991;outline-offset:2px}
#sandboxPay{min-width:190px;box-shadow:0 6px 18px #88365722}
#sandboxPay:not(:disabled):hover{filter:brightness(1.07)}
#status{flex-basis:100%;line-height:1.6;overflow-wrap:anywhere}
#breakdown{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.page{content-visibility:auto;contain-intrinsic-size:auto 390px}
.page-grid label{min-width:0}
.page-grid input,.page-grid textarea{min-width:0}
.pagehead>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){
 .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .toolbar button{width:100%;min-width:0;padding:12px 8px;font-size:12px}
 .toolbar #sandboxPay{grid-column:1/-1}
 .toolbar #status{grid-column:1/-1}
 .pagehead{gap:8px}
 .pagehead button{padding:8px}
 .line{flex-wrap:wrap}
 .line button{flex-shrink:0}
 .summary{box-shadow:0 6px 26px #7a315218}
}

/* V5.1 — experiência de quatro etapas, alinhada ao criador e livro principal Amar-te */
:root{font-family:'DM Sans',system-ui,sans-serif;background:#fff9fa;color:#77374f}
body{background:linear-gradient(155deg,#fff9fa,#fffdfb);min-height:100vh}
.travel-main{max-width:1210px;margin:auto;padding:32px 22px 90px}
.head{max-width:850px;margin:0 auto 22px}.head h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(36px,4.8vw,56px);font-weight:700;letter-spacing:-.025em;margin:14px auto;max-width:850px}.head p{font-size:14px;line-height:1.7}
.travel-progress{max-width:1210px;margin:0 auto 24px;display:grid;grid-template-columns:1fr auto;gap:8px 20px;align-items:center;color:#a04467;font-size:12px;font-weight:700;scroll-margin-top:110px}
.travel-progress-bar{grid-column:1/-1;height:7px;overflow:hidden;background:#f4dee5;border-radius:50px}.travel-progress-bar i{display:block;height:100%;width:25%;background:linear-gradient(90deg,#da7393,#8a3154);border-radius:50px;transition:width .25s}
.layout{grid-template-columns:minmax(0,1fr) 320px;gap:30px}.layout form{padding:clamp(20px,4vw,37px);border:1px solid #f2dce4;border-radius:28px;box-shadow:0 16px 45px #81314810}.travel-step{padding:0;border:0;margin:0}.travel-step legend{display:block;font:bold 12px 'DM Sans',sans-serif;color:#ad3e64;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px;padding:0}.travel-step h2{font:700 clamp(27px,4vw,39px)/1.18 'Playfair Display',Georgia,serif;color:#7f2c4f;margin:14px 0 12px}.travel-step>p{font-size:14px;line-height:1.6;color:#9d7285;margin:0 0 27px}.travel-step label{color:#784156;font-size:13px}.travel-step input:not([type=radio]):not([type=range]),.travel-step textarea,.travel-step select{background:#fffdfd;border-color:#ebcfda}.travel-step input:focus,.travel-step textarea:focus{outline:2px solid #e6a4bc;outline-offset:1px}
.travel-field-label{display:block;font-size:13px;font-weight:800;margin:22px 0 11px}.travel-cover-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.travel-cover-grid label{margin:0;position:relative;cursor:pointer}.travel-cover-grid label>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.travel-cover-grid label>span{display:flex;flex-direction:column;min-height:145px;border-radius:16px;overflow:hidden;background:#fff9fb;border:1px solid #ebd5df;transition:box-shadow .2s,border-color .2s}.travel-cover-grid label>span img{width:100%;height:105px;object-fit:cover;margin:0}.travel-cover-grid label>span strong{display:block;font-size:12px;padding:10px 7px;text-align:center;color:#7c3d57}.travel-cover-grid label>input:checked+span{border-color:#c34a79;box-shadow:0 0 0 2px #d87e9d55;background:#fff0f5}.travel-cover-grid label>input:focus-visible+span{outline:3px solid #b94b78;outline-offset:3px}
.travel-page-meter{background:#fff3f7;border:1px solid #f1d4df;border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0}.travel-page-meter b{color:#8a3255;font-size:15px}.travel-page-meter span{font-size:11px;color:#a46f84}.page{background:#fff9fb;border:1px solid #eed4df;border-radius:18px;padding:18px;margin:14px 0;content-visibility:auto;contain-intrinsic-size:auto 420px}.page-grid{gap:12px 16px}.page .pagehead h3{font-family:'Playfair Display',Georgia,serif;font-size:19px;color:#803452}.page-grid label{font-size:12px}.page textarea{min-height:120px}.photozone{border-top:1px solid #f2dce4;padding-top:12px;margin:15px 0 0}.photozone strong{display:block;font-size:12px;margin-bottom:10px}.travel-add-tail{display:grid;justify-items:center;gap:9px;margin:19px 0}.travel-add-page{padding:16px 22px;border:1px dashed #bb5e80;border-radius:17px;background:#fff3f7;min-height:54px;width:min(400px,100%);font-size:13px}.travel-add-page:hover{background:#ffe5ee}.travel-add-tail small{color:#9e6179;text-align:center}
.travel-caps-extras{margin-top:23px;border-top:1px solid #f4e1e8;padding-top:16px}.travel-caps-extras label{margin:0}.travel-caps-extras small{display:block;margin:7px 0 0}
.travel-checkout-details{display:grid;gap:12px;background:#fff6f8;border:1px solid #f1d9e3;border-radius:17px;padding:20px}.travel-checkout-details b{color:#84365a}.travel-checkout-details span{font-size:12px;color:#916f7d}.travel-checkout-total{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:22px 0;font-size:13px;color:#795065}.travel-checkout-total strong{font:700 28px 'Playfair Display',Georgia,serif;color:#883456}.travel-step[data-step="4"]>button{width:100%;margin:7px 0;padding:15px}.travel-step[data-step="4"]>button.primary{font-size:16px}.travel-wizard-actions{display:flex;gap:11px;align-items:center;flex-wrap:wrap;border-top:1px solid #f2e1e7;padding-top:24px;margin-top:28px}.travel-wizard-actions>button{min-height:46px}.travel-wizard-actions #status{flex:1 1 100%;font-size:12px;color:#8f4262;line-height:1.6}.travel-wizard-actions #stepNext{margin-left:auto}.travel-wizard-actions #stepNext[hidden],.travel-wizard-actions #stepBack[hidden]{display:none!important}
.summary{position:sticky;top:105px;padding:23px;box-shadow:0 14px 35px #7a385515}.summary .cover{min-height:295px}.summary .fine{font-size:11px}.travel-book-dialog{width:min(1120px,calc(100vw - 20px));max-width:1120px;max-height:96vh;border:1px solid #e7bed0;border-radius:22px;background:#fff9fa;padding:12px;box-shadow:0 35px 95px #4c263c55;overflow:auto}.travel-book-dialog::backdrop,.travel-review-dialog::backdrop{background:#371b2b9c}.travel-book-dialog .bookTop{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;color:#874461;font-size:12px}.travel-book-dialog .ab-shell{min-height:0;border-radius:16px;padding:12px 8px 23px}.travel-book-dialog .ab-stage{padding:8px 8px 18px}.travel-book-dialog .ab-book{height:min(565px,73vh)}.travel-book-dialog .ab-hint{margin-top:11px}.travel-review-dialog{width:min(540px,calc(100vw - 28px));border:1px solid #eed1df;border-radius:24px;background:#fffafd;box-shadow:0 30px 80px #562d4152;color:#823552;padding:24px}.travel-review-dialog .bookTop{display:flex;justify-content:space-between;align-items:center;gap:10px}.travel-review-dialog h2{font:700 29px 'Playfair Display',Georgia,serif}.travel-review-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 'DM Sans',sans-serif;color:#69445a}.travel-review-dialog>button{width:100%;margin-top:12px}
@media(max-width:900px){.layout{grid-template-columns:1fr}.layout aside{order:0}.summary{position:static;max-width:520px;margin:auto}.travel-cover-grid{gap:9px}}
@media(max-width:580px){.travel-main{padding:24px 13px 65px}.head{margin-bottom:20px}.head h1{font-size:36px}.layout form{padding:22px 16px}.travel-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.travel-cover-grid label>span img{height:130px}.travel-page-meter{align-items:start}.travel-wizard-actions{display:grid;grid-template-columns:1fr 1fr}.travel-wizard-actions button{width:100%;font-size:12px;padding:10px 6px;min-width:0}.travel-wizard-actions #stepNext{grid-column:1/-1}.travel-wizard-actions #status{grid-column:1/-1}.travel-book-dialog{padding:5px;max-height:98vh}.travel-book-dialog .ab-shell{padding:10px 2px}.travel-book-dialog .ab-book{min-height:405px;height:min(550px,69vh)}.travel-book-dialog .ab-stage{padding:8px 1px 18px}}
@media(prefers-reduced-motion:reduce){.travel-cover-grid *,.travel-progress-bar i{transition:none!important}}

/* V5.2: capítulo por capítulo, sem sobreposição de formulários */
.travel-page-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#955b76;padding:8px 2px;margin-top:12px}
.travel-page-navigation #travelPagePosition{font-weight:800;font-size:14px;color:#873150}
.travel-step[data-step="2"] .page{content-visibility:visible;contain-intrinsic-size:none;min-height:320px}
.travel-step[data-step="2"] .pagehead h3{font-size:22px}
.travel-page-meter{margin-top:10px}
.travel-add-tail{margin-top:22px}
.travel-book-dialog{max-height:95vh}
@media(max-width:580px){.travel-step[data-step="2"] .page{min-height:0}.travel-page-navigation{align-items:start;flex-direction:column}.travel-wizard-actions button{min-height:46px}}
