/* Approved UX v2 presentation. Book parameters and rendering stay server-owned. */
body[data-screen="design"] .ux-file-summary{padding:0 0 28px;border:0;border-radius:0;background:transparent;margin:0 0 28px}
body[data-screen="design"] .ux-file-summary .section-head{align-items:center;margin:0 0 20px}
body[data-screen="design"] .ux-file-summary .analysis-file{margin:0;gap:10px 18px}
body[data-screen="design"] .analysis-facts{display:flex;flex-wrap:wrap;gap:18px 40px;margin:0}
body[data-screen="design"] .analysis-facts dt{font-size:16px;line-height:1.5;color:var(--muted)}
body[data-screen="design"] .analysis-facts dd{font-size:22px;line-height:1.4;font-weight:500;margin:6px 0 0}
body[data-screen="design"] .ux-gallery{margin-top:48px}
body[data-screen="design"] .gallery-heading{align-items:flex-start;gap:28px;margin-bottom:16px}
body[data-screen="design"] .gallery-heading h2,body[data-screen="design"] .ux-book-settings h2{font-size:32px;line-height:1.25;margin:0 0 12px}
body[data-screen="design"] .sample-view-switch{flex-shrink:0;margin:0}
body[data-screen="design"] .sample-view-switch span{font-size:17px;min-height:48px;padding:10px 16px}
body[data-screen="design"] .sample-explanation{font-size:16px;line-height:1.6;max-width:78ch;margin:0 0 26px}
body[data-screen="design"] .template-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
body[data-screen="design"] .template-card,body[data-screen="design"] .template-card.selected{position:relative;display:flex;flex-direction:column;padding:0;border:1px solid #d2d5d4;border-radius:14px;min-width:0;box-shadow:none;overflow:visible;background:#fff}
body[data-screen="design"] .template-card.selected{border-color:#495760;box-shadow:0 0 0 2px #495760}
body[data-screen="design"] .template-card:has(.template-radio:focus-visible){outline:3px solid var(--focus,#714555);outline-offset:5px}
body[data-screen="design"] .ux-template-label{display:flex;flex-direction:column;gap:16px;flex:1;min-width:0;padding:20px;cursor:pointer;border-radius:14px 14px 0 0}
body[data-screen="design"] .ux-template-label:hover{background:#f5f5f2}
body[data-screen="design"] .template-card-heading{display:block;min-height:82px;padding:0;margin:0;position:relative}
body[data-screen="design"] .template-card-heading strong{display:block;font-size:22px;line-height:1.25;overflow-wrap:anywhere;margin:0 0 10px}
body[data-screen="design"] .template-font{display:block;font-size:16px;line-height:1.5;color:var(--muted)}
body[data-screen="design"] .template-selected{display:none;font-size:16px;line-height:1.4;font-weight:500;margin:0 0 8px;color:#344b43}
body[data-screen="design"] .template-card.selected .template-selected{display:block}
body[data-screen="design"] .template-card.selected .template-selected:before{content:'✓ ';font-weight:700}
body[data-screen="design"] .ux-template-label img{display:block;width:100%;height:auto;aspect-ratio:758/1075;object-fit:contain;background:#fff;border:1px solid #e1dfda;box-shadow:0 4px 10px #3333330a}
body[data-screen="design"] .template-description{display:block;font-size:17px;line-height:1.5;margin:0;min-height:3em;color:var(--muted)}
body[data-screen="design"] .ux-template-zoom{display:flex;justify-content:space-between;align-items:center;gap:10px;width:calc(100% - 40px);margin:0 20px 16px;min-height:48px;padding:10px 0;font-size:16px;background:transparent;border:0;border-top:1px solid #e0e1dd;border-radius:0;text-align:left;text-decoration:underline;text-underline-offset:4px}
body[data-screen="design"] .ux-template-zoom:hover{color:var(--action)}
body[data-screen="design"] .ux-book-settings{margin:56px 0 0;padding:0;border:0}
body[data-screen="design"] .ux-main-settings{padding:32px;border-radius:16px;margin:0 0 24px;background:#fff;border:1px solid #d8dbd8;box-shadow:none}
body[data-screen="design"] .ux-main-settings .field-grid,body[data-screen="design"] .ux-extra-body .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
body[data-screen="design"] .field{min-width:0;margin:0 0 24px}
body[data-screen="design"] :is(.ux-main-settings,.ux-extra-body) .field-grid>.field{margin-bottom:24px}
body[data-screen="design"] .field label{display:block;font-size:18px;line-height:1.5;font-weight:500;margin-bottom:8px}
body[data-screen="design"] .field input,body[data-screen="design"] .field select,body[data-screen="design"] .field textarea{width:100%;font-size:18px;line-height:1.5;min-height:52px;padding:12px 14px;border-radius:8px;background:#fff;color:var(--ink)}
body[data-screen="design"] .field textarea{resize:vertical;min-height:110px}
body[data-screen="design"] .field .help{font-size:16px;line-height:1.6;margin:8px 0 0}
body[data-screen="design"] .field .required{font-size:16px}
body[data-screen="design"] .metadata-suggestion{padding:12px 14px;border-radius:8px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
body[data-screen="design"] .metadata-suggestion p{font-size:16px;line-height:1.5}
body[data-screen="design"] .metadata-suggestion .text-button{font-size:16px;min-height:44px}
body[data-screen="design"] .selected-book{padding:24px 28px;border:0;border-radius:10px;background:#eff3ef}
body[data-screen="design"] .selected-book h3{font-size:18px;margin-bottom:16px}
body[data-screen="design"] .selected-book dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}
body[data-screen="design"] .selected-book dt{font-size:16px;color:var(--muted)}
body[data-screen="design"] .selected-book dd{font-size:18px;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere}
body[data-screen="design"] .selected-book>.help{font-size:16px;line-height:1.6;margin:18px 0 0;padding:0;border:0}
body[data-screen="design"] .ux-extra-section{border:1px solid #d8dbd8;border-radius:16px;margin:0 0 18px;background:#fff;overflow:hidden}
body[data-screen="design"] .ux-extra-section>summary{display:flex;align-items:center;gap:18px;cursor:pointer;list-style:none;padding:24px 28px;min-height:96px}
body[data-screen="design"] .ux-extra-section>summary::-webkit-details-marker{display:none}
body[data-screen="design"] .ux-extra-section>summary:before{content:'+';font-size:26px;font-weight:400;color:var(--muted);flex:none;align-self:flex-start;line-height:1.3}
body[data-screen="design"] .ux-extra-section[open]>summary:before{content:'−'}
body[data-screen="design"] .ux-extra-section[open]>summary{background:#f6f7f4;border-bottom:1px solid #d8dbd8}
body[data-screen="design"] .ux-extra-section>summary strong{font-size:22px;line-height:1.4;display:block}
body[data-screen="design"] .ux-extra-section>summary .help{font-size:16px;line-height:1.6;margin:6px 0 0;font-weight:400}
body[data-screen="design"] .ux-extra-section>summary:focus-visible{outline-offset:-5px}
body[data-screen="design"] .ux-extra-body{padding:28px}
body[data-screen="design"] .ux-extra-body>p{max-width:72ch;font-size:18px;line-height:1.6;margin-bottom:28px}
body[data-screen="design"] .ux-extra-subsection{margin-top:28px;padding-top:28px;border-top:1px solid #e0e2de}
body[data-screen="design"] .ux-extra-subsection h3{font-size:22px;line-height:1.4;margin:0 0 20px}
body[data-screen="design"] .ux-extra-subsection>.help{font-size:16px;line-height:1.6;margin:-8px 0 22px}
body[data-screen="design"] .ux-extra-checks{display:grid;gap:20px;margin-top:24px}
body[data-screen="design"] .ux-extra-checks .check-option{font-size:18px;line-height:1.5;align-items:flex-start;padding:0;margin:0;gap:14px}
body[data-screen="design"] .ux-extra-checks .check-option input{width:24px;height:24px;margin-top:2px;flex:none;accent-color:#495760}
body[data-screen="design"] .ux-extra-checks small{font-size:16px;line-height:1.6;margin-top:4px}
body[data-screen="design"] .ux-effective-layout{display:flex;flex-wrap:wrap;gap:16px 32px;margin:0;background:#f1f4f1;padding:16px 20px;border-radius:8px}
body[data-screen="design"] .ux-effective-layout dt{font-size:16px;color:var(--muted)}
body[data-screen="design"] .ux-effective-layout dd{font-size:18px;margin:4px 0 0}
body[data-screen="design"] .ux-effective-note{padding:16px 20px;background:#f1f4f1;font-size:16px;line-height:1.6;border-radius:8px}
body[data-screen="design"] .ux-draft-tools{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;font-size:16px;margin:24px 0;background:transparent;border:0;padding:0}
body[data-screen="design"] .ux-draft-tools .text-button{font-size:17px;min-height:44px}
body[data-screen="design"] .design-actionbar{position:static;padding:28px 0 0;margin:36px 0 0;border:0;border-top:1px solid #d8dbd8;border-radius:0;background:transparent;box-shadow:none}
body[data-screen="design"] .design-actionbar .actionbar-left .quiet-link{font-size:18px;text-decoration:underline;text-underline-offset:4px;min-height:44px}
body[data-screen="design"] .design-actionbar #dock-summary{font-size:16px;line-height:1.6;font-weight:400;color:var(--muted)}
body[data-screen="design"] .design-actionbar .save-status{font-size:16px;line-height:1.5}
body[data-screen="design"] .build-choice-note{font-size:16px;line-height:1.6;margin-top:14px}
.ux-diagnostics{border:1px solid #d7e0d8;border-radius:14px;background:#f2f5f0;padding:26px 28px;margin:0 0 28px}
.ux-diagnostics-few,.ux-diagnostics-many{background:#fcf5e9;border-color:#e6d5b9}
.ux-diagnostics-incomplete{background:#f3f4f3;border-color:#d6dbd8}
.ux-diagnostics .diagnostic-heading .eyebrow{font-size:16px;letter-spacing:0;text-transform:none;font-weight:500;margin:0 0 8px}
.ux-diagnostics .diagnostic-heading h2{font-size:26px;line-height:1.3;margin:0 0 12px}
.ux-diagnostics .diagnostic-heading>p:not(.eyebrow){font-size:18px;line-height:1.6;max-width:78ch;margin:0}
.ux-diagnostics .diagnostic-highlights{margin:20px 0 0;padding:0;display:grid;gap:12px;list-style:none}
.ux-diagnostics .diagnostic-highlights li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0;background:transparent;border:0;font-size:18px;line-height:1.6}
.ux-diagnostics .diagnostic-highlights strong{font-size:16px;line-height:1.5;flex:none}
.ux-diagnostics .diagnostic-actions{display:flex;flex-wrap:wrap;gap:10px 24px;margin:16px 0 0}
.ux-diagnostics .diagnostic-actions .quiet-link{font-size:18px;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.ux-diagnostics .diagnostic-details{margin-top:18px;border:0}
.ux-diagnostics .diagnostic-details>summary{font-size:17px;min-height:44px;padding:10px 0;cursor:pointer}
.ux-diagnostics .diagnostic-groups{padding-top:20px;display:grid;gap:24px}
.ux-diagnostics .diagnostic-groups h3{font-size:22px;line-height:1.4;margin:0 0 14px}
.ux-diagnostics .diagnostic-table-summary{font-size:18px;line-height:1.6;margin:0}
.ux-diagnostics .diagnostic-item{background:#fff;border:1px solid #e0e2dd;padding:20px;border-radius:10px;overflow-wrap:anywhere}
.ux-diagnostics .diagnostic-item h4{font-size:18px;line-height:1.5;margin:0 0 10px}
.ux-diagnostics .diagnostic-item p,.ux-diagnostics .diagnostic-locations{font-size:17px;line-height:1.6}
.ux-diagnostics .diagnostic-labels{color:var(--muted)}
@media(max-width:1100px){body[data-screen="design"] .template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-screen="design"] .template-card-heading{min-height:80px}body[data-screen="design"] .selected-book dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body[data-screen="design"] .ux-gallery{margin-top:36px}body[data-screen="design"] .gallery-heading{display:block}body[data-screen="design"] .gallery-heading h2,body[data-screen="design"] .ux-book-settings h2{font-size:28px}body[data-screen="design"] .sample-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}body[data-screen="design"] .sample-view-switch span{font-size:16px;padding:10px 8px}body[data-screen="design"] .template-gallery{grid-template-columns:minmax(0,1fr);gap:24px}body[data-screen="design"] .template-card-heading{min-height:0}body[data-screen="design"] .ux-template-label{padding:22px;gap:18px}body[data-screen="design"] .ux-template-zoom{margin-inline:22px;width:calc(100% - 44px)}body[data-screen="design"] .ux-main-settings{padding:22px 18px}body[data-screen="design"] .ux-main-settings .field-grid,body[data-screen="design"] .ux-extra-body .field-grid{grid-template-columns:minmax(0,1fr);gap:0}body[data-screen="design"] .selected-book{padding:20px}body[data-screen="design"] .selected-book dl{grid-template-columns:minmax(0,1fr);gap:14px}body[data-screen="design"] .ux-extra-section>summary{padding:22px 18px;gap:12px}body[data-screen="design"] .ux-extra-section>summary strong{font-size:20px}body[data-screen="design"] .ux-extra-body{padding:22px 18px}body[data-screen="design"] .ux-file-summary .section-head{align-items:flex-start}body[data-screen="design"] .analysis-facts{gap:16px 24px}body[data-screen="design"] .analysis-facts>div{min-width:100px}body[data-screen="design"] .design-actionbar{align-items:stretch;gap:20px}.ux-diagnostics{padding:22px 18px}.ux-diagnostics .diagnostic-heading h2{font-size:24px}.ux-diagnostics .diagnostic-highlights li{display:block}.ux-diagnostics .diagnostic-highlights strong{display:block;margin-top:4px}.ux-diagnostics .diagnostic-item{padding:16px}}

/* The file step can be revisited without leaving the current draft. */
body[data-screen="design"] .stepper {margin-block:16px 8px}
#main .design-intro {display:block;margin:0 0 14px}
.design-file-nav {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}
.design-file-nav a {display:inline-flex;align-items:center;min-height:44px;font-size:1rem;color:#475561;text-underline-offset:.2em}
#main .design-intro h1 {margin:0;font-size:clamp(2.125rem,3.8vw,3.5rem);line-height:1.1}
#main .design-intro .lead {display:block;margin:6px 0 0}
#main .ux-file-summary {margin:0 0 20px;padding:8px 0 12px;border-bottom:1px solid var(--line)}
#main .ux-file-summary .section-head {justify-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:0 18px;margin:0}
#main .ux-file-summary .analysis-file {overflow-wrap:anywhere}
#main .ux-file-summary .quiet-link:not(.flow-mobile) {display:inline-flex;align-items:center;min-height:44px}
#main .ux-file-summary .analysis-facts {gap:4px 24px}
#main .ux-file-summary .analysis-facts div {display:flex;align-items:baseline;gap:6px}
#main .ux-file-summary .analysis-facts dd {font-size:1.1rem;margin:0}
@media (max-width:700px) {
  #main .design-file-nav {margin-bottom:4px}
  #main .design-intro .lead {font-size:1rem}
  #main .ux-file-summary {margin-bottom:12px}
}
