:root {
  --book-thunk-purple:#5a51fb;
  color-scheme: light;
  --ink:#19182a; --muted:#5e5d70; --line:#e4e1ec; --surface:#fff;
  --wash:#f8f7fb; --accent:#5033c4; --accent-hover:#4024a8; --tint:#eee9ff;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --radius:12px; --control:40px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--surface);
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;line-height:1.55}
main{flex:1}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #7659df;outline-offset:3px}
.skip{position:absolute;top:-100px;background:white;padding:12px;z-index:3}
.skip:focus{top:4px}
.wrap{width:min(1168px, calc(100% - 2 * var(--s6)));margin-inline:auto}
header{border-bottom:1px solid var(--line)}
.nav,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--s5);min-height:72px}
.brand{display:inline-flex;align-items:center;gap:var(--s2);font-size:21px;font-weight:780;letter-spacing:-.055em;white-space:nowrap}
.period{color:var(--accent);margin-left:-7px}
.brand-icon{display:grid;place-items:center;background:var(--accent);color:white;width:32px;height:32px;border-radius:8px}
.nav nav,.footer-inner nav,.nav-actions,.actions{display:flex;align-items:center;gap:var(--s3)}
.nav nav a,.footer-inner nav a{font-size:14px;color:var(--muted);font-weight:600;padding:var(--s2) var(--s3);border-radius:8px}
.nav nav a:hover,.footer-inner nav a:hover,.nav nav a[aria-current]{color:var(--accent);background:var(--wash)}
.button{display:inline-flex;justify-content:center;align-items:center;gap:var(--s2);min-height:var(--control);padding:0 var(--s4);border:1px solid transparent;border-radius:8px;font:inherit;font-size:14px;font-weight:650;white-space:nowrap;cursor:pointer}
.primary{background:var(--accent);color:white}
.primary:hover{background:var(--accent-hover)}
.secondary{border-color:var(--line);background:var(--surface)}
.secondary:hover,.quiet:hover,.quiet[aria-current]{background:var(--wash);color:var(--accent)}
button:disabled{opacity:.5;cursor:default}
.hero-grid{display:grid;grid-template-columns:1fr 1.02fr;align-items:center;gap:var(--s8);padding-block:var(--s8)}
.eyebrow{display:flex;align-items:center;gap:var(--s2);font-size:13px;letter-spacing:.1em;font-weight:750;color:var(--accent);margin:0 0 var(--s3)}
.eyebrow span{width:8px;height:8px;border-radius:50%;background:var(--accent)}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(40px,5vw,56px);letter-spacing:-.065em;line-height:1.06;font-weight:780}
h1 em{font-style:normal;color:var(--accent)}
h2{font-size:clamp(24px,3vw,32px);letter-spacing:-.045em;line-height:1.15}
h3{font-size:18px;letter-spacing:-.025em;line-height:1.3}
.lede{max-width:45ch;color:var(--muted);margin-top:var(--s4)}
.actions{flex-wrap:wrap;margin-top:var(--s5)}
.showcase{overflow:hidden;border:1px solid #ddd6ef;border-radius:16px;background:var(--wash);box-shadow:0 12px 32px #35245914}
.preview-bar,.preview-foot{display:flex;align-items:center;justify-content:space-between;padding:var(--s2) var(--s4);background:white;color:var(--muted);font-size:13px;font-weight:650}
.preview-bar{border-bottom:1px solid var(--line)}
.preview-foot{border-top:1px solid var(--line)}
.preview-draft{padding:var(--s1) var(--s2);background:var(--tint);color:var(--accent);border-radius:6px}
.window-dots{display:flex;gap:4px}
.window-dots i{width:6px;height:6px;border-radius:50%;background:#d1c9e5}
.preview-stage{display:grid;grid-template-columns:80px 1fr;justify-items:center;align-items:center;min-height:280px;background:radial-gradient(circle at 60% 45%,#f5f0ff,#e8e0fa)}
.mini-pages{align-self:stretch;width:100%;background:#ffffffaa;border-right:1px solid #ddd6ef;padding:var(--s3);display:grid;align-content:start;justify-items:center;gap:var(--s2);font-size:13px;color:var(--muted)}
.mini{width:32px;height:44px;border:1px solid #dfd8ed;background:white;border-radius:4px;padding:4px}
.mini.active{border-color:var(--accent)}
.mini b{display:block;height:100%;background:repeating-linear-gradient(180deg,#ded7ec 0 2px,transparent 2px 6px)}
.mini.active b{background:#5736bb}
.cover{position:relative;isolation:isolate;overflow:hidden;background:#35227e;color:#f3ecff;width:152px;aspect-ratio:2/3;padding:16px;display:flex;flex-direction:column;box-shadow:8px 12px 20px #3524594d;border-radius:3px 7px 7px 3px;transform:rotate(-7deg);border-left:5px solid #2b1a67}
.cover-top,.cover-bottom{font-size:7px;letter-spacing:.15em;font-weight:700}
.cover-title{font-size:22px;line-height:1.05;font-weight:750;letter-spacing:-.06em;margin-top:12px}
.cover-bottom{margin-top:auto}
.cover-art{position:absolute;z-index:-1;right:-18px;bottom:22px;width:135px;height:88px;transform:rotate(-24deg);display:flex;align-items:stretch;gap:5px}
.cover-art i{flex:1;background:#bdaafb;border-radius:100% 0 0 0}
.cover-art i:nth-child(2n){background:#e5d8ff;transform:translateY(8px)}
.workflow{background:var(--wash);border-block:1px solid var(--line);padding-block:var(--s7)}
.outputs,.page{padding-block:var(--s7) var(--s8)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:var(--s4);margin-top:var(--s5)}
.card,.panel{display:block;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:var(--s5)}
a.card:hover{border-color:#9d89e4;box-shadow:0 4px 16px #35245912}
.card p,.panel p{color:var(--muted);margin-top:var(--s2)}
.tile-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:var(--tint);color:var(--accent);margin-bottom:var(--s4)}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
footer{border-top:1px solid var(--line)}
.footer-inner .brand{font-size:18px}
.breadcrumbs{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;color:var(--muted);font-size:14px;margin-bottom:var(--s5)}
.breadcrumbs a:hover{text-decoration:underline}
.panel{max-width:640px;margin-top:var(--s6)}
form{display:grid;gap:var(--s4)}
label{display:grid;gap:var(--s2);font-size:14px;font-weight:650}
input{font:inherit;min-height:44px;border:1px solid #bcb6cc;border-radius:8px;padding:var(--s2) var(--s3);width:100%;color:var(--ink)}
form .actions{margin-top:0}
#form-error{color:#9c2450}
@media(max-width:720px){
  :root{--control:44px}
  .wrap{width:calc(100% - 2 * var(--s5))}
  .nav{display:grid;grid-template-columns:1fr auto;gap:0 var(--s2);padding-block:var(--s2)}
  .nav nav{grid-row:2;grid-column:1/-1}
  .nav nav a,.footer-inner nav a,.brand{min-height:44px;display:inline-flex;align-items:center}
  .nav-actions{gap:var(--s1)}
  .nav-actions .button{padding-inline:var(--s2)}
  .hero-grid{grid-template-columns:1fr;gap:var(--s6);padding-block:var(--s7)}
  h1{font-size:36px}
  .preview-stage{min-height:256px}
  .page,.outputs,.workflow{padding-block:var(--s6)}
  .footer-inner{gap:var(--s2)}
}
@media(max-width:355px){
  .wrap{width:calc(100% - 2 * var(--s4))}
  .nav .brand{font-size:18px}
  .footer-inner nav{gap:0}
}

:root {
  color-scheme: dark;
  --ink:#f3f1fa;
  --muted:#b4b0c6;
  --surface:#111018;
  --wash:#1c1a28;
  --line:#343043;
  --accent:#bdabff;
  --accent-hover:#d4c8ff;
  --tint:#2e2549;
  --control:44px;
}
header,footer{background:#16141f}
.brand-icon,.button.primary,.button.primary:hover{color:#171023}
.button:disabled{opacity:.55;cursor:default}
.skip{background:var(--wash)}
.library{padding-block:64px 80px}
.library-heading h1,.detail-info h1{margin:0;font-size:clamp(2.15rem,5vw,3.5rem);line-height:1.08;letter-spacing:-.055em}
.library-heading .lede{margin:12px 0 0}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.filters{display:flex;gap:4px;padding:4px;background:var(--wash);border:1px solid var(--line);border-radius:12px}
.filters button{border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.875rem;font-weight:650;padding:8px 14px;cursor:pointer}
.filters button:hover{color:var(--ink)}
.filters button[aria-pressed=true]{background:var(--tint);color:var(--accent-hover)}
.book-count,.genre,.sample-notice{font-size:.875rem;color:var(--muted)}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.book-tile{display:block;overflow:hidden;background:var(--wash);border:1px solid var(--line);border-radius:14px;transition:border-color .18s}
.book-tile:hover{border-color:var(--accent)}
.book-tile img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.book-caption{padding:16px}
.book-caption h2{font-size:1.02rem;line-height:1.25;margin:4px 0}
.book-caption p{font-size:.875rem;color:var(--muted);margin:0 0 8px}
.rating{display:inline-block;font-size:.875rem;font-weight:650}
.rating span:first-child{color:#ffc960}
.rating span:last-child{color:var(--muted);font-weight:450}
.book-detail{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:40px;align-items:start}
.detail-info .lede{margin:12px 0}
.detail-info .rating{margin-bottom:12px}
.sample-panel h2{margin:0 0 16px;font-size:1.125rem}
.sample-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sample-grid a{display:grid;place-items:center;background:#111018;border-radius:8px;overflow:hidden;min-width:0}
.sample-grid img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.sample-price{font-size:1.25rem;font-weight:700}
.sample-price span{font-size:.875rem;color:var(--muted);font-weight:400}
.editor-stage{display:grid;justify-items:center;gap:16px;padding:24px 16px;background:var(--wash);border:1px solid var(--line);border-radius:12px}
.editor-paper{width:min(100%,34rem);min-height:min(64vh,760px);resize:vertical;padding:clamp(16px,4vw,48px);border:1px solid #d8d3e0;border-radius:3px;background:#fffefa;color:#201d28;color-scheme:light;font:1.125rem/1.6 Georgia,serif}
.paper-label,.save-message{color:var(--muted);font-size:.875rem;margin:0}
.save-message:empty{display:none}
@media(max-width:880px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.book-caption{padding:12px}.library{padding-block:40px 56px}.book-detail{grid-template-columns:1fr;gap:24px}.detail-info{grid-row:1}.filters button{padding:8px 10px}.book-count{display:none}}

[hidden]{display:none!important}
.card,.panel{background:var(--wash)}
input{background:var(--surface);border-color:var(--line)}
input:hover{border-color:var(--muted)}
button:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.nav nav .primary{background:var(--accent);color:#171023}
.nav nav .primary:hover,.nav nav .primary[aria-current]{background:var(--accent-hover);color:#171023}
.nav nav .quiet{color:var(--muted)}
.footer-pricing{font-size:14px;color:var(--muted)}
.footer-pricing:hover{color:var(--accent)}
.catalog-status{color:var(--muted);margin-bottom:24px}
.catalog-status:empty{display:none}
.catalog-more{display:grid;justify-items:center;margin-top:24px}
.catalog-more:empty{display:none}
.cover-frame{display:grid;place-items:center;aspect-ratio:1;background:#201e2a;overflow:hidden}
.cover-frame img{width:100%;height:100%;object-fit:contain;aspect-ratio:auto}
.book-caption h2{margin-top:0;font-size:17px;overflow-wrap:anywhere}
.book-caption p{overflow-wrap:anywhere}
.rating span:first-child{color:var(--accent)}
.rating.unrated{color:var(--muted);font-weight:500}
.sample-panel{grid-column:1;grid-row:1;min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--wash);overflow:hidden}
.detail-info{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
.sample-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--line)}
.sample-heading h2{margin:0}
.sample-heading span{font-size:14px;color:var(--muted)}
.sample-grid{display:block;overflow:auto;max-height:min(75vh,900px);padding:16px;overscroll-behavior-y:auto;scrollbar-gutter:stable}
.sample-grid figure{margin:0 auto 16px;max-width:560px}
.sample-grid figure:last-child{margin-bottom:0}
.sample-grid img{width:100%;height:auto;aspect-ratio:auto;border-radius:4px}
.sample-grid figcaption{color:var(--muted);font-size:13px;text-align:center;padding-block:8px}
.purchase:not(:empty),.reader-rating{margin-top:24px}
.purchase .button{margin-block:8px}
.reader-rating h2{font-size:18px;margin-bottom:12px}
.stars{display:flex;flex-wrap:wrap;gap:4px}
.stars button{background:var(--wash);border:1px solid var(--line);border-radius:8px;width:44px;height:44px;color:var(--muted);font-size:20px;cursor:pointer}
.stars button:hover,.stars button.filled{color:var(--accent);border-color:var(--accent);background:var(--tint)}
.reader-rating p{margin-top:8px}
.sharing-panel details{margin-top:16px}
.sharing-panel details form{margin-top:16px}
.sharing-panel summary{width:fit-content;color:var(--accent);cursor:pointer;padding-block:8px}
.sharing-panel .checkbox{display:flex;align-items:center;gap:8px;min-height:44px}
.sharing-panel .checkbox input{accent-color:var(--accent);width:20px;min-height:20px;margin:0}
.sharing-panel [role=status]:empty{display:none}
@media(min-width:721px){:root{--control:40px}}
@media(max-width:720px){
  .nav nav.nav-actions{justify-content:flex-end;grid-column:auto;grid-row:auto;gap:4px}
}
@media(max-width:660px){
  .nav{display:flex;flex-wrap:wrap;gap:0 12px;padding-block:8px}
  .nav nav.nav-actions{justify-content:space-between;flex:1 1 100%}
  .nav .button{padding-inline:12px}
  .filters button{min-height:44px}
  .detail-info,.sample-panel{grid-column:1;grid-row:auto}
  .detail-info{display:contents}
  .detail-info h1{grid-row:1;font-size:36px}
  .detail-info .lede{grid-row:2;margin:0}
  .rating-summary{grid-row:3}
  .purchase{grid-row:4}
  .purchase:empty{display:none}
  .sample-panel{grid-row:5}
  .reader-rating{grid-row:6}
  .book-detail{gap:12px}
  .detail-info .rating,.reader-rating,.purchase:not(:empty){margin:0}
  .sample-grid{max-height:70vh}
}

.brand img {
  display: block;
  width: 184px;
  height: auto;
}
.footer-inner .brand img { width: 144px; }
@media (max-width: 720px) {
  .brand img { width: 160px; }
}

.flow-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:32px}
.workflow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:24px;align-items:start}
.review-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.setup-grid{grid-template-columns:1fr 1fr;align-items:stretch}
.flow-panel{max-width:none;margin:0;min-width:0}
.flow-panel form,.flow-panel > label,.flow-panel > fieldset{margin-top:16px}
.workflow-page .panel h2,.create-form .panel h2{font-size:24px}
.saved-book-title,.print-book h3{overflow-wrap:anywhere}
.flow-actions{display:grid;gap:12px;margin-top:24px}
.book-facts,.quote-breakdown{display:grid;grid-template-columns:1fr auto;gap:8px 16px;margin:20px 0 0}
.book-facts dt,.quote-breakdown dt{color:var(--muted)}
.book-facts dd,.quote-breakdown dd{margin:0;text-align:right;font-weight:600}
.review-preview{padding:16px}
.preview-tabs,.review-pager{display:flex;align-items:center;gap:8px}
.preview-tabs{border-bottom:1px solid var(--line);padding-bottom:12px}
.preview-tabs [aria-pressed=true],.review-thumb[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--tint)}
.review-layout{display:grid;grid-template-columns:clamp(88px,10vw,132px) minmax(0,1fr);gap:16px;margin-top:16px}
.review-rail{display:grid;align-content:start;gap:8px}
.review-thumb{display:grid;justify-items:center;gap:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:6px;color:var(--muted);font:inherit;font-size:12px;min-height:44px;cursor:pointer}
.review-thumb-frame{display:block;position:relative;width:100%;overflow:hidden;background:white;color:#201d28;align-self:start;font-size:6px;text-align:left}
.review-thumb-frame>.ed-paper,.review-thumb-frame>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.review-stage{display:grid;place-items:center;min-height:16rem;background:var(--surface);border-radius:8px;padding:16px;color:var(--muted)}
.review-stage>img,.review-stage>.legacy-cover-spread img{display:block;max-width:100%;max-height:68vh;object-fit:contain}
.review-paper{width:min(100%,430px);padding:clamp(12px,4vw,32px);max-height:68vh;overflow:auto;background:#fffefa;color:#201d28;white-space:pre-wrap;overflow-wrap:anywhere;font-family:Georgia,serif}
.review-pager{justify-content:space-between;margin-top:16px;color:var(--muted);font-size:14px;text-align:center}
.review-setup{margin-top:24px}
.review-setup summary{cursor:pointer;color:var(--accent);width:fit-content;font-weight:650}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
select,.publish-panel textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;padding:8px 12px}
select:hover,.publish-panel textarea:hover{border-color:var(--muted)}
select:focus-visible,.publish-panel textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.publish-panel textarea{resize:vertical}
.print-progress{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;padding:0;margin:0 0 24px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.print-progress li{padding:12px 8px;text-align:center;color:var(--muted);font-weight:600;font-size:14px}
.print-progress li+li{border-left:1px solid var(--line)}
.print-progress [aria-current]{background:var(--tint);color:var(--accent)}
.print-book{display:flex;gap:16px;align-items:center;margin-top:16px}
.print-cover{display:grid;place-items:center;width:72px;height:96px;flex:none;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--accent)}
.print-cover img{width:100%;height:100%;object-fit:contain}
.printer-options{display:grid;gap:12px;margin-top:16px}
.printer-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:16px}
.printer-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.printer-choice{display:flex;align-items:center;gap:10px;min-height:36px;font-size:18px}
.printer-choice input,.type-card input,.orientation-options input{appearance:auto;accent-color:var(--accent);width:18px;min-height:18px;margin:0}
.printer-result .button{margin-top:10px}
.cover-note{font-size:14px}
.demo-label{display:inline-block;border-radius:6px;background:var(--tint);color:var(--accent);font-size:13px;padding:3px 8px}
.quote-breakdown{margin-top:12px}
.quote-breakdown dt:last-of-type,.quote-breakdown dd:last-of-type{font-weight:750;color:var(--ink)}
.quote-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.quote-actions p{margin:0;font-size:14px}
.quote-actions .button{margin-left:auto}
.create-form{margin-top:24px}
.create-form fieldset{min-width:0;margin-inline:0;padding:0;border:0}
.create-form legend{color:var(--ink);font-weight:700;padding:0;margin-bottom:12px}
.type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.type-card,.orientation-options label{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;background:var(--wash);cursor:pointer;padding:16px}
.type-card:has(input:checked),.orientation-options label:has(input:checked){border-color:var(--accent);background:var(--tint);box-shadow:0 0 0 1px var(--accent)}
.type-card:focus-within,.orientation-options label:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.type-card input,.orientation-options input{position:absolute;opacity:0}
.selected-check{position:absolute;right:8px;top:6px;display:none;color:var(--accent);font-weight:800}
.type-card:has(input:checked) .selected-check{display:block}
.starter-paper{display:block;width:60px;aspect-ratio:160/208;flex:none;overflow:hidden;border:1px solid #c9c4d1;border-radius:3px;background:white;box-shadow:1px 2px 4px #342b461a}
.starter-paper img{display:block;width:100%;height:100%;object-fit:contain}

.setup-grid{margin-top:8px}
.orientation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.orientation-options label{justify-content:center;flex-wrap:nowrap;padding:8px;min-height:44px}
.orient-icon{display:inline-block;flex:none;width:16px;height:23px;border:2px solid currentColor;border-radius:2px}
.orient-icon.landscape{width:23px;height:16px}
.shape-panel{text-align:center}
.shape-stage{display:grid;place-items:center;min-height:208px}
.page-shape{background:#f3effa;border:2px solid var(--accent);border-radius:4px;box-shadow:0 8px 20px #0005}
.field-note{color:var(--muted);font-weight:400;display:inline}
.flow-status:empty,.flow-panel [role=status]:empty{display:none}
@media(max-width:760px){
  .workflow-grid{grid-template-columns:1fr}
  .type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .review-layout{grid-template-columns:1fr}
  .review-rail{grid-auto-flow:column;grid-auto-columns:80px;overflow:auto;align-items:start}
  .review-rail{min-width:0}
}
@media(max-width:380px){
  .field-grid{grid-template-columns:1fr}
  .type-card{padding:12px}
  .orientation-options label{flex-wrap:wrap}
}

.ed-shell{max-width:1550px;padding:24px clamp(16px,3vw,48px) 48px;margin:auto}
.ed-heading,.ed-tools,.ed-row,.ed-section{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ed-heading{justify-content:space-between;margin:0 0 20px}
.ed-heading h1{font-size:clamp(28px,3.5vw,48px);overflow-wrap:anywhere}
.ed-heading [role=status]{color:var(--muted);font-size:14px}
.ed-work{display:grid;grid-template-columns:clamp(178px,17vw,250px) minmax(0,1fr);gap:16px}
.ed-sidebar,.ed-settings,.ed-tools,.ed-stage{border:1px solid var(--line);border-radius:12px;background:var(--wash);padding:12px}
.ed-sidebar,.ed-settings{display:flex;flex-direction:column;align-self:start;gap:8px}
.ed-sidebar{max-height:80vh;overflow:auto}
.ed-main{min-width:0}
.ed-tools{margin-bottom:12px}.ed-tools select{width:auto}
.ed-content{display:grid;grid-template-columns:minmax(164px,205px) minmax(0,1fr);gap:12px}
.ed-settings h2,.ed-dialog h2{font-size:20px}
.ed-stage{overflow:auto;text-align:center;padding:24px;background:#191720}
.ed-paper{display:inline-block;position:relative;width:100%;max-width:none;background:#fff;color:#17151c;container-type:inline-size;overflow:hidden;overflow:clip;vertical-align:middle;text-align:left;font-family:Georgia,serif}
.ed-paper>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ed-object{position:absolute;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.23;font-size:3.5cqw}
.ed-object[data-kind=title]{font-size:6cqw;font-weight:bold;text-align:center}
.ed-object[data-kind=Crossword]{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(6,1fr);box-sizing:border-box;border:var(--crossword-line,1px) solid var(--crossword-ink,#24242a)}
.ed-object[data-kind=Crossword] i{box-sizing:border-box;min-width:0;min-height:0;background:var(--crossword-cell,white);background-clip:padding-box}
.ed-object[data-kind=Crossword] i:not(:nth-child(6n)){border-right:var(--crossword-line,1px) solid var(--crossword-ink,#24242a)}
.ed-object[data-kind=Crossword] i:nth-child(-n+30){border-bottom:var(--crossword-line,1px) solid var(--crossword-ink,#24242a)}
.ed-object[data-kind=Crossword] i.block{background-color:var(--crossword-ink,#24242a)}
.ed-object[data-kind=Comic]{display:grid;grid-template-columns:1fr 1fr;gap:3%}.ed-object[data-kind=Comic] i{border:2px solid #312f34}.ed-object[data-kind=Comic] i:last-of-type{grid-column:span 2}
.ed-object[data-kind="Word Search"]{font-family:monospace;white-space:pre;text-align:center;line-height:1.5;font-size:5cqw}
.ed-stage .ed-object{touch-action:none;cursor:move}
.ed-stage .ed-object.selected,.ed-stage .ed-object:focus-visible{outline:2px solid #6442bd;outline-offset:-2px}
.ed-handle{display:none;position:absolute;bottom:0;right:0;width:14px;height:14px;background:#6442bd;cursor:nwse-resize}
.selected>.ed-handle,.ed-object:focus-visible>.ed-handle{display:block}
.ed-thumb{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.ed-thumb .ed-paper{width:40px;flex:none;pointer-events:none}
.ed-shell [aria-pressed=true]{border-color:var(--accent);background:var(--tint);color:var(--accent)}
.ed-section button{padding:4px 8px}
.ed-sharing{margin-top:24px}.ed-sharing summary{cursor:pointer}
.ed-dialog{background:var(--wash);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:24px;width:min(560px,92vw)}
.ed-dialog::backdrop{background:#000b}.ed-dialog h2{margin-bottom:16px}
.ed-dialog textarea{width:100%;min-height:160px;background:var(--surface);color:var(--ink);font:inherit;padding:12px}
.ed-dialog>.button{margin-top:16px}
.ed-types{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ed-types .button{flex-direction:column;padding:12px;white-space:normal}
.ed-types .ed-paper{width:48px}.review-stage>.ed-paper{max-width:460px}
@media(max-width:800px){.ed-work{grid-template-columns:1fr}.ed-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));max-height:220px}.ed-row{grid-column:1/-1}.ed-content{grid-template-columns:1fr}.ed-settings{display:flex;flex-direction:row;flex-wrap:wrap}.ed-settings h2{width:100%}.ed-stage{padding:12px}.nav-actions:has(.editor-review-link){flex-wrap:wrap}}
.cv-tools,.cv-issues{display:flex;flex-wrap:wrap;gap:8px;margin-block:16px}.cv-tools select{width:auto}.cv-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px}.cv-inspector,.cv-config[open],.cv-dialog{gap:12px}.cv-inspector,.cv-config[open]{display:grid;align-content:start}.cv-config>*{margin-bottom:8px}.cv-dialog{max-height:90vh;overflow:auto}.cv-dialog label{margin-top:8px}.cv-dialog button{margin:12px 6px 0 0}.cv-canvas{width:100%;height:auto;background:white;touch-action:none;margin-top:16px}.cv-issues .button{white-space:normal;text-align:left;height:auto}.cv-grid section p,.cv-message{color:var(--muted);font-size:14px}.cv-config a{text-decoration:underline}.cv-inspector input[type=color]{padding:3px}.cv-root>.button{margin-right:8px}@media(max-width:760px){.cv-grid{grid-template-columns:1fr}}

.draft-shelf{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1.75rem;margin-top:1.5rem}
.draft-cover{display:grid;place-items:center;position:relative;max-width:100%;overflow:hidden;padding:0 .75rem;background:#503ca0;color:white;text-align:center;font:600 1.1rem/1.25 Georgia,serif;overflow-wrap:anywhere}
.draft-cover>img,.draft-cover>.ed-paper{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.draft-cover>img{object-fit:cover}
body:has(.ed-shell){display:grid;height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}
body:has(.ed-shell)>footer{display:none}
main:has(.ed-shell){min-height:0;overflow:auto}
.ed-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding-block:12px}
.ed-heading{margin-bottom:8px}
.ed-heading h1{font-size:clamp(20px,3vw,34px)}
.ed-work,.ed-content,.ed-main{min-height:0}
.ed-main{display:grid;grid-template-rows:auto minmax(0,1fr)}
.ed-sidebar,.ed-settings{max-height:100%;overflow:auto}
.ed-stage{container-type:size;background:#a6a6a6;display:flex;min-width:0;min-height:0;padding:clamp(8px,1.4vw,20px)}
.ed-stage>.ed-paper{flex:none;align-self:flex-start;margin:auto;box-shadow:0 1px 5px #0003}
.ed-sharing{margin-top:8px;max-height:30dvh;overflow:auto}
@media(max-width:800px){
  .ed-work{display:flex;flex-direction:column;gap:8px}
  .ed-main{order:-1;flex:1}
  .ed-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:6px}
  .ed-stage{grid-row:1}
  .ed-settings{flex-wrap:nowrap;align-items:center;max-width:100%;padding:4px 8px;overflow:auto}
  .ed-settings>*{flex:none}
  .ed-settings h2{width:auto}
  .ed-sidebar{display:flex;flex-direction:row;align-items:center;align-self:stretch;max-height:5rem;padding:4px 8px}
  .ed-sidebar>*{flex:none}
  .ed-tools{flex-wrap:nowrap;overflow:auto;padding:4px;margin-bottom:6px}
  .ed-tools>*{flex:none}
}
.ed-content{grid-template-columns:minmax(0,1fr) clamp(96px,12vw,172px);grid-template-rows:minmax(0,1fr)}
.ed-editing{display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--wash);overflow:auto}
.ed-settings[popover]{position:fixed;inset:auto;margin:0;width:min(288px,calc(100vw - 16px));max-height:48dvh;display:none;color:var(--ink)}
.ed-settings:popover-open{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;box-shadow:0 8px 32px #0004}
@media(max-width:600px){
  .ed-content{grid-template-columns:minmax(0,1fr) auto;gap:4px}
  .ed-editing{padding:3px;max-width:5rem}
  .ed-editing .button{white-space:normal;padding:4px;font-size:.875rem}
}
header .ed-heading{display:block;flex:1;min-width:0;margin:0;line-height:1.25;overflow-wrap:anywhere}
header .ed-heading h1{display:inline;font-size:clamp(1rem,2vw,1.45rem);line-height:1.2;white-space:normal}
header .ed-heading [role=status]{margin-inline-start:.45rem;vertical-align:-.14rem;font-size:.625rem;font-weight:500;color:#aaaab1}
header .ed-heading [data-saved=true]{color:#65cf91}
@media(max-width:720px){header .nav:has(.ed-heading){display:flex;flex-wrap:wrap}header .ed-heading{flex:1 1 min(14rem,100%)}}
.ed-shell{grid-template-rows:minmax(0,1fr) auto;padding-top:6px}
.ed-main{grid-template-rows:minmax(0,1fr)}
.ed-board{min-height:0;min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#a6a6a6;border-radius:12px;overflow:hidden}
.ed-board .ed-tools{display:flex;align-items:center;gap:2px;margin:0;padding:2px 8px;background:transparent;border:0}
.ed-tools .ed-history,.ed-tools .ed-fit{border:0;background:transparent;color:#23232a;cursor:pointer;height:34px;font:600 .875rem system-ui}
.ed-history{width:36px;display:grid;place-items:center}
.ed-history:disabled{opacity:.38}
.ed-tools select{margin-left:auto;width:auto;min-height:28px;padding:2px 4px;background:transparent;color:#23232a;border:0}
.ed-tools select option{background:white;color:#222}
.ed-board .ed-stage{border:0;border-radius:0;padding:2px 8px 8px}
.ed-thumb-group{display:flex;align-items:center;gap:2px;min-width:0}
.ed-thumb-group .ed-thumb{min-width:0;flex:1}
.ed-more{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:1.15rem;padding:5px}
.ed-page-menu{position:fixed;inset:auto;margin:0;padding:4px;background:var(--wash);border:1px solid var(--line);border-radius:8px}
.ed-page-menu:popover-open{display:grid;gap:3px}
.ed-cover-window{width:min(780px,94vw);height:min(620px,84dvh);padding:16px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.ed-cover-window::backdrop{background:#0007}
.ed-cover-window .cover-ui{width:100%;padding:0}
.ed-cover-window h1{font-size:1.5rem}
.ed-cover-launch{font-size:.8rem;white-space:normal}
@media(max-width:800px){.ed-board{grid-row:1}.ed-main{min-height:0}}

.ed-shell{grid-template-rows:minmax(0,1fr);padding-bottom:0}
.ed-shell{width:100%;max-width:none;padding-inline:clamp(4px,1vw,14px)}
.ed-board{position:relative;grid-template-rows:minmax(0,1fr)}
.ed-board .ed-stage{grid-row:1}
.ed-board .ed-tools{position:absolute;inset:4px 4px auto;z-index:1;padding:2px;background:transparent;pointer-events:none;overflow:visible}
.ed-board .ed-tools button{pointer-events:auto;background:#a6a6a6;color:#23232a;border-radius:6px}
.ed-board .ed-tools .ed-fit{margin-left:auto;padding-inline:8px}
.ed-board .ed-tools button:hover:enabled{background:#c2c2c2}
.ed-board .ed-stage{padding:4px;overflow:auto;overscroll-behavior:contain;touch-action:none}
.ed-stage>.ed-paper{width:calc(min(100cqw, 100cqh * var(--ed-ratio)) * var(--ed-scale,1))}
.ed-stage.ed-zoomed{cursor:grab}
.ed-fit svg{transform-origin:center}
.ed-board:has(.ed-stage.ed-zoomed) .ed-tools .ed-fit{background:#f4ebff;color:#57219d;box-shadow:0 0 0 2px #7849b7}
.ed-board:has(.ed-stage.ed-zoomed) .ed-fit svg{color:inherit;transform:scale(1.18);stroke-width:2.2}
.ed-stage.ed-panning{cursor:grabbing;user-select:none}
@media(max-width:800px){.ed-sidebar{order:-2}.ed-content{grid-template-rows:minmax(0,1fr)}}
.ed-guide{position:absolute;z-index:2;pointer-events:none;background:#bd168b;box-shadow:0 0 1px white}
.ed-guide-vertical{inset-block:0;width:1px}
.ed-guide-horizontal{inset-inline:0;height:1px}
.ed-selection{position:absolute;z-index:3;pointer-events:none;outline:2px solid #8643d5;outline-offset:-1px}
.ed-board{--selection-action-height:30px}
.ed-object-actions{box-sizing:border-box;height:var(--selection-action-height);position:absolute;z-index:4;display:flex;padding:2px;gap:2px;border-radius:7px;background:white;box-shadow:0 1px 6px #19152744}
.ed-object-actions[hidden]{display:none}
.ed-object-actions .button{display:grid;place-items:center;width:28px;height:26px;min-height:0;padding:0;border:0;border-radius:5px;color:#29232d;background:white}
.ed-object-actions .button:hover:enabled{background:#efe8fa}
.ed-object-actions .button[aria-label="Delete object"]{color:#c62828}
.ed-object-actions .button:disabled{opacity:.35}
.ed-grip{position:absolute;pointer-events:auto;touch-action:none;width:11px;height:11px;border:1px solid #8643d5;border-radius:50%;background:white;transform:translate(-50%,-50%)}
.ed-grip::after{content:"";position:absolute;inset:-4px}
.ed-grip[data-direction*=w]{left:0}.ed-grip[data-direction*=e]{left:100%}
.ed-grip[data-direction*=n]{top:0}.ed-grip[data-direction*=s]{top:100%}
.ed-grip:is([data-direction=n],[data-direction=s]){left:50%;width:22px;height:7px;border-radius:5px;cursor:ns-resize}
.ed-grip:is([data-direction=w],[data-direction=e]){top:50%;width:7px;height:22px;border-radius:5px;cursor:ew-resize}
.ed-grip:is([data-direction=nw],[data-direction=se]){cursor:nwse-resize}
.ed-grip:is([data-direction=ne],[data-direction=sw]){cursor:nesw-resize}
.ed-editing .button[hidden]{display:none}
.ed-spread-mini{display:block;position:relative;flex:none;width:80px;height:var(--ed-mini-height);background:linear-gradient(to right,#fff 49%,#b7b1bd 50%,#fff 51%);overflow:hidden}
.ed-spread-mini img{display:block;width:100%;height:100%;object-fit:fill}
.ed-cover-button{width:100%;min-height:28px;padding:3px 8px}
.ed-spread-tile{width:100%;flex-direction:column;gap:3px}
.ed-spread-tile small{font-size:.625rem;line-height:1.1}
.ed-last-page{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
.ed-add-tile{grid-column:1;width:100%;justify-content:center;min-height:0;height:26px;padding:2px 8px;font-size:.8rem}
.ed-guide.ed-peer-guide{background:none;box-shadow:none;color:#915b8e}
.ed-guide-vertical.ed-peer-guide{border-left:1px dotted currentColor;width:0}
.ed-guide-horizontal.ed-peer-guide{border-top:1px dotted currentColor;height:0}
@media(max-width:800px){.ed-sidebar{max-height:8rem}}
.ed-cover-mode .ed-content{grid-template-columns:minmax(0,1fr) clamp(168px,19vw,290px)}
.ed-cover-mode .ed-editing{max-width:none;min-width:0}
.ed-cover-mode .cover-ui,.ed-cover-mode .cv-root,.ed-cover-mode .cv-inspector{min-width:0}
.ed-cover-mode .cv-grid{display:flex;flex-direction:column;gap:8px}
.ed-cover-mode .cv-tools{margin-block:8px}
.ed-cover-mode .cv-inspector{padding:6px}
.ed-cover-mode .cv-inspector input,.ed-cover-mode .cv-root select{max-width:100%;min-width:0}
.cv-spread>.cv-canvas{position:absolute;inset:0;width:100%;height:100%;margin:0;pointer-events:none}
@media(max-width:600px){.ed-cover-mode .ed-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(70px,25%)}}
.cv-empty-spread{background:linear-gradient(to right,white 49.85%,#d6d2d9 50%,white 50.15%)}
.object-command-menu{position:fixed;inset:auto;margin:0;padding:6px;width:min(286px,calc(100vw - 8px));max-height:calc(100dvh - 12px);overflow:auto;overscroll-behavior:contain;background:#fff;color:#211f29;border:1px solid #d9d7e1;border-radius:14px;box-shadow:0 12px 38px #17132938;font:400 15px/1.35 system-ui,sans-serif;color-scheme:light}
.object-command-menu button{display:grid;grid-template-columns:22px 1fr auto;align-items:center;text-align:left;gap:9px;background:transparent;color:inherit;border:0;border-radius:7px;padding:8px;width:100%;min-height:36px;font:inherit;cursor:pointer}
.object-command-menu button:hover:enabled,.object-command-menu button:focus-visible{background:#eeeafa;outline:0}
.object-command-menu button.delete-object{color:#c62828}
.object-command-menu button:disabled{opacity:.45;cursor:default}
.object-command-menu button span:first-child{font-size:18px;text-align:center}
.object-command-menu button span:last-child:not(:empty){font-size:12px;border-radius:5px;background:#f1f1f4;padding:3px 6px}
.object-command-menu hr{border:0;border-top:1px solid #dfdde5;margin:4px 6px}
.object-command-menu p,.object-command-menu form{padding:8px;margin:0}
.object-command-menu input{display:block;margin:8px 0;width:100%;box-sizing:border-box;color:#211f29;background:white;border:1px solid #999;padding:8px}
.object-command-menu form button{display:block;text-align:center;background:#ede9ff}
@media(pointer:coarse){.object-command-menu button{min-height:44px}}
.art-toolbar,.art-panel{position:absolute;z-index:6;color:#292731;background:#fff;border:1px solid #dfdce4;border-radius:12px;box-shadow:0 3px 16px #21182d26;font:500 14px/1.35 system-ui}
.art-toolbar{top:6px;left:50%;transform:translateX(-50%);display:flex;gap:2px;padding:4px;max-width:calc(100% - 154px);overflow:auto}
.art-toolbar button,.art-panel button{background:transparent;border:1px solid transparent;border-radius:7px;padding:6px 9px;cursor:pointer;color:inherit;font:inherit;white-space:nowrap}
.art-toolbar button:hover,.art-panel button:hover,.art-toolbar [aria-pressed=true],.art-panel [aria-pressed=true]{background:#eeeafb}
.art-panel{left:8px;top:56px;max-height:calc(100% - 66px);overflow:auto;width:min(270px,calc(100% - 16px));padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;box-sizing:border-box;color-scheme:light}
.art-panel header,.art-panel>strong,.art-panel canvas,.art-panel p{grid-column:1/-1}
.art-panel header{position:static;display:flex;align-items:center;justify-content:space-between;background:white;color:#292731;padding:0;border:0}
.art-panel button{border-color:#dcd9e2;overflow:hidden;text-overflow:ellipsis}.art-panel button:disabled{opacity:.4}
.art-panel label{display:grid;gap:4px;font-size:13px}.art-panel input{min-width:0;width:100%;color:inherit;background:white;border:1px solid #ccc;border-radius:6px;padding:5px}
.art-panel canvas{width:100%;touch-action:none;background:#d9d7de;cursor:crosshair}
.ed-object canvas{width:100%;height:100%;pointer-events:none;display:block}
@media(max-width:700px){.art-toolbar{top:40px;max-width:calc(100% - 12px)}.art-panel{top:90px;max-height:calc(100% - 94px)}.art-toolbar button,.art-panel button{min-height:44px}}
.art-toolbar{align-items:center;scrollbar-width:thin}.art-toolbar>*{flex:none}
.art-toolbar input,.art-toolbar select{height:32px;min-height:0;width:auto;font:inherit;padding:3px 6px;border:1px solid #dcd9e2;border-radius:6px;background:#fff;color:#23212b}
.art-toolbar input[type=number]{width:4em}.art-toolbar input[type=color]{width:32px;padding:3px}
.art-toolbar [data-format=bold]{font-weight:750}.art-toolbar [data-format=italic]{font-style:italic}.art-toolbar [data-format=underline]{text-decoration:underline}.art-toolbar [data-format=strike]{text-decoration:line-through}
.ed-content:has(.has-design-rail[data-drawer]),.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer]){grid-template-columns:minmax(0,1fr) clamp(245px,25vw,350px);grid-template-rows:minmax(0,1fr)}
.ed-content:has(.has-design-rail[data-drawer=closed]){grid-template-columns:minmax(0,1fr) 64px}
.ed-editing.has-design-rail,.ed-cover-mode .ed-editing.has-design-rail{display:block;position:relative;padding:0;max-width:none;min-width:0;overflow:auto;border-radius:12px}
.ed-editing.has-design-rail>.design-rail,.ed-editing .cv-root>.design-rail{position:sticky;top:0;float:right;display:flex;flex-direction:column;align-items:stretch;gap:3px;width:62px;padding:4px;z-index:2;background:#f4f8fb;box-sizing:border-box}
.design-rail button,.design-drawer button{font:inherit;color:inherit;background:transparent;border:1px solid transparent;cursor:pointer}
.design-rail button{display:grid;justify-items:center;align-content:center;gap:3px;min-height:47px;border-radius:8px;font-size:11px}
.design-rail b{font-size:20px;line-height:1}.design-rail button[aria-pressed=true],.design-rail button:hover{background:#3b3152;color:#e6d9ff}
.design-drawer{float:left;width:calc(100% - 62px);box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:12px;min-width:0}
.design-drawer[hidden]{display:none}.design-drawer>*{min-width:0}
.design-heading,.design-drawer label,.design-native{display:flex;gap:6px}.design-heading{justify-content:space-between;align-items:center}.design-drawer label,.design-native{flex-direction:column}
.design-drawer input,.design-drawer select,.design-drawer textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit}.design-drawer textarea{min-height:78px}
.design-drawer button{width:100%;min-height:36px;padding:7px 8px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--wash)}
.design-drawer button:hover{border-color:#ad8cef}.design-heading button{width:auto;font-size:12px}.design-drawer .design-primary{background:#7140c9;color:white;text-align:center}.design-drawer [data-preset=Heading]{font-size:20px;font-weight:700}.design-drawer [data-preset=Subheading]{font-weight:650}
.design-drawer img{width:32px;height:32px;object-fit:contain;vertical-align:middle;margin-right:8px}.design-drawer details summary{cursor:pointer}.design-drawer a{display:block}
.ed-editing:has(.design-rail) .cover-ui>h2,.ed-editing:has(.design-rail) .cv-message:empty{display:none}
@media(max-width:800px){.ed-content:has(.has-design-rail[data-drawer]),.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer]){position:relative;grid-template-columns:minmax(0,1fr) 58px;grid-template-rows:minmax(0,1fr)}.ed-editing.has-design-rail{grid-column:2;grid-row:1}.ed-editing.has-design-rail:not([data-drawer=closed]){position:absolute;right:0;top:0;bottom:0;width:min(282px,84vw);z-index:7;background:var(--wash)}.design-drawer button{min-height:44px}}
.ed-content{container-type:inline-size}
.ed-board:has(.art-toolbar){overflow:visible}
.ed-board .art-toolbar{
  box-sizing:border-box;top:4px;left:4px;right:4px;transform:none;margin-inline:auto;
  width:max-content;max-width:calc(100cqw - 8px);flex-wrap:nowrap;justify-content:flex-start;
  overflow-x:auto;overscroll-behavior-x:contain;z-index:9
}
.art-toolbar button{display:inline-grid;place-items:center;min-width:30px;min-height:32px;padding:4px}
.art-toolbar svg{width:19px;height:19px}
.art-toolbar .spacing-spring-icon{width:27px;height:24px}
.art-toolbar .family-trigger{max-width:125px;display:block;overflow:hidden;text-overflow:ellipsis;padding-inline:7px}
.art-panel.font-browser{width:min(340px,calc(100% - 16px));height:min(560px,70dvh);overflow:hidden;background:white;color:#202124;color-scheme:light;display:flex;flex-direction:column}
.art-panel.font-browser header{flex:none;justify-content:flex-start;gap:8px;min-height:0;height:auto}
.art-panel.font-browser input[type=search]{box-sizing:border-box;flex:none;width:88px;height:24px;min-height:0;padding:1px 6px;font:13px/1.2 system-ui}
.font-options{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.art-panel .font-options button{flex:none;box-sizing:border-box;min-height:48px;height:auto;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-align:left;font-size:20px;line-height:1.55;padding:8px 10px}
.design-drawer .shape-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(76px,100%),1fr));gap:8px}
.design-drawer .shape-grid button{border:2px solid #a7adb5;display:grid;place-items:center;aspect-ratio:1;width:100%;height:auto;padding:0;text-align:center;color:#cbd0d5;font-size:34px;line-height:1}
.shape-grid canvas{display:block;width:48%;height:auto;pointer-events:none}

.ed-editing.has-design-rail:not([data-drawer=closed]),.design-drawer,.ed-board .art-toolbar{
  --surface:#fff;--wash:#f7f8fa;--ink:#202124;--muted:#555961;--line:#d2d5da;
  color-scheme:light;background:#fff;color:var(--ink)
}
.design-drawer{min-height:100%}
.design-rail{color:#fafafa}
.design-drawer button:hover,.art-toolbar button:is(:hover,[aria-pressed=true]){
  background:#e6e8eb;color:#202124;border-color:#b4b8bf
}
.design-drawer .design-primary{background:#e6e8eb;color:#212326;text-align:center}
.design-drawer :is(input,textarea,select),.art-toolbar :is(input,select,textarea){
  background:#fff;color:#202124;border-color:#b4b8bf
}
.design-drawer input::placeholder{color:#656973}
.art-panel{color-scheme:dark;background:#37393d;color:#fafafa}
.design-rail button:is(:hover,[aria-pressed=true]),.art-panel button:is(:hover,[aria-pressed=true]){
  background:#55595f;color:white;border-color:#a0a4aa
}
.art-panel header{background:transparent;color:inherit}
.art-panel input{background:#292b2f;color:white;border-color:#85888d}
.art-panel input::placeholder{color:#c7cacf}

.art-panel.font-browser input{background:white;color:#202124;border-color:#b4b8bf}
.art-panel.font-browser input::placeholder{color:#60656b}
.font-browser button:is(:hover,[aria-pressed=true]){background:#e8eaed;color:#202124}
.ed-content:has(.drawer-collapse){position:relative}
.drawer-collapse{display:none}
.ed-content:has(.has-design-rail[data-drawer]:not([data-drawer=closed]))>.drawer-collapse{
  display:grid;place-items:center;position:absolute;z-index:10;top:50%;
  right:clamp(245px,25vw,350px);transform:translate(50%,-50%);width:20px;height:64px;
}
.drawer-collapse,.ed-shell .page-list-jump button{
  padding:0;border:1px solid #8643d5;border-radius:5px;
  background:white;color:#62389f;box-shadow:-2px 2px 6px #0002;cursor:pointer;font:24px/1 system-ui
}
.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer=closed]){grid-template-columns:minmax(0,1fr) 64px}
@media(max-width:800px){
  .ed-content:has(.has-design-rail[data-drawer]:not([data-drawer=closed]))>.drawer-collapse{right:min(282px,84vw)}
}

.design-rail button{
  width:100%;padding:3px 1px;gap:1px;background:var(--tool-tint);
  border-color:transparent;color:var(--tool-ink);border-radius:6px
}
.design-rail button img{display:block;width:min(48px,100%);height:auto;aspect-ratio:1;object-fit:contain}
.design-rail button span{font:600 10px/1.2 system-ui;color:var(--tool-ink)}
.design-rail button:is(:hover,[aria-pressed=true]){
  background:var(--tool-tint);color:var(--tool-ink);border-color:var(--tool-ink)
}
.design-rail button[aria-pressed=true]{box-shadow:inset 3px 0 var(--tool-ink)}
@media(max-width:800px){
  .ed-editing.has-design-rail>.design-rail,.ed-editing .cv-root>.design-rail{max-width:100%}
}

@media(hover:hover){
  .ed-content:has(.has-design-rail[data-drawer]:not([data-drawer=closed]))>.drawer-collapse:hover,.ed-shell .page-list-jump button:hover{
    scale:1.08;background:#efe4ff;border-color:#7138b1;color:#482074;
    box-shadow:0 0 0 2px #c5a4ee,0 3px 8px #39255233
  }
}
@media(prefers-reduced-motion:no-preference){
  .drawer-collapse,.page-list-jump button{transition:scale 120ms ease,background-color 120ms ease,box-shadow 120ms ease}
}

.editor-settings-list{display:grid;gap:1px}
.design-drawer .design-page-number{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:28px;margin:0;font:500 13px/1.2 system-ui;cursor:pointer}
.design-drawer .design-page-number input[type=checkbox]{flex:none;min-height:0;padding:0}
.design-page-number input[type=checkbox]{width:1rem;height:1rem;margin:0}
.ed-page-number{position:absolute;bottom:2.5%;left:0;width:100%;text-align:center;font:normal 2.3cqw/1.2 Georgia,serif;color:#17151c;pointer-events:none;user-select:none}
.ed-page-number{--number-center:50;left:calc(var(--number-center)*1%);width:max-content;transform:translateX(clamp(calc(-1cqw * var(--number-center)),-50%,calc(100cqw - var(--number-center)*1cqw - 100%)))}
.ed-stage .ed-page-number{pointer-events:auto;cursor:pointer;min-width:1.2em}
.ed-stage .ed-page-number[aria-pressed=true]{outline:1px solid #3768bf;border-radius:2px}
.ed-number-tools,.ed-number-tools label{display:flex;align-items:center;gap:.35rem}
.ed-board .ed-number-tools{left:50%;right:auto;transform:translateX(-50%);margin:0;max-width:calc(100% - 8px);gap:.65rem;padding:4px 10px;pointer-events:auto}
.ed-number-tools label{margin:0;white-space:nowrap}
.ed-number-tools .number-tool-label{font-size:.625rem;line-height:1.2}
.ed-number-tools input[type=checkbox]{height:1rem}
.ed-number-tools input[type=color]{width:2rem;padding:1px}
.ed-number-tools input[type=number]{width:4rem}
.ed-number-tools input[type=checkbox]{width:1rem}
.ed-number-arrows{display:inline-flex;align-items:center;gap:2px}

.art-panel.shape-style-bar{
  left:4px;right:4px;margin-inline:auto;width:max-content;max-width:calc(100% - 8px);
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;
  padding:2px 8px;gap:8px;overflow:visible;background:white;color:#292731;color-scheme:light
}
.shape-style-bar label{display:flex;align-items:center;gap:5px}
.shape-style-bar input[type=color]{box-sizing:border-box;width:30px;height:24px;padding:2px;background:white;border:1px solid #d2d5da;border-radius:5px}
.weight-picker{position:relative}
.weight-picker summary,.weight-options button{display:grid;place-items:center;box-sizing:border-box;width:48px;height:24px;min-height:0;cursor:pointer}
.weight-picker summary{list-style:none;border:1px solid #d2d5da;border-radius:5px}
.weight-picker summary::-webkit-details-marker{display:none}
.weight-picker summary::after,.weight-options button::after{content:'';width:30px;height:var(--weight);background:#151515}
.weight-options{position:absolute;top:calc(100% + 4px);left:0;padding:3px;border:1px solid #dfdce4;border-radius:7px;background:white;box-shadow:0 2px 8px #0002}
.weight-options button{border:0}
.ed-board:has(.shape-style-bar) .ed-object-actions{--action-min-top:max(2px,var(--border-actions-floor,2px))}
.ed-board:has(.shape-border) .ed-selection,.ed-board:has(.shape-border) .ed-object.selected>.ed-handle{visibility:hidden}
.ed-board:has(.shape-border) .ed-object.selected{outline:none}

.shape-style-bar>button{box-sizing:border-box;height:24px;min-height:0;padding:1px 6px}
.art-panel.eraser-panel{background:white;color:#292731;color-scheme:light}
.eraser-panel input[type=range]{background:white}
.eraser-panel .eraser-reset{display:grid;place-items:center;justify-self:end}

.shape-style-bar:not(.shape-border){
  flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin
}
.shape-style-bar>*{flex:none;white-space:nowrap}
.shape-style-bar input[type=number]{box-sizing:border-box;width:5.5em;height:24px;background:white;color:#292731;padding:1px 4px}
.art-panel.shape-style-bar button:is(:hover,[aria-pressed=true]),.eraser-panel button:hover{background:#e6e8eb;color:#202124}
.art-panel.eraser-panel{left:4px;right:4px;margin-inline:auto}

.shape-style-bar input[type=range]{width:min(150px,35vw);height:24px;padding:0;background:transparent;accent-color:#292731}

.art-panel .page-align-control{display:grid;justify-items:center;align-content:center;gap:4px;padding:3px 6px;font-size:12px}
.page-align-diagram{position:relative;box-sizing:border-box;background:#fff;outline:1px solid #8a9098;border-radius:2px}
.art-panel .page-align-target{display:grid;place-items:center;position:absolute;margin:0;padding:0;min-height:0;min-width:0;border:0;border-radius:2px;color:#32363c;background:transparent}
.art-panel .page-align-target:is(:hover,:focus-visible){background:#e0e9fa;color:#154d9d;z-index:1}
.page-align-target::after{content:'';background:currentColor}
.align-top,.align-bottom{left:16%;width:68%;height:20%}
.align-top{top:0}.align-bottom{bottom:0}
.align-left,.align-right{top:20%;height:60%;width:20%}
.align-left{left:0}.align-right{right:0}
.align-middle{left:20%;top:40%;width:60%;height:20%}
.align-center{left:35%;top:20%;width:30%;height:20%}
.align-top::after,.align-bottom::after,.align-middle::after{width:80%;height:2px}
.align-left::after,.align-right::after,.align-center::after{width:2px;height:80%}
.art-panel .position-icon{display:inline-grid;place-items:center;min-width:28px;padding:2px 4px}
.position-icon svg{width:18px;height:18px}
.art-color-row{display:flex;align-items:center;gap:5px}
.floating-art-tool:popover-open{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);overflow:auto}
.art-drag-handle{grid-column:1/-1;cursor:grab;touch-action:none;user-select:none;font-weight:600;padding:4px;border-bottom:1px solid #ddd}
.art-drag-handle::before{content:'⠿';margin-right:6px;color:#777}
.art-drag-handle:active{cursor:grabbing}

.art-panel.eraser-panel button.pending-eraser{border-color:#17803d;box-shadow:inset 0 0 0 1px #17803d}
.art-crop-sliders,.tone-sliders{--adjustment-track:min(140px,30vw,30dvh)}
.art-crop-sliders{display:grid;grid-template-columns:minmax(100px,1fr) auto;align-items:center;gap:4px 12px;grid-column:1/-1}
.art-crop-sliders label{display:grid;grid-template-columns:auto;gap:0;font-size:12px;align-items:center}
.art-crop-sliders .crop-vertical{grid-column:2;grid-row:1/3;justify-items:center}
.art-crop-sliders input[type=range]{width:var(--adjustment-track);height:20px;margin:0;padding:0;accent-color:currentColor}
.art-crop-sliders .crop-vertical input[type=range]{writing-mode:vertical-lr;direction:ltr;width:20px;height:var(--adjustment-track)}

.art-panel.crop-panel{width:max-content;background:white;color:#292731;color-scheme:light}

.art-panel.position-panel:popover-open{
  width:min(320px,calc(100vw - 8px));height:min(320px,calc(100dvh - 8px));
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:min-content;
  align-content:start;gap:6px;background:white;color:#292731;color-scheme:light;overflow:auto
}
.position-panel .page-align-control{grid-column:span 2;grid-row:span 3}
.position-panel label{grid-column:span 2}
.position-panel input[type=number]{background:white;color:#292731}
.position-panel>button:not(.position-icon){grid-column:1/-1}

.art-panel.tone-sliders{display:grid;grid-template-columns:max-content;width:max-content;gap:6px;padding:6px 10px}
.art-panel.tone-sliders label{display:grid;grid-template-columns:5.5em var(--adjustment-track) 3.4em;align-items:center;gap:5px}
.art-panel.tone-sliders input[type=range]{box-sizing:border-box;width:var(--adjustment-track);height:20px;padding:0;margin:0}
.tone-sliders output{text-align:right;font-variant-numeric:tabular-nums}

.art-native-color{display:grid;gap:2px;justify-items:center;width:72px}
.art-native-color input[type=color]{box-sizing:border-box;width:100%;height:24px;padding:2px}
.art-native-color input[type=range]{box-sizing:border-box;width:100%;min-width:0;height:16px;padding:0;margin:0}

.art-native-color{grid-template-columns:minmax(0,1fr) 24px;align-items:center}
.art-native-color input[type=range]{grid-column:1/-1}
.art-native-color .art-reset-color{display:grid;place-items:center;width:24px;min-width:0;height:24px;min-height:0;padding:0}

.cover-settings-panel[popover]:not(:popover-open){display:none}
.cover-settings-panel:popover-open{width:min(620px,90vw);max-height:80dvh;overflow:auto;padding:16px;background:white;color:#24242a}
.art-palette:popover-open{display:grid;grid-template-columns:1fr auto;gap:5px;width:212px;padding:8px;border:1px solid #cacbd0;border-radius:10px;background:white;color:#24242a;box-shadow:0 3px 16px #21182d26;font:13px system-ui;color-scheme:light}
.art-spectrum{grid-column:1/-1;position:relative;height:98px;border-radius:4px;overflow:hidden;touch-action:none;cursor:crosshair;background-image:linear-gradient(to top,black,transparent),linear-gradient(to right,white,transparent)}
.art-spectrum i{position:absolute;width:10px;height:10px;border:2px solid white;box-shadow:0 0 0 1px #222;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.art-palette label{grid-column:1/-1;display:grid;grid-template-columns:82px 1fr;align-items:center}
.art-palette input{min-width:0;width:100%;box-sizing:border-box;color:#24242a;background:white}
.art-palette button{cursor:pointer}
button.art-picker-swatch{background:var(--chip);border:1px solid #aaa;box-shadow:inset 0 0 0 2px white;width:32px;height:24px}
.art-toolbar input[aria-label="Font size in points"]{appearance:textfield;-moz-appearance:textfield}
.art-toolbar input[aria-label="Font size in points"]::-webkit-inner-spin-button,.art-toolbar input[aria-label="Font size in points"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.palette-weights{display:grid;grid-column:1/-1;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.art-toolbar .palette-weights button{display:grid;place-items:center;min-width:0;padding:3px;height:30px}
.palette-weights button::after{content:'';width:100%;height:var(--weight);background:currentColor}
.ed-board:has(.border-palette:popover-open) .ed-selection,.ed-board:has(.border-palette:popover-open) .selected>.ed-handle{visibility:hidden}
.ed-board:has(.border-palette:popover-open) .ed-object.selected{outline:none}
.shape-image-fill{grid-column:1/-1;border-top:1px solid #ddd;padding-top:6px}
.shape-image-fill button,.shape-image-fill select{font:inherit;margin:2px}
.shape-image-fill label{display:flex;align-items:center;gap:8px}
.gradient-controls{display:flex;align-items:center;gap:5px;margin:2px 0}
.gradient-swatches{display:grid;gap:4px;flex:none}
.gradient-controls[hidden]{display:none}
.gradient-controls .gradient-swatches button[aria-pressed]{box-sizing:border-box;width:20px;height:20px;min-width:0;min-height:0;padding:0;border:1px solid #aaa;border-radius:5px}
.gradient-controls button[aria-pressed=true]{outline:2px solid #5548ce;outline-offset:1px}
.gradient-controls label{width:100%}
.gradient-controls input{max-width:80px}

.art-palette .palette-slider{display:flex;align-items:center;gap:4px;font:11px system-ui}
.art-palette .palette-slider input{appearance:none;flex:1;height:12px;margin:3px 0;border-radius:8px;cursor:pointer}
.art-palette .hue input{background:linear-gradient(90deg,red,yellow,lime,cyan,blue,magenta,red)}
.art-palette .transparency input{background:linear-gradient(90deg,var(--selected-color),transparent),repeating-conic-gradient(#ccc 0 25%,white 0 50%) 0 0/8px 8px}
.art-palette .palette-slider input::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border:2px solid white;border-radius:50%;background:var(--selected-color);box-shadow:0 0 0 1px #555}
.art-palette .palette-slider input::-moz-range-thumb{box-sizing:border-box;width:14px;height:14px;border:2px solid white;border-radius:50%;background:var(--selected-color);box-shadow:0 0 0 1px #555}
.art-palette input[aria-label="Hex color"]{width:9ch;font:12px monospace;padding:2px 4px;align-self:center}
.art-palette .palette-reset{font:22px/1 system-ui;padding:0 3px}
.art-palette .shape-image-fill{padding-top:3px}
.art-palette .shape-image-fill select{font-size:12px;padding:1px 3px}
.art-palette .fill-upload{padding:2px 4px;vertical-align:middle}
.fill-upload svg{display:block}
.gradient-direction{display:flex;align-items:center;gap:3px;width:auto}
.gradient-dial{position:relative;box-sizing:border-box;width:57.6px;height:57.6px;flex:none;margin:3px 3px 3px 0;border-radius:50%;border:1px solid #62616a;background:#585761;touch-action:none;cursor:grab;user-select:none}
.gradient-dial:active{cursor:grabbing}
.gradient-dial::after{content:'';position:absolute;width:10px;height:10px;left:calc(50% - 5px);top:calc(50% - 5px);border-radius:50%;background:white;transform:rotate(var(--rotation)) translateX(21.6px)}
.art-palette .gradient-direction input{box-sizing:content-box;width:3.5ch;min-width:0;max-width:3.5ch;padding:2px 1px;font:12px monospace;text-align:right;appearance:textfield}
.gradient-direction input::-webkit-inner-spin-button,.gradient-direction input::-webkit-outer-spin-button{appearance:none;margin:0}

.spacing-control{display:flex;align-items:center;gap:3px}
.spacing-control label{white-space:nowrap}
.art-panel.spacing-bar input{box-sizing:border-box;width:5.2ch;padding:2px;text-align:center;background:white;color:#292731;appearance:textfield}
.spacing-bar input::-webkit-inner-spin-button,.spacing-bar input::-webkit-outer-spin-button{appearance:none;margin:0}
.ed-number-tools .ed-number-arrows .adjustment-arrow,.art-panel.spacing-bar .adjustment-arrow{
  display:inline-grid;place-items:center;box-sizing:border-box;width:28px;height:30px;min-width:0;min-height:0;
  padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#202124;font:18px/1 system-ui
}
@media(hover:hover){
  .ed-number-tools .ed-number-arrows .adjustment-arrow:hover,.art-panel.spacing-bar .adjustment-arrow:hover{
    border-color:#b4b8bf;background:#f3f4f5
  }
}
.adjustment-arrow:focus-visible{outline:2px solid #5e6875;outline-offset:1px}
@media(pointer:coarse){
  .ed-number-tools .ed-number-arrows .adjustment-arrow,.art-panel.spacing-bar .adjustment-arrow{width:44px;height:44px}
}

.ed-board .selection-positioned,.selection-positioned:popover-open{right:auto;bottom:auto;margin:0;transform:none;box-sizing:border-box;max-width:calc(100vw - 8px)}
.ed-board .selection-positioned:popover-open{position:fixed}
.ed-object-actions.selection-positioned:popover-open,.ed-number-tools.selection-positioned:popover-open{border:0;overflow:auto;color:#292731}
.art-panel.selection-positioned,.selection-positioned.floating-art-tool:popover-open,.object-command-menu.selection-positioned{max-height:min(65dvh,560px);overflow:auto}
.ed-board .art-panel.font-browser.selection-positioned{overflow:hidden}

.art-palette.effects-bar:popover-open{width:min(236px,calc(100vw - 8px));pointer-events:auto}
.effects-bar .effect-choices{grid-column:1/-1;justify-content:space-between;border-top:1px solid #d2d5da;padding-top:6px}
.embedded-palette:not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:5px}
.effect-editor-title{grid-column:1/-1}
.effect-choices{display:inline-flex;align-items:center;gap:3px}
.art-palette.effects-bar .effect-choices>button,.art-palette.effects-bar .effect-color>button[aria-pressed]{width:auto;padding:4px 8px;color:#292731;background:white}
.art-palette.effects-bar button[aria-pressed=true]{background:#e6e8eb;box-shadow:inset 0 0 0 1px #777}
.thickness-slider{position:relative;display:flex;align-items:center;min-width:0;flex:1;height:26px}
.art-palette.effects-bar .effect-thickness{
  box-sizing:border-box;appearance:none;width:100%;height:24px;min-width:0;margin:0;padding:0;border:0;
  border-radius:0;background:linear-gradient(#92969e,#92969e) center/100% 3px no-repeat
}
.effect-thickness::-webkit-slider-thumb{appearance:none;width:24px;height:24px;border:1px solid #797e86;border-radius:50%;background:white}
.effect-thickness::-moz-range-thumb{box-sizing:border-box;width:24px;height:24px;border:1px solid #797e86;border-radius:50%;background:white}
.thumb-travel{position:absolute;inset:0 12px;pointer-events:none}
.thumb-value{position:absolute;top:50%;transform:translate(-50%,-50%);color:#242329;font:600 7.5px/1 system-ui;font-variant-numeric:tabular-nums}
.effects-bar output{font-variant-numeric:tabular-nums}

.effects-bar label>output{display:inline-block;inline-size:5.5ch;text-align:end}
.effect-direction{display:flex;align-items:center;gap:4px}
.effect-direction .shadow-direction output{position:absolute;inset:0;display:grid;place-items:center;color:white;font:600 8px/1 system-ui;pointer-events:none}
.effects-bar .shadow-direction{width:32px;height:32px;margin:0}
.shadow-direction::after{width:4px;height:4px;left:calc(50% - 2px);top:calc(50% - 2px);transform:rotate(var(--rotation)) translateX(12px)}
.effects-bar .effect-color>.art-picker-swatch{width:32px;height:24px;background:var(--chip)}

.effect-color{display:inline-flex;align-items:center;gap:2px}
.effects-bar .effect-color>.art-picker-swatch{padding:2px}
.effects-bar .art-palette .effect-weight{display:flex;gap:4px;grid-column:1/-1}
.effects-bar .effect-weight input{min-width:0;flex:1}
.effects-bar .effect-weight output{flex:none}
.effect-direction{grid-column:1/-1;justify-content:center}

.art-palette.effects-bar .effect-color>button[aria-pressed=true]{
  border-color:var(--effect-color);box-shadow:inset 0 0 0 1px var(--effect-color);background:#f3f3f4
}
.ed-board .text-selection-toolbar{
  align-items:center;gap:0;padding:0;overflow:visible;
  background:transparent;border:0;box-shadow:none;pointer-events:none
}
.text-selection-toolbar .text-format-controls{
  display:flex;align-items:center;gap:2px;flex:1 1 auto;min-width:0;
  padding:4px 6px 4px 4px;background:#fff;border:1px solid #d2d5da;
  border-right:0;border-radius:12px 0 0 12px;box-shadow:0 2px 8px #21182d14;
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;pointer-events:auto
}
.text-format-controls>*{flex:none}
.text-selection-toolbar .toolbar-text-editor{
  box-sizing:border-box;flex:none;width:min(285px,47vw);max-width:62%;
  height:96px;padding:8px 10px;resize:none;
  font:12px/1.4 system-ui;text-align:start;color-scheme:light;
  background:#fff;color:#202124;border:1px solid #b4b8bf;border-radius:10px;
  box-shadow:0 3px 12px #21182d18;pointer-events:auto;
  white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin
}
.text-selection-toolbar .toolbar-text-editor:focus-visible{
  border-color:#797f8a;outline:2px solid #797f8a40;outline-offset:-2px
}

.palette-weights button.no-border{font-size:10px;padding-inline:0}
.palette-weights .no-border::after{content:none}

.effect-settings{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 6px}
.effect-settings>[inert]{visibility:hidden}
.effect-settings>.effect-direction{grid-area:1/2;justify-self:end}
.effects-bar .effect-choices>button[data-selected=true]{background:#e6e8eb}
.effects-bar>.effect-choices{border-top:0;padding:0;gap:4px}
.effects-bar .effect-choices>button{flex:1}
.effects-bar .effect-settings>.effect-weight{grid-area:1/1;display:flex;align-items:center;gap:5px}
.effects-bar .effect-settings>.effect-weight input{flex:1;min-width:0}

.compact-palette-header{
  grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;gap:4px;border-bottom:1px solid #ddd
}
.compact-palette-header .art-drag-handle{grid-column:auto;border:0;white-space:nowrap;padding:3px 0}
.compact-palette-header .palette-reset{justify-self:end;min-width:24px;min-height:24px}

.effect-settings>.effect-weight:has(input[aria-label="Outline thickness"]){grid-column:1/-1}

.art-panel.spacing-bar .text-bend{
  writing-mode:vertical-lr;direction:rtl;appearance:auto;width:24px;height:66px;
  margin:0 2px;padding:0;accent-color:#292731;cursor:ns-resize;touch-action:none
}
.ed-object .bent-letter{display:inline-block;white-space:pre;text-decoration:inherit}
.ed-object:has(.bent-letter){overflow:visible}

.ed-board .art-panel.spacing-bar{
  height:74px;align-items:center;padding:0;gap:0;background:transparent;
  border:0;box-shadow:none;overflow:visible;pointer-events:none
}
.spacing-strip{
  display:flex;align-items:center;gap:6px;padding:2px 6px;box-sizing:border-box;
  background:white;border:1px solid #d2d5da;border-radius:9px;
  box-shadow:0 2px 8px #21182d1a;pointer-events:auto
}
.text-bend-control{position:relative;width:28px;height:28px;flex:none}
.art-panel.spacing-bar .text-bend{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  margin:0;height:74px;width:28px;padding:3px 1px;
  background:#fff;border:1px solid #d2d5da;border-radius:9px
}
.art-panel.spacing-bar .curve-reset{width:26px;height:28px;font:19px/1 system-ui;padding:0}
@media(max-width:400px){
  .spacing-strip,.spacing-control{gap:1px}
  .art-panel.spacing-bar .adjustment-arrow{width:31px}
}

.art-toolbar button.text-color-swatch{
  padding:0;color:var(--chip);background:white;font:700 19px/1 system-ui;
  paint-order:stroke fill
}

.text-selection-toolbar .text-format-controls>button:is([data-format],[aria-label^="Align "],[data-applied]):is([aria-pressed=true],[data-applied=true]),
.art-panel.letter-case-options button[aria-pressed=true],
.art-panel.font-browser .font-options button[aria-pressed=true],
.art-palette.effects-bar .effect-choices>button[aria-pressed=true]{
  background:#dce6de;color:#253d2b;border-color:#b3c4b7
}
.art-panel.letter-case-options button[aria-pressed=false]:not(:hover),
.text-selection-toolbar .text-format-controls>button:is([data-format],[aria-label^="Align "],[data-applied=false]):not([aria-pressed=true]):not(:hover){
  background:transparent;border-color:transparent;box-shadow:none
}

.art-panel.letter-case-options{
  display:grid;grid-template-columns:repeat(3,32px);width:max-content;gap:2px;padding:3px
}
.art-panel.letter-case-options>button{
  display:grid;place-items:center;width:32px;height:28px;min-height:28px;padding:0;border-radius:7px;font-weight:600
}
.art-panel.letter-case-options>button[aria-pressed=false]:not(:hover){
  background:#fafbfa;border-color:#dfe3df
}

.ed-board .art-panel:is(.letter-case-options,.compact-object-tool),.ed-board .spacing-strip{
  box-sizing:border-box;height:var(--selection-action-height);padding-block:1px;align-items:center
}
.ed-board .letter-case-options>button,.ed-board .spacing-strip .adjustment-arrow,
.ed-board .spacing-strip .curve-reset,.ed-board .spacing-strip .text-bend-control{
  height:26px;min-height:0
}
.ed-board .compact-object-tool.tone-sliders{align-content:center}

/* Reset controls keep their hit area as the icon changes state. */
button:is(.palette-reset,.curve-reset,.eraser-reset,.position-reset){
  border-color:transparent!important;background:transparent!important;box-shadow:none!important;
  color:#7742b5!important;font-weight:700!important;
}
button:is(.palette-reset,.curve-reset,.eraser-reset,.position-reset):disabled{
  color:#77737c!important;font-weight:400!important;opacity:1;cursor:default;
}
button.eraser-reset:enabled svg{stroke-width:2.6}
button:is(.palette-reset,.curve-reset,.eraser-reset,.position-reset):focus-visible{outline:2px solid #7742b5}

.ed-board .art-panel.spacing-bar{height:var(--selection-action-height)}
.spacing-strip:has(.spacing-track){width:min(310px,calc(100vw - 12px));gap:2px}
.spacing-track{position:relative;flex:1;height:26px;cursor:grab;touch-action:none;user-select:none}
.spacing-track:active{cursor:grabbing}
.spacing-track:focus-visible{outline:2px solid #526da9;border-radius:6px}
.spacing-rail{position:absolute;left:8px;right:8px;top:50%;height:0}
.spacing-rail svg{position:absolute;width:100%;height:20px;top:-10px;left:0;pointer-events:none;overflow:visible}
.spacing-rail path{fill:none;stroke:#aab3bf;stroke-width:2;stroke-linecap:round}
.spacing-knob{position:absolute;width:13px;height:13px;border-radius:50%;background:#655771;transform:translate(-50%,-50%);box-shadow:0 0 0 1px white}
.spacing-knob.straight{background:#286bd4}

.art-palette .color-presets{--swatch-height:18px;grid-column:1/-1;column-gap:1px;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));align-items:center;height:var(--swatch-height);min-width:0}
.art-palette.effects-bar:popover-open{row-gap:2px;padding-block:6px}
.art-palette.effects-bar .palette-slider input{margin-block:1px}
.art-palette:has(.color-presets) .art-spectrum{height:83px}
.art-palette .color-presets>button{all:unset;display:grid;place-items:center;box-sizing:border-box;width:100%;height:var(--swatch-height);cursor:pointer}
.art-palette .color-presets>button::after{content:'';box-sizing:border-box;width:100%;height:var(--swatch-height);border:1px solid #0003;border-radius:0;background:var(--preset)}
.art-palette .color-presets>.transparent-preset::after{background:linear-gradient(to bottom right,white 46%,#b83850 47% 53%,white 54%)}
.art-palette .color-presets>button:is(:hover,:focus-visible)::after{outline:1px solid #595264;outline-offset:1px}
.art-palette .palette-weights button{height:22px;min-height:0;padding-block:1px}
.art-palette .palette-weights .no-border:is(button,[aria-pressed]){border:0;box-shadow:none;background:transparent}
.art-palette .palette-weights .no-border[aria-pressed=true]{font-weight:700;color:#654492}
.art-palette .palette-weights button.no-border:is(:hover,:focus-visible){
  font-weight:700;color:#654492;text-shadow:0 0 4px #a778dc85;cursor:pointer;
}

.art-palette .palette-weights>button.no-border::after{content:none}
.art-palette .palette-weights>button.no-border{border:0!important;box-shadow:none!important;background:transparent!important}

.art-toolbar button.text-color-swatch:hover{background:white;color:var(--chip)}
.art-toolbar button.fill-color-swatch,.art-toolbar button.fill-color-swatch:is(:hover,[aria-pressed]){background:var(--chip);border:1px solid #b4b8bf;border-radius:7px;box-shadow:none}

/* Exchange spectrum height for the effect controls so all targets dock identically. */
.art-palette.effects-bar[data-color-target="Text"] .effect-settings{display:none}
.art-palette.effects-bar[data-color-target]:not([data-color-target="Text"]) .art-spectrum{height:49px}
.art-palette.effects-bar .effect-settings{box-sizing:border-box;height:32px}

.ed-rotation-grip{position:absolute;right:8px;top:6px;width:19px;height:19px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:white;color:var(--turn-color,#8643d5);cursor:grab;pointer-events:auto;touch-action:none}
.ed-rotation-grip:active{cursor:grabbing}
.ed-rotation-grip svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ed-selection[data-rotation-guide=horizontal]{--turn-color:#168348}
.ed-selection[data-rotation-guide=vertical]{--turn-color:#2472dc}
.ed-selection[data-rotation-guide=diagonal]{--turn-color:#de791c}
.ed-selection[data-rotation-guide]:not([data-rotation-guide=""]){outline-color:var(--turn-color)}
.ed-selection[data-rotation-guide]:not([data-rotation-guide=""]) .ed-grip{border-color:var(--turn-color);background:var(--turn-color)}
.ed-content:has(.has-design-rail[data-drawer=Shape]),.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer=Shape]){grid-template-columns:minmax(0,1fr) min(460px,48vw)}
.shape-picker{display:grid;grid-template-columns:minmax(76px,32%) minmax(0,1fr);gap:8px}
.shape-categories,.shape-results{max-height:68vh;overflow-y:auto;align-content:start}
.shape-categories{display:grid;gap:2px}
.design-drawer .shape-categories button{font:inherit;font-size:13px;background:transparent;border:0;padding:5px 4px;min-height:32px}
.design-drawer .shape-categories button[aria-pressed=true]{background:#ece2fc;color:#4d2787;font-weight:700}
.shape-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(49px,100%),1fr));grid-auto-rows:54px;gap:6px;min-width:0}
.design-drawer .shape-results button{box-sizing:border-box;height:100%;min-height:0;min-width:0;overflow:hidden;display:grid;place-items:center;padding:7px;background:transparent;color:#36343d}
.shape-results svg{width:80%;height:auto;max-height:50px;max-width:50px}
@media(max-width:760px){.ed-content:has(.has-design-rail[data-drawer=Shape]),.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer=Shape]){grid-template-columns:minmax(0,1fr) 58px}.ed-editing.has-design-rail[data-drawer=Shape]{width:min(430px,90vw)}.ed-content:has(.has-design-rail[data-drawer=Shape])>.drawer-collapse{right:min(430px,90vw)}}
.art-palette .palette-weights .border-style-trigger{display:flex;align-items:center;justify-content:center;gap:1px;font-size:10px}
.art-palette .palette-weights .border-style-trigger::after{content:none}
.border-style-trigger canvas{width:55%;height:auto}
.border-style-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.border-style-options[hidden]{display:none}
.art-palette .border-style-options button{display:flex;align-items:center;gap:4px;width:100%;height:24px;padding:2px;font-size:10px;white-space:nowrap}
.border-style-options canvas{width:32%;height:auto}
.art-palette .border-style-options{grid-template-columns:1fr}
.art-palette .border-style-options button{height:28px;gap:9px;font-size:12px}
.art-palette .border-style-options canvas{width:48%;max-width:96px}
.shape-modes{display:flex;gap:3px;padding:3px;background:#eceaf0;border-radius:9px}
.design-drawer .shape-modes button{text-align:center;border:0;background:transparent;min-height:30px}
.design-drawer .shape-modes button[aria-pressed=true]{background:white;color:#532c87;font-weight:700;box-shadow:0 1px 3px #29213133}
.shape-results canvas{width:100%;height:auto}
.bubble-tail-preview{width:100%;max-width:240px;aspect-ratio:3/2;touch-action:none;background:#f2f1f5;border-radius:6px}
.ed-object.ed-text-bubble{isolation:isolate;overflow:visible}
.ed-text-bubble::before{content:'';position:absolute;inset:-50%;z-index:-1;pointer-events:none;background:var(--bubble-backdrop) center / 100% 100% no-repeat}
.ed-text-bubble::before{inset:-250%}
.ed-selection>.bubble-page-handle{z-index:5;position:absolute;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%);width:12px;height:12px;min-height:0;padding:0;border:2px solid white;box-shadow:0 0 0 1px #51378b;border-radius:50%;background:#7448ba;cursor:grab}
.ed-selection>.bubble-page-handle.tip{background:#117aa5}
.art-panel.shape-corner-slider,.art-panel.shape-corner-slider:popover-open{box-sizing:border-box;width:min(224px,94vw);min-width:0;min-height:0;padding:5px 8px;background:#fff;color:#242329}
.art-panel.shape-corner-slider label{display:grid;grid-template-columns:auto minmax(48px,1fr) 32px;align-items:center;gap:6px;margin:0;font-size:12px}
.art-panel.shape-corner-slider input{width:100%;min-width:0;margin:0}
.compact-palette-header:has(.bubble-apply-all){grid-template-columns:auto minmax(35px,1fr) auto auto}
.art-palette .compact-palette-header .bubble-apply-all{font-size:10px;white-space:nowrap;min-width:0;min-height:20px;width:auto;height:auto;padding:2px 4px}
.design-drawer .text-insert-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.design-drawer .text-insert-tiles button{display:grid;place-items:center;box-sizing:border-box;width:100%;height:auto;min-height:0;aspect-ratio:1;padding:8px;background:white;color:#63418e;cursor:pointer}
.design-drawer .text-insert-tiles button:hover,.design-drawer .text-insert-tiles button:focus-visible{background:#f5effc;border-color:#916cb6}
.text-insert-tiles svg{width:58%;max-width:48px;height:auto}
.shape-fill-row{display:flex;align-items:center;gap:4px;min-width:0}
.shape-surface-swatches{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto;padding:3px;scrollbar-width:thin}
.shape-surface-swatches[hidden]{display:none}
.art-palette .shape-image-fill .shape-surface-swatches button{display:grid;place-items:center;box-sizing:border-box;flex:0 0 15px;width:15px;height:15px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid #8888;border-radius:3px;font:700 9px/1 system-ui}
.shape-surface-swatches button[aria-pressed=true]{outline:1.5px solid #6740aa;outline-offset:1px}
.shape-search-row{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:5px}
.design-drawer button.shape-upload-tile{display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;min-height:24px;padding:3px;border-radius:5px}
.shape-upload-tile svg{width:16px;height:16px}
.shape-upload-dialog label{display:grid;gap:3px;margin-bottom:9px}
.shape-upload-dialog label[hidden]{display:none}
.design-drawer .shape-results img{width:85%;height:85%;margin:0;object-fit:contain}
.design-drawer .shape-results button:has(.catalog-shape-preview){position:relative;min-width:0}
.design-drawer .shape-results img.catalog-shape-preview{position:static;width:100%;height:100%;min-height:0;min-width:0;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.ed-content:has(.has-design-rail[data-drawer=Shape]:not([data-drawer=closed]))>.drawer-collapse{right:min(460px,48vw);transform:translateY(-50%)}
@media(max-width:800px){
.ed-content:has(.has-design-rail[data-drawer=Shape]),.ed-cover-mode .ed-content:has(.has-design-rail[data-drawer=Shape]){grid-template-columns:minmax(0,1fr) 58px}
.ed-editing.has-design-rail[data-drawer=Shape]{width:min(430px,90vw)}
.ed-content:has(.has-design-rail[data-drawer=Shape]:not([data-drawer=closed]))>.drawer-collapse{right:min(430px,90vw)}
}

.design-drawer .uploads-project-picker{display:flex;align-items:center;gap:8px}.uploads-project-picker select{flex:1;min-width:0}

.design-drawer button.uploads-add-image{flex:0 0 40px;width:40px;height:40px;display:inline-grid;place-items:center;padding:0;color:#2369be}

.ed-stage>.cv-labeled-spread{flex:none;margin:auto;width:calc(min(100cqw,(100cqh - 14px) * var(--ed-ratio)) * var(--ed-scale,1))}
.cv-labeled-spread>.cv-spread{display:block;width:100%;box-shadow:0 1px 5px #0003}
.cv-panel-hints{display:grid;grid-template-columns:1fr 1fr;text-align:center;font:9px/14px system-ui;color:#343434;pointer-events:none}

.ed-editing[data-drawer=Uploads] .design-drawer{height:100%;min-height:0}
.uploads-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:6px;min-height:0;overflow-y:auto}
.uploads-grid>p{grid-column:1/-1}
.design-drawer .uploads-grid button{display:grid;place-items:center;aspect-ratio:1;min-height:0;padding:2px;overflow:hidden;box-sizing:border-box}
.design-drawer .uploads-grid img{display:block;width:100%;height:100%;min-height:0;margin:0;object-fit:contain}

.shelf-book{margin:0;max-width:100%}
.shelf-book figcaption{margin-top:5px;font-size:11px;line-height:1.35;text-align:center;overflow-wrap:anywhere}

.provider-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;margin-bottom:1.5rem}
.provider-choice{font:inherit;font-size:1.2rem;font-weight:700;color:var(--ink);min-height:5rem;cursor:pointer}
.provider-choice[aria-pressed=true],.provider-choice:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.provider-choice{display:grid;place-items:center;min-height:7rem;padding:1.4rem;background:#fff}
.provider-choice[data-provider=kdp]{background:#fff}.provider-choice[data-provider=kdp] .provider-logo{width:11.94rem;height:4rem;max-width:100%}
.provider-choice[data-provider=bookvault]{background:#163750}
.provider-choice[data-provider=ingram]{background:#26342b}
.provider-logo{display:block;width:100%;max-width:14rem;height:3rem;object-fit:contain}
.provider-choice[data-provider=lulu] .provider-logo{max-width:8rem}
.provider-choice[data-provider=kdp]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;padding:.8rem}
.kdp-tile-name{color:#232f3e;font:700 1rem/1.25 var(--font-sans,Arial,sans-serif)}

.provider-choice[data-provider=kdp]{background:#182332;color:white}
.provider-choice .kdp-wordmark{display:flex;align-items:center;justify-content:center;gap:.3em;flex-wrap:wrap;font:600 clamp(1rem,2vw,1.55rem)/1.15 Arial,sans-serif}
.kdp-wordmark>span{color:#ff9900;font-weight:700}
.kdp-wordmark>strong{color:#fff;font-weight:600}
.provider-choice .kdp-tile-name{color:#d4dce6;font-size:.875rem}

.kdp-setup label{display:grid;gap:.35rem}
.kdp-setup textarea{width:100%;box-sizing:border-box;min-height:6rem;font:inherit;padding:.7rem}
.kdp-setup>.actions{margin-top:1.25rem}
.kdp-setup details{margin:1rem 0}
.keyword-replace{justify-self:end;min-height:28px;padding:.1rem .5rem;font-size:1rem}

.workflow-page:has(.compact-details){background:#efefef;color:#252525}
.workflow-page :is(.kdp-setup,.publish-panel):has(.compact-details){background:#f4f4f4;color:#262626;border-color:#ccc;color-scheme:light}
.workflow-page .compact-details{display:grid;grid-template-columns:minmax(0,1fr);gap:.7rem}
.compact-details .detail-row{display:grid;gap:.7rem;align-items:start;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr))}
.compact-details .identity-row{grid-template-columns:minmax(7rem,.52fr) repeat(2,minmax(0,1.4fr))}
.compact-details .author-row{grid-template-columns:1.4fr 1fr}
.compact-details .detail-row>*{min-width:0}
.compact-details label{display:grid;gap:.25rem;color:#333}
.workflow-page .compact-details :is(input,select,textarea){background:#fff;color:#222;border:1px solid #999;width:100%;min-width:0;box-sizing:border-box;border-radius:.45rem;padding:.45rem .6rem}
.workflow-page .compact-details textarea[name=contributors]{height:3.4rem;min-height:3.4rem}
.workflow-page .compact-details textarea[name=description]{height:10rem;min-height:8rem}
.compact-details :is(.category-row,.keyword-row){padding:.85rem;border-radius:.65rem}
.compact-details .category-row{background:#e1eee5;border:1px solid #adc6b5}
.compact-details .keyword-row{background:#fff0d5;border:1px solid #dabf8a}
.compact-details .detail-row h3{grid-column:1/-1;margin:0;color:#292929}
.compact-details .keyword-row:has(textarea){grid-template-columns:1fr}
.compact-details p,.compact-details summary{color:#404040}
@media(max-width:700px){.compact-details .identity-row,.compact-details .author-row{grid-template-columns:1fr}.compact-details .detail-row{gap:.5rem}}

.kdp-setup>.actions .kdp-continue{margin-inline-start:auto;background:#b9edc5;color:#153c21;border:1px solid #71ae80}
.kdp-setup>.actions .kdp-continue:hover{background:#a4dfb2;color:#153c21}
.kdp-setup>.actions .kdp-save-draft{background:#fff;color:#292929;border:1px solid #848484}
.kdp-setup>.actions .kdp-save-draft:hover{background:#eee;color:#202020}
.kdp-setup>.actions :is(.kdp-continue,.kdp-save-draft):focus-visible{outline:3px solid #276339;outline-offset:3px}
.workflow-page .flow-heading:has(a[href*="review-book"]){align-items:flex-start;flex-direction:column}
.workflow-page .flow-heading a[href*="review-book"]{order:-1;color:#242424;background:white;border:1px solid #858585}
.kdp-setup>.actions .kdp-save-draft{margin-inline-start:auto}
.kdp-setup>.actions .kdp-continue{margin-inline-start:0}
.kdp-setup>.actions>.secondary:first-child{color:#292929;background:white;border:1px solid #888}
.edition-picker .edition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:clamp(.65rem,2vw,1.5rem);margin:1rem 0}
.edition-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;width:100%;gap:1.2rem;min-width:0;border:1px solid #adcbc1;border-radius:1rem;background:linear-gradient(145deg,#f2faf4,#d6eae0);color:#203c34;font:inherit;font-size:clamp(1rem,2vw,1.5rem);font-weight:700;cursor:pointer}
.edition-tile[data-kind=hardcover]{background:linear-gradient(145deg,#f5f7ff,#dbe3f2);border-color:#acb9d6;color:#223653}
.edition-tile[data-kind=series]{background:linear-gradient(145deg,#fff9ea,#f2dfc1);border-color:#d4ba90;color:#4a321d}
.edition-tile:hover,.edition-tile:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.edition-art{display:flex;align-items:flex-end;justify-content:center;width:70%;height:45%;filter:drop-shadow(4px 7px 4px #17233230)}
.edition-art i{position:relative;display:block;height:95%;aspect-ratio:.71;background:linear-gradient(100deg,#166954 7%,#299479 12%,#19765f 95%);border-radius:2px 10px 8px 2px;border-bottom:5px double #e5ddc3;transform:rotate(-8deg) skewY(3deg)}
.edition-art b{position:absolute;inset:20% 16% 24%;border-top:3px solid #f3d898;border-bottom:1px solid #f3d898}
[data-kind=hardcover] .edition-art i{background:linear-gradient(90deg,#203659 12%,#627ea2 14%,#334b71 19%);border:3px solid #233b5d;border-bottom:8px double #eedfc3;border-radius:3px;transform:rotate(4deg)}
[data-kind=hardcover] .edition-art b{border:2px solid #d5ba7e}
[data-kind=series] .edition-art i{aspect-ratio:.32;background:#95502f;border-left:4px solid #72351e;border-radius:4px;transform:rotate(-8deg)}
[data-kind=series] .edition-art i:nth-child(2){background:#456c60;height:88%;transform:none}
[data-kind=series] .edition-art i:nth-child(3){background:#456281;height:96%;transform:rotate(9deg)}
.edition-picker .edition-text-link{display:inline-block;background:none;border:0;padding:.35rem;margin-right:.6rem;color:inherit;text-decoration:underline;font:inherit;font-size:.875rem;cursor:pointer}
/* Keep both provider pickers directly below the navigation. */
.workflow-page:has(>.flow-heading:is(.publishing-heading,.printer-heading)){padding-block-start:clamp(.4rem,1.6vh,1rem)}
.workflow-page :is(.publishing-heading,.printer-heading){display:grid;grid-template-columns:1fr auto 1fr;gap:.5rem;align-items:center;margin:0 0 .75rem}
.workflow-page :is(.publishing-heading,.printer-heading) h1{grid-area:1/2;margin:0;text-align:center;font-size:clamp(1.55rem,3.6vw,2.8rem)}
.workflow-page :is(.publishing-heading,.printer-heading) a[href*="review-book"]{grid-area:1/1;justify-self:start;align-self:center;margin:0}
.workflow-page .provider-picker{margin-bottom:.75rem;gap:.65rem}
@media(max-width:720px){
  .workflow-page :is(.publishing-heading,.printer-heading){grid-template-columns:1fr}
  .workflow-page :is(.publishing-heading,.printer-heading) h1{grid-area:1/1}
  .workflow-page :is(.publishing-heading,.printer-heading) a[href*="review-book"]{grid-area:2/1}
  .workflow-page .provider-choice{min-height:4.4rem;padding:.5rem}
  .workflow-page .provider-logo{height:2.25rem}
}
@media(max-height:550px) and (min-width:480px){
  .workflow-page .provider-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
  .workflow-page .provider-choice{min-height:4rem;padding:.45rem}
}

.workflow-page .provider-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.65rem;width:100%;box-sizing:border-box}
.workflow-page .provider-actions .button.primary{background:#b9edc5;color:#163e23;border:1px solid #679c74}
.workflow-page .provider-actions .button.secondary,.workflow-page .printer-options .button.secondary{background:#fff;color:#292929;border:1px solid #888}
.workflow-page .provider-actions .button.primary:hover{background:#a6deb2;color:#163e23}
.workflow-page .provider-actions .button.secondary:hover{background:#eee;color:#202020}
.workflow-page .provider-actions .button:disabled{background:#ececec;color:#535353;border-color:#aaa;opacity:1}
.workflow-page .provider-actions .button:focus-visible{outline:3px solid #367148;outline-offset:3px}
.workflow-page .provider-actions .review-back{margin-inline-end:auto}
.workflow-page .provider-actions [role=status]{flex-basis:100%}
.workflow-page .review-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.review-heading h1{grid-area:1/2;text-align:center;margin:0}
.review-heading a{grid-area:1/1;justify-self:start}
.workflow-page .review-heading .button{background:white;color:#252525;border:1px solid #888}
.review-preview.show-cover .review-layout{grid-template-columns:minmax(0,1fr)}
.review-preview.show-cover :is(.review-rail,.review-pager){display:none}
.review-preview.show-cover .review-stage>img{width:100%;height:auto}
.review-preview .review-rail{max-height:68vh;overflow:auto}
.legacy-cover-spread{display:grid;grid-template-columns:1fr 1fr;width:100%;align-items:center}
@media(max-width:720px){.workflow-page .review-heading{grid-template-columns:1fr}.review-heading h1{grid-area:1/1}.review-heading a{grid-area:2/1}}
.review-preview .preview-tabs{display:flex;align-items:center;width:100%}
.review-download{margin-inline-start:auto;display:grid;place-items:center;width:42px;height:42px;background:#e8e8e8;color:#242424;border:1px solid #888;border-radius:.5rem;cursor:pointer}
.review-download svg{width:21px;height:21px}.review-download:focus-visible{outline:3px solid #357048}.review-download:disabled{opacity:.55}
.review-download-status:empty{display:none}.review-export-frame{position:fixed;top:0;left:-20000px;pointer-events:none}

.cv-prompt-header,.cv-prompt-choices{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.cv-prompt-header h2{margin:0}.cv-prompt-choices button[aria-pressed=true]{background:var(--tint);border-color:var(--accent);color:var(--accent)}

.cv-prompt-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr))}
.cv-prompt-choices .button{display:flex;align-items:center;gap:.45rem;text-align:left;white-space:normal;height:auto;margin:0;padding:.5rem;background:white;border:2px solid #dce3d7;border-radius:12px;color:#354b3a}
.cv-prompt-choices img{width:2.75rem;height:3rem;object-fit:contain;mix-blend-mode:multiply}
.cv-prompt-choices .button[aria-pressed=true]{background:#eef4e7;border-color:#63854e}

.cv-generating{position:absolute;top:45%;width:44%;z-index:6;text-align:center;background:white;padding:.6rem;border-radius:.5rem;box-shadow:0 1px 8px #0003;pointer-events:none}.cv-generating.back{left:3%}.cv-generating.front{right:3%}.cv-generating:before{content:'';display:inline-block;margin-right:.4em;width:1em;height:1em;border:2px solid #aaa;border-top-color:#253c57;border-radius:50%;animation:cv-spin 1s linear infinite}@keyframes cv-spin{to{transform:rotate(360deg)}}

.cv-ai-tile{--tool-ink:#245a38;--tool-tint:#e4f3e8}.cv-ai-tile span{color:var(--tool-ink);display:block}.cv-dialog .button.primary.cv-create-action{background:#246a40;color:#fff;border-color:#246a40}.cv-dialog .cv-create-action:enabled:hover{background:#195431}

.cv-art-options:not([hidden]){display:flex;gap:1rem;flex-wrap:wrap}.cv-art-options label{flex:1;min-width:9rem}.cv-art-options select{width:100%}

.cv-art-options label[hidden]{display:none}

.upload-delete-dialog{width:min(250px,calc(100vw - 24px));height:auto;box-sizing:border-box;padding:14px;border:1px solid #ddd;border-radius:10px;background:#fff;color:#222;box-shadow:0 6px 24px #0003}
.upload-delete-dialog::backdrop{background:#0004}
.upload-delete-dialog p{margin:0;font-weight:600}.upload-delete-dialog small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-delete-dialog small:empty{display:none}
.upload-delete-dialog div{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.upload-delete-dialog button{padding:6px 12px;min-height:32px;border:1px solid #ad2431;border-radius:6px;background:white;color:#a0202c;cursor:pointer}.upload-delete-dialog .confirm-delete{background:#ad2431;color:white}

.upload-item{position:relative;min-width:0}.design-drawer .uploads-grid .upload-item>button:first-child{width:100%}
.design-drawer .uploads-grid .upload-remove{position:absolute;right:0;top:0;width:22px;height:22px;min-height:0;padding:1px 2px 0 0;display:grid;place-items:start end;border:0;background:transparent;color:#000;font:500 9px/1 system-ui}
.design-drawer .uploads-grid .upload-remove:is(:hover,:focus-visible){font-size:12px;font-weight:700;color:#ab1829;text-shadow:0 0 2px white,0 0 4px white;cursor:pointer}

.upload-item .upload-remove span{display:block;transform-origin:top right;font:500 9px/1 system-ui;color:#000;pointer-events:auto}
.design-drawer .upload-remove span:hover,.design-drawer .upload-remove:focus-visible span{font-size:12px;font-weight:700;color:#ab1829;text-shadow:0 0 2px white}

dialog.upload-delete-dialog{position:fixed;inset:auto;margin:0;width:max-content;max-width:calc(100vw - 6px);min-width:0;min-height:0;height:auto;padding:6px 8px;border-radius:6px;font:12px/1.2 system-ui}
dialog.upload-delete-dialog::backdrop{background:transparent}
dialog.upload-delete-dialog div{gap:4px;margin-top:5px}dialog.upload-delete-dialog button{min-height:22px;padding:2px 6px;font:12px/1.2 system-ui}

.ed-stage .ed-paper:has(.upload-frame:not([hidden])){overflow:visible}
.ed-stage .ed-object.upload-object:focus-visible,.ed-stage .ed-object.upload-object.selected{outline:none}
.ed-board .ed-paper .ed-selection.upload-frame{visibility:visible;outline-color:#8643d5}
.review-eye+.review-download{margin-inline-start:0}
.review-pdf-dialog{width:min(72rem,94vw);height:90vh;padding:0;border:0;border-radius:.6rem}
.review-pdf-dialog[open]{display:flex;flex-direction:column}
.review-pdf-dialog::backdrop{background:#0009}
.review-pdf-dialog header{position:static;display:flex;align-items:center;justify-content:space-between;padding:.7rem 1rem}
.review-pdf-dialog iframe{width:100%;flex:1;border:0}
.review-pdf-dialog p{padding:0 1rem}
.template-preview{width:min(100%,360px);margin:8px auto;line-height:0}
.template-preview .ed-paper{line-height:normal}
.template-selected{outline:2px solid #7454dd;outline-offset:-2px}
.template-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.template-fields input{width:100%;min-width:0}
.template-word-grid{display:grid;align-items:center;justify-items:center;line-height:1}
.ed-object>.template-word-grid{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.ed-dialog:has(.template-preview){max-height:90dvh;overflow:auto;width:min(550px,94vw)}
.template-choices{display:grid;gap:8px}
.ed-dialog label:has(>select),.ed-dialog label:has(>input){display:grid;gap:4px;margin-block:6px}
.ed-dialog:has(.template-choices),.ed-dialog:has(.dialog-body select){max-height:90dvh;overflow:auto}
.design-drawer .templates-heading{display:flex;align-items:center;gap:4px}
.design-drawer .template-category-actions .template-add{display:inline-grid;place-items:center;width:24px;height:24px;min-height:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;font:500 21px/1 system-ui}
.design-drawer .template-add:hover{color:#6143a0}
.design-drawer .template-add:focus-visible{outline:2px solid currentColor}

.ed-stage .ed-object[data-empty-slot] {outline:1px dashed #6074a4;background:rgba(114,143,208,.07);display:grid;place-items:center}
.ed-stage .ed-object[data-empty-slot]::after {content:attr(data-empty-slot) " box";font:500 2.8cqw/1.2 sans-serif;color:#465a81}

:is(.object-command-menu,.template-box-tools).box-picker button{grid-template-columns:38px 1fr 20px;min-height:44px;gap:12px}
.box-picker strong{font-weight:500}
.box-sample{display:grid;place-items:center;height:30px;border:1px solid #ddd9ea;border-radius:6px;background:#f8f7fc;color:#504a6b}
.box-sample svg{width:30px;height:23px}
.box-sample text{font:700 8px monospace;fill:currentColor}
.box-plus{font:normal 20px/1 system-ui;color:#746a89;text-align:center}
.paper-bg-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-bottom:1rem}.paper-bg-controls label{display:flex;align-items:center;gap:.4rem}.paper-bg-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:.55rem;overflow:auto;max-height:56vh;padding:3px}.paper-bg-gallery button{display:grid;align-content:start;gap:.3rem;padding:.3rem;border:1px solid #ddd9ea;border-radius:8px;background:white;color:#332e46}.paper-bg-gallery button[aria-pressed=true]{outline:2px solid #705ac2}.paper-bg-gallery img{width:100%;height:78px;object-fit:fill;border-radius:4px}.paper-bg-gallery span{font-size:.8rem}
.template-sample-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:12px}
.template-sample-card{display:grid;gap:5px;align-content:start;min-width:0}
.template-sample-card>button:first-child{display:grid;align-items:center;background:#47494e;padding:8px;height:180px}
.template-sample-card .ed-paper{height:auto;width:auto;max-width:100%;max-height:160px;justify-self:center;height:150px;pointer-events:none}
.sample-large{width:min(100%,440px);margin:auto}.sample-large .ed-paper,.sample-canvas .ed-paper{pointer-events:none}
.sample-slot-row{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0}.sample-slot-row input{min-width:0}
.ed-dialog:has(.sample-canvas),.ed-dialog:has(.template-sample-grid){max-height:92dvh;overflow:auto}
.ed-object[data-kind=Crossword] i small{display:block;font:600 .9cqw system-ui}
.template-sample-card>button:first-child>.ed-paper{width:min(100%,calc(150px * var(--template-ratio)));height:auto;max-height:none}
.sample-slot-row label{display:flex;align-items:center;gap:8px}
.sample-slot-row label input{width:auto}
.ed-object.sample-puzzle{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,2fr) auto;gap:2%;align-content:stretch}
.sample-puzzle-grid{display:grid;place-items:center;min-height:0;min-width:0;overflow:hidden}
.sample-puzzle-grid .template-word-grid{max-height:100%;width:auto!important;margin:auto}
.sample-puzzle-list{white-space:pre-line;font:400 1.9cqw/1.2 Georgia,serif;text-align:left}

.ed-thumb-group{position:relative}
.ed-thumb-group .ed-thumb{padding-right:26px;gap:6px}
.ed-thumb-group .ed-more{position:absolute;top:2px;right:2px;width:24px;height:24px;padding:0;line-height:1}
.ed-last-page{grid-template-columns:minmax(0,1fr)}
.ed-page-labels{display:grid;min-width:0;gap:2px}
.ed-page-labels small{font-size:.75rem;line-height:1.15;color:var(--muted)}
.ed-page-title{font-size:.8125rem;line-height:1.2}
.ed-page-title:empty{display:none}
.ed-page-menu{width:max-content;max-width:calc(100vw - 8px);padding:3px}
.ed-page-menu:popover-open{gap:1px}
.ed-page-menu .button{display:block;min-height:0;height:auto;padding:4px 7px;font-size:.75rem;line-height:1.25;text-align:left;border:0;border-radius:4px}
.ed-page-menu .ed-delete-page{color:#b42318}

.design-drawer .template-sample-grid{display:grid;grid-template-columns:minmax(0,1fr);color:#192334}
.design-drawer .sample-slot-row{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
.design-drawer .sample-slot-row input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box}
.design-drawer .sample-canvas,.design-drawer fieldset{min-width:0;max-width:100%}
.design-drawer progress{width:100%;accent-color:#285aad}
.design-drawer progress[hidden]{display:none}

.ed-dialog:has(.sample-layout){width:min(800px,94vw);box-sizing:border-box;padding:16px;max-height:96dvh}
.sample-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:8px 16px;align-items:start}
.sample-layout .sample-canvas{grid-column:1;grid-row:1 / 4;align-self:center;width:min(100%,calc(54dvh * var(--page-ratio)));margin:auto}
.sample-layout fieldset{grid-column:2;margin:0;padding:6px 10px;min-width:0;max-height:55dvh;overflow:auto}
.sample-layout .sample-slot-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 6px}
.ed-dialog .sample-slot-row label{display:flex;gap:4px;margin:0}
.sample-layout .sample-slot-row input[type=checkbox]{width:13px;height:13px;min-height:0;margin:0;padding:0}
.sample-slot-row [aria-label="Box role"]{font:inherit;font-size:12px;width:100%;height:24px;padding:2px 4px;box-sizing:border-box}
.sample-layout .sample-slot-row button{grid-column:3;grid-row:1;padding:2px 5px;font-size:11px;min-height:24px}
.ed-dialog .sample-slot-row textarea{grid-column:1 / -1;box-sizing:border-box;min-height:54px;height:60px;resize:vertical;font:inherit;font-size:14px;padding:6px}
.sample-layout [role=status],.sample-layout .sample-loading-bar{grid-column:2;margin:0;font-size:13px}
.sample-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;grid-column:1/-1}
.ed-dialog .sample-footer button{box-sizing:border-box;width:auto;min-height:44px;margin:0;padding:8px 16px;font:600 16px/1.2 system-ui}
@media(max-width:520px){.sample-footer{gap:5px}.ed-dialog .sample-footer button{padding:8px;font-size:14px}}
.sample-footer .sample-save{background:#17733e;color:white;border:1px solid #146537;border-radius:6px}
.design-drawer .template-sample-grid.uploads-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.template-sample-card>button:first-child,
.design-drawer .template-sample-grid .template-sample-card>button:first-child{
  position:relative;display:block;box-sizing:border-box;width:100%;height:auto;
  aspect-ratio:var(--template-ratio);min-height:0;padding:0;overflow:hidden;
  background:white;border:1px solid #c7cbd1;border-radius:3px
}
.template-sample-card>button:first-child>.ed-paper,
.design-drawer .template-sample-card>button:first-child>.ed-paper{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;margin:0
}
.template-caption{display:block;min-width:0;text-align:center;font:500 10px/1.2 system-ui;color:inherit;overflow-wrap:anywhere}
@media(max-width:520px){.sample-layout{grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:6px}.ed-dialog:has(.sample-layout){padding:9px}.sample-layout fieldset{padding:4px}.sample-layout .sample-slot-row{grid-template-columns:auto minmax(0,1fr)}.sample-layout .sample-slot-row button{grid-column:1/-1;grid-row:3;justify-self:end}}
.template-apply-menu[popover]{position:fixed;inset:auto;margin:0;width:min(210px,calc(100vw - 16px));max-height:calc(100dvh - 12px);overflow:auto;box-sizing:border-box;padding:10px;color-scheme:light;color:#202638;background:white;border:1px solid #d9dce3;border-radius:9px;box-shadow:0 4px 18px #17243a26;font:14px/1.35 system-ui}
.template-apply-menu::backdrop{background:transparent}
.template-apply-menu>div{display:grid;gap:5px}
.template-apply-menu button{width:100%;min-height:28px;padding:4px 8px;background:#f5f6fa;color:#252d41;border:1px solid #d5d9e3;border-radius:5px;font:inherit}
.template-apply-menu button:disabled{opacity:.5}
.template-apply-menu .template-apply-close{margin-top:6px;width:auto;color:white;background:#b32935;border-color:#b32935}
.template-options-menu[popover]{width:148px;padding:6px}
.template-options-menu button{min-height:24px;font-size:12px}
.template-options-menu [role=status]:empty{display:none}
button[data-popup-action=close],button[aria-label^="Close" i],.template-apply-menu button.template-apply-close{border:1px solid #b32935!important;background:white!important;color:#a62130!important}
button[data-popup-action=delete],.upload-delete-dialog button.confirm-delete{color:#ae2433!important;background:white}

.ed-cover-mode .ed-content:has(.cv-root):not(:has(.design-rail)){
  grid-template-columns:minmax(0,1fr) clamp(230px,22vw,320px);
}
.ed-cover-mode .ed-editing:has(.cv-root):not(:has(.design-rail)){
  padding:12px;overflow:auto;
}
@media(max-width:600px){
  .ed-cover-mode .ed-content:has(.cv-root):not(:has(.design-rail)){
    grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,38%);
  }
  .ed-cover-mode .ed-editing:has(.cv-root):not(:has(.design-rail)){grid-area:2/1;}
}

.create-form[hidden]{display:none}
.setup-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px}
.setup-navigation>button:last-child{margin-inline-start:auto}
.setup-template-picker{min-height:45vh}
.setup-template-picker[hidden]{display:none}

.setup-template-picker .template-sample-grid{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;max-width:960px;align-items:start
}
.setup-template-picker .create-template-tile{
  display:grid;align-content:center;justify-items:center;gap:6px;height:126px;width:100%;
  border:1px dashed var(--accent);border-radius:8px;background:var(--wash);color:var(--ink);cursor:pointer;font:inherit
}
.create-template-tile>span{font-size:2rem;line-height:1}
.create-template-tile>strong{font-size:.875rem}
.setup-template-picker .template-sample-card>button:first-child{height:126px;aspect-ratio:auto}
.setup-template-picker .template-sample-card>button:first-child>.ed-paper{
  width:min(100%,calc(126px * var(--template-ratio)));height:auto;aspect-ratio:var(--template-ratio);max-height:100%;margin:auto
}
@media(max-width:760px){.setup-template-picker .template-sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.setup-template-picker .template-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ed-object[data-kind=Crossword] i:has(b){position:relative;display:grid;place-items:center;min-height:0;min-width:0}
.ed-object[data-kind=Crossword] i b{font:600 var(--solution-font,1.5cqw)/1 system-ui}
.ed-object[data-kind=Crossword] i:has(b) small{position:absolute;top:0;left:0;font-size:calc(var(--solution-font)*.48);line-height:1}

.ed-object[data-kind=Crossword].crossword-frame,.sample-puzzle-grid.crossword-frame{
  display:grid!important;grid-template:1fr / 1fr!important;place-items:center;container-type:size;background:transparent;border:0;gap:0
}
.fitted-crossword{
  display:grid;width:min(100cqw,calc(100cqh * var(--cols) / var(--rows)));aspect-ratio:var(--cols) / var(--rows);
  grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));
  --solution-font:min(calc(64cqw / var(--cols)),calc(64cqh / var(--rows)))
}
.ed-object[data-kind=Crossword] .fitted-crossword i:not(.block){border:solid var(--crossword-ink,#24242a);border-width:0 1px 1px 0}
.ed-object[data-kind=Crossword] .fitted-crossword i.block{background:transparent}

.puzzle-clue-columns,.puzzle-bank-columns{display:grid;width:100%;gap:0 3%;align-items:start;white-space:normal;text-align:left;line-height:1.13}
.puzzle-clue-columns{column-gap:var(--bank-column-gap,3%);grid-template-columns:repeat(2,minmax(0,1fr))}
.puzzle-bank-columns{grid-auto-flow:column;grid-template-columns:repeat(3,minmax(0,1fr));row-gap:var(--bank-row-gap,0em)}
.puzzle-clue-columns>div>[data-clue-number]+[data-clue-number]{margin-top:var(--bank-row-gap,0em)}
.puzzle-clue-columns>div{min-width:0;overflow-wrap:anywhere}
.puzzle-bank-columns>div{min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
.ed-object[data-kind=Crossword]:has(.fitted-crossword){background:transparent!important;border:0}
.ed-object[data-kind=Crossword] .fitted-crossword i.block{border:0;background:transparent}
.fitted-crossword i{width:100%;height:100%;margin:0;padding:0;box-sizing:border-box}

.ed-sidebar .template-box-tools{position:static;display:grid;align-content:start;gap:3px;box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:4px;border-radius:8px;background:white;color:#24242a;font:14px/1.25 system-ui}
.ed-sidebar .template-box-tools button{display:grid;grid-template-columns:24px minmax(0,1fr) 12px;align-items:center;gap:4px;width:100%;min-width:0;padding:4px;text-align:left;color:inherit;background:white;border:0;cursor:pointer}
.ed-sidebar .template-box-tools button:hover{background:#eeeafa}
@media(max-width:800px){.ed-sidebar .template-box-tools{width:max-content;max-width:none;grid-auto-flow:column}.ed-sidebar .template-box-tools button{width:110px}}

.ed-shell>.finish-template{grid-column:1/-1;justify-self:end;align-self:end;margin:8px 8px 0;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.finish-template>.button{min-height:48px;font-size:1rem;font-weight:700}
.finish-template>.cancel-template{background:#b42327;color:white}
.finish-template>.cancel-template:hover{background:#941e22}

.ed-object.word-bank-frame{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center}
.puzzle-bank-columns{text-align:var(--bank-text-align,center)}
.word-bank-frame .puzzle-clue-columns{text-align:var(--bank-text-align,left)}

.word-search-dimensions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}
.word-search-dimensions label{display:grid;gap:3px}
.word-search-dimensions input{width:6em}
.word-bank-frame .puzzle-bank-columns{column-gap:var(--bank-column-gap,3%)}


.ed-object[data-kind=Crossword] .fitted-crossword i b{font-family:inherit;font-weight:inherit;font-style:inherit}
.ed-object[data-kind=Crossword] .fitted-crossword i{font-style:inherit}
.ed-object[data-kind=Crossword] .fitted-crossword.styled-letter-size i b{font-size:inherit}

.batch-crosswords{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:12;min-height:48px;padding:.8rem 1.4rem;font-weight:700}
.ed-cover-mode .batch-crosswords{display:none}

@media screen{
  .ed-paper .fitted-crossword i.review-cell{background:#ffe099!important;color:#151515}
  .ed-paper [data-clue-number][tabindex]{pointer-events:auto;cursor:help}
}
@media print{.ed-paper .review-letter{display:none!important}}

.books-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.books-heading h1{margin:0}
.books-heading .button{padding:16px 30px;font-size:1.35rem}
.create-form .setup-grid>.panel,.create-form .type-card{background:linear-gradient(145deg,#39344c,#292538);border-color:#686076;color:#faf8ff}
.create-form .type-card:has(input:checked){border-color:#b6a4ff;background:#433861}
.create-form .flow-panel input:not([type=radio]),.create-form .shape-panel select{min-height:52px;font-size:1.1rem}
.create-form .shape-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;border:0;margin:12px 0 20px}
.create-form .shape-choice{position:relative;display:grid;justify-items:center;gap:12px;padding:18px 8px;border:1px solid #716a83;border-radius:14px;background:#262333;color:#cbc5d7;cursor:pointer}
.shape-choice input{position:absolute;opacity:0}
.shape-frame{width:min(108px,100%);aspect-ratio:1;display:grid;place-items:center}
.shape-frame i{box-sizing:border-box;border:1px solid #8a829a;border-radius:3px}
.create-form .shape-choice:has(:checked){border-color:#bba9ff;background:#48405f;color:white}
.shape-choice:has(:checked) i{background:#f5f0ff;border-color:white;box-shadow:0 5px 16px #17102466}
.shape-choice:focus-within{outline:3px solid #d6caff;outline-offset:3px}
.create-form .setup-navigation .button{min-height:62px;padding:12px 23px;font-size:1.15rem}
.create-form .setup-navigation button.primary{min-width:min(34vw,215px);min-height:74px;font-size:1.65rem}
@media(max-width:560px){.books-heading{grid-template-columns:auto 1fr}.books-heading .button{justify-self:center;padding:12px 17px;font-size:1.1rem}.create-form .setup-grid{grid-template-columns:1fr}}

.creation-step-title{text-align:center;font-size:clamp(2.5rem,6vw,4.75rem);letter-spacing:-.045em}
.setup-template-picker.panel,.puzzle-step.panel{background:#23212d;border:1px solid #625c73;border-radius:20px;padding:clamp(16px,3vw,36px)}
.setup-template-picker .create-template-tile,.setup-template-picker .template-sample-card{background:#353142;border:1px solid #736980;border-radius:12px}
.puzzle-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.puzzle-settings-grid>:is(label,.puzzle-number){--tile-accent:#bbb0ff;display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-width:0;min-height:160px;padding:clamp(18px,3vw,32px);border:1px solid #645c75;border-top:3px solid var(--tile-accent);border-radius:16px;background:linear-gradient(145deg,#393542,#292632);color:#f5f2fb;font-size:1.15rem;font-weight:600}
.puzzle-settings-grid>:is(label,.puzzle-number):nth-child(2){--tile-accent:#97d9d9}
.puzzle-settings-grid>:is(label,.puzzle-number):nth-child(3){--tile-accent:#f0bf91}
.puzzle-settings-grid>:is(label,.puzzle-number):nth-child(4){--tile-accent:#a8c8ff}
.puzzle-settings-grid>:is(label,.puzzle-number) :is(input,select){width:100%;min-width:0;min-height:64px;color:var(--tile-accent);background:#201e29;border:1px solid #686174;border-radius:9px;font-size:clamp(1.65rem,4vw,2.8rem);font-weight:700;padding:6px 12px}
.puzzle-settings-grid>:is(label,.puzzle-number) select{font-size:clamp(1.4rem,3vw,2.15rem)}
:is(.puzzle-step,.setup-template-picker) .setup-navigation .button{padding:14px 24px;min-width:min(36vw,200px);min-height:72px;font-size:1.5rem}
.setup-template-picker .setup-navigation>button:last-child{margin-inline-start:0}
@media(max-width:600px){.puzzle-settings-grid{grid-template-columns:1fr}.puzzle-settings-grid>:is(label,.puzzle-number){min-height:128px}}

.page h1.creation-step-title{width:100%;max-width:none;text-align:center;font-size:clamp(2.5rem,6vw,4.75rem)}
.create-form .type-card,.create-form .setup-grid>.panel,.create-form .shape-choice,
.setup-template-picker .create-template-tile,.setup-template-picker .template-sample-card,
.setup-template-picker .template-sample-card>button:first-child,.puzzle-settings-grid>:is(label,.puzzle-number){
  background:#d9d9d9;color:#202124;border-color:#999;
}
.create-form .setup-grid :is(h2,label,legend,.field-note),.setup-template-picker .template-sample-card small{color:#292929}
.create-form .type-card:has(input:checked),.create-form .shape-choice:has(:checked){
  background:#efefef;color:#171717;border-color:#534195;box-shadow:0 0 0 2px #534195;
}

.puzzle-stepper{display:flex;gap:8px;align-items:stretch}
.puzzle-stepper>div{display:grid;gap:4px}
.puzzle-settings-grid .puzzle-stepper input{width:min(7rem,55%);text-align:center;appearance:textfield}
.puzzle-stepper input::-webkit-inner-spin-button,.puzzle-stepper input::-webkit-outer-spin-button{appearance:none}
.puzzle-stepper button{width:56px;min-height:44px;background:#373441;color:white;border:0;border-radius:7px;font-size:1.2rem;cursor:pointer}
.book-actions-menu:popover-open{position:fixed;inset:auto;margin:0;display:grid;min-width:150px;padding:5px;background:#fff;color:#242428;border:1px solid #bbb;border-radius:9px;box-shadow:0 6px 22px #0005}
.book-actions-menu button{padding:9px 14px;background:transparent;color:inherit;text-align:left;border:0;cursor:pointer}
.book-actions-menu button:is(:hover,:focus-visible){background:#eee}
.book-actions-menu .destructive-action{color:#b42318;font-weight:700}

.page:has(.create-form:not([hidden])){padding-block:8px 12px}
.page:has(.create-form:not([hidden])) .breadcrumbs{margin-bottom:0}
.page:has(.create-form:not([hidden])) h1.creation-step-title{margin:0;line-height:1.08;font-size:clamp(2.4rem,6vh,4rem)}
.create-form{margin-top:10px}
.create-form .type-card{min-height:clamp(132px,20vh,194px);display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:6px;padding:8px}
.create-form .type-card>strong{font:400 clamp(1.4rem,2.3vw,2.1rem)/1.1 'DM Serif Display',Georgia,serif;text-align:center}
.create-form .starter-paper{width:auto;height:clamp(62px,10vh,95px)}
.create-form .starter-paper.puzzle{aspect-ratio:48/31}
.create-form .flow-panel input:is([name=title],[name=theme]){background:#fff;color:#202124;border:1px solid #747474}
.create-form .flow-panel input::placeholder{color:#626262}
:is(.create-form,.setup-template-picker,.puzzle-step) .setup-navigation .secondary{background:#fff;color:#211b39;border:2px solid #8c7da8;font-weight:700}
@media(min-width:761px){
 body:has(.create-form:not([hidden]))>footer{display:none}
 .create-form .setup-grid>.panel{padding:12px 18px}
 .create-form .flow-panel>label{margin-top:6px}
 .create-form .shape-choices{margin:5px 0;gap:8px}
 .create-form .shape-choice{padding:5px;gap:3px}
 .create-form .shape-frame{width:clamp(28px,5vh,56px)}
 .create-form .setup-navigation{margin:10px 0 0}
 .create-form .setup-navigation .button,.create-form .setup-navigation button.primary{min-height:44px;padding:7px 20px}
 .create-form .flow-panel input:not([type=radio]),.create-form .shape-panel select{min-height:40px}
}

.page:has(:is(.create-form,.setup-template-picker):not([hidden])){padding-top:4px}
.page:has(:is(.create-form,.setup-template-picker):not([hidden]))>.breadcrumbs{position:absolute;left:0;top:0;margin:0}
.page:has(:is(.create-form,.setup-template-picker):not([hidden])){position:relative}
.page:has(:is(.create-form,.setup-template-picker):not([hidden]))>h1.creation-step-title{margin:0 auto 8px;line-height:1.04}
.page:has(.create-form:not([hidden]))>h1.creation-step-title{color:var(--book-thunk-purple);font-size:clamp(3.2rem,8vh,6rem)}
.create-form .shape-choices{margin-top:0}
.create-form .shape-choice{padding:8px;gap:4px}
.create-form .shape-frame{width:clamp(52px,9vh,90px)}
.create-form .shape-panel select{background:#111;color:var(--accent);color-scheme:dark;font-weight:700}
.setup-template-picker .template-sample-card,.setup-template-picker .create-template-tile{height:auto;aspect-ratio:2/3;width:100%}
.setup-template-picker .template-sample-card{display:grid;grid-template-rows:minmax(0,1fr) auto;align-content:stretch;padding:5px;text-align:center}
.setup-template-picker .template-sample-card>button:first-child{height:100%;min-height:0;container-type:size}
.setup-template-picker .template-sample-card>button:first-child>.ed-paper{width:min(100cqw,calc(100cqh * var(--template-ratio)));height:auto;max-height:100%;margin:auto}
@media(max-width:950px){.page:has(:is(.create-form,.setup-template-picker):not([hidden]))>.breadcrumbs{position:static;font-size:12px;line-height:1.15}}
.puzzle-type-modal{width:min(420px,92vw);padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink)}
.puzzle-type-modal::backdrop{background:#10101bbb}
.puzzle-type-modal fieldset{display:grid;gap:8px;border:0;padding:0;margin:18px 0}
.puzzle-type-modal label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.puzzle-type-modal input{width:20px;height:20px;min-height:0;accent-color:var(--accent)}
.puzzle-type-modal .actions{justify-content:space-between}
.puzzle-type-modal{width:min(620px,94vw);max-height:90dvh;overflow:auto}
.puzzle-type-modal fieldset{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.puzzle-type-modal fieldset label{position:relative;display:grid;justify-items:center;gap:10px;padding:clamp(10px,3vw,20px);background:#ecebf0;color:#242134;font-size:clamp(1.05rem,3vw,1.45rem);text-align:center;border:2px solid transparent}
.puzzle-type-modal fieldset input{position:absolute;opacity:0}
.puzzle-type-modal label:has(:checked){border-color:#8d70ff;background:#e4dafa;box-shadow:0 0 0 2px #9b83ff}
.puzzle-type-modal label:focus-within{outline:3px solid #8060df;outline-offset:3px}
.puzzle-type-preview{display:grid;width:min(100%,152px);aspect-ratio:1;grid-template:repeat(5,1fr)/repeat(5,1fr);gap:1px;padding:2px;background:#404353}
.puzzle-type-preview i{display:grid;place-items:center;background:white;font:700 clamp(12px,3vw,21px)/1 monospace;color:#25253a}
.puzzle-type-preview .block{background:#292b39}
.puzzle-type-preview .found{background:#f1cf74}
.puzzle-type-modal .actions button{min-height:48px;padding:8px 20px;font-size:1.1rem}
.puzzle-type-modal .actions .secondary{background:white;color:#2e244c;border:2px solid #a08fba}
.puzzle-type-modal .actions .primary:enabled{background:#c4afff;color:#23183d;box-shadow:0 0 16px #ab86ffc9}
.books-heading .button{font-size:1rem;padding:8px 16px;min-height:40px}
.account-nav{position:relative}
.account-nav summary{display:grid;place-items:center;cursor:pointer;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--wash);color:var(--accent);list-style:none}
.account-nav summary::-webkit-details-marker{display:none}
.account-nav summary svg{width:22px;height:22px}
.account-nav>div{position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:152px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px #0003}
.account-nav>div a,.account-nav button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--ink);font:500 14px/1.4 system-ui;padding:7px 10px;cursor:pointer}
.account-nav form{margin:3px 0 0;border-top:1px solid var(--line);padding-top:3px}
.account-nav button:hover{background:var(--wash)}
.nav-actions .login-icon{padding:8px;border:1px solid var(--line);border-radius:50%;color:var(--accent)} .login-icon svg{width:22px;height:22px}

.setup-template-picker.panel{display:flex;flex-direction:column;padding-top:12px}
.setup-template-picker.panel[hidden]{display:none}
.setup-template-picker .template-sample-grid{width:100%;margin-top:6px;margin-bottom:0}
.setup-template-picker .setup-navigation{width:100%;flex-wrap:wrap;margin:0;padding-top:clamp(24px,4vh,48px);margin-top:auto}
.setup-template-picker .setup-navigation .secondary{min-width:0;min-height:44px;padding:7px 20px;font-size:1.15rem}
.setup-template-picker .setup-navigation .primary{max-width:100%;white-space:normal}
@media(max-width:760px){.setup-template-picker .setup-navigation .secondary{min-height:62px;padding:12px 23px}}

.puzzle-type-modal[open]{
  position:fixed;inset:clamp(8px,6dvh,56px) 0 auto;
  margin:0 auto;width:min(740px,95vw);max-height:90dvh;
  padding:clamp(20px,3vw,36px);background:#303033;color:#fafafa;
  border-color:#5c5c60;box-shadow:0 18px 64px #0007;
}
.puzzle-type-modal[open] .puzzle-type-preview{width:min(100%,180px)}
.page:has(.puzzle-type-modal[open])>h1{visibility:hidden}
.public-intro{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;gap:clamp(20px,5vw,70px);padding-block:clamp(30px,6vw,70px)}
.public-intro img{width:100%;max-width:360px;border-radius:14px;justify-self:center}
.public-intro p,.pricing-options p{margin:12px 0 18px}
.pricing-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pricing-options .panel{margin:0}
.nav-actions .session-link.login-icon{border-radius:9px;padding-inline:12px}
@media(max-width:680px){.public-intro,.pricing-options{grid-template-columns:1fr}.public-intro img{max-width:220px}.nav-actions{gap:4px}}
.all-template-types[open]{width:min(800px,95vw)}
.all-template-types>.button:last-child{display:none}
.all-template-types .dialog-body fieldset{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}
.all-template-types .template-type-paper{display:block;width:min(90px,80%);aspect-ratio:2/3;background:white;border:1px solid #ada9b6;border-radius:3px}
.all-template-types .template-type-paper.story{background:repeating-linear-gradient(to bottom,transparent 0 7px,#8f8c99 7px 9px) center/72% 68% no-repeat,white}
.all-template-types .template-type-paper.comic{background:linear-gradient(to right,transparent 46%,white 46% 54%,transparent 54%),linear-gradient(to bottom,#83769e 0 42%,white 42% 49%,#aea5bd 49%);border:5px solid white}

body:has(.public-intro){background-color:#202030;background-image:linear-gradient(100deg,#131425bf,#17172560),url('/home-open-book.webp');background-position:64% top;background-size:cover;background-attachment:fixed;background-repeat:no-repeat}
body:has(.public-intro) main{background:linear-gradient(180deg,transparent 0 24rem,#252234dc 42rem,#242130ee 100%)}
.public-intro{display:flex;align-items:center;min-height:clamp(380px,57vh,640px)}
.public-intro>div{transform:translateY(-1.5rem);max-width:min(55%,640px);color:#fff;text-shadow:0 2px 12px #171324}
.public-intro h1{font-family:'DM Serif Display',Georgia,serif;font-weight:400;letter-spacing:-.035em}
.public-intro p{max-width:min(36vw,40ch);color:#f2edf3}
.public-intro .actions{text-shadow:none;flex-wrap:wrap}
@media(max-width:680px){
  body:has(.public-intro){background-image:none}
  body:has(.public-intro) main{background:#201d30}
  .public-intro{display:block;min-height:0;padding-block:1.5rem 0}
  .public-intro>div{max-width:100%;transform:none}
  .public-intro p{max-width:40ch}
  .public-intro::after{content:"";display:block;margin-top:1rem;aspect-ratio:1672/941;background:url('/home-open-book.webp') center/cover no-repeat}
}

.text-selection-toolbar .toolbar-text-editor:focus{
  outline:2px solid #409aff;
  outline-offset:0;
  box-shadow:0 0 8px 2px #2385ffb3;
  caret-color:#176ed0;
}
.account-nav form button{color:#ff8585}

.ed-dialog[open]:has(.sample-layout){
  display:flex;flex-direction:column;box-sizing:border-box;
  width:min(1080px,96vw);height:min(760px,96dvh);max-height:96dvh;
  padding:clamp(8px,2vmin,18px);overflow:visible;
}
.ed-dialog:has(.sample-layout)>h2{margin:0 0 6px}
.sample-layout{
  flex:1;min-height:0;grid-template-columns:minmax(0,2fr) minmax(0,3fr);
  grid-template-rows:minmax(0,1fr) auto auto auto;gap:5px 12px;
}
.sample-layout .sample-canvas{grid-row:1;place-self:stretch;width:auto;min-width:0;min-height:0;margin:0;display:grid;place-items:center;container-type:size}
.sample-layout .sample-canvas>.ed-paper{width:min(100cqw,calc(100cqh * var(--page-ratio)));margin:auto}
.sample-layout fieldset{grid-row:1;align-self:stretch;display:flex;flex-direction:column;min-height:0;max-height:none;overflow:visible}
.sample-box-area{flex:1;min-height:0}
.sample-box-area .sample-slot-row{margin:0 0 6px}
.sample-box-area .sample-slot-row[hidden],.sample-box-pager[hidden]{display:none}
.sample-box-pager{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:13px}
.sample-box-pager button{min-height:26px;padding:2px 8px}
.ed-dialog .sample-box-area textarea{resize:none;min-height:32px;height:clamp(32px,6dvh,54px)}
.sample-layout [role=status]{grid-row:2;grid-column:1/-1}
.sample-layout .sample-loading-bar{grid-row:3;grid-column:1/-1}
.sample-layout .sample-footer{grid-row:4}
@media(max-width:600px) and (orientation:portrait){
  .sample-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,2fr) auto auto auto}
  .sample-layout fieldset{grid-column:1;grid-row:2}
  .sample-layout [role=status]{grid-row:3}
  .sample-layout .sample-loading-bar{grid-row:4}
  .sample-layout .sample-footer{grid-row:5}
}

.nav-actions .editor-review-link{width:auto;min-height:32px;padding:.35rem .7rem;font-size:.875rem;line-height:1.2}
.ed-shell .batch-crosswords{width:clamp(64px,8vw,88px);height:auto;aspect-ratio:1;box-sizing:border-box;white-space:normal;line-height:1.15;padding:.5rem}
.ed-shell:has(.batch-crosswords) .ed-sidebar{padding-bottom:96px}

.ed-sidebar .ed-thumb-group .ed-thumb.ed-incomplete{background:#501e29;color:#fff;border:2px solid #fa7187}
.ed-sidebar .ed-thumb-group .ed-thumb.ed-incomplete .ed-page-labels small{color:#ffd3da}
.ed-sidebar .ed-thumb-group .ed-thumb.ed-incomplete[aria-pressed=true]{background:#712333;outline:2px solid #ffaaba;outline-offset:-4px}

@media screen{
  .ed-paper .word-answer-entry{pointer-events:auto;cursor:help}
  .ed-paper .word-answer-entry:is(:hover,:focus-visible){background:#ffe189;color:#201824}
  .ed-paper .template-word-grid>.word-answer{background:#ffce55;color:#211900;justify-self:stretch;text-align:center;border-radius:.12em}
}

@media screen{
  .ed-paper .word-answer-entry.word-answer-missing,
  .ed-paper .word-answer-entry.word-answer-missing:is(:hover,:focus-visible){background:#af1734;color:#fff;border-radius:.15em}
}
.book-category-fields{display:grid;gap:.55rem;min-width:0;margin:.65rem 0;padding:.75rem;border:1px solid #82769a;border-radius:.55rem}
.book-category-fields textarea{width:100%;box-sizing:border-box}
.book-category-fields [hidden]{display:none}
.book-category-fields input[type=checkbox]{width:auto;min-height:0;margin-right:.5rem}
.book-category-fields p:empty{display:none}
header .book-title-edit,header .book-category-toggle{background:none;color:inherit;border:0;padding:0;cursor:pointer;text-align:left}
header .book-title-edit{font:inherit;font-weight:inherit}
header .book-category-toggle{display:block;font-size:.8rem;line-height:1.3;padding:2px 4px}
.book-chapter-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:max-content;min-width:min(315px,94vw);max-width:min(480px,94vw);max-height:65dvh;overflow:auto;padding:8px 12px;border:1px solid #d7d1df;border-radius:8px;color-scheme:light;background:#fff;color:#312b39;box-shadow:0 4px 18px #21172f26}
.book-chapter-menu ol{display:block;list-style:none;margin:0;padding:0}
.book-chapter-menu li{display:block;padding:0}
.book-chapter-menu .chapter-list-name{display:flex;align-items:center;gap:.55em;width:100%;min-width:0;box-sizing:border-box;font:500 .875rem/1.25 system-ui;text-align:left;min-height:28px;color:inherit;background:transparent;border:0;border-radius:4px;padding:5px 7px;cursor:pointer;white-space:nowrap}
.chapter-list-name span:first-child{flex:none;font-variant-numeric:tabular-nums}
.chapter-list-name span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.book-chapter-menu .chapter-list-name:is(:hover,:focus-visible){background:#e7ddfa;color:#32204d}
.book-chapter-menu details{margin:.3rem 0}.book-chapter-menu summary{cursor:pointer;font-size:.85rem}
.book-chapter-menu .book-category-fields{padding:.35rem;gap:.3rem;margin:.4rem 0}
.book-chapter-menu .book-category-fields input[type=number]{width:4.5em}
.book-chapter-menu :is(input,textarea){background:white;color:#312b39}

.book-chapter-menu .chapter-count label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.875rem}
.book-chapter-menu .chapter-count input{width:4em;min-height:28px;padding:.15rem .3rem}
.chapter-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.chapter-controls input[type=number]{width:4.5em}
.chapter-controls button{min-width:29px;min-height:29px;padding:2px 6px;line-height:1;border-radius:5px;cursor:pointer}
.chapter-controls [role=alert]{flex-basis:100%}
.ed-dialog .chapter-page-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin:.3rem 0}
.chapter-page-link .ed-paper{width:44px;flex:none;pointer-events:none}
.template-apply-menu.centered-template-menu[popover]{inset:0;margin:auto;width:min(370px,calc(100% - 16px));height:fit-content;max-height:calc(100dvh - 12px)}
.centered-template-menu>div,.centered-template-menu fieldset,.centered-template-menu label{min-width:0}
.centered-template-menu>div>label{display:flex;align-items:center;justify-content:space-between;gap:6px}
.centered-template-menu>div>label input{width:5em;min-width:0}
.centered-template-menu p:empty{display:none}
.category-selection[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 12px);padding:10px;color-scheme:light;background:#fff;color:#202638;border:1px solid #c9ced6;border-radius:8px;font:14px/1.25 system-ui}
.category-selection label,.category-selection-list label{display:flex;align-items:center;gap:8px;height:30px;margin:0;padding:0}
.category-selection input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:none}
.category-selection-list{display:grid;grid-template-columns:minmax(0,1fr)}
.category-selection-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-selection-pager:not([hidden]){display:flex;align-items:center;justify-content:space-between}
.category-selection-pager button{width:auto}.category-selection button{min-height:28px}
.template-apply-menu .puzzle-apply-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}
.template-apply-menu .puzzle-apply-footer button{width:auto;margin:0}
.template-apply-menu .apply-puzzle-pages{background:#167044;color:#fff;border-color:#115b37;font-weight:600;font-size:15px;min-height:36px;padding:6px 14px}
.template-apply-menu .apply-puzzle-pages:is(:hover,:focus-visible){background:#105834}
.book-chapter-menu .chapter-add-row{display:block;width:100%;margin-top:3px;padding:3px 7px;border:0;border-top:1px solid #ddd6e7;background:transparent;color:#463458;text-align:left;font-size:1.15rem;cursor:pointer}
.book-chapter-menu .chapter-add-row:is(:hover,:focus-visible){background:#e7ddfa}
.ai-generation-progress .sample-loading-bar{width:100%;height:.8rem;overflow:hidden;border-radius:999px;background:#248653}
.ed-dialog.ai-generation-progress.generation-finished{background:#145735;color:white;border-color:#75d39e}
.generation-finished progress{accent-color:#7be5aa}
.ed-dialog.category-add-dialog{box-sizing:border-box;width:min(280px,calc(100vw - 24px));max-height:90dvh;padding:14px;color-scheme:light;background:#fff;color:#312b39;border:1px solid #d7d1df;border-radius:8px;box-shadow:0 4px 18px #21172f26}
.category-add-dialog::backdrop{background:#241b321f}
.ed-dialog.category-add-dialog h2{font-size:1rem;margin:0 0 10px;color:#312b39}
.category-add-dialog input,.category-add-dialog button{box-sizing:border-box;background:white;color:#312b39;border:1px solid #c8c0d2;border-radius:5px;padding:4px 8px;min-height:30px}
.category-add-dialog label{color:#453e4d;font-size:.875rem}
.category-add-dialog label input{width:100%}
.category-add-dialog .chapter-controls input{width:4.5em}
.category-add-dialog button:hover{background:#f1eafa}
.category-add-dialog p:empty{display:none}
.template-count-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px}
.template-count-controls{display:flex;align-items:center;gap:4px}
.template-apply-menu .template-count-controls button{width:32px;height:32px;padding:0;color:#263047;background:#fff;font-size:18px}
.template-apply-menu .template-count-controls input{appearance:textfield;-moz-appearance:textfield;box-sizing:border-box;width:54px;height:32px;padding:3px;text-align:center;background:#fff;color:#202638;border:1px solid #c3c9d3;border-radius:5px;color-scheme:light}
.template-count-controls input::-webkit-inner-spin-button,.template-count-controls input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.ed-sidebar-column{display:contents}

.template-sample-card>textarea.template-caption{
  box-sizing:border-box;width:100%;min-height:22px;padding:2px;
  border:1px solid transparent;border-radius:3px;background:transparent;
  color:inherit;font:500 12px/1.3 system-ui;text-align:center;text-overflow:ellipsis
}
.template-sample-card>textarea.template-caption:focus{background:white;color:#222;border-color:#756492;text-overflow:clip}

.template-category-bar {display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:.65rem;border:1px solid var(--line);border-radius:3px;overflow:hidden}
.template-category-bar button[aria-pressed="true"] {background:#33275d;color:white}

.ed-object[data-kind=Crossword] .fitted-crossword i.left-edge:not(.block){border-left-width:1px}
.ed-object[data-kind=Crossword] .fitted-crossword i.top-edge:not(.block){border-top-width:1px}
.sample-layout .sample-loading-bar{position:relative;width:100%;height:7px;overflow:hidden;border-radius:999px;background:var(--tint,#ece4fb)}
.sample-loading-bar[hidden]{display:none}
.sample-loading-bar>span{display:block;will-change:transform;width:calc(100% + 32px);height:100%;background:linear-gradient(135deg,#248653 25%,#79d59c 25% 50%,#248653 50% 75%,#79d59c 75%) 0 0/32px 32px repeat;animation:sample-loading .9s linear infinite}
@keyframes sample-loading{from{transform:translateX(0)}to{transform:translateX(-32px)}}
@media(prefers-reduced-motion:reduce){.sample-loading-bar>span{animation-duration:2.4s}}

.art-panel.columns-stepper{grid-template-columns:26px minmax(16px,auto) 26px;text-align:center;background:white}
.art-panel.columns-stepper>button{width:26px}
.spacing-strip:has(.spacing-track){width:min(210px,calc(100vw - 12px))}
.art-panel.spacing-bar .bank-spacing-strip input[type=range]{width:100px;min-width:0;padding:0;appearance:auto;accent-color:#655771}

.art-palette .compact-palette-header{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.compact-palette-header .art-drag-handle{flex:1;min-width:16px}
.compact-palette-header .hex-toggle{min-width:22px;width:22px;height:22px;min-height:0;padding:0}
.compact-palette-header .text-fill-mode{width:78px;max-width:100%;height:22px;padding:0;font-size:11px}
.compact-palette-header input[hidden]{display:none}

.art-palette .hex-flyout{position:fixed;inset:auto;margin:0;padding:4px;background:white;color:#292731;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 8px #21182d26}

.art-toolbar button.tool-popup-open,
.art-toolbar button[aria-label="Layers"][aria-expanded=true]{
  outline:2px solid #da303c;outline-offset:1px
}

.ed-board .ed-selection.inline-editing{outline:2px solid #2676e9;outline-offset:0;z-index:5}
.ed-selection.inline-editing>:not(.page-inline-input){visibility:hidden}
.page-inline-input{position:absolute;inset:0;box-sizing:border-box;padding:0;outline:0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;cursor:text;pointer-events:auto;user-select:text;text-transform:none}

.ed-thumb .ed-sidebar-page-number{flex:none;font-size:9px;line-height:1;font-weight:500;min-width:1ch;margin-right:-3px;text-align:right;font-variant-numeric:tabular-nums}

.fitted-crossword{position:relative}
.ed-object[data-kind=Crossword] .fitted-crossword>i:nth-child(n){border:0}
.fitted-crossword>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:var(--crossword-ink,#24242a);stroke-width:var(--crossword-line,1px);stroke-linecap:square}
.ed-object[data-kind=Crossword] .fitted-crossword>i{position:relative}
.ed-object[data-kind=Crossword] .fitted-crossword>i small{position:absolute;top:1px;left:1px;line-height:1}

.restore-options[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  width: max-content;
  padding: 4px;
  color-scheme: light;
  background: #fff;
  color: #242632;
  border: 1px solid #d9dbe2;
  border-radius: 8px;
  box-shadow: 0 4px 14px #17213926;
}
.restore-options[popover] > button.button {
  display: block;
  width: 100%;
  height: auto;
  min-height: 28px;
  padding: 4px 9px;
  text-align: left;
  font-size: 14px;
  color: #242632;
  background: white;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}
.restore-options[popover] > button:is(:hover,:focus-visible):enabled { background: #eef0f7; }
.restore-options[popover] > button:disabled { color: #747782; opacity: 1; }

.template-category-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0;min-width:0}
.design-drawer .template-category-actions>button[aria-pressed]{box-sizing:border-box;width:100%;min-width:0;height:26px;min-height:26px;margin:0;padding:0 8px;border:0;border-radius:0;text-align:left;font-size:13px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}

.template-category-actions+.template-category-actions{border-top:1px solid var(--line)}
.design-drawer .template-category-actions .template-add{width:28px;height:26px;border-left:1px solid var(--line);border-radius:0;font-size:17px}
.template-category-bar{margin-inline-start:5px;overflow:visible}
.template-category-actions:has(>button[aria-pressed="true"]){position:relative}
.template-category-actions:has(>button[aria-pressed="true"])::before{content:"";position:absolute;z-index:1;inset-inline-start:-5px;top:50%;transform:translateY(-50%);width:10px;height:12px;background:#f7b84a;clip-path:polygon(0 0,100% 50%,0 100%);pointer-events:none}

.template-box-badge,.ed-dialog .sample-slot-row>label>span{padding:2px 4px;border-radius:2px;background:#24324b;color:white;font:600 clamp(8px,1.8cqw,13px)/1.2 sans-serif;letter-spacing:normal;text-transform:none;}
.template-box-badge{position:absolute;user-select:none;z-index:2;max-width:100%;box-sizing:border-box;pointer-events:none}
.ed-stage .ed-object[data-template-box-label][data-empty-slot]::after{content:none}
.ed-dialog .sample-layout .sample-slot-row{grid-template-columns:minmax(0,1fr) auto}
.sample-layout .sample-slot-row>label{grid-column:1;grid-row:1}
.sample-layout .sample-slot-row>button{grid-column:2;grid-row:1}
.ed-dialog[open]:has(.sample-layout),.ed-dialog .sample-layout,.ed-dialog .sample-layout fieldset{background:#e0e2e5;color:#232932;color-scheme:light}
.ed-dialog .sample-layout :is(label,legend),.ed-dialog:has(.sample-layout)>h2{color:#232932}
.ed-dialog .sample-layout .sample-canvas{background:transparent}
@media print{.template-box-badge{display:none}}

.ed-dialog .sample-box-area{overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 2px 0}
.ed-dialog .sample-layout :is(input:not([type=checkbox]),textarea){background:#fff;color:#172031;color-scheme:light;border:1px solid #929bae}
.ed-dialog .sample-layout :is(input,textarea)::placeholder{color:#596273;opacity:1}
.ed-dialog .sample-layout .generate-sample-box{background:#565b63;border:1px solid #565b63;color:white;font-weight:600;padding:3px 9px}
.ed-dialog .sample-layout .generate-sample-box.has-instructions{background:#11653c;border-color:#11653c}
.ed-dialog .sample-layout .generate-sample-box.has-instructions:hover:enabled{background:#094c2c}
.ed-dialog .sample-layout .sample-loading-bar{height:10px}

.ed-dialog .sample-footer .sample-cancel{background:#ad2436;border:1px solid #8c1929;color:#fff}
.ed-dialog .sample-footer .sample-generate-selected{position:relative;isolation:isolate;overflow:hidden;border:1px solid #8b62c9;border-radius:9px;background:linear-gradient(115deg,#49227e,#743cb2 44%,#532487 78%,#763cb3);color:white;text-shadow:0 1px 2px #36115d;box-shadow:inset 0 1px 0 #cfa7f288}
.sample-generate-selected::before,.sample-generate-selected::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:no-repeat}
.sample-generate-selected::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 44' preserveAspectRatio='none'%3E%3Cg fill='%23d3aeff' stroke='%23fff' stroke-width='.65' opacity='.75'%3E%3Cpath d='M4 7l3-4h6l3 4-6 7zM177 34l3-4h6l3 4-6 7z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23814ac2' stroke-width='.8' d='M4 7h12m-9-4 3 11 3-11m164 31h12m-9-4 3 11 3-11'/%3E%3C/svg%3E");background-size:100% 100%}
.sample-generate-selected::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 44' preserveAspectRatio='none'%3E%3Cpath fill='%23fff4ff' d='m18 5 1 3 3 1-3 1-1 3-1-3-3-1 3-1zM191 21l1 3 3 1-3 1-1 3-1-3-3-1 3-1zM39 35l1 2 2 1-2 1-1 2-1-2-2-1 2-1z'/%3E%3C/svg%3E");background-size:100% 100%;animation:sample-button-twinkle 2.8s ease-in-out infinite alternate}
@keyframes sample-button-twinkle{from{opacity:.35}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.sample-generate-selected::after{animation:none}}

.ed-dialog[open]:has(.sample-layout),.ed-dialog .sample-layout,.ed-dialog .sample-footer{background:#35373b;color:#f4f4f5}
.ed-dialog .sample-dialog-header{background:transparent;border:0;box-shadow:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:9px}
.ed-dialog .sample-dialog-header h2{margin:0;color:#f4f4f5;font-size:1.1rem}
.ed-dialog .sample-dialog-header label{display:flex;align-items:center;gap:6px;margin:0;color:#f4f4f5;font-size:12px}
.ed-dialog .sample-dialog-header input{box-sizing:border-box;width:clamp(96px,16vw,165px);height:28px;min-height:0;padding:3px 6px;margin:0;border:1px solid #9a9da2;border-radius:4px;background:white;color:#222;font-size:13px}
.ed-dialog .sample-layout [role=status]{color:#f4f4f5}
@media(max-width:550px){.ed-dialog .sample-dialog-header{grid-template-columns:1fr;justify-items:center;gap:3px}}

.ed-dialog .sample-layout .sample-box-heading{flex:none;margin:6px 0 8px;padding:0;color:#232932;font-size:16px;line-height:1.25;font-weight:650}

.ed-sidebar .template-box-tools .box-sample{box-sizing:border-box;width:100%;min-width:0;padding:2px;overflow:hidden}
.ed-sidebar .template-box-tools .box-sample svg{display:block;width:100%;height:auto;max-height:100%}
.ed-sidebar .template-box-tools button{box-sizing:border-box}

header .nav:has(.template-header-preview:not([hidden])){position:relative}
header .template-header-preview:not([hidden]){position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:2px;padding:3px 12px;border:0;border-radius:6px;color:white;background:#212127;font:600 12px/1.15 system-ui;cursor:pointer}
header .template-header-preview:hover{background:#404047}
.template-full-preview[open]{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:44px 16px 16px;display:grid;place-items:center;background:transparent}
.template-full-preview::backdrop{background:#111218df}
.template-full-preview>.ed-paper{width:min(100%,calc((100dvh - 60px) * var(--preview-ratio)));box-shadow:0 3px 16px #0006}
.template-full-preview>button{position:absolute;top:8px;left:12px;border:0;border-radius:6px;width:32px;height:32px;padding:0;background:#ad2436;color:white;font:24px/1 system-ui;cursor:pointer}

.sample-regenerate-confirm{box-sizing:border-box;width:min(340px,90vw);margin:auto;padding:18px;border:1px solid #b5b5bc;border-radius:10px;background:#ececee;color:#23232a}
.sample-regenerate-confirm::backdrop{background:#11111999}
.sample-regenerate-confirm p{margin:0 0 14px;font:500 16px/1.4 system-ui}
.sample-regenerate-confirm>div{display:flex;justify-content:flex-end;gap:8px}
.sample-regenerate-confirm button{padding:8px 16px;border:0;border-radius:6px;background:#59408b;color:white}
.sample-regenerate-confirm .cancel-regeneration{background:#ad2436;color:white}

/* Shared pointer and keyboard feedback for button controls. */
:is(button:enabled,[role="button"],a.button,input[type="button"]:enabled,input[type="submit"]:enabled,input[type="reset"]:enabled):not(:disabled,[aria-disabled="true"]){cursor:pointer}
@media (hover:hover){
  :is(button:enabled,[role="button"],a.button,input[type="button"]:enabled,input[type="submit"]:enabled,input[type="reset"]:enabled):not(:disabled,[aria-disabled="true"],.template-tile-eye):hover{filter:brightness(1.12);outline:2px solid #a58ad8;outline-offset:-2px}
}
:is(button:enabled,[role="button"],a.button,input[type="button"]:enabled,input[type="submit"]:enabled,input[type="reset"]:enabled):not(:disabled,[aria-disabled="true"]):active{filter:brightness(.86);outline:2px solid #7658a8;outline-offset:-2px;box-shadow:inset 0 2px 4px #23133960}
:is(button,[role="button"],a.button,input[type="button"],input[type="submit"],input[type="reset"]):focus-visible{outline:3px solid #8671d6;outline-offset:2px}

.sample-prompt-layer{position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:#11111999;border-radius:inherit}
.sample-prompt-layer .sample-regenerate-confirm{border-radius:10px;box-shadow:0 8px 32px #14142150}

.ed-dialog:has(>.sample-choice-prompt) .sample-slot-row>label{position:relative;padding-left:6px}
.ed-dialog:has(>.sample-choice-prompt) .sample-slot-row>label::before{content:"";position:absolute;left:1px;top:50%;transform:translateY(-50%);width:23px;height:23px;box-sizing:border-box;border:2px solid #8140b5;border-radius:50%;pointer-events:none}

.sample-prompt-layer.sample-choice-prompt{background:transparent}
.sample-choice-shade{position:absolute;inset:0;background:#11111999;border-radius:inherit;pointer-events:none}
.sample-choice-prompt .sample-regenerate-confirm{position:absolute;margin:0;max-width:calc(100% - 12px)}

.template-sample-card{position:relative;transition:scale .15s ease}
.template-sample-card>button:first-child,.template-sample-card>.template-tile-eye{grid-area:1/1}
.template-sample-card>.template-tile-eye{position:relative;z-index:1;align-self:end;justify-self:center;display:grid;place-items:center;box-sizing:border-box;width:clamp(32px,17%,48px);height:32px;min-height:0;margin:0;padding:4px 4px 0;border:0;border-radius:16px;background:transparent;color:#dadada}
.template-tile-eye svg{width:100%;height:100%;max-width:32px}
@media(hover:hover){.template-sample-card:hover{scale:1.035;z-index:2}}
@media(prefers-reduced-motion:reduce){.template-sample-card{transition:none}}

.template-sample-card>button.template-tile-eye:is(:hover,:active,:focus-visible){background:transparent;outline:none;box-shadow:none;filter:none;color:#777}
.template-sample-card>button.template-tile-eye:focus-visible svg{stroke-width:2.5}


.template-sample-card:has(>textarea.template-caption){grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;min-height:max-content}
.template-sample-card>textarea.template-caption{grid-area:2/1;display:block;field-sizing:content;height:auto;max-width:100%;margin:0;padding:2px 3px;min-height:21px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.template-sample-card:has(>textarea.template-caption:focus){scale:1;z-index:3}
.template-sample-grid:has(textarea.template-caption){box-sizing:border-box;padding:4px;grid-auto-rows:max-content;overflow-x:hidden}

.create-form [hidden],.create-form[hidden]{display:none!important}

.create-form fieldset:has(>.type-grid){border:0;padding:0;margin:0}
.create-form .type-grid{gap:clamp(12px,2.6vw,36px);padding:12px 6px;align-items:center}
.create-form .type-card,.create-form .type-card:has(input:checked){display:block;isolation:isolate;overflow:hidden;box-sizing:border-box;width:100%;min-height:0;aspect-ratio:2/3;padding:0;border:0;border-radius:3px 9px 9px 3px;background:#f4e8cc;color:white;box-shadow:2px 3px 0 #b9afa0,4px 6px 12px #16131e35}
.create-form .type-card .starter-paper{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:#f5edda}
.create-form .type-card .starter-paper img{width:100%;height:100%;object-fit:cover}
.create-form .type-card .starter-paper.puzzle img{object-position:4% center}
.create-form .type-card .starter-paper.blank{background:repeating-linear-gradient(95deg,#ffffff09 0 1px,transparent 1px 3px),linear-gradient(135deg,#5a4d78,#302641 80%)}
.create-form .type-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0004,transparent 2%,#fff3 3%,#0002 4%,transparent 6%),linear-gradient(0deg,#171222ed,transparent 42%)}
.create-form .type-card>strong{position:absolute;bottom:8%;left:8%;right:6%;z-index:1;color:white;text-shadow:0 1px 4px #0009;font-size:clamp(1.3rem,2.7vw,2.65rem)}
.create-form .type-card:has(input:checked){outline:3px solid #8058b8;outline-offset:3px}
.create-form .type-card .selected-check{z-index:2}
@media(max-width:760px){.create-form .type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.create-form .type-grid .type-card{transition:filter .18s ease,box-shadow .18s ease}
.create-form .type-grid:has(input:checked) .type-card:not(:has(input:checked)){filter:brightness(.64) saturate(.78)}
.create-form .type-grid .type-card:has(input:checked){outline:2px solid #a88ae4;outline-offset:2px;box-shadow:0 0 0 4px #a88ae435,0 0 18px 5px #9771d76b,3px 6px 11px #211b342e}
@media(prefers-reduced-motion:reduce){.create-form .type-grid .type-card{transition:none}}

@media(min-width:761px){.create-form .setup-grid{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}

.create-form .category-name-rows{display:grid;gap:5px}
.create-form .category-name-rows label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0;font-size:14px}
.create-form .category-name-rows input[type=text],.create-form .category-suggest-controls input[type=number]{box-sizing:border-box;min-width:0;margin:0;background:white;color:#23232a;border:1px solid #999aaa;border-radius:5px}
.create-form .category-name-rows input[type=text]{width:100%;height:32px;min-height:32px;padding:3px 8px}
.create-form .category-suggest-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.create-form .category-suggest-controls label{display:grid;gap:4px;font-size:13px;margin:0}
.create-form .category-suggest-controls input[type=number]{width:46px;height:42px;min-height:42px;padding:3px;text-align:center}
.create-form .category-suggest-controls button{width:auto;min-height:42px;margin:0}
.create-form .category-suggest-controls{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:end}
.create-form .category-suggest-controls label{grid-column:1/-1;grid-row:1/3;grid-template-columns:46px minmax(0,1fr);display:block;pointer-events:none}
.create-form .category-suggest-controls input[type=number]{display:block;margin-top:4px;pointer-events:auto}
.create-form .category-suggest-controls button{grid-column:2;grid-row:2;justify-self:start}

.create-form .setup-subtitle-label{display:inline-flex;align-items:baseline;gap:.35em}
.create-form .setup-subtitle-label small{font-size:.72em;font-weight:400;color:#676767}

.create-form .puzzle-topics .category-suggest-controls{display:flex;align-items:center;gap:6px;font-size:14px}
.create-form .puzzle-topics .category-suggest-controls label{display:inline-flex;align-items:center;gap:6px;pointer-events:auto;font-size:inherit}
.create-form .puzzle-topics .category-suggest-controls input[type=number]{width:44px;height:32px;min-height:32px;margin:0}
.create-form .puzzle-topics .category-suggest-controls button{position:relative;min-height:32px;padding:4px 19px;color:#fff;font-weight:700;border:1px solid #7741ad;border-radius:8px;background:linear-gradient(120deg,#49217e,#8f4dc0,#512480);box-shadow:inset 0 1px 0 #d9b3f680}
.create-form .puzzle-topics .category-suggest-controls button::before,.create-form .puzzle-topics .category-suggest-controls button::after{position:absolute;color:#f3d8ff;pointer-events:none;animation:sample-button-twinkle 2.8s ease-in-out infinite alternate}
.create-form .puzzle-topics .category-suggest-controls button::before{content:'✦';left:4px;top:1px;font-size:11px}
.create-form .puzzle-topics .category-suggest-controls button::after{content:'♦';right:4px;bottom:1px;font-size:10px;animation-delay:-1.3s}
.create-form .puzzle-topics .category-name-rows{gap:3px}
.create-form .puzzle-topics .category-name-rows label{grid-template-columns:5.5rem minmax(0,1fr);width:100%;box-sizing:border-box}
.create-form .puzzle-topics .category-name-rows input[type=text]{height:26px;min-height:26px;padding:2px 7px}
@media(prefers-reduced-motion:reduce){.create-form .puzzle-topics .category-suggest-controls button::before,.create-form .puzzle-topics .category-suggest-controls button::after{animation:none}}

.topic-title-prompt{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(310px,calc(100vw - 12px));padding:16px;border:1px solid #b7b2be;border-radius:10px;background:#fff;color:#24202b;box-shadow:0 6px 24px #16121e40}
.topic-title-prompt::backdrop{background:linear-gradient(#17131ca8 0 0);mask:linear-gradient(#000 0 0),linear-gradient(#000 0 0) var(--title-x) var(--title-y)/var(--title-width) var(--title-height) no-repeat;mask-composite:exclude}
.topic-title-prompt p{margin:0 0 12px}.topic-title-prompt button{display:block;margin-left:auto;padding:5px 15px;background:#684099;color:white;border:0;border-radius:5px}

.create-form .book-idea-panel{display:grid;gap:5px;padding:10px 12px;border-left:3px solid #9573bd;background:#f0eaf5;border-radius:6px}
.create-form .book-idea-panel small{font-size:.72em;color:#676068;font-weight:400}
.create-form .book-idea-panel textarea{box-sizing:border-box;width:100%;min-height:68px;resize:vertical;background:white;color:#25212c;border:1px solid #b3a3c1;border-radius:5px;padding:7px}

.setup-idea-bubble{position:fixed;inset:auto;margin:0;width:min(315px,calc(100vw - 16px));box-sizing:border-box;overflow:visible;padding:18px 22px 14px;border:0;border-radius:28px;background:#faf7ff;color:#322346;box-shadow:0 7px 24px #36214b38}
.setup-idea-bubble::before{content:"";position:absolute;left:var(--tip);top:-12px;width:22px;height:16px;background:#faf7ff;clip-path:path("M0 0 Q8 8 22 16 L4 16 Q5 9 0 0 Z")}
.setup-idea-bubble.above::before{top:auto;bottom:-12px;transform:scaleY(-1)}
.setup-idea-bubble label{display:grid;gap:8px;font:600 16px/1.3 system-ui}
.setup-idea-bubble textarea{box-sizing:border-box;width:100%;resize:vertical;background:white;color:#261d32;padding:7px;border:1px solid #ab9cbb;border-radius:6px;font:14px/1.35 system-ui}
.setup-idea-bubble button{display:block;margin:8px 0 0 auto;color:white;background:#694393;padding:4px 12px;border-radius:6px}

.create-form .category-suggest-controls button.book-idea-link {
  grid-column:3;grid-row:2;min-height:0;padding:4px;background:transparent;
  color:#505050;border:0;box-shadow:none;font:normal 12px/1.4 system-ui;
  text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.create-form .category-suggest-controls button.book-idea-link::before,
.create-form .category-suggest-controls button.book-idea-link::after {content:none}

.create-form .heading-options input{padding-right:42px}
.create-form .heading-options{position:relative;min-width:0}
.create-form .heading-options::before,.create-form .heading-options select{position:absolute;right:5px;bottom:5px;width:30px;height:30px;border-radius:7px}
.create-form .heading-options::before{content:'⌄';background:#eee6fa;color:#63399a;text-align:center;font:600 19px/26px system-ui;pointer-events:none}
.create-form .heading-options select{min-height:0;opacity:0;cursor:pointer}
.create-form .heading-options:focus-within::before{outline:2px solid #8158b7}
.create-form .heading-options label{margin:0}

.heading-suggestion-hint{
  position:absolute;right:6px;bottom:40px;pointer-events:none;
  padding:2px 8px;border:1px solid rgb(160 136 192 / 35%);border-radius:12px;
  background:rgb(252 248 255 / 53%);color:#574563;
  font:500 11px/15px system-ui;white-space:nowrap;
  box-shadow:0 2px 5px rgb(64 39 90 / 9%);backdrop-filter:blur(3px);
  animation:heading-hint-appear 10s ease both;
}
.heading-suggestion-hint::after{
  content:'';position:absolute;bottom:-4px;right:11px;width:6px;height:6px;
  background:#ece2f3;border-right:1px solid #c9bbd5;border-bottom:1px solid #c9bbd5;
  transform:rotate(45deg);
}
@keyframes heading-hint-appear{
  0%,100%{opacity:0}
  4%,94%{opacity:1}
}
@media(prefers-reduced-motion:reduce){.heading-suggestion-hint{animation:none}}

.create-form .setup-grid>.shape-panel{
  background:#000;border:0;box-shadow:none;color:white;
  display:flex;flex-direction:column;justify-content:center;min-width:0;
}
.create-form .shape-panel .shape-choices{
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:end;gap:clamp(12px,2vw,30px);margin:8px 0 20px;
}
.create-form .shape-panel .shape-choice,
.create-form .shape-panel .shape-choice:has(:checked){
  display:grid;align-content:end;align-items:end;gap:14px;padding:0;
  background:transparent;border:0;box-shadow:none;color:#eee;min-width:0;
}
.create-form .shape-panel .shape-frame{width:100%;aspect-ratio:1;align-items:end}
.create-form .shape-panel .shape-frame i{
  position:relative;display:block;border:1px solid #ffffff55;
  border-radius:3px 7px 5px 2px;
  background-image:linear-gradient(90deg,#09061177,transparent 2%,#fff3 3%,#0004 4%,transparent 6%),var(--orientation-cover);
  background-size:cover;background-position:center;
  box-shadow:1px 2px #a59d8e,2px 3px #494441,3px 4px #b6b0a4;
}
.create-form .shape-panel .shape-choice:has(:checked) i{
  outline:2px solid #a88ae4;outline-offset:2px;
  box-shadow:0 0 0 4px #a88ae435,0 0 18px 5px #9771d76b,2px 3px #a59d8e;
  filter:brightness(1.06);
  transform:scale(1.025);
}
.create-form .shape-panel .shape-choice:has(input:not(:checked)) i{
  filter:brightness(.64) saturate(.78);
  transform:scale(.92);
}
@media(prefers-reduced-motion:no-preference){
  .create-form .shape-panel .shape-frame i{
    transition:transform 180ms ease,filter 180ms ease,box-shadow 180ms ease;
  }
}
.create-form .shape-panel .shape-choice:focus-within{outline:none}
.create-form .shape-panel .shape-choice:has(:focus-visible) strong{text-decoration:underline;text-underline-offset:4px}

.create-form [data-cover="comic"] .shape-choice:has(input[value="landscape"]) i{
  background-position:center,center 13%;
}
.create-form [data-cover="puzzle"] .shape-choice:has(input[value="landscape"]) i{
  background-image:linear-gradient(90deg,#09061177,transparent 2%,#fff3 3%,#0004 4%,transparent 6%),var(--orientation-cover),linear-gradient(90deg,#193447 50%,#165953 50%);
  background-size:cover,auto 132%,cover;
  background-position:center,center top,center;
  background-repeat:no-repeat;
}

.type-header-title,.setup-header-title,.picker-header-title{display:none}
body:has(.create-form:not([hidden]) .type-grid):has(.create-form .setup-grid[hidden]) .type-header-title,
body:has(.setup-template-picker:not([hidden])) .picker-header-title,
body:has(.create-form:not([hidden]) .setup-grid:not([hidden])) .setup-header-title{
  display:block;margin:0;color:var(--book-thunk-purple);font-size:clamp(1.35rem,3vw,2.4rem);
  line-height:1.1;letter-spacing:-.035em;text-align:center;
}
.page:has(.create-form:not([hidden]) .setup-grid:not([hidden]))>.creation-step-title{display:none}
.page:has(.create-form:not([hidden]) .setup-grid:not([hidden]))>.breadcrumbs{position:static;margin:0}
.create-form:has(.setup-grid:not([hidden])){margin-top:4px;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.create-form:has(.setup-grid:not([hidden])) .setup-navigation{
  position:fixed;z-index:8;inset:auto 0 0;margin:0;
  padding:8px max(16px,calc((100vw - 1168px)/2)) calc(8px + env(safe-area-inset-bottom));
  background:#0c0c0e;flex-wrap:nowrap;
}
.create-form:has(.setup-grid:not([hidden])) .setup-navigation .button{
  min-height:42px;padding:6px 20px;font-size:1.1rem;
}
.create-form .setup-grid .category-name-rows{
  max-height:min(34dvh,320px);overflow-y:auto;gap:2px;padding:2px;scrollbar-gutter:stable;
}
.create-form .setup-grid .category-name-rows label{font-size:12px;line-height:1.1}
.create-form .setup-grid .category-name-rows input[type=text]{
  height:21px;min-height:21px;padding:1px 6px;font-size:13px;line-height:17px;
}
@media(max-width:600px){
  body:has(.create-form:not([hidden]) .type-grid):has(.create-form .setup-grid[hidden]) .type-header-title,
body:has(.setup-template-picker:not([hidden])) .picker-header-title,
body:has(.create-form:not([hidden]) .setup-grid:not([hidden])) .setup-header-title{
    order:3;width:100%;padding-block:3px;
  }
}

.page:has(.setup-template-picker:not([hidden]))>.creation-step-title{display:none}
.page:has(.setup-template-picker:not([hidden]))>.breadcrumbs{display:none}
.setup-template-picker .template-sample-card,
.setup-template-picker .template-sample-card>button:first-child{
  background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;
}
.setup-template-picker .template-sample-card small{color:inherit}

.page:has(.create-form:not([hidden]) .setup-grid[hidden])>.creation-step-title{display:none}
.page:has(.create-form:not([hidden]) .setup-grid[hidden])>.breadcrumbs{position:static}
.setup-template-picker .create-template-tile{
  box-sizing:border-box;height:auto;aspect-ratio:auto;align-self:start;
  padding:4px;border:1px solid #777;background:#17171a;color:#ededf0;
}
.setup-template-picker .custom-preview-slot{aspect-ratio:2/3;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:inherit}
.setup-template-picker .custom-preview-slot::after{content:' ';font-size:smaller}
.setup-template-picker .custom-preview-slot .create-template-tile{
  align-self:center;justify-self:center;container-type:normal;min-height:0;
  width:min(100cqw,calc(100cqh * var(--template-ratio)));aspect-ratio:var(--template-ratio);
}
.setup-template-picker .custom-preview-area{container-type:size;display:grid;min-height:0}
.setup-template-picker .create-template-tile>*{color:inherit}
.setup-template-picker .template-sample-grid:has([aria-pressed=true]) > :where(:not(:has([aria-pressed=true]))){filter:brightness(.6)}
@media (hover:hover){
  .setup-template-picker .template-sample-grid:has(> :hover) > :not(:hover){filter:brightness(.55)}
  .setup-template-picker .template-sample-grid > :is(.template-sample-card,.custom-preview-slot):hover{filter:brightness(1)}
}
.setup-template-picker .template-sample-card:has([aria-pressed=true]) .ed-paper,
.setup-template-picker .create-template-tile[aria-pressed=true]{outline:2px solid #af95ef;box-shadow:0 0 15px #a685df85}
.setup-template-picker .setup-navigation .selection-ready{background:#8062d9;color:white;box-shadow:0 0 12px #a98de266}

.page:has(.puzzle-step)>.creation-step-title{color:var(--book-thunk-purple)}

/* Keep template navigation at the viewport edge while the pages scroll. */
.page:has(.setup-template-picker:not([hidden])){
  padding-bottom:calc(94px + env(safe-area-inset-bottom));
}
.setup-template-picker .actions.setup-navigation{
  position:fixed;z-index:8;inset:auto 0 0;width:auto;margin:0;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;
  gap:12px;background:transparent;pointer-events:none;
  padding:10px max(16px,calc((100vw - 1168px)/2)) calc(10px + env(safe-area-inset-bottom));
}
.setup-template-picker .actions.setup-navigation .button{
  pointer-events:auto;min-height:44px;min-width:0;padding:7px 20px;font-size:1.1rem;
}
.create-form:has(.setup-grid:not([hidden])) .setup-navigation{
  padding-bottom:calc(20px + env(safe-area-inset-bottom));
}
.create-form:has(.setup-grid:not([hidden])){
  padding-bottom:calc(88px + env(safe-area-inset-bottom));
}
.create-form:has(.setup-grid:not([hidden])) .setup-navigation{
  background:transparent;pointer-events:none;
}
.create-form:has(.setup-grid:not([hidden])) .setup-navigation>.button{pointer-events:auto}

:is(.create-form,.setup-template-picker,.puzzle-step) .setup-navigation .button:is(.next-to-setup,.selection-ready):enabled,
.puzzle-type-modal .actions .button.primary:enabled{
  color:#fff;background:#7656e4;border-color:#bbabff;
  box-shadow:0 0 0 2px #b69aff55,0 0 16px 3px #9674ff75;
  scale:1.04;transform-origin:center;
}
@media(prefers-reduced-motion:no-preference){
  .setup-navigation .button.primary,.puzzle-type-modal .button.primary{
    transition:scale .18s ease,background-color .18s ease,box-shadow .18s ease;
  }
}

:is(.create-form,.setup-template-picker,.puzzle-step) .actions.setup-navigation .button:is(.primary,.secondary){
  box-sizing:border-box;min-height:50px;min-width:min(118px,32vw);
  padding:9px clamp(12px,2vw,24px);border-radius:10px;
  font-size:clamp(1rem,2vw,1.15rem);line-height:1.25;
}

.book-step-strip{display:none}
body:has(.create-form:not([hidden]),.setup-template-picker:not([hidden]),.puzzle-step:not([hidden])) .book-step-strip{
  display:flex;align-items:center;flex:1 1 0;min-width:0;max-width:fit-content;gap:12px;
  overflow-x:auto;padding:5px 2px;scrollbar-width:thin;scrollbar-color:#484850 transparent;
}
.book-step-item{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;color:#777780;font:500 12px/1.1 system-ui}
.book-step-item[aria-current]{color:var(--book-thunk-purple);font-size:clamp(18px,2.4vw,36px);font-weight:700;margin:0;letter-spacing:-.035em}
.book-step-number{box-sizing:border-box;width:25px;height:25px;border:1px solid currentColor;border-radius:50%;display:grid;align-content:center;justify-items:center;line-height:1;font-size:12px}
.book-step-number small{font-size:7px;letter-spacing:0}
.book-step-item[aria-current] .book-step-number{width:40px;height:40px;font-size:20px}
.book-step-item[aria-current] small{font-size:9px}
.step-arrow{flex:0 0 23px;height:1px;background:#575760;position:relative}
.step-arrow::after{content:'';position:absolute;right:0;top:-2px;width:4px;height:4px;border:solid #575760;border-width:1px 1px 0 0;transform:rotate(45deg)}
.page:has(.puzzle-step:not([hidden]))>.creation-step-title{display:none}
@media(max-width:760px){
  body:has(.create-form:not([hidden]),.setup-template-picker:not([hidden]),.puzzle-step:not([hidden])) .book-step-strip{order:3;flex-basis:100%;max-width:100%}
}

.setup-template-picker .setup-navigation .button.primary:not(.selection-ready){
  background:#47474d;color:#f4f4f5;border:2px solid #9884de;box-shadow:none;
}
body:has(.setup-template-picker:not([hidden])) > footer .brand{display:none}

body:has(.puzzle-step:not([hidden])) > footer,
.page:has(.puzzle-step:not([hidden])) > .breadcrumbs{display:none}
.page:has(.puzzle-step:not([hidden])){padding-block:8px}
.puzzle-step.panel{
  min-height:0;margin-block:0;padding:8px clamp(6px,2vw,22px);
  background:transparent;border:0;box-shadow:none;color:#eee;
}
.puzzle-step .puzzle-settings-grid{gap:12px 24px;margin-block:10px}
.puzzle-step .puzzle-settings-grid>:is(label,.puzzle-number){
  min-height:0;padding:0;gap:4px;justify-content:start;
  background:transparent;border:0;box-shadow:none;color:inherit;font-size:1rem;
}
.puzzle-step .puzzle-settings-grid :is(input:not([type=checkbox]),select),
.puzzle-step details :is(input,select){
  background:#d3d3d6;color:#202024;border:1px solid #919198;
  min-height:38px;padding:4px 9px;font-size:1rem;border-radius:6px;color-scheme:light;
}
.puzzle-step .book-category-fields{margin-block:8px;padding:0;border:0}
.puzzle-step .setup-navigation{margin-top:12px}

.puzzle-step .puzzle-settings-grid .puzzle-stepper input[type=number]{
  width:min(100%,6ch);min-height:56px;font-size:clamp(32px,3vw,44px);
  font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;
}

.template-selected-marker{display:none}
.setup-template-picker button[aria-pressed=true] .template-selected-marker{
  display:block;position:absolute;inset:0 auto auto 50%;transform:translateX(-50%);
  z-index:10;pointer-events:none;padding:1px 5px 2px;border-radius:0 0 3px 3px;
  background:#132019;color:#74ff86;font:700 10px/1.15 system-ui;letter-spacing:.02em;
}

.setup-template-picker.panel{padding-top:6px}
.setup-template-picker .picker-book-summary{width:100%;margin:0;text-align:center}

.puzzle-step .puzzle-settings-grid select.puzzle-type-picker{width:min(100%,21ch);align-self:start;appearance:auto;cursor:pointer}
.page:has(.puzzle-step:not([hidden])){padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.puzzle-step .actions.setup-navigation{
  position:fixed;z-index:8;inset:auto 0 0;margin:0;justify-content:space-between;
  padding:10px max(16px,calc((100vw - 1168px)/2)) calc(10px + env(safe-area-inset-bottom));
  background:transparent;pointer-events:none;
}
.puzzle-step .setup-navigation>.button{pointer-events:auto}

.puzzle-template-previews{display:flex;align-items:end;justify-content:center;gap:18px}
.puzzle-template-previews figure{margin:0;display:grid;justify-items:center;gap:3px}
.puzzle-template-previews .ed-paper{width:clamp(72px,10vw,112px);height:auto;margin:0;pointer-events:none}
.puzzle-template-previews figcaption{font-size:12px;color:#ddd}

.puzzle-setup-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:center;gap:clamp(16px,4vw,48px)}
.puzzle-setup-columns .puzzle-settings-grid{grid-template-columns:minmax(0,1fr);row-gap:clamp(22px,3.5vh,32px)}
.puzzle-setup-columns .puzzle-template-previews{align-items:center;min-width:0}
.puzzle-setup-columns figure{flex:0 1 225px;width:225px;min-width:0;grid-template-columns:minmax(0,1fr)}
.puzzle-setup-columns .ed-paper{width:100%;height:auto}
@media(max-width:540px){
  .puzzle-setup-columns{grid-template-columns:minmax(0,1fr);gap:8px}
  .puzzle-setup-columns figure{flex-basis:96px}
}

.puzzle-step .puzzle-stepper .puzzle-value-tile{
  display:grid;align-content:center;justify-items:center;gap:0;
  margin:0;padding:3px 5px 5px;width:7rem;min-width:0;
  background:#d3d3d6;color:#202024;border:1px solid #919198;border-radius:6px;
}
.puzzle-step .puzzle-settings-grid .puzzle-value-tile input[type=number]{
  width:100%;min-height:0;padding:0;background:transparent;border:0;
}
.puzzle-value-tile small{font:600 11px/1.15 system-ui}
.puzzle-step .puzzle-stepper button{min-height:30px;width:38px}
.puzzle-unit-scope{align-self:center;color:#eee;font-size:clamp(15px,1.6vw,21px);font-weight:600}

.puzzle-unit-scope strong{font-size:1.25em;font-weight:650}

.puzzle-value-tile .puzzle-max-note{margin-inline-start:3px;color:#9d1726;font-size:9px;font-weight:700}

.puzzle-setup-columns .puzzle-template-previews figcaption{min-height:1.4em;visibility:hidden}
.puzzle-setup-columns:has(.page-count-control:hover,.page-count-control:focus-within) .puzzle-template-previews figcaption{visibility:visible}

.puzzle-template-previews figure{position:relative}
.puzzle-setup-columns .puzzle-template-previews figcaption{visibility:visible}
.setup-preview-outline{position:absolute;pointer-events:none;z-index:3;border:1.5px solid #7450cf;border-radius:2px}
.setup-preview-outline.example-word{background:#ffda435c;border-color:#a47709}
.setup-preview-outline span{position:absolute;top:100%;left:0;white-space:nowrap;background:#33274b;color:white;padding:1px 4px;border-radius:3px;font:600 10px/1.4 system-ui}

.book-chapter-menu{min-width:min(260px,94vw);padding:6px 8px}
.book-chapter-menu ol{max-height:min(220px,35dvh);overflow-y:auto;margin-bottom:5px}
.book-chapter-menu li+li{border-top:1px solid #e6e4e9}
.book-chapter-menu .chapter-list-name{min-height:21px;padding:2px 5px;font:500 12px/16px system-ui;border-radius:2px}
.book-chapter-menu .chapter-list-name span:first-child{min-width:2.4ch;text-align:right;color:#696373}
.chapter-controls button.editor-topic-ai{background:linear-gradient(120deg,#512480,#9455c7,#512480);color:white;border:1px solid #7741ad;font-weight:700}
.chapter-controls button.editor-topic-plus{background:#eeeaf3;color:#342a43;border:1px solid #afa4ba;font-weight:700}
.chapter-controls .editor-topic-idea{margin:0;flex:1 1 auto}
.editor-topic-idea summary{font:500 12px system-ui;color:#514b58;text-decoration:underline;cursor:pointer}
.chapter-controls .editor-topic-idea[open]{flex-basis:100%}
.chapter-controls .editor-topic-idea label{display:grid;gap:4px;margin-top:5px}
.chapter-controls .editor-topic-idea textarea{width:100%;box-sizing:border-box;resize:vertical;background:white;color:#241f29}
.topic-ai-group{position:relative;display:inline-flex}
.chapter-controls .editor-topic-hint{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);margin:0;z-index:3;min-height:24px;white-space:nowrap;background:#fff;border:1px solid #d7d1df;color:#51405e;font:500 10px/1.2 system-ui;text-decoration:underline;padding:4px 5px}
.topic-ai-group:hover .editor-topic-hint,.topic-ai-group:focus-within .editor-topic-hint{display:block}

.book-chapter-menu ol.five-topic-list{
  box-sizing:content-box;height:105px;max-height:min(105px,35dvh);margin:6px 0 0;
  border:1px solid #c9c7cf;border-radius:3px;
  background:repeating-linear-gradient(to bottom,#fafafa 0 20px,#dedde2 20px 21px);
}
.book-chapter-menu .five-topic-list li{height:21px;border:0}
.book-chapter-menu .five-topic-list .chapter-list-name{height:21px}

.chapter-controls button.editor-book-idea-link{background:transparent;border:0;color:#514b58;font:500 12px system-ui;text-decoration:underline}
.ed-dialog.editor-book-idea-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:88dvh;padding:20px;border-radius:18px}
.editor-book-idea-dialog label{display:grid;gap:8px}
.editor-book-idea-dialog textarea{box-sizing:border-box;width:100%;max-height:50dvh;resize:vertical;padding:10px;background:white;color:#282333;border:1px solid #aca4b5;border-radius:8px;font:15px/1.45 system-ui}

.ed-dialog.editor-book-idea-dialog{
  position:fixed;inset:clamp(20px,12dvh,120px) 0 auto;margin:0 auto;
  max-height:calc(100dvh - clamp(20px,12dvh,120px) - 16px);overflow:auto;
  color-scheme:light;background:#faf8fc;color:#302b35;border:1px solid #cfc7d6;
  box-shadow:0 12px 36px rgb(34 26 43 / 18%);
}
.ed-dialog.editor-book-idea-dialog :is(h2,label){color:#352e3c}
.ed-dialog.editor-book-idea-dialog>button{background:#eee9f4;color:#40354f;border:1px solid #c9bfd4}
.ed-dialog.editor-book-idea-dialog::backdrop{background:rgb(30 25 34 / 28%)}

.ed-board .batch-crosswords {
  position:absolute; left:12px; bottom:12px; right:auto; overflow:hidden;
  color:white; border:1px solid #cbabff;
  background:radial-gradient(ellipse at top left,#a86cf8,transparent 65%),linear-gradient(135deg,#723ac5,#44218a);
}
.ed-board .batch-crosswords{display:grid;place-items:center;text-align:center}
.ed-board .batch-crosswords::before,.ed-board .batch-crosswords::after{position:absolute;inset:5% 7% auto;content:"✧　◆";display:block;text-align:left;color:#f2deff;font:600 .55rem/1 system-ui;pointer-events:none}
.ed-board .batch-crosswords::after{inset:auto 7% 5%;content:"◆　✦";text-align:right}
.topic-notes-actions{display:flex;align-items:center;justify-content:space-between;margin-top:.75rem}
.topic-notes-dialog .topic-notes-actions button{background:#eee9f4;color:#40354f;border:1px solid #c9bfd4}
.topic-notes-dialog .topic-notes-actions .save-topic-notes{background:#216b46;color:white;border:1px solid #185636}
.topics-generating::after {
  content:""; display:block; grid-column:1/-1; width:100%; height:6px; border-radius:4px;
  background:repeating-linear-gradient(135deg,#ac78ee 0 7px,#66409c 7px 14px);
  background-size:39.6px 100%; animation:topic-stripes .9s linear infinite;
}
@keyframes topic-stripes { to { background-position:-39.6px 0; } }
.book-chapter-menu .topic-page-row{display:flex;align-items:center;gap:5px}
.topic-page-row .chapter-list-name{flex:1;overflow:hidden}
.topic-page-row .chapter-list-name span:last-child{overflow:hidden;text-overflow:ellipsis}
.book-chapter-menu .topic-create-pages,.book-chapter-menu .topic-created{flex:none;font:600 10px/1.2 system-ui;margin-right:5px}
.book-chapter-menu .topic-created{color:#15703e}
.book-chapter-menu .topic-create-pages{opacity:1;padding:2px 4px;min-height:0}
.topic-page-row:is(:hover,:focus-within) .topic-create-pages{opacity:1}
@media(hover:none){.book-chapter-menu .topic-create-pages{opacity:1}}
.topic-setup{width:min(480px,94vw);max-height:88dvh;overflow:auto}
.topic-setup .topic-layout-previews,.topic-setup-footer{display:flex;gap:12px;justify-content:space-between}
.topic-layout-previews figure{margin:0;max-width:45%;min-width:0}
.topic-layout-previews .ed-paper{width:90px;max-width:100%;position:relative;pointer-events:none}
.topic-layout-previews figcaption{font-size:12px}
.topic-setup label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
.topic-setup input[type=number]{width:5em}
.topic-setup-footer{margin-top:12px}
dialog.topic-step-screen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:#101014;color:#eee;overflow:auto}
.topic-step-screen>h2{margin:0;padding:14px 5%;background:#101014;color:var(--book-thunk-purple);text-align:center}
.topic-step-screen .puzzle-step>h3,.puzzle-step>.puzzle-topic-heading{text-align:center;margin:8px 0 16px}
.topic-step-screen>button:last-child{position:absolute;right:16px;top:12px}
.topic-step-screen .setup-navigation .button.topic-cancel{margin-left:auto;margin-right:8px;pointer-events:auto;background:#ad303e;border:1px solid #ea7180;color:white}
.topic-step-screen .actions.setup-navigation{justify-content:flex-end;gap:8px}
.topic-step-screen .actions.setup-navigation>.secondary{margin-inline-end:auto}
.topic-step-screen .actions.setup-navigation>.button.topic-cancel{
  flex:0 0 auto;width:auto;min-width:0;max-width:max-content;margin:0;
  box-sizing:border-box;min-height:50px;padding:9px clamp(10px,1.4vw,18px);
  border-radius:10px;font-size:clamp(1rem,2vw,1.15rem);line-height:1.25;
}
.topic-step-screen .actions.setup-navigation>.topic-cancel+.button.primary{margin-inline-start:0;flex:0 0 auto;width:auto}
.ed-cover-mode .ed-content:has(.cv-starter-rail){grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:minmax(0,1fr)}
.ed-cover-mode .ed-editing:has(.cv-starter-rail){grid-area:1/2;min-width:0;padding:0}
.cv-first-printer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;align-content:center;gap:8px;flex-wrap:wrap;color:#302b3c}
.cv-first-printer strong{width:100%;text-align:center;font:600 14px/1.3 system-ui}
.cv-first-printer .button{height:auto;width:auto}
.design-rail button.cv-ai-tile{--tool-tint:#eee7ff;--tool-ink:#462085;background:var(--tool-tint);border:1px solid #ae92dd;opacity:1}
.design-rail .cv-ai-tile span{color:#462085;font-weight:750}
.design-rail .cv-ai-tile:is(:hover,:focus-visible){background:#dfd0ff;border-color:#7946ba}

.cover-settings-panel:popover-open{
  box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:none;
  max-height:calc(100dvh - 48px);margin:auto;padding:clamp(16px,3vw,30px);
  background:#232129;color:#f3eff9;color-scheme:dark;border:1px solid #544f61;
  border-radius:18px;box-shadow:0 20px 72px #08070c88;gap:12px;
}
.cover-settings-panel::backdrop{background:#0d0b145c}
.cover-settings-panel .cv-settings-heading{position:static;display:flex;align-items:center;justify-content:space-between;background:transparent;color:inherit;border:0;padding:0;margin:0}
.cv-settings-heading h2,.cover-settings-panel h3{margin:0;color:#faf6ff}
.cv-settings-heading button{width:34px;height:34px;border:1px solid #615a70;border-radius:8px;background:#35313e;color:#eee9f7;font-size:21px;cursor:pointer}
.ed-cover-mode .cover-settings-panel .cv-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start}
.cover-settings-panel .cv-grid>section,.ed-cover-mode .cover-settings-panel .cv-inspector{padding:16px;border:1px solid #4d4857;border-radius:12px;background:#2c2933;color:#eeeaf4}
.cover-settings-panel .cv-grid section p,.cover-settings-panel label,.cover-settings-panel summary{color:#dfdae8}
.cover-settings-panel .cv-config a{color:#d7baff}
.cover-settings-panel :is(select,input:not([type=color]),.button.secondary){background:#37333f;color:#f5f0fa;border:1px solid #625c70;border-radius:7px}
.cover-settings-panel .cv-config summary{font-weight:650;cursor:pointer}
.cover-settings-panel :focus-visible{outline:2px solid #cba8ff;outline-offset:2px}
@media(max-width:680px){.ed-cover-mode .cover-settings-panel .cv-grid{grid-template-columns:minmax(0,1fr)}}
.cv-print-details{margin:10px 0 16px}
.cv-print-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;padding:7px 0;border-bottom:1px solid #48454f;align-items:baseline}
.cv-print-details dt{font-size:.86rem;color:#c9c3d2}
.cv-print-details dd{margin:0;font-weight:600;color:#faf7ff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cv-print-details>.cv-measurement{display:block;padding:10px 14px;margin:0 0 8px;border:1px solid #585063;border-left:3px solid #b999e8;border-radius:7px;background:#35303e}
.cv-measurement dd{font-size:clamp(1.12rem,2vw,1.52rem);margin-top:3px}
.cv-measurement small{display:block;margin-top:4px;font-size:.78rem;font-weight:500;color:#ddd1eb}
dialog.ed-dialog.cover-page-question{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-width:none;padding:clamp(20px,4vw,36px);background:#27242e;color:#f7f4ff;border:1px solid #655a76;border-radius:18px}
.cover-page-question h2{margin:0;color:#d5b6ff;font-size:clamp(25px,4vw,34px);line-height:1.15;text-wrap:balance}
.cover-page-question p{margin:12px 0 26px;color:#e1dbe8;line-height:1.45}
.cover-page-question .actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cover-page-question .actions .button{margin:0;min-width:0;white-space:normal;min-height:44px}
.cover-page-question .actions .cover-keep-adding{color:white;background:#a92c42;border:1px solid #d45b70}
dialog.ed-dialog.cover-page-question{overflow:visible}
.cover-page-question .cover-important{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);border-radius:100px;padding:4px 14px;background:#ffcd52;color:#302100;font-size:.875rem;font-weight:750;line-height:1.2}
dialog.ed-dialog.cv-dialog.printer-configuration{width:min(34rem,calc(100vw - 32px));box-sizing:border-box;padding:clamp(20px,4vw,32px);background:#eae6f1;color:#282231;border:1px solid #c7bfd1;border-radius:16px;color-scheme:light}
.printer-configuration h2{color:#513866;line-height:1.2}
.printer-configuration label{display:grid;gap:5px;margin:12px 0;color:#43394e;font-weight:600}
dialog.printer-configuration :is(input,select){width:100%;box-sizing:border-box;min-height:40px;background:#fff;color:#302939;border:1px solid #aaa0ba;border-radius:7px;padding:6px 10px}
dialog.printer-configuration p{color:#453b50}
dialog.printer-configuration .printer-warning{background:#fff1f1;color:#902332;border-left:4px solid #ba3546;padding:10px 14px;font-weight:650}
.printer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
dialog.printer-configuration .printer-cancel{background:#a32b40;color:#fff;border:1px solid #8b2033}
dialog[aria-labelledby="review-complete-question"]{max-height:85vh;overflow:auto}
.review-printer-badge{display:inline-flex;align-self:center;align-items:center;padding:4px 9px;border-radius:999px;background:#85f1d4;color:#103d34;font-size:.8rem;font-weight:700;line-height:1.2;white-space:nowrap}
.review-preview:not(.show-cover) .review-printer-badge{display:none}
.review-printer-badge img{width:20px;height:17px;object-fit:contain;margin-right:5px}.review-pager [hidden]{display:none}
.ed-board .ed-tools .ed-restore{align-self:center;min-height:22px;height:22px;padding:2px 6px;font-size:11px;line-height:1.2}
.ed-title-credit{position:absolute;bottom:2.6%;left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:.18cqw;width:10%;font:500 1.35cqw/1.15 system-ui;color:#504959;pointer-events:none;user-select:none}
.ed-paper:has(.ed-page-number) .ed-title-credit{bottom:5.2%}
.ed-title-credit img{display:block;width:100%;height:auto}
.ed-title-credit .ed-credit-brand{display:flex;align-items:baseline;justify-content:center;white-space:nowrap;color:#000;font-size:1.45cqw}
.ed-credit-brand img{width:10cqw;flex:none;align-self:center}
.ed-credit-brand span{align-self:center}

.example-tile .cover-frame,.edition-detail .sample-grid{container-type:inline-size;background:radial-gradient(ellipse at 48% 28%,#514c59,#262330 85%);display:grid;place-items:center}
.example-tile .cover-frame img,.edition-detail .sample-grid>img,.edition-leaf{width:min(calc(7.8cqw * var(--book-width)),88cqw);height:auto;aspect-ratio:var(--book-width)/var(--book-height);object-fit:cover;box-shadow:2px 2px #d7ccba,4px 4px #998e80,7px 12px 16px #100e1970;border-radius:1px 3px 3px 1px}
.edition-detail .sample-panel{padding:clamp(14px,2vw,26px)}
.edition-detail .sample-grid{min-height:0;max-height:none;aspect-ratio:1.08;padding:0;overflow:visible;scrollbar-gutter:auto;border-radius:6px}
.edition-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:16px}
.edition-controls button{padding:8px 14px;border:1px solid #80798c;border-radius:20px;color:inherit;background:transparent;cursor:pointer}
.edition-controls button[aria-pressed=true]{background:#eee8df;color:#241f2a}
.edition-synopsis{font:1.25rem/1.5 Georgia,serif}
.edition-notes dl{display:grid;grid-template-columns:auto 1fr;gap:10px 22px;border-block:1px solid #817a864d;padding:20px 0}
.edition-notes dt{color:var(--muted)}
.edition-notes dd{margin:0}
.edition-leaf{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:6%;background:#faf4e6;color:#302720;font:clamp(.8rem,3.2cqw,1.15rem)/1.5 Georgia,serif}
.edition-leaf small{letter-spacing:.06em;font-variant:small-caps}
.edition-leaf h3{font-size:1.6em;margin:.4em 0}
.edition-leaf p{margin:0}
@media(max-width:680px){.edition-detail .detail-info{display:block;grid-row:2}.edition-detail .sample-panel{grid-row:1}.edition-detail .sample-grid:has(.edition-leaf){aspect-ratio:auto;padding-block:18px}}

/* Example reader: one viewing surface with a single, centered page. */
body:has(.edition-detail)>footer{display:none}
.page:has(.edition-detail){padding-block:10px 14px}
.page:has(.edition-detail) .breadcrumbs{margin-bottom:10px}
.edition-detail{align-items:center;gap:clamp(16px,3vw,44px)}
.edition-detail .sample-panel{padding:0;border:0;background:transparent;overflow:visible}
.edition-detail .sample-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.edition-detail .sample-grid,.edition-detail .sample-grid:has(.edition-leaf){box-sizing:border-box;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:clamp(150px,calc(100dvh - 200px),820px);aspect-ratio:auto;padding:12px;background:#26232e;container-type:size}
.edition-detail .sample-grid>img,.edition-detail .edition-leaf{width:min(95cqw,calc(96cqh * var(--book-width) / var(--book-height)));height:auto;max-height:96cqh;object-fit:contain;justify-self:center;align-self:center}
.edition-controls{margin-top:8px;gap:5px}
.edition-detail .detail-info h1{font-size:clamp(1.7rem,4.8vh,3.4rem)}
.edition-detail .edition-synopsis{margin:10px 0}
.edition-detail .edition-notes dl{margin:10px 0;padding:10px 0;gap:5px 16px}
.edition-detail .reader-rating{font-size:.85rem}
.edition-mobile-details{display:none}
@media(max-width:680px){
 .edition-detail{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .edition-detail .detail-info{order:0}.edition-detail .sample-panel{order:1}
 .edition-detail .detail-info .lede{margin:2px 0;font-size:1rem}
 .edition-detail .sample-grid,.edition-detail .sample-grid:has(.edition-leaf){height:clamp(130px,calc(100dvh - 290px),750px)}
 .edition-mobile-details{display:inline-block}
 .edition-detail:not(.show-edition-details) .detail-info>:not(h1,.lede){display:none}
 .edition-detail.show-edition-details .sample-grid{display:none}
 .edition-detail.show-edition-details .sample-grid:has(.edition-leaf){display:none}
 .edition-controls button{padding:6px 9px}
}

.plan-preview>.lede{max-width:72ch;margin:0 0 24px}
.plan-preview .pricing-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));align-items:stretch}
.plan-preview .panel{padding:clamp(18px,2.4vw,32px)}
.plan-preview .panel h2{margin:0 0 10px}
.plan-preview .panel ul{padding-inline-start:1.25rem;margin-block:16px;line-height:1.5}
.plan-preview .panel li+li{margin-top:8px}
.plan-preview .credit-guide{margin-top:22px}
.credit-guide dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px}
.credit-guide dt{font-weight:700}
.credit-guide dd{margin:0}

.plan-preview .pricing-options>.panel{
  --plan-title:#9ef5df;--plan-start:#164d4b;--plan-end:#152c3c;
  background:linear-gradient(140deg,var(--plan-start),var(--plan-end) 86%);
  color:#fcfbff;border:1px solid color-mix(in srgb,var(--plan-title) 35%,var(--plan-end));
}
.plan-preview .pricing-options>.panel:nth-child(2){--plan-title:#e4c2ff;--plan-start:#523867;--plan-end:#302547}
.plan-preview .pricing-options>.panel:nth-child(3){--plan-title:#ffda97;--plan-start:#603d39;--plan-end:#342637}
.plan-preview .pricing-options>.panel h2{color:var(--plan-title);font-size:clamp(1.45rem,2vw,1.9rem);line-height:1.18}
.plan-preview .pricing-options>.panel strong{color:#fff}
.plan-preview .pricing-options>.panel p{color:#f3edf4;line-height:1.5}
.plan-preview .pricing-options>.panel ul{list-style:none;padding:0;margin:16px 0}
.plan-preview .pricing-options>.panel li{display:grid;grid-template-columns:.5rem 1fr;gap:.8rem;align-items:baseline;padding:.7rem 0;margin:0;border-bottom:1px solid #ffffff30;font-size:1rem;line-height:1.5}
.plan-preview .pricing-options>.panel li::before{content:"";height:.38rem;width:.38rem;align-self:start;margin-top:.56rem;border-radius:50%;background:var(--plan-title)}

.plan-preview .pricing-options>.panel:nth-child(3){
  --plan-title:#ffe3a8;
  border:1px solid transparent;
  background:
    radial-gradient(ellipse at 104% -10%,#674878 0%,transparent 49%) padding-box,
    radial-gradient(ellipse at -18% 90%,#195754 0%,transparent 56%) padding-box,
    linear-gradient(142deg,#422944,#24213b 59%,#173639) padding-box,
    linear-gradient(135deg,#f7dca3,#a48465 23%,#8274ab 56%,#76b5a1 86%,#edd092) border-box;
  box-shadow:inset 0 1px 0 #ffefd31c,0 8px 24px #17121d45;
}
.plan-preview .pricing-options>.panel:nth-child(3) h2{font-family:inherit;color:#fff2de}
.plan-preview .pricing-options>.panel:nth-child(3) li::before{border-radius:1px;transform:rotate(45deg)}

.plan-preview .plan-price{display:flex;align-items:baseline;gap:.5rem;margin:.65rem 0;color:#fff;font-size:clamp(2rem,4vw,3rem);line-height:1.1;font-weight:700;letter-spacing:-.04em}
.plan-price span{font-size:1rem;font-weight:500;letter-spacing:normal}

.template-outline-session{position:absolute;z-index:9999;pointer-events:auto}
.template-outline-session>svg{width:100%;height:100%;overflow:visible;touch-action:none}
.template-outline-session polygon{fill:#976dff19;stroke:#8b53f5;stroke-width:2;stroke-dasharray:5 3;fill-rule:evenodd}
.template-outline-session .vertex-grip{position:absolute;width:15px;height:15px;min-width:0;min-height:0;padding:0;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;background:#7341d4;box-shadow:0 0 0 1px #40217d;touch-action:none;cursor:grab}
.template-outline-session .vertex-grip[aria-pressed=true]{background:#ffb654}
.vertex-toolbox:popover-open{position:fixed;inset:auto;margin:0;display:grid;gap:3px;padding:6px;color:#271f34;background:white;border:1px solid #a394b4;border-radius:8px;box-shadow:0 4px 18px #21133233}
.vertex-toolbox button{color:inherit;background:#f5f1fb;border:0;padding:5px 9px;min-height:28px;border-radius:5px;text-align:left;font:600 14px/1.2 system-ui}
.vertex-toolbox button:first-child{color:#6030ad;cursor:grab;touch-action:none}
.vertex-toolbox .dragging{cursor:grabbing}
.outlined-slot>.template-word-grid,.outlined-slot>.fitted-crossword{width:100%!important;height:100%!important;aspect-ratio:auto}
.vertex-drag-dot{position:fixed;pointer-events:none;transform:translate(-50%,-50%);width:15px;height:15px;border:2px solid white;border-radius:50%;background:#7341d4;box-shadow:0 0 0 1px #40217d}
.vertex-toolbox button[aria-pressed=true]{background:#e0d4f8;color:#45267c;box-shadow:inset 3px 0 #7341d4}
.vertex-toolbox .vertex-done{background:#196746;color:white}
.vertex-toolbox .vertex-cancel{background:#a33140;color:white}
.template-outline-session .vertex-side{position:absolute;width:22px;height:22px;min-width:0;min-height:0;padding:0;border:0;background:transparent;transform:translate(-50%,-50%);cursor:move;touch-action:none}
.vertex-side::before{content:"";display:block;width:10px;height:10px;margin:auto;border-radius:2px;background:#016b75;border:2px solid white;box-shadow:0 0 0 1px #0b4248;transform:rotate(45deg)}
.ed-object>.letter-layout-preview{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;pointer-events:none;color:#242432;font-family:inherit;font-weight:inherit;line-height:1;opacity:.25}
.ed-object:has(>.letter-layout-preview)>.template-word-grid{visibility:hidden}
.ed-object>.template-word-grid.word-layout-sized{width:100%!important;height:100%;aspect-ratio:auto}
.letter-layout-tools:popover-open{position:fixed;inset:auto;margin:0;width:min(220px,85vw);padding:12px;display:grid;gap:10px;border:1px solid #ab9ebe;border-radius:8px;background:white;color:#292334;box-shadow:0 4px 20px #20152e36}
.letter-layout-tools label{display:grid;grid-template-columns:1fr auto;align-items:center;font:600 14px/1.2 system-ui}
.letter-layout-tools input{grid-column:1/-1;width:100%;accent-color:#7051ad}
.letter-layout-tools button{background:#196746;color:white;border:0;border-radius:5px;padding:7px}
.art-toolbar .word-spacing-controls{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;padding:3px 7px}
.art-toolbar .word-spacing-controls label{display:grid;grid-template-columns:auto auto;gap:0 6px;font:600 13px/1.25 system-ui;white-space:nowrap}
.art-toolbar .word-spacing-controls output{font-weight:400;text-align:right}
.art-toolbar .word-spacing-controls input[type=range]{grid-column:1/-1;width:100%;min-width:85px;min-height:18px;margin:0;accent-color:#7051ad}
.site-generation-bar:popover-open{display:block;position:fixed;inset:0 0 auto;width:100%;height:7px;margin:0;padding:0;border:0;background:#248653;overflow:hidden;pointer-events:none}
body:has(dialog[open] .sample-loading-bar:not([hidden])) .site-generation-bar:popover-open{visibility:hidden}

.puzzle-bank-columns>div>span{display:inline-block;transform:scaleX(var(--bank-text-stretch,1))}

.page-background-fade{position:absolute;inset:0;pointer-events:none}
.ed-tools .page-fade-panel{position:absolute;top:100%;right:0;z-index:5;width:min(17rem,95%);padding:.85rem;display:grid;gap:.6rem;background:#fff;color:#202027;border:1px solid #ccc;border-radius:.6rem;box-shadow:0 3px 14px #0003;pointer-events:auto}
.page-fade-panel label{display:grid;grid-template-columns:1fr auto;gap:.25rem;font:500 .875rem system-ui}
.page-fade-panel input{grid-column:1/-1;width:100%;margin:0}
.page-fade-panel output{font-variant-numeric:tabular-nums}

.fade-direction-row{display:flex;align-items:center;gap:.85rem}
.fade-direction-row output{display:block;margin-bottom:.2rem}
.fade-angle-dial{position:relative;box-sizing:border-box;width:56px;height:56px;flex:none;border-radius:50%;border:2px solid #a5a0b2;background:radial-gradient(circle,#716880 0 3px,transparent 4px),repeating-conic-gradient(from -2deg,#777282 0 4deg,transparent 4deg 90deg),#f7f6fa;touch-action:none;cursor:crosshair;user-select:none}
.fade-angle-dial:focus-visible{outline:2px solid #68479a;outline-offset:2px}
.fade-angle-dial.at-edge{border-color:#68479a}
.fade-angle-dial i{position:absolute;left:calc(50% - 2px);bottom:50%;width:4px;height:42%;border-radius:4px;background:#654099;transform-origin:50% 100%;pointer-events:none}

.ed-tools .page-fade-panel .fade-cycle{box-sizing:border-box;flex:0 0 56px;width:56px;height:56px;padding:0;border:2px solid #a5a0b2;border-radius:0;background:linear-gradient(var(--fade-preview-angle),white,#645a78)}
.ed-tools .page-fade-panel .fade-cycle[data-mode="whole"]{background:#c8c3d1}
.ed-tools .page-fade-panel .fade-cycle[data-mode="center-out"]{background:radial-gradient(ellipse,white 10%,#645a78 80%)}
.ed-tools .page-fade-panel .fade-cycle[data-mode="outside-in"]{background:radial-gradient(ellipse,#645a78 10%,white 80%)}
.fade-actions{display:flex;justify-content:space-between}
.ed-tools .page-fade-panel .fade-cancel{background:#a52835;color:white}
.ed-tools .page-fade-panel .fade-done{background:#24633d;color:white}
.ws-page{max-width:60rem}.ws-stack,.ws-card,.ws-detail{display:grid;gap:1rem}.ws-card{padding:clamp(1rem,3vw,2rem)}.ws-card h2,.ws-card p{margin:0}.ws-page label,.ws-detail label{display:grid;gap:.4rem}.ws-page :is(button,input,select,summary),.ws-detail :is(button,input,select){min-height:44px}.ws-page :is(button,a.button){justify-self:start}.ws-page .ws-check{display:flex;align-items:center;gap:.7rem}.ws-page .ws-check input{min-height:0;width:20px;height:20px}.ws-page details>*+*,.ws-detail>*+*{margin-top:.7rem}.ws-item{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.8rem 0;border-bottom:1px solid #ddd}.ws-detail:not([open]){display:none}.ws-detail{width:min(92vw,42rem);max-height:86vh;overflow:auto;padding:1.4rem}.ws-qr canvas,.ws-icon{width:min(100%,18rem);height:auto}.ws-paper{width:min(100%,20rem)}.ws-font{font-size:2rem}.ws-detail textarea{min-height:6rem}.ws-qr input{width:100%}
@media print{body:has(.ws-print) *{visibility:hidden}body:has(.ws-print) .ws-print,body:has(.ws-print) .ws-print *{visibility:visible}.ws-print{position:absolute;left:5%;top:5%;width:90%}}

.account-nav a.owner-entry[hidden]{display:none}
.ws-qr canvas{display:block;background:white}

.ws-project-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;border:0;padding:0;margin:0;min-width:0}
.ws-project-tiles legend{font-weight:650;margin-bottom:.65rem}
.ws-page .ws-project-tile{position:relative;display:grid;gap:0;overflow:hidden;cursor:pointer;border:2px solid #757181;border-radius:14px;background:#20202b;color:white;text-align:center}
.ws-project-tile:has(:checked){border-color:#ab9aff;box-shadow:0 0 0 2px #8871f94a}
.ws-project-tile:focus-within{outline:3px solid #77cfff;outline-offset:3px}
.ws-project-tile strong{font-size:1rem;padding:.8rem .2rem}
.ws-page .ws-project-tile input{position:absolute;z-index:1;top:.55rem;right:.55rem;width:22px;height:22px;min-height:0;margin:0;accent-color:#5940cb}
.ws-project-art{height:clamp(7rem,12vw,10rem);display:flex;justify-content:center;align-items:center;overflow:hidden}
.ws-kind-0 .ws-project-art{background:linear-gradient(135deg,#ddffec,#59bbae)}
.ws-word-art{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;transform:rotate(-9deg);box-shadow:3px 7px 0 #22555842}
.ws-word-art i{display:grid;place-items:center;background:#fcfff8;color:#134b48;font:700 13px/1 monospace;width:20px;height:20px}
.ws-word-art i:nth-child(-n+4){background:#26786c;color:white}
.ws-kind-1 .ws-project-art{font:italic 76px/.9 Georgia,serif;letter-spacing:-7px;color:#522544;background:repeating-linear-gradient(0deg,transparent 0 22px,#8c416323 22px 23px),linear-gradient(125deg,#ffedd6,#f0a0ad)}
.ws-kind-2 .ws-project-art{background:linear-gradient(125deg,#c5defe,#a79bea);gap:0}
.ws-kind-2 img{width:27%;height:auto;filter:drop-shadow(1px 4px 2px #302b6440)}
.ws-kind-2 img:nth-child(2){transform:translateY(-10px)}
.ws-kind-3 .ws-project-art{background:linear-gradient(130deg,#fff0b4,#f2ae73)}
.ws-kind-3 img{height:82%;max-width:95%;object-fit:contain;transform:rotate(-8deg)}
.ws-setup{width:100%;max-width:none;box-sizing:border-box}
.ws-clocks{display:flex;gap:.75rem;flex-wrap:wrap}
.ws-clock{display:flex;align-items:baseline;gap:.35rem .65rem;flex-wrap:wrap;padding:.55rem .8rem;border:1px solid #8886;border-radius:.65rem;font-size:.85rem}
.ws-clock strong{font-variant-numeric:tabular-nums}.ws-clock time{font-size:.8rem}
@media(max-width:760px){.ws-project-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ws-clock{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:.25rem;background:#211e32;color:#faf8ff;border-color:#685f8f;border-left:4px solid #baabff;padding:.75rem 1rem}
.ws-clock>span{font-weight:650}.ws-clock strong{font-size:clamp(1.55rem,3.4vw,2.5rem);line-height:1.08;letter-spacing:-.025em}
.ws-clock time{color:#ddd8e9}.ws-clocks>.ws-clock{flex:1 1 13rem}
.ws-clock-closed{border-left-color:#ffaf96}
header .ed-heading .ws-clock{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .75rem;padding:.3rem .65rem;margin-top:.35rem}
header .ed-heading .ws-clock strong{font-size:clamp(1.5rem,2.4vw,2rem)}
.ws-date-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.ws-date-row>span{font-size:.9rem}
.ws-date-trigger,.ws-calendar button{cursor:pointer}
.ws-date-trigger{display:grid;place-items:center;color:#32205b;background:#eee9ff;border:1px solid #ac9bd5;border-radius:.7rem;width:48px;height:48px}
.ws-calendar-glyph{border:2px solid currentColor;border-top-width:5px;border-radius:4px;font:700 18px/16px sans-serif;width:23px;text-align:center}
.ws-calendar{color-scheme:light;color:#262237;background:#fffdff;border:none;border-radius:20px;padding:1.1rem;width:min(94vw,24rem);max-height:90dvh;overflow:auto;box-sizing:border-box;box-shadow:0 20px 70px #0c071c66}
.ws-calendar::backdrop{background:#121022a6}
.ws-calendar h2{color:#292237;font-size:1.25rem}.ws-calendar button{color:#30283e;border:0;background:#f1edf8;border-radius:9px;font:inherit;min-width:0;padding:.2rem}
.ws-calendar .ws-month-nav,.ws-calendar footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.75rem 0}
.ws-calendar .ws-month-nav button{width:44px;font-size:1.6rem}
.ws-calendar .ws-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.ws-calendar .ws-days button{width:100%;background:transparent}.ws-calendar .ws-days button:hover{background:#eee7fa}
.ws-calendar .ws-days button[aria-pressed=true],.ws-calendar footer button:last-child{color:white;background:#6041a4}
.ws-calendar small{color:#655a71;padding:.3rem 0}.ws-calendar label{color:#33283f;margin-top:.8rem}
.ws-calendar input{color:#292137;background:#fbf8ff;border:1px solid #c5b9d5;border-radius:8px;padding:.4rem}
.ws-calendar footer{margin-bottom:0}.ws-calendar footer button{padding:.5rem 1rem}
.ws-calendar select{font:inherit;color:#292137;background:#fbf8ff;border:1px solid #c5b9d5;border-radius:8px;padding:.5rem .7rem}
.ws-page-sizes{display:grid;grid-template-columns:1fr;gap:.15rem;padding:.65rem;border:1px solid #8885;border-radius:12px;min-width:0}
.ws-page-sizes[hidden]{display:none}.ws-page-sizes legend{font-weight:650;padding:0 .35rem}
.ws-page-sizes .ws-check{min-height:44px;cursor:pointer;font-variant-numeric:tabular-nums}
.ws-capacity{display:inline-grid;grid-template-columns:44px 5.2rem 44px;align-items:center;gap:.35rem;margin-top:.4rem}
.ws-capacity input,.ws-capacity button{box-sizing:border-box;width:100%;height:44px;border:1px solid #878097;border-radius:.6rem;text-align:center;color:inherit;font:inherit}
.ws-capacity input{padding:.25rem;font-variant-numeric:tabular-nums;background:transparent}
.ws-capacity button{padding:0;background:#383248;color:#fff;font-size:1.45rem;cursor:pointer}
.ws-capacity button:disabled{opacity:.4;cursor:default}

.ws-calendars{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem}.ws-calendars .ws-calendar{width:100%;max-height:none;box-shadow:none;margin:0}.ws-setup .ws-days>*{margin:0}.ws-page-sizes{max-height:19rem;overflow-y:auto}
.ws-owner-setup{max-width:90rem;padding-top:1rem}.ws-owner-setup>h1{font-size:clamp(1.6rem,3vw,2.6rem);margin:.3rem 0 .65rem}.ws-owner-setup>p:empty{display:none}
.ws-owner-setup .ws-setup{max-width:none;padding:1rem;gap:.4rem}.ws-setup>h2{font-size:1.3rem}.ws-setup>details>summary{min-height:32px;font-weight:650}
.ws-setup-layout{display:grid;grid-template-columns:minmax(0,0.95fr) minmax(0,1.32fr);gap:1.25rem;align-items:start}
.ws-setup-controls{display:grid;gap:.55rem;min-width:0}.ws-setup-controls .ws-project-tiles{gap:.35rem;grid-template-columns:repeat(4,minmax(0,1fr))}
.ws-setup-controls .ws-project-art{height:clamp(4rem,7vw,6.1rem)}.ws-setup-controls .ws-project-tile strong{font-size:.85rem;padding:.35rem .1rem}
.ws-setup-controls .ws-word-art{transform:rotate(-9deg) scale(.78)}.ws-setup-controls .ws-kind-1 .ws-project-art{font-size:3.8rem}
.ws-setup-controls .ws-size-picker{position:relative}.ws-size-picker summary{cursor:pointer;display:list-item;align-content:center;padding:0 .7rem;border:1px solid #817791;border-radius:.5rem}
.ws-size-picker .ws-page-sizes{position:absolute;top:100%;left:0;width:min(100%,22rem);box-sizing:border-box;margin:0;background:#282434;color:white;z-index:4;box-shadow:0 .5rem 1.5rem #0005}
.ws-setup .ws-calendars{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.ws-calendars .ws-calendar{padding:.7rem}
.ws-calendar .ws-days button{min-height:36px}.ws-calendars .ws-calendar h2{font-size:1.05rem}
@media(max-width:950px){.ws-setup-layout{grid-template-columns:1fr}}
@media(max-width:600px){.ws-setup .ws-calendars{grid-template-columns:1fr}.ws-setup-controls .ws-project-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-setup .ws-days button{min-height:44px}}
@media(min-width:951px) and (max-height:800px){.ws-setup-controls{gap:.25rem}.ws-setup-controls .ws-project-art{height:4rem}.ws-owner-setup .ws-setup{padding:.65rem 1rem}}
.ws-template-types{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1rem;border:0;margin:0;padding:0;min-width:0}.ws-template-types legend{font-weight:650}.ws-template-types[hidden]{display:none}
.ws-layout-art{width:42px;height:52px;border-radius:3px;padding:6px;background:#fffcf4;position:relative;box-shadow:-4px 4px 0 #78ab9d,-7px 7px 0 #edf4dd,1px 6px 9px #28595166;transform:rotate(-7deg);display:grid;grid-template-columns:1fr 1fr;grid-template-rows:5px 1fr;gap:5px}
.layout-heading{background:#275e59;grid-column:span 2;border-radius:2px}.layout-picture{border-radius:2px;background:linear-gradient(140deg,#c6e7db 45%,#70ac99 46% 67%,#498d80 68%)}.layout-lines{background:repeating-linear-gradient(#92a99d 0 2px,transparent 2px 5px)}
@media(min-width:951px) and (max-height:800px){.ws-template-types legend{float:left;margin-right:.65rem}.ws-setup-controls{gap:.16rem}.ws-setup .ws-project-tiles legend{margin-bottom:.15rem}}
.ws-project-column{min-width:0}.ws-project-column .ws-template-types{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin-top:5px}
.ws-project-column .ws-template-types[hidden]{display:none}
.ws-project-column .ws-template-types .ws-check{gap:.3rem;font-size:.9rem;min-height:24px;line-height:1.15}
.ws-project-column .ws-template-types input{flex:none}
@media(min-width:951px) and (max-height:800px){.ws-setup-controls .ws-capacity{margin-top:0}.ws-setup-controls>div:has(.ws-capacity){display:flex;align-items:center;gap:.6rem}.ws-setup-controls .ws-project-art{height:3.75rem}}
.ws-setup .ws-size-toggle{width:max-content;min-height:34px;padding:.32rem .7rem;color:#f7f4ff;background:#373143;border:1px solid #9385a7;border-radius:.55rem;font:inherit;cursor:pointer;justify-self:start}
.ws-size-drawer{position:fixed;inset:0 0 0 auto;box-sizing:border-box;margin:0;height:100dvh;max-height:none;width:min(25rem,82vw);max-width:none;padding:.9rem;color:#f8f5ff;background:#23202c;border:0;border-left:1px solid #8d819c;box-shadow:-8px 0 28px #0005;overflow:auto}
.ws-size-drawer::backdrop{background:#11101838;pointer-events:none}
.ws-drawer-sizes{display:grid;grid-auto-flow:column;grid-template-rows:repeat(var(--size-rows,19),minmax(0,1fr));grid-auto-columns:minmax(0,1fr);margin:.5rem 0 0;border:0;padding:0;height:calc(100dvh - 5rem);min-height:27rem;column-gap:.4rem}
.ws-drawer-sizes legend{padding:0 0 .3rem;color:#ddd5e6}.ws-page .ws-drawer-sizes label{font-size:clamp(.76rem,1.5vw,.95rem);gap:.32rem;cursor:pointer;line-height:1.1}.ws-drawer-sizes input{flex:none}
@media(min-height:1150px){.ws-size-drawer{width:15rem}.ws-drawer-sizes{grid-template-rows:repeat(var(--size-total),1fr)}}
.ws-selections{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.25rem .8rem;margin:0;font-size:.94rem;line-height:1.45}
.ws-selections dt{font-weight:650;color:#bbb4cc}.ws-selections dd{margin:0;overflow-wrap:anywhere}.ws-page .ws-selections summary{min-height:0;cursor:pointer}

.ws-owner-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.35rem 1rem;margin-bottom:.65rem}.ws-owner-title h1{font-size:clamp(1.6rem,3vw,2.6rem);margin:.3rem 0}
.ws-puzzle-options{margin:0;padding:0;min-width:0;border:0;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .8rem}.ws-puzzle-options legend{float:left;margin-right:.7rem;font-weight:650}.ws-puzzle-options[hidden]{display:none}.ws-puzzle-options label{font-size:.92rem;min-height:25px}
@media(min-width:951px) and (max-height:800px){.ws-puzzle-options legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ws-puzzle-options{gap:.3rem .7rem}.ws-page .ws-puzzle-options .ws-check{min-height:24px}.ws-owner-title{margin-bottom:.2rem}}

.ws-clock-days{color:#87c4ff}
.ws-clock-hours{color:#ffa0a6;font-size:.86em}
.ws-submission-clock>span,.ws-submission-clock>time{color:#ffa0a6;font-weight:700}
.ws-submission-clock>span{font-size:1.2rem}.ws-submission-clock>time{font-size:1.05rem}
.ws-personal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:.8rem}
.ws-personal-grid .ws-card{padding:1rem;gap:.45rem;max-width:32rem;align-content:start}
.ws-personal-grid .ws-card h2{font-size:1.25rem}.ws-personal-grid .ws-selections{font-size:.86rem;gap:.12rem .65rem}
.ws-tile-actions{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.35rem}
.ws-page .button.ws-start{background:#197146;color:white;border-color:#25845a}
.ws-detail label[hidden]{display:none}
header .ed-heading .ws-clock,.ws-detail .ws-clock{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .4rem;border:0;padding:0;background:transparent}
header .ed-heading .ws-clock strong,.ws-detail .ws-clock strong{font-size:.8rem}
header .ed-heading .ws-clock>span,.ws-detail .ws-clock>span{font-size:.72rem}
header .ed-heading .ws-clock time,.ws-detail .ws-clock time{font-size:.7rem}

.ws-personal-grid .ws-card{display:flex;flex-direction:column}.ws-personal-grid .ws-card>a{align-self:flex-start}.ws-personal-grid .ws-tile-actions{margin-top:auto;padding-top:.4rem;align-items:center}.ws-tile-actions>button:first-child{margin-right:auto}
.ws-personal-grid .ws-task-tile{position:relative;padding-right:3.7rem;min-height:11.8rem;overflow:hidden}
.ws-task-edge{position:absolute;inset:0 0 0 auto;display:flex;align-items:center;justify-content:center;gap:.45rem;width:44px;writing-mode:vertical-rl;background:#373043;color:#f7f3ff;border:0;border-left:1px solid #82738f;cursor:pointer;font:600 .86rem/1.15 inherit}
.ws-task-edge span{writing-mode:horizontal-tb;font-size:1.15rem}
dialog.ws-task-sidebar[open]{position:fixed;inset:0 0 0 auto;margin:0;width:min(96vw,30rem);max-width:none;height:100dvh;max-height:none;box-sizing:border-box;display:block;border-radius:12px 0 0 12px;overflow:auto}
.ws-task-sidebar::backdrop{background:#08061277}.ws-task-group{margin:1rem 0}.ws-task-group h3,.ws-task-group p{margin:.3rem 0}
.ws-task-group article{padding:.7rem 0;border-top:1px solid #8886}.ws-task-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.ws-personal-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),20rem))}
.ws-personal-grid .ws-task-tile{min-height:9rem;padding:.75rem 3.3rem .65rem .85rem}
.ws-task-tile .ws-clock{display:flex;align-items:baseline;gap:.25rem;background:transparent;border:0;padding:0;margin-top:auto;padding-top:.4rem}
.ws-task-tile .ws-clock>span,.ws-task-tile .ws-clock strong{font-size:.76rem}.ws-task-tile .ws-clock time{display:none}
.ws-task-sidebar[open]{z-index:1000;background:#24232c;color:#f4f2f7;border:1px solid #706c79;box-shadow:-6px 0 22px #0005;width:min(calc(100vw - 48px),27rem)!important}
.ws-task-sidebar h2{font-size:1.35rem;margin:.3rem 0 .8rem}
.ws-page .ws-sidebar-close{background:transparent;border:0;color:#ff949d;font:bold 1.55rem/1 sans-serif;cursor:pointer;min-height:34px;width:34px;padding:0}
.ws-task-sidebar .ws-task-group{margin:.7rem 0;background:#1f1f25;border:1px solid #55535e}
.ws-task-group>.ws-task-row{background:#313039;padding:.4rem .65rem;border-bottom:1px solid #55535e}
.ws-task-group>small,.ws-task-group article{display:block;padding:.5rem .65rem}.ws-task-group h3{font-size:.98rem}.ws-task-group article p{font-size:.84rem;color:#d0cad7}
.ws-page .ws-task-edge.ws-edge-docked{position:fixed;inset:48% min(calc(100vw - 48px),27rem) auto auto;z-index:1001;height:44px;border:1px solid #82738f;border-radius:6px 0 0 6px}
.ws-task-group article.ws-saved-design{display:grid;grid-template-columns:minmax(5.4rem,35%) minmax(0,1fr);align-items:start;gap:.35rem .75rem;padding:.65rem}
.ws-saved-design figure{grid-column:1;grid-row:1 / span 2;margin:0;text-align:center;min-width:0}
.ws-saved-design figcaption{font-size:.69rem;line-height:1.25;margin-top:.25rem;color:#dfdce4;overflow-wrap:anywhere}
.ws-draft-thumb{display:grid;place-items:center;min-height:4.5rem;padding:.3rem;background:#15151a;border:1px solid #57545f;border-radius:3px}
.ws-draft-thumb .ed-paper{width:100%;height:auto;max-width:100%;margin:0;pointer-events:none}
.ws-draft-thumb .ws-icon{width:100%;max-height:9rem;object-fit:contain}.ws-draft-thumb .ws-font{font-size:1rem;overflow-wrap:anywhere}
.ws-saved-design .ws-task-row{justify-content:flex-start;gap:.3rem}.ws-saved-design details{grid-column:1/-1}.ws-saved-design .button{font-size:.85rem}

.ws-task-group:empty{display:none}.ws-design-info{grid-column:2}.ws-design-info strong{font-size:.9rem;font-variant-numeric:tabular-nums}.ws-saved-design>.ws-task-row{grid-column:2}

.ws-design-menu{position:fixed;inset:auto;margin:0;padding:.25rem;border:1px solid #807581;border-radius:.5rem;background:#29252e}.ws-design-menu button,.ws-detail .ws-delete{color:#ffadb3}

.ws-personal-page{width:auto;max-width:none;margin-inline:clamp(.8rem,3vw,3rem)}
.ws-personal-heading{display:flex;align-items:center;gap:.6rem 1.25rem;flex-wrap:wrap}.ws-personal-heading h1{margin:0}
.ws-personal-page .ws-personal-grid{grid-template-columns:minmax(0,1fr)}
.ws-personal-page .ws-personal-grid>.ws-card{width:100%;max-width:none;box-sizing:border-box}
.ws-task-edge[aria-expanded=true]{color:#fff;background:#65518a;box-shadow:inset 0 0 0 2px #c6b4ed}
@media(min-width:760px){.ws-personal-page:has(.ws-task-sidebar[open]){margin-right:min(calc(100vw - 48px),27rem)}}

.ws-design-menu{background:white;border:1px solid #dcd8df;box-shadow:0 4px 15px #19141e26}
.ws-design-menu .button{background:#fff;color:#39323c;border:0}.ws-design-menu .button:hover{background:#f2eff3}
dialog.ws-delete-confirm[open]{color-scheme:light;display:block;box-sizing:border-box;width:min(20rem,calc(100vw - 2rem));margin:auto;padding:1.1rem;background:#fff;color:#29242c;border:1px solid #e2dce1;border-radius:14px;text-align:center;box-shadow:0 12px 44px #15121933}
.ws-delete-confirm h2{margin:0;font-size:1.12rem;color:#29242c;overflow-wrap:anywhere}
.ws-delete-confirm p{margin:.55rem 0;color:#534953;font-size:.9rem}.ws-delete-confirm p:empty{display:none}
.ws-confirm-actions{display:flex;justify-content:center;gap:.5rem;margin-top:.9rem}
.ws-confirm-actions .button{min-height:40px;padding:.4rem .75rem;color:#a32734;background:#fff;border:1px solid #bd3c49}
.ws-confirm-actions .ws-delete{color:white;background:#b72d3e;border-color:#b72d3e}

.ws-selections .ws-puzzle-examples{display:flex;gap:.45rem;align-items:stretch;flex-wrap:wrap}
.ws-puzzle-example{display:grid;justify-items:center;align-content:center;gap:.25rem;padding:.4rem .5rem;min-width:5rem;background:#292735;border:1px solid #6e677e;border-radius:.55rem;font-size:.75rem;font-weight:600}
.ws-mini-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);width:3.15rem;height:3.15rem;background:#fff;overflow:hidden}
.ws-mini-grid i{min-width:0;min-height:0;display:grid;place-items:center;font:700 .48rem/1 monospace;color:#24383a}
.ws-word-grid{background:#e4f8f2}.ws-word-grid .ws-found-word{background:#75d5b1;color:#123a30}
.ws-cross-grid{gap:1px;padding:1px;background:#36333c}.ws-cross-grid i{background:#fff;color:#211e25;font-size:.36rem;place-items:start;padding:1px}.ws-cross-grid .ws-block{background:#25232c}
.ws-selections .ws-size-line{white-space:nowrap;overflow-x:auto;min-width:0;max-width:100%}
.ws-submission-clock>span,.ws-submission-clock>time{color:inherit}.ws-clock-hours{color:#ffc88e}

.ws-accepted{display:inline-flex;align-items:center;gap:.4rem;width:max-content;font-size:.74rem;font-weight:650;padding:.14rem .42rem;background:#223f33;color:#b2eaca;border:1px solid #477e61;border-radius:.35rem}
.ws-gold-star{color:#ffce4a;font-size:1em}.ws-design-info>.ws-accepted+strong{display:block}
.ws-selections .ws-puzzle-examples{padding-inline-start:clamp(.3rem,1.5vw,1.2rem)}
.ws-puzzle-example{min-width:5.6rem;padding:.45rem .6rem}.ws-mini-grid{width:3.65rem;height:3.65rem}
.ws-within-two-days .ws-clock-days,.ws-final-hours .ws-clock-hours{color:#ffa0a6}

.ws-mini-grid.ws-cross-sample{grid-template:repeat(6,1fr)/repeat(6,1fr);box-sizing:border-box;width:4.8rem;height:4.8rem;padding:4px;background:#fbfaf5;border-radius:2px;box-shadow:0 1px 3px #0004}
.ws-cross-sample i{position:relative;box-sizing:border-box;background:white;border:1px solid #38383f;margin-right:-1px;margin-bottom:-1px}
.ws-cross-sample small{position:absolute;inset:0 auto auto 1px;color:#292833;font:600 5px/1 sans-serif}
.ws-cross-sample b{padding-top:2px;font:600 8px/1 Georgia,serif;color:#303038}

dialog.ws-start-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;width:min(24rem,calc(100vw - 1.5rem));max-height:min(90dvh,30rem);padding:1rem;gap:.6rem;overflow:hidden}
.ws-start-dialog h2{margin:0;font-size:1.2rem}.ws-start-dialog .ws-start-fields{display:grid;gap:.5rem;overflow-y:auto;min-height:0;margin:0}
.ws-start-fields label{font-size:.9rem;gap:.15rem}.ws-start-fields input,.ws-start-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:36px}
.ws-start-fields p:empty{display:none}.ws-start-dialog .ws-start-actions{display:flex;align-items:center;justify-content:space-between;flex:none;margin:0;padding-top:.4rem;border-top:1px solid #81798c66}
.ws-start-actions .ws-cancel{background:#a72d3a;color:white;border-color:#c74351}
.ws-task-sidebar .ws-task-group{display:flex;flex-direction:column}.ws-task-sidebar .ws-task-group:empty{display:none}

.ws-task-tile .ws-selections:has(.ws-puzzle-examples){grid-template-columns:max-content minmax(5rem,1fr) auto;align-content:start;align-items:baseline}
.ws-task-tile .ws-puzzle-term{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.ws-task-tile .ws-puzzle-examples{grid-column:3;grid-row:1/span 2;align-self:center;align-items:stretch;justify-content:flex-end;max-width:26rem;padding-inline-start:1rem}
.ws-task-tile .ws-puzzle-example{min-width:6.4rem;padding:.6rem .8rem;font-size:.9rem}
.ws-task-tile .ws-mini-grid{width:4.6rem;height:4.6rem}.ws-task-tile .ws-cross-sample{width:5.4rem;height:5.4rem}
.ws-task-tile .ws-word-grid i{font-size:.6rem}
@container task-card (max-width:36rem){
  .ws-task-tile .ws-selections:has(.ws-puzzle-examples){grid-template-columns:max-content minmax(0,1fr)}
  .ws-task-tile .ws-puzzle-examples{grid-column:1/-1;grid-row:3;justify-self:end;padding:.4rem 0 0}
}
.ws-task-tile{container:task-card / inline-size}

dialog.ws-submit-confirm[open]{display:block;box-sizing:border-box;width:min(22rem,calc(100vw - 2rem));background:#fff;color:#29372e;border:1px solid #cbdccc;border-radius:16px;padding:1.2rem;text-align:center;box-shadow:0 16px 48px #10191040}
.ws-submit-confirm h2{margin:0;font-size:1.3rem;color:#203e2d}.ws-submit-confirm p{overflow-wrap:anywhere;font-size:.93rem}.ws-submit-confirm p:empty{display:none}
.ws-submit-confirm .ws-confirm-actions{justify-content:space-between}
.ws-submit-confirm .ws-confirm-actions .secondary{background:#af2c3b;color:#fff;border-color:#962330}
.ws-submit-confirm .ws-confirm-actions .primary{background:#197746;color:white;border-color:#14623a}
.ws-submit-confirm .ws-submit-success:disabled{opacity:1;animation:ws-submit-pulse 1s ease-out}
@keyframes ws-submit-pulse{0%,100%{transform:scale(1)}25%,70%{transform:scale(1.09);filter:brightness(1.24);box-shadow:0 0 16px #3acc8399}}
@media(prefers-reduced-motion:reduce){.ws-submit-confirm .ws-submit-success:disabled{animation:none;box-shadow:0 0 12px #3acc8366}}

.ws-manage-link{position:relative}.ws-new-count:not([hidden]){position:absolute;top:-.65rem;left:-.65rem;min-width:1.45rem;height:1.45rem;box-sizing:border-box;padding:0 .25rem;border-radius:99px;background:#ad324a;color:white;border:2px solid #fff;font:700 .75rem/1.2rem system-ui;text-align:center}
.ws-inbox-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem}.ws-inbox-row>div{display:grid;gap:.12rem}.ws-inbox-row small,.ws-inbox-row span{font-size:.78rem}.ws-task-group>.ws-inbox-row{display:flex}

.ws-owner-task-body{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem}
.ws-owner-task-info{min-width:0;overflow-wrap:anywhere}
.ws-owner-task-info .ws-size-line{white-space:normal}
.ws-tile-invite{display:grid;grid-template-columns:auto auto;gap:.25rem;justify-content:center}
.ws-tile-invite canvas{grid-column:1/-1;justify-self:center;width:8rem;height:8rem;max-width:100%;image-rendering:pixelated}
.ws-tile-invite .button.secondary{justify-self:center;align-self:center;margin:0;padding:.2rem;min-height:24px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--accent);font-size:.78rem;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}
.ws-tile-invite .button.secondary:hover{text-decoration-thickness:2px}
.ws-tile-invite .button.secondary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.ws-owner-task-art{display:flex;justify-content:flex-end;align-items:center;gap:.45rem;flex-wrap:wrap}
@container task-card (max-width:42rem){
  .ws-owner-task-body{grid-template-columns:minmax(0,1fr) auto}
  .ws-owner-task-art{grid-column:1/-1;justify-content:flex-start}
}
@container task-card (max-width:22rem){
  .ws-owner-task-body{grid-template-columns:minmax(0,1fr)}
}
.ws-profile-task,.ws-task-new{display:inline-flex;align-items:center;border-radius:1rem;background:#ac2337;color:#fff;padding:.2rem .45rem;font:700 .66rem/1.15 system-ui;white-space:nowrap;text-decoration:none}
.ws-account-anchor{position:relative;flex:none}
.ws-account-anchor:has(>.account-nav[hidden]){display:none}
.nav .ws-account-anchor .ws-profile-task{min-height:0;color:white;background:#ac2337;border-radius:1rem;position:absolute;z-index:2;top:14%;left:86%;transform:translate(-50%,-50%);padding:2px 4px;font:700 .55rem/1 system-ui;letter-spacing:0;text-transform:none;box-shadow:0 0 0 1px var(--surface)}
.ws-account-anchor:has(.ws-profile-task:not([hidden])){margin-inline-end:.85rem}
.ws-task-new{margin-inline-start:.55rem;vertical-align:middle}
.ws-profile-task[hidden],.account-nav[hidden]+.ws-profile-task{display:none}
.ws-calendar .ws-days button:disabled{background:transparent;color:#92909a;opacity:.75;cursor:default;box-shadow:none}

dialog.ws-created-task[open]{display:block;width:min(62rem,calc(100vw - 2rem));max-width:none;max-height:90dvh;box-sizing:border-box;overflow:auto;padding:1rem;border-radius:1rem}
.ws-created-task .ws-card{margin:0;padding:.65rem;border:0;background:transparent;max-width:none}
.ws-created-task .ws-created-label{font-size:.82rem;font-weight:700;color:var(--accent);margin:0 0 .3rem}
.ws-created-task h2{margin:0 0 .45rem;overflow-wrap:anywhere}
.ws-created-task .ws-clock{flex-wrap:wrap;gap:.2rem .4rem}
.ws-created-task .ws-clock>span,.ws-created-task .ws-clock strong,.ws-created-task .ws-clock time{display:inline;font-size:.72rem}
.ws-created-task footer{display:flex;justify-content:flex-end;padding:.5rem 0 0;margin:0;background:transparent}
.ws-personal-grid .ws-task-title{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap}
.ws-task-title small{font-size:.78rem;font-weight:500;color:var(--muted)}
.ws-task-title>span:first-of-type{color:#55be83;font-size:1.4rem;line-height:1.2;overflow-wrap:anywhere}

dialog.ws-start-dialog[open]{color-scheme:light;background:#f0f1f3;color:#222933;border:1px solid #c6cbd2;box-shadow:0 14px 45px #10162342}
.ws-start-dialog :is(h2,label,.ws-fixed-choice){color:#252b34}
.ws-start-dialog .ws-start-fields :is(input,select){color:#222933;background-color:#fff;border:1px solid #929ca8;border-radius:6px;padding:.4rem .55rem}
.ws-start-dialog .ws-fixed-choice{display:grid;gap:.12rem;font-size:.9rem}
.ws-start-dialog .ws-start-fields [hidden]{display:none}
.ws-start-dialog [role=alert]{color:#99263a}
.ws-start-dialog :focus-visible{outline:2px solid #3757a6;outline-offset:2px}
.finish-template>.ws-save-return{background:transparent;border:1px solid #48a673;color:var(--ink)}
.finish-template>.ws-submit-template{background:#187a44;border-color:#319a60;color:#fff}
.finish-template>:is(.ws-save-return,.ws-submit-template):hover:enabled{filter:brightness(1.1)}
dialog.ws-editor-confirm[open]{width:min(27rem,calc(100vw - 2rem));padding:1.4rem}
.ws-editor-confirm.ws-submit-confirm h2{font-size:clamp(1.6rem,4vw,2rem);line-height:1.15;text-align:center;text-wrap:balance}

.ws-design-info .ws-submitted-check{display:inline-grid;place-items:center;vertical-align:middle;margin-inline-start:.3rem;width:.68rem;height:.68rem;border-radius:50%;background:#20834a;color:white;font:700 .48rem/1 system-ui}

.ws-inbox-row .ws-inbox-designer{color:#ffae69;font-weight:700;overflow-wrap:anywhere}
dialog.ws-review-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,19rem);grid-template-rows:minmax(0,1fr);width:min(96vw,88rem);height:92dvh;max-width:96vw;max-height:92dvh;box-sizing:border-box;gap:1rem;padding:1rem;border-radius:1rem;overflow:hidden}
.ws-review-dialog .ws-review-stage{display:grid;place-items:center;container-type:size;min-width:0;min-height:0;background:#35383d;border-radius:.65rem;padding:.5rem}
.ws-review-stage .ws-paper{width:min(100cqw,calc(100cqh * var(--review-ratio)));height:auto;max-width:none;margin:0}
.ws-review-stage .ws-icon{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.ws-review-stage .ws-font{color:#f3f4f6;text-align:center}
.ws-review-controls{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:.6rem}
.ws-review-controls>*{margin:0}.ws-review-controls textarea{box-sizing:border-box;width:100%}
@media(max-width:680px){dialog.ws-review-dialog[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,3fr) minmax(0,2fr);gap:.65rem;padding:.7rem}}
.ws-review-feedback{display:grid;grid-template-columns:minmax(0,1fr)}
.ws-review-feedback label{min-width:0}
.ws-review-dialog .ws-review-feedback textarea{min-height:3.3rem;height:3.3rem;resize:vertical}
.ws-review-decisions{order:1;margin-top:auto;display:flex;align-items:center;gap:.35rem;padding-top:.55rem}
.ws-review-decisions .ws-review-decline{margin-right:auto;background:#a73140;border-color:#b64150;color:white}
.ws-review-decisions .ws-review-accept{background:#197447;border-color:#288552;color:white}
.ws-review-decisions .ws-review-star{min-height:40px;min-width:36px;border:0;background:transparent;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer}
.ws-review-decisions .ws-review-star[aria-pressed=true]{color:#e5ab20}
dialog.ws-review-dialog[open]{grid-template-rows:auto minmax(0,1fr)}
.ws-review-title{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .5rem;padding-bottom:.4rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.ws-review-title h2{margin:0;font-size:1.08rem;line-height:1.2}.ws-review-title span{font-size:.84rem}
@media(max-width:680px){dialog.ws-review-dialog[open]{grid-template-rows:auto minmax(0,3fr) minmax(0,2fr)}}
dialog.ws-decision-confirm[open]{width:min(21rem,calc(100vw - 2rem));box-sizing:border-box;padding:1.2rem;border-radius:.85rem;background:#fff;color:#252934;text-align:center}
.ws-decision-confirm h2{margin:0;font-size:1.15rem;color:inherit;overflow-wrap:anywhere}
.ws-decision-actions{display:flex;justify-content:space-between;gap:.7rem}.ws-decision-actions .button{min-height:40px}
.ws-decision-actions .ws-review-accept{background:#197447;color:white}.ws-decision-actions .ws-review-decline{background:#a73140;color:white}

.ws-task-sidebar .ws-accepted,.ws-task-sidebar [data-decision="Approved"]:is(span,details>summary),.ws-task-sidebar details[data-decision="Approved"]>summary{color:#70df96}
.ws-task-sidebar :is(p,span)[data-decision="Declined"],.ws-task-sidebar details[data-decision="Declined"]>summary{color:#ff939b}

.ws-inbox-row .ws-inbox-action{flex:none;justify-items:center;text-align:center;gap:.18rem}.ws-inbox-action .button{justify-self:center}.ws-inbox-action span{font-size:.72rem;line-height:1.2}

.ws-task-invites{display:flex;align-items:center;justify-content:center;gap:.65rem}.ws-review-count{display:flex;align-items:baseline;gap:.24rem;white-space:nowrap;font-variant-numeric:tabular-nums}.ws-review-count strong{color:#66df96;font-size:1.35rem}.ws-review-count small{color:#a5a6ad;font-size:.76rem}
@container task-card (max-width:32rem){.ws-owner-task-body:has(.ws-review-count){grid-template-columns:minmax(0,1fr)}}

.ws-personal-decisions{display:flex;gap:.6rem;align-self:center;justify-content:center;font-size:.72rem;font-variant-numeric:tabular-nums}
.ws-personal-decisions .ws-total-accepted{color:#70df96}.ws-personal-decisions .ws-total-declined{color:#ff939b}
.ws-personal-status{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}
.ws-task-sidebar .ws-personal-status .ws-feedback-letter{background:transparent;border:0;min-height:24px;min-width:24px;padding:0;color:#c398ff;font:700 .8rem/1 system-ui;cursor:pointer}
.ws-feedback-reader p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.ws-feedback-reader strong{overflow-wrap:anywhere}

.ws-feedback-heading{display:flex;align-items:center;gap:.1rem}.ws-feedback-heading label{margin-right:auto}
.ws-review-dialog button.ws-preset-dot{min-height:28px;width:28px;padding:0;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}
.ws-preset-dot::before{content:'';width:9px;height:9px;border-radius:50%;background:#dd6574}
.ws-preset-dot.positive::before{background:#42ab70}.ws-preset-dot[aria-expanded=true]::before{outline:1px solid currentColor;outline-offset:3px}
.ws-feedback-options:not([hidden]){display:grid;gap:2px;margin:.2rem 0;padding:.25rem;border:1px solid var(--line);border-radius:.45rem;background:var(--surface)}
.ws-review-dialog .ws-feedback-options button{min-height:32px;padding:.35rem .45rem;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:.82rem;cursor:pointer}
.ws-feedback-options button:is(:hover,:focus-visible){text-decoration:underline}

.ws-personal-decisions .ws-improvement{color:#a9aab2}
.nav .ws-account-anchor .ws-profile-clock{position:absolute;z-index:2;right:0;top:0;display:grid;place-items:center;width:13px;height:13px;min-height:0;padding:0;border-radius:50%;background:#35465c;color:#fff;box-shadow:0 0 0 1px var(--surface)}
.ws-profile-clock svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nav .ws-account-anchor .ws-profile-clock[hidden]{display:none}
.ws-account-anchor:has(.ws-profile-task:not([hidden])) .ws-profile-clock{top:auto;bottom:1px}

.ws-review-count.ws-none-remaining :is(strong,small){color:#a5a6ad;font-size:.76rem;font-weight:400}
.ws-review-accepted-count{font-size:.8rem;font-weight:600;color:#70df96;white-space:nowrap}
@container task-card (max-width:22rem){.ws-task-invites{gap:.3rem}.ws-task-invites .ws-tile-invite canvas{width:min(8rem,100%);height:auto}.ws-review-count{flex-wrap:wrap;justify-content:center}}

.ws-roster{border-block:1px solid var(--line);font-variant-numeric:tabular-nums}.ws-roster section{padding:.5rem .65rem}.ws-roster section+section{border-top:1px solid var(--line)}
.ws-roster-person{display:flex;align-items:center;gap:.35rem}.ws-roster-person h2{font-size:.94rem;line-height:1.3;margin:0;overflow-wrap:anywhere}
.ws-roster-count{background:transparent;border:1px solid currentColor;border-radius:50%;min-width:1.3rem;width:max-content;aspect-ratio:1;display:inline-grid;place-items:center;font-size:.69rem;line-height:1;box-sizing:border-box;padding:.12rem}
.ws-roster [data-status=Approved]{color:#70df96}.ws-roster [data-status=Declined]{color:#ff939b}
.ws-roster-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(6rem,auto);align-items:baseline;gap:.75rem;padding:.3rem 0 .3rem .6rem;font-size:.83rem;border-bottom:1px solid var(--line)}
.ws-roster-row:last-child{border:0}.ws-roster-row span{overflow-wrap:anywhere}.ws-roster-row strong{text-align:right;font-size:.76rem}.ws-roster-empty{display:block;margin:.3rem .6rem;color:var(--muted)}.ws-roster-person button{margin-left:auto}

.nav-actions .public-nav[hidden]{display:none}
.template-sample-card .ed-paper>.template-review-star{position:absolute;inset:auto 0 0 auto;z-index:2;padding:0;margin:0;border:0;background:transparent;color:#edb636;font:700 1rem/1 system-ui;pointer-events:none}

.ws-review-dialog .ws-review-title{position:relative;padding-right:2.8rem;min-height:2rem;align-content:center}
.ws-review-dialog button.ws-review-close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;color:#e4525b;font:500 1.8rem/1 system-ui;cursor:pointer}
.ws-review-close:focus-visible{outline:2px solid currentColor;outline-offset:-5px}
.ws-review-inventory h3{margin:0;font-size:.9rem}
.ws-review-inventory dl,.ws-review-inventory p{margin:.3rem 0 0;font-size:.84rem}
.ws-review-inventory dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.2rem 0;border-bottom:1px solid var(--line)}
.ws-review-inventory dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600}

.create-form .shape-panel .trim-preview{width:min(100%,clamp(17rem,58dvh,40rem));flex:none;grid-template:1fr / 1fr;margin:0 auto 1rem;align-items:center}
.create-form .shape-panel .trim-preview i{background-size:100% 100%,contain;background-repeat:no-repeat;background-color:#151515}

.ws-task-illustration{display:flex;align-items:center;justify-content:center;width:5.4rem;height:4.1rem;overflow:hidden;border-radius:.35rem}
.ws-task-illustration img{display:block;width:100%;height:100%;object-fit:contain}
.ws-art-story{background:linear-gradient(135deg,#294346,#6b896c)}
.ws-art-comic{background:repeating-linear-gradient(145deg,#f4c14e 0 6px,#eab548 6px 8px)}
.ws-art-font{background:repeating-linear-gradient(0deg,transparent 0 14px,#86503e26 14px 15px),linear-gradient(130deg,#f8e6cc,#e8bab1)}
.ws-art-font b{font:2.95rem/1 'Bodoni Moda',Georgia,serif;color:#47203a}
.ws-art-font i{font:3.2rem/1 'Alex Brush',cursive;color:#942d4c;transform:translate(-.12rem,.14rem)}
.ws-art-icon{background:radial-gradient(ellipse at 42% 27%,#e6f4ff,#a5b6ef 72%,#7e82bb)}
.ws-art-other{background:linear-gradient(135deg,#ffebbe,#dea471)}
.ws-art-icon img,.ws-art-other img{width:74%;height:86%;filter:drop-shadow(0 2px 2px #26244255)}

.mobile-tool-grip{display:none}
@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  .ed-board :is(.art-toolbar,.ed-object-actions:not([hidden])).selection-positioned{
    display:flex;flex-flow:column nowrap;align-items:center;justify-content:flex-start;
    gap:2px;padding:3px;width:max-content;max-width:min(142px,39vw);height:auto;
    max-height:var(--mobile-tools-height,calc(100dvh - 12px));overflow:auto;
    overscroll-behavior:contain;scrollbar-width:thin;pointer-events:auto;
    background:white;color:#292731;border:1px solid #d2d5da;border-radius:9px;
    box-shadow:0 2px 9px #21182d22
  }
  .ed-board .mobile-tool-grip{
    display:grid;place-items:center;flex:none;align-self:stretch;min-width:26px;height:19px;
    position:sticky;top:-3px;z-index:1;background:white;cursor:grab;touch-action:none
  }
  .mobile-tool-grip::after{content:"";width:16px;height:3px;border-radius:3px;background:#9b9ba2}
  .ed-board .selection-positioned .text-format-controls{display:contents}
  .ed-board .text-selection-toolbar .toolbar-text-editor{width:105px;max-width:100%;height:58px}
  .ed-board .selection-positioned>.button{flex:none}
  .ed-board .selection-positioned .word-spacing-controls{flex-direction:column;padding:2px;gap:3px}
  .ed-board .selection-positioned .family-trigger{max-width:100px}
}
@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  .ed-shell,.ed-shell .ed-work,.ed-shell .ed-main,.ed-shell .ed-content{min-width:0;max-width:100%}
  .ed-shell .ed-work{align-items:stretch}
  .ed-board:has(.ed-selection:not([hidden]),.ed-page-number[aria-pressed=true]) .ed-stage{
    margin-inline:38px 0;padding:36px 5px 5px
  }
  .ed-board[data-mobile-dock=right]:has(.ed-selection:not([hidden]),.ed-page-number[aria-pressed=true]) .ed-stage{margin-inline:0 38px}
  .ed-board :is(.art-toolbar,.ed-object-actions:not([hidden])).selection-positioned{
    width:34px;max-width:34px;padding:2px;gap:1px;border-radius:6px;
    overflow-x:hidden;scrollbar-width:none
  }
  .ed-board .mobile-tool-grip{height:11px;min-width:0;top:-2px}
  .ed-board .selection-positioned:is(.art-toolbar,.ed-object-actions) > button,
  .ed-board .selection-positioned .text-format-controls > button,
  .ed-board .ed-object-actions.selection-positioned > .button{
    box-sizing:border-box;width:26px;min-width:26px;height:26px;min-height:26px;padding:2px;font-size:12px;border-radius:4px
  }
  .ed-board .selection-positioned button.family-trigger{font-size:0}
  .ed-board .selection-positioned button.family-trigger::after{content:"Aa";font:bold 14px Georgia,serif}
  .ed-board .selection-positioned svg{max-width:17px;max-height:17px}
  .ed-board .selection-positioned input[type=number]:not(.art-panel input,.art-palette input){width:28px;padding:0;text-align:center;font-size:10px;appearance:textfield}
  .ed-board .selection-positioned input[type=number]::-webkit-inner-spin-button{appearance:none}
  .ed-number-tools .ed-number-arrows,.ed-number-tools label{flex-direction:column}
  .ed-number-tools .number-tool-label{white-space:normal;line-height:1;text-align:center}
}

@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  .art-toolbar .word-spacing-controls[popover]:not(:popover-open){display:none}
  .art-toolbar .word-spacing-controls:popover-open{
    position:fixed;inset:auto;margin:0;padding:8px;max-height:65dvh;overflow:auto;
    background:white;color:#292731;border:1px solid #d2d5da;border-radius:8px
  }
}

.mobile-editor-nav{display:none}
@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  html:has(.ed-shell),body:has(.ed-shell){overflow:hidden;overscroll-behavior-x:none}
  body:has(.ed-shell){height:100dvh;display:block}
  body:has(.ed-shell)>header{display:none}
  body:has(.ed-shell[data-mobile-panel=menu])>header{
    display:block;position:fixed;inset:30px 4px auto;z-index:30;
    max-height:75dvh;overflow:auto;border-radius:8px;box-shadow:0 3px 14px #0005
  }
  main:has(.ed-shell){width:100%;height:100%;overflow:hidden;padding:0}
  main .ed-shell{position:relative;box-sizing:border-box;height:100%;width:100%;padding:0;
    grid-template-rows:auto minmax(0,1fr) auto;gap:0;overflow:hidden}
  .mobile-editor-nav{display:flex;align-items:center;justify-content:space-between;
    padding:env(safe-area-inset-top,0px) max(4px,env(safe-area-inset-right)) 1px max(4px,env(safe-area-inset-left));background:#e6e6e8}
  .mobile-editor-nav button{background:transparent;color:#3d3c43;border:none;padding:3px 7px;min-height:24px;font:600 11px system-ui}
  .ed-shell .ed-work{display:flex;flex-direction:column;min-height:0;gap:0}
  .ed-shell .ed-main{order:0;flex:1}
  .ed-shell .ed-sidebar{display:none}
  .ed-shell[data-mobile-panel=pages] .ed-sidebar{display:flex;position:absolute;inset:25px 4px auto;z-index:20;
    box-sizing:border-box;max-height:44dvh;overflow:auto;padding:6px;background:var(--surface);border-radius:7px}
  .ed-shell .ed-content{position:relative}
  .ed-shell .ed-content:has(.has-design-rail[data-drawer]){grid-template-columns:minmax(0,1fr) 31px;grid-template-rows:minmax(0,1fr);gap:2px}
  .ed-shell .ed-editing.has-design-rail{grid-area:1/2;min-height:0;border-radius:4px}
  .ed-shell .has-design-rail:not([data-drawer=closed]){position:absolute;inset:0 0 0 auto;width:min(282px,84vw);z-index:7}
  .ed-shell .ed-content:has(.has-design-rail:not([data-drawer=closed]))>.drawer-collapse{right:min(282px,84vw)}
  .ed-shell .ed-editing .design-rail{
    box-sizing:border-box;display:flex;width:29px;max-width:29px;height:100%;max-height:100%;min-height:0;
    gap:1px;padding:1px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none
  }
  .ed-shell .design-rail button{position:relative;box-sizing:border-box;width:100%;height:28px;
    min-height:24px;flex:0 1 28px;display:grid;align-content:center;justify-items:center;padding:1px;border-radius:4px}
  .ed-shell .design-rail button img{width:21px;height:21px;object-fit:contain}
  .ed-shell .design-rail button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ed-shell .design-drawer{width:calc(100% - 30px)}
  .ed-shell .ed-board .batch-crosswords{position:fixed;inset:auto auto max(3px,env(safe-area-inset-bottom)) max(3px,env(safe-area-inset-left));
    width:32px;height:32px;min-height:32px;display:grid;place-content:center;padding:1px;border-radius:6px;
    white-space:normal;font:700 8px/1.05 system-ui;text-align:center}
  .ed-shell .ed-board .batch-crosswords{font-size:0}
  .ed-shell .ed-board .batch-crosswords::before{content:"AI";position:static;color:white;font:750 13px/1 system-ui;letter-spacing:0}.ed-shell .ed-board .batch-crosswords::after{content:"✧　◆";inset:2px 2px auto;text-align:left;font-size:5px;text-shadow:6px 23px #f2deff}
  .ed-shell .ed-board{border-radius:4px}
}

@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  .ed-shell .ed-work .ed-content:has(>.ed-sidebar){
    grid-template-columns:minmax(0,1fr) 31px;grid-template-rows:auto minmax(0,1fr);row-gap:0
  }
  .ed-shell .ed-content:has(>.ed-sidebar)>.ed-board{grid-area:1/1/3/2}
  .ed-shell .ed-content:has(>.ed-sidebar)>.ed-editing{grid-area:1/2;max-height:60dvh}
  .ed-shell .ed-content:has(>.ed-sidebar) .design-rail{height:auto}
  .ed-shell .ed-content:has(>.ed-sidebar)>.has-design-rail:not([data-drawer=closed]){
    grid-row:1/3;max-height:none
  }
  .ed-shell .ed-content:has(>.has-design-rail:not([data-drawer=closed]))>.ed-sidebar{visibility:hidden}
  .ed-shell .ed-content>.ed-sidebar{
    grid-area:2/2;display:flex;flex-flow:column nowrap;align-items:center;align-self:stretch;
    gap:3px;box-sizing:border-box;min-height:0;height:auto;max-height:none;min-width:0;
    margin:0;padding:3px 0;border:0;border-radius:0;overflow-y:auto;overflow-x:hidden;
    overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-width:none
  }
  .ed-shell:not([data-mobile-panel=pages]) .ed-sidebar:has(.ed-thumb-group) > :not(.ed-thumb-group),
  .ed-shell:not([data-mobile-panel=pages]) .ed-thumb-group :is(.ed-more,.ed-add-tile,.ed-page-labels){display:none}
  .ed-shell:not([data-mobile-panel=pages]) .ed-sidebar .ed-thumb-group{display:flex;flex:0 0 auto;align-items:center;width:auto}
  .ed-shell:not([data-mobile-panel=pages]) .ed-thumb-group > :is(.ed-thumb,.ed-cover-button):not(.ed-add-tile){
    display:flex;position:relative;flex:none;align-items:center;justify-content:center;gap:2px;
    box-sizing:border-box;width:29px;min-width:0;max-width:29px;height:39px;flex-direction:column-reverse;min-height:0;
    padding:2px 3px;border-radius:4px;font:600 9px/1.05 system-ui
  }
  .ed-shell:not([data-mobile-panel=pages]) .ed-thumb-group>.ed-thumb[aria-pressed=true]{outline:2px solid #804ec4;outline-offset:-2px}
  .ed-shell:not([data-mobile-panel=pages]) .ed-thumb .ed-paper{height:auto;width:min(23px,calc(23px * var(--ed-ratio,0.66667)));max-height:23px;flex:none}
  .ed-shell:not([data-mobile-panel=pages]) .ed-thumb .ed-sidebar-page-number{font-size:8px;margin:0;min-width:1ch}
  .ed-shell:not([data-mobile-panel=pages]) .ed-spread-mini{width:23px;height:18px}
  .ed-shell:not([data-mobile-panel=pages]) .ed-spread-tile small{display:none}
  .ed-shell[data-mobile-panel=pages] .ed-sidebar{top:25px}
  .ed-board:has(.page-fade-panel) .ed-tools{z-index:11}
  .ed-tools .page-fade-panel{
    position:fixed;inset:auto max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) auto;
    box-sizing:border-box;width:min(176px,calc(100vw - 12px));max-height:calc(100dvh - 50px);
    overflow-y:auto;overscroll-behavior:contain;gap:4px;padding:6px 8px;border-radius:8px
  }
  .page-fade-panel label{font:500 11px/1.1 system-ui;gap:1px}
  .ed-tools .page-fade-panel input[type=range]{height:17px;min-height:0;padding:0}
  .page-fade-panel .fade-direction-row{gap:6px;justify-content:space-between}
  .page-fade-panel .fade-direction-row output{font-size:11px;margin:0}
  .page-fade-panel .fade-angle-dial,.ed-tools .page-fade-panel .fade-cycle{width:30px;height:30px;min-height:0;flex:0 0 30px}
  .ed-tools .page-fade-panel .fade-actions button{font:600 11px/1.1 system-ui;min-height:24px;padding:3px 8px}
}

.book-contents-page{position:absolute;inset:7% 9% 10%;color:#232823;font-family:Georgia,serif;display:grid;grid-template-rows:12% repeat(16,minmax(0,1fr));align-items:center}
.book-contents-page h2{margin:0;text-align:center;color:#263f32;font:400 4.6cqw/1.15 "Palatino Linotype",Palatino,serif}
.book-contents-page>div{display:flex;align-items:baseline;gap:1cqw;min-width:0;font:400 min(2.8cqw,1em)/1.12 Georgia,serif}
.book-contents-page>div span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.book-contents-page i{min-width:2cqw;flex:1;border-bottom:1px dotted #888}
.book-contents-page b{font-weight:500;font-variant-numeric:tabular-nums}
.ed-shell{position:relative}
.page-list-edges{position:absolute;z-index:21;pointer-events:none}
.page-list-edges[hidden]{display:none}
.page-list-jump{position:absolute;inset-inline:0;height:20px;display:grid;place-items:center}
.page-list-jump.jump-first{top:0}.page-list-jump.jump-last{bottom:0}
.ed-shell .page-list-jump button{box-sizing:border-box;display:grid;place-items:center;
  width:min(64px,100%);height:20px;min-height:0;pointer-events:auto}
.page-list-jump button::before{content:"›";display:block;line-height:14px;transform:rotate(-90deg)}
.jump-last button::before{transform:rotate(90deg)}


@media (max-width:700px), (pointer:coarse) and (max-height:560px){
  .ed-shell:not([data-mobile-panel=pages]):has(.has-design-rail:not([data-drawer=closed]))>.page-list-edges{visibility:hidden;display:none}
}
.book-answer-page{position:absolute;inset:5% 6% 8%;display:grid;grid-template-rows:8% minmax(0,1fr);color:#252821;font-family:Georgia,serif}
.book-answer-page h2{margin:0;text-align:center;font:600 4.5cqw/1.15 Georgia,serif}
.book-answer-page>div{display:grid;grid-template-columns:repeat(var(--key-cols),minmax(0,1fr));grid-auto-rows:calc(92% / var(--key-rows));align-content:center;gap:1%}
.book-answer-page figure{min-height:0;margin:0;display:grid;grid-template-rows:auto minmax(0,1fr);text-align:center;gap:.3cqw}
.book-answer-page figcaption{font:600 1.65cqw/1.2 system-ui;overflow-wrap:anywhere}
.book-answer-page img{width:100%;height:100%;min-height:0;object-fit:contain}

.project-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}
.design-drawer .project-gallery-heading button{width:auto;min-height:28px;padding:2px 6px;font:600 12px system-ui}
.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.project-gallery>p{grid-column:1/-1}
.project-gallery>div{min-width:0}
.design-drawer .project-gallery-tile{display:grid;grid-template-rows:auto auto auto;gap:3px;width:100%;height:100%;align-content:start;padding:4px;overflow:hidden}
.design-drawer .project-gallery-tile[hidden]{display:none}
.project-gallery-preview{height:clamp(68px,10vw,110px);min-width:0;overflow:hidden;display:grid;place-items:center;background:#e5e4e0;border-radius:4px}
.project-gallery-preview>img{width:100%;height:100%;min-height:0;object-fit:contain}
.project-gallery-preview>.ed-paper{width:auto;height:92%;max-width:100%;pointer-events:none}
.project-gallery-tile strong,.project-gallery-tile small{display:block;margin:0;overflow-wrap:anywhere;line-height:1.2}
.project-gallery-tile strong{font-size:12px}
.project-gallery-tile small{font-size:10px;font-weight:500}
.project-gallery input{box-sizing:border-box;width:100%;min-width:0}

.book-contents-page [contenteditable]{cursor:text;min-width:2ch}.book-contents-page [contenteditable]:focus-visible{outline:1px solid currentColor;outline-offset:2px}

.book-chapter-menu .topic-inline-row{display:flex;align-items:center;gap:.55em;padding:3px 7px;font:500 .875rem system-ui}.topic-inline-row span{min-width:2.4ch;text-align:right}.topic-inline-row input{flex:1;min-width:0;font:inherit}

:is(.books-heading,.public-intro) .shelf-create{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  min-height:80px;min-width:min(250px,100%);padding:12px 19px;border:1px solid #dbbfef;border-radius:16px;
  font-size:clamp(1.2rem,3vw,1.65rem);font-weight:700;white-space:nowrap;
  background:linear-gradient(115deg,#382354,#75409c 48%,#4d306e);color:white;
  box-shadow:inset 0 1px 2px #ffffff73,0 0 9px #be7dfa99,0 0 25px #ae6cef75;
}
:is(.books-heading,.public-intro) .shelf-create:hover,:is(.books-heading,.public-intro) .shelf-create:focus-visible{color:white;background:linear-gradient(115deg,#4c2e71,#8148a8 48%,#563376);box-shadow:0 0 12px #cda2ff,0 0 30px #ae6cef99}
.book-jewels{position:relative;width:1.2em;height:1.45em;flex:none;pointer-events:none}
.book-jewels i{position:absolute;left:0;bottom:.12em;width:.8em;height:.87em;clip-path:polygon(50% 0,100% 38%,50% 100%,0 38%);background:conic-gradient(from 0deg at 49% 38%,#fff3c9 0deg 90deg,#dd98f3 90deg 179deg,#b49ae1 179deg 270deg,#fff8ed 270deg)}
.book-jewels b{position:absolute;right:0;top:0;color:#ffe6ad;font-size:.65em;line-height:1}
.book-jewels.trailing{transform:rotate(180deg) scale(.82)}
@media(max-width:620px){.books-heading{grid-template-columns:1fr;justify-items:center;gap:14px}.books-heading h1{justify-self:start}:is(.books-heading,.public-intro) .shelf-create{max-width:100%;min-height:72px}}

.book-chapter-menu .topic-info{flex:none;border:0;background:transparent;color:#69507e;font:600 15px/1 system-ui;min-height:24px;padding:2px 4px;cursor:pointer}

.ws-page .ws-puzzle-example .ws-tile-start{min-height:28px;padding:3px 13px;font:600 .78rem/1.25 system-ui;justify-self:center;margin:0 0 2px}

header .nav-actions:has(.editor-review-link) .ws-account-anchor{order:5}
.mobile-editor-nav .ws-account-anchor{margin-left:auto;margin-right:5px;z-index:32}
.mobile-editor-nav .account-nav summary{width:28px;height:28px}
.mobile-editor-nav .account-nav summary svg{width:19px;height:19px}

.ws-designer-tiles .ws-puzzle-example{
  box-sizing:border-box;flex:0 0 7rem;width:7rem;min-width:0;height:9.5rem;
  padding:.25rem .3rem;gap:.2rem;align-content:stretch;align-items:center;
  grid-template-columns:minmax(0,1fr);grid-template-rows:1.75rem minmax(0,1fr) 2rem;
}
.ws-designer-tiles .ws-puzzle-example>.ws-tile-start{grid-row:1;align-self:start;margin:0;height:1.75rem}
.ws-designer-tiles .ws-puzzle-example>:is(.ws-mini-grid,.ws-task-illustration){grid-row:2;width:4.5rem;height:4.5rem}
.ws-designer-tiles .ws-puzzle-example>span:last-child{grid-row:3;line-height:1.05;text-align:center;overflow-wrap:anywhere}
.ws-designer-tiles .ws-puzzle-examples{max-width:100%}
@media(min-width:701px){.ws-designer-tiles .ws-task-tile .ws-puzzle-examples{max-width:24rem}}

.ws-published-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:1rem}
.ws-page .ws-published-tile{position:relative;box-sizing:border-box;text-decoration:none;text-align:center;justify-self:stretch;display:block;width:100%;min-width:0;padding:.4rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.65rem;cursor:pointer}
.ws-published-tile:is(:hover,:focus-visible){border-color:var(--accent)}
.ws-published-frame{container-type:size;display:grid;place-items:center;width:100%;aspect-ratio:4/5;overflow:hidden;background:#35383d;border-radius:.3rem}
.ws-published-frame .ws-font{font-size:clamp(.8rem,10cqw,2rem);overflow-wrap:anywhere}
.ws-published-name{display:block;padding:.45rem 1rem .15rem;text-align:center;font:500 .8rem/1.3 system-ui;overflow-wrap:anywhere}
.ws-published-star{position:absolute;right:3px;bottom:2px;color:#f5bf44}
.ws-published-view .ws-published-frame{aspect-ratio:auto;height:55dvh}

.ai-scope-picker{position:fixed;inset:auto;margin:0;padding:4px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 16px #0004}
.ai-scope-picker:popover-open{display:grid;gap:2px}
.ai-scope-picker .button{justify-content:start;min-height:32px;padding:4px 10px;font-size:.82rem}

.ws-task-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem}.ws-task-navigation .button{padding:.45rem .8rem;font-size:.88rem}.ws-task-navigation [aria-current=page]{border-color:var(--accent);color:var(--accent)}
