.book-layout{padding-top:44px;padding-bottom:64px;color:#363431}.book-layout__hero{max-width:850px;margin-bottom:32px}.book-layout__eyebrow{font-size:14px!important;color:#e7594f;letter-spacing:.06em;text-transform:uppercase}.book-layout__hero h1{font-size:clamp(30px,4vw,48px);line-height:1.14;margin:12px 0 18px;font-weight:800}.book-layout__hero>p:last-child{font-size:18px;line-height:1.6;color:#6f6b66;max-width:740px}.book-layout__workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:30px;align-items:start}.book-layout__controls{background:#fff;border:1px solid #eadbd1;border-radius:24px;padding:26px}.book-layout__controls fieldset{border:0;padding:0;margin:0 0 26px;min-width:0}.book-layout__controls fieldset:last-of-type{margin-bottom:0}.book-layout__controls legend{float:none;width:auto;font-size:18px;font-weight:800;margin-bottom:16px}.book-layout__controls legend span{font-size:13px;color:#ec6259;margin-right:10px}.book-layout__choice{display:flex;align-items:center;gap:12px;border:1px solid #e6ddd7;border-radius:14px;padding:13px;margin:8px 0;cursor:pointer}.book-layout__choice:has(input:checked){border-color:#ff7366;background:#fff5ef}.book-layout__choice input{width:18px;height:18px;accent-color:#ff7366;flex-shrink:0}.book-layout__choice b,.book-layout__choice small{display:block}.book-layout__choice b{font-size:16px}.book-layout__choice small{font-size:13px;color:#77716d;margin-top:3px}.book-layout__label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}.book-layout__controls select,.book-layout__controls input[type=file]{max-width:100%;width:100%;border:1px solid #d8cdc5;border-radius:12px;background:#fff;padding:12px;font:inherit;font-size:14px}.book-layout__controls input[type=file]{padding:10px;overflow:hidden}.book-layout__controls input::file-selector-button{border:0;border-radius:8px;padding:8px;background:#fff0e7;color:#363431;margin-right:8px;cursor:pointer}.book-layout__hint{font-size:13px!important;line-height:1.5!important;color:#77716d;margin:10px 0 0}.book-layout__submit{width:100%;margin-top:18px;min-height:48px;font-size:15px;font-weight:800}.book-layout__submit:active{transform:scale(.98)}.book-layout :focus-visible{outline:3px solid #ca5148;outline-offset:3px}.book-layout__status{font-size:14px!important;margin:12px 0 0}.book-layout__error{background:#fff3ee;border-left:3px solid #e96459;padding:12px;font-size:14px!important;margin:12px 0 0}.book-layout__preview{min-width:0}.book-layout__preview-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;margin:0 0 14px}.book-layout__preview-top h2{font-size:20px;font-weight:800;margin:0}.book-layout__preview-top span{font-size:13px;color:#79716a}.book-layout__paper-wrap{background:#f6f0e9;padding:26px;border-radius:24px;overflow:hidden}.book-layout__paper{background:#fffefa;max-width:470px;margin:0 auto;padding:40px 38px;min-height:620px;box-shadow:0 10px 30px #53412b15;font-family:Georgia,'Times New Roman',serif}.book-layout__running{font:10px Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#918777;padding-bottom:22px;border-bottom:1px solid #e9e1d5}.book-layout__paper h3{font:700 25px/1.3 Georgia,serif;margin:32px 0 25px;text-align:center}.book-layout__paper p{font:16px/1.7 Georgia,serif!important;text-indent:1.25em;margin:0;color:#423c34;overflow-wrap:anywhere;white-space:pre-line}.book-layout__paper[data-template=modern] p{font-family:Arial,sans-serif!important;font-size:15px!important;text-indent:0;margin-bottom:16px}.book-layout__paper[data-template=modern] h3{font-family:Arial,sans-serif;text-align:left}.book-layout__paper[data-template=memoir]{background:#fffaf0;padding:46px}.book-layout__paper[data-template=memoir] h3{font-style:italic;font-weight:400;font-size:30px}.book-layout__paper[data-template=memoir] p{line-height:1.9!important}.book-layout__paper[data-format=compact]{max-width:405px;min-height:625px}.book-layout__paper[data-format=large]{max-width:510px;min-height:650px}.book-layout__folio{text-align:center;font:11px Arial,sans-serif;color:#918777;margin-top:32px}.book-layout__notice{font-size:14px!important;line-height:1.6!important;color:#77716d;padding:16px 4px}.book-layout__report{background:#fff7f0;border:1px solid #ecdcd0;border-radius:18px;padding:22px;margin-top:20px}.book-layout__report h3{font-size:20px;margin:0 0 16px}.book-layout__report dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:15px}.book-layout__report dl div{display:flex;justify-content:space-between;gap:12px}.book-layout__report dt{font-weight:400}.book-layout__report dd{font-weight:800;margin:0}.book-layout__report ul{padding-left:20px;font-size:14px;line-height:1.6;margin-bottom:0}.book-layout [hidden]{display:none!important}@media(max-width:900px){.book-layout__workspace{grid-template-columns:280px minmax(0,1fr);gap:20px}.book-layout__controls{padding:20px}.book-layout__paper-wrap{padding:18px}.book-layout__paper{padding:30px 24px}.book-layout__paper[data-template=memoir]{padding:30px 24px}}@media(max-width:700px){.book-layout{padding-top:28px}.book-layout__workspace{grid-template-columns:1fr}.book-layout__hero>p:last-child{font-size:16px}.book-layout__controls{border-radius:20px}.book-layout__paper{min-height:520px}.book-layout__report dl{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.book-layout__submit:active{transform:none}}
.book-layout__workspace {grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);}
.book-layout__controls {min-width: 0;}
.book-layout__draft {margin: 12px 0; padding: 18px; border: 1px solid #eadbd1; border-radius: 18px; background: #fffefa;}
.book-layout__draft h2 {margin: 0; font-size: 18px; font-weight: 800;}
.book-layout__draft-actions {display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; margin-top: 14px;}
.book-layout__draft-actions .btn {display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 700;}
.book-layout__draft [data-project-open] {margin-top: 10px; min-height: 44px;}
.book-layout__draft [data-project-status]:empty {display: none;}
.book-layout__draft-more {margin-top: 12px;}
.book-layout__draft-more summary {cursor: pointer; color: #73574f; font-size: 13px; min-height: 30px;}
.book-layout__manuscript {margin-bottom: 24px;}
.book-layout__manuscript summary {cursor: pointer; font-weight: 800; font-size: 18px; padding: 6px 0;}
.book-layout__manuscript-body {padding-top: 10px;}
.book-layout__manuscript-change {display: block; color: #a63e35; font-size: 13px; font-weight: 600; margin-top: 4px;}
.book-layout__manuscript[open] .book-layout__manuscript-change {display: none;}
.book-layout__manuscript [data-manuscript-filename] {display: block; font-size: 13px; font-weight: 400; color: #655b54; overflow-wrap: anywhere;}
.book-layout__manuscript:not([open]) {background: #fff7f2; border-radius: 12px; padding: 10px 12px;}
.book-layout__edition {margin: 22px 0 12px; padding: 18px; border: 1px solid #eadbd1; border-radius: 18px; background: #fffefa;}
.book-layout__edition h2 {margin: 0 0 8px; font-size: 20px; font-weight: 800;}
.book-layout__edition-group {margin: 12px 0 0; padding: 0; border: 0; min-width: 0;}
.book-layout__edition-group > legend {float: none; width: auto; margin: 0 0 2px; padding: 0; font-size: 15px; font-weight: 800;}
.book-layout__edition-sub {margin: 3px 0 8px; padding: 0; border: 0; min-width: 0;}
.book-layout__edition-sub > legend {float: none; width: auto; padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 700;}
.book-layout__edition-check {display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; cursor: pointer; font-size: 14px;}
.book-layout__edition input:is([type=checkbox], [type=radio]) {accent-color: #b85246; flex-shrink: 0; width: 16px; height: 16px;}
.book-layout__edition-choices {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 6px;}
.book-layout__edition-choices label {display: flex; align-items: center; gap: 8px; padding: 6px 10px; min-height: 44px; border: 1px solid #e6ddd7; border-radius: 10px; font-size: 14px; cursor: pointer;}
.book-layout__edition-choices label:has(input:checked) {background: #fff3ec; border-color: #d9776a;}
.book-layout__header-sides {margin: 8px 0 14px;}
.book-layout__header-sides select {font-size: 16px; line-height: 1.4;}
.book-layout__edition textarea {display: block; width: 100%; padding: 9px 10px; border: 1px solid #d8cdc5; border-radius: 10px; background: white; font: inherit; font-size: 16px; line-height: 1.5;}
.book-layout__formats .book-layout__choice {min-height: 44px; margin: 4px 0; padding: 8px 10px;}
.book-layout__formats .book-layout__choice span {display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; flex: 1;}
.book-layout__formats .book-layout__choice b {font-size: 14px;}
.book-layout__formats .book-layout__choice small {margin-top: 0;}
.book-layout__draft-delete {display: block; margin-top: 10px;}
.book-layout__details {margin-bottom: 24px; padding: 20px; border: 1px solid #eadbd1; border-radius: 20px; background: #fffefa;}
.book-layout__details h3 {margin: 0 0 12px; font-size: 17px; font-weight: 800;}
.book-layout__details-inputs {display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px;}
.book-layout__details-inputs input {box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8cdc5; border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.4; color: #363431; background: #fff;}
.book-layout__details-footer, .book-layout__details-summary {display: flex; justify-content: space-between; align-items: center; gap: 12px;}
.book-layout__details-footer {margin-top: 10px;}
.book-layout__details-footer .book-layout__hint {margin: 0;}
.book-layout__details:has([data-layout-details-fields][hidden]) {padding: 6px 14px; border-radius: 12px;}
.book-layout__details:has([data-layout-details-fields][hidden]) h3 {display: none;}
.book-layout__details-summary p {margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35;}
.book-layout__details-summary span {color: #6f6b66;}
.book-layout__details-summary span:not([hidden])::before {content: ' · ';}
.book-layout__text-action {background: none; border: 0; color: #a63e35; font: inherit; font-size: 14px; padding: 8px 0; text-decoration: underline; cursor: pointer; flex-shrink: 0;}
.book-layout__pdf-action {min-height: 44px;}
.book-layout__export-hint {margin: 0 0 14px;}
.book-layout__spread {background: #f6f0e9; padding: 18px; border-radius: 20px; margin-bottom: 16px;}
.book-layout__spread-nav {display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; text-align: center;}
.book-layout__spread-nav .book-layout__status {margin: 0;}
.book-layout__spread-nav button {padding: 0; min-height: 44px; font-size: 24px; line-height: 1;}
.book-layout__spread-loader {display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; color: #67524a; font-size: 14px;}
.book-layout__spread-loader span {width: 17px; height: 17px; border: 2px solid #efd0c6; border-top-color: #a63e35; border-radius: 50%; animation: book-spread-spin .75s linear infinite;}
@keyframes book-spread-spin {to {transform: rotate(360deg);}}
@media (prefers-reduced-motion: reduce) {.book-layout__spread-loader span {animation: none; border-color: #a63e35;}}
.book-layout__spread-sheets {display: grid; gap: 3px; justify-content: center; grid-template-columns: minmax(0, 530px); margin-top: 10px;}
.book-layout__spread-sheets[data-spread="1"] {grid-template-columns: repeat(2, minmax(0, 430px));}
.book-layout__spread-sheet {display: block; width: 100%; box-shadow: 0 4px 14px #53412b24; background: #fffefa;}
.book-layout__spread-sheet--blank {visibility: hidden;}
@media (max-width: 480px) {.book-layout__spread {padding: 10px;}}
@media (max-width: 800px) {
    .book-layout__workspace {grid-template-columns: minmax(0, 1fr);}
}
@media (max-width: 480px) {
    .book-layout__details {padding: 16px;}
    .book-layout__details-inputs {grid-template-columns: minmax(0, 1fr);}
    .book-layout__details-footer {align-items: flex-start;}
    .book-layout__details-summary span:not([hidden]) {display: block;}
    .book-layout__details-summary span:not([hidden])::before {content: none;}
    .book-layout__pdf-action {width: 100%;}
    .book-layout__paper-wrap {padding: 10px;}
    .book-layout__paper, .book-layout__paper[data-template=memoir] {padding-inline: 18px;}
}
.book-layout__paper p {
    text-align: justify;
}
.book-layout__paper[data-auto-hyphenation] p {-webkit-hyphens:auto;hyphens:auto;}
.book-account {max-width:520px;padding:28px;border:1px solid #ecdcd0;border-radius:20px;background:#fffaf4;margin-bottom:24px}
.book-account label {display:block;font-size:14px;font-weight:700;margin:18px 0 8px}
.book-account input {width:100%;min-width:0;border:1px solid #d8cdc5;border-radius:10px;padding:12px;font:inherit;background:white}
.book-account p {overflow-wrap:anywhere}
.book-account h2 {font-size:23px}
.book-account__project {border-top:1px solid #ecdcd0;padding:16px 0 4px}
.book-account__project h4 {font-size:18px;overflow-wrap:anywhere;margin:0 0 6px}
.book-account__downloads {display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px}
.book-account__downloads span {color:#77716d}
.book-layout__paper[data-template=modern] p:not([data-alignment]) {
    text-align: left;
}
.book-layout__page-break {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #746b61;
    font: 12px/1.4 'Nunito Sans', sans-serif;
    text-align: center;
}
.book-layout__page-break::before,
.book-layout__page-break::after {
    content: '';
    flex: 1;
    border-top: 1px dashed #d8cdc5;
}
.book-layout__zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 12px;
}
.book-layout__zoom select,
.book-layout__zoom input {
    padding: 8px 12px;
    border: 1px solid #d8cdc5;
    border-radius: 10px;
    background: #fff;
    color: #363431;
    font: inherit;
}
.book-layout__zoom input {
    width: 80px;
}
.book-layout__zoom:has([data-pdf-chapters]) {
    flex-wrap: wrap;
}
[data-pdf-chapters] {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 220px;
    text-overflow: ellipsis;
}
.book-layout__search {margin:12px 0;font-size:14px;}
.book-layout__search>div {display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;}
.book-layout__search input {flex:1 1 160px;min-width:0;max-width:100%;}
.book-layout__search input,.book-layout__search button {padding:8px 12px;border:1px solid #d8cdc5;border-radius:10px;background:#fff;font:inherit;color:#363431;}

.book-beta-header-account {font-size:14px;font-weight:800;color:#a63e35;white-space:nowrap;}
.book-tools__nav {display:flex;flex-wrap:wrap;gap:6px 16px;font-size:15px;}
.book-tools__nav {margin-bottom:20px;}
.book-tools__nav a {display:inline-flex;align-items:center;min-height:44px;color:#a63e35;font-weight:700;}
.book-tools__nav a[aria-current=page] {color:#363431;text-decoration:none;}
.book-tools__grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;align-items:start;}
.book-tools__card {min-width:0;padding:clamp(16px,3vw,26px);border:1px solid #eadbd1;border-radius:20px;background:#fffefa;font-size:16px;line-height:1.55;}
.book-tools__card h2 {margin:0 0 10px;font-size:24px;line-height:1.2;font-weight:800;}
.book-tools__card p {margin:0 0 12px;font-size:16px;}
.book-tools__card .book-tools__tag {color:#a63e35;font-weight:800;font-size:14px;}
.book-tools__price {display:grid;gap:2px;padding:12px 0;border-top:1px solid #eadbd1;}
.book-tools__price strong {font-size:18px;}
.book-tools__price span,.book-tools__card .book-tools__note {font-size:14px;color:#655a53;}
.book-tools__card .btn {display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:15px;white-space:normal;}
.book-tools__steps,.book-tools__included {margin:0 0 14px;padding-left:22px;}
.book-tools__steps li,.book-tools__included li {margin-bottom:6px;}
.book-tools__example {padding:0 12px;border:1px solid #eadbd1;border-radius:12px;background:#fff6ee;}
.book-tools__example summary {min-height:44px;padding:9px 0;cursor:pointer;font-weight:800;}
.book-tools__example dl {margin:0 0 10px;}
.book-tools__example dl div {padding:6px 0;border-top:1px solid #eadbd1;}
.book-tools__example dt {font-size:14px;color:#655a53;}
.book-tools__example dd {margin:0;overflow-wrap:anywhere;}
.book-tools__example p {font-size:14px;color:#655a53;}
#book-layout-file {scroll-margin-top:calc(var(--header-height,80px) + 24px);}
.book-typography-dialog {width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:clamp(16px,4vw,28px);border:1px solid #eadbd1;border-radius:20px;background:#fffefa;color:#363431;font-size:16px;}
.book-typography-dialog::backdrop {background:#30272080;}
.book-typography-dialog h2 {font-size:clamp(22px,4vw,28px);margin:0 0 10px;}
.book-typography-dialog p {font-size:15px;line-height:1.55;}
.book-typography-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.book-typography-actions .btn {min-height:46px;font-size:15px;white-space:normal;}
.book-typography-review {margin-top:16px;}
.book-typography-review input[type=file] {display:block;width:100%;max-width:100%;min-height:44px;margin-bottom:10px;padding:10px;overflow:hidden;border:1px solid #d8cdc5;border-radius:12px;background:#fff;color:#363431;font:inherit;font-size:14px;}
.book-typography-review input[type=file]::file-selector-button {min-height:32px;margin-right:8px;padding:8px;border:0;border-radius:8px;background:#fff0e7;color:#363431;cursor:pointer;}
.book-typography-review input[type=file]::file-selector-button:hover {background:#ffe5d9;}
.book-typography-review [role=status] {margin:10px 0;}
.book-tools__grid--typography {grid-template-columns:minmax(0,1fr);}
.book-typography-reader {display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,.45fr);gap:14px;align-items:start;}
.book-typography-dialog .book-typography-reader {grid-template-columns:minmax(0,1fr);}
.book-typography-inspector {display:grid;gap:11px;min-width:0;background:#f9f4ed;border:1px solid #eadbd1;border-radius:12px;padding:clamp(12px,1.65vw,20px);}
.book-layout .book-typography-inspector p {margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;}
.book-layout .book-typography-inspector .book-typography-inspector-title {font-size:17px;font-weight:800;line-height:1.25;}
.book-layout .book-typography-inspector .book-typography-inspector-help {color:#62554a;line-height:1.46;}
.book-typography-rule {margin:3px 0 0;font-size:15px;font-weight:800;}
.book-typography-compare {display:grid;gap:1px;margin:0;border:1px solid #e8dcd1;border-radius:9px;overflow:hidden;}
.book-typography-compare > div {display:grid;grid-template-columns:4ch minmax(0,1fr);gap:8px;align-items:baseline;background:#fcf7f1;padding:8px;}
.book-typography-compare > div[data-comparison=after] {background:#f3f8f2;}
.book-typography-compare dt {font-size:12px;color:#62554a;}
.book-typography-compare dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;}
.book-typography-compare mark {border-radius:3px;padding:1px 3px;background:#f4dfd9;color:#583831;}
.book-typography-compare [data-comparison=after] mark {background:#dceee0;color:#274d31;}
.book-typography-arrows,.book-typography-choices {display:grid;align-items:center;gap:6px;}
.book-typography-arrows {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding-top:10px;border-top:1px solid #eadbd1;}
.book-typography-choices {grid-template-columns:repeat(2,minmax(0,1fr));}
.book-typography-arrows button,.book-typography-choices button {border:1px solid #d8c8bc;border-radius:9px;background:#fff;color:#342b25;min-width:44px;min-height:44px;padding:5px 9px;font:inherit;}
.book-typography-arrows button,.book-typography-arrows span {font-size:13px;font-weight:700;line-height:1.2;}
.book-typography-arrows button:disabled {opacity:.45;}
.book-typography-choices button {font-size:14px;font-weight:800;}
.book-typography-choices button[aria-pressed=true] {border-color:currentColor;}
.book-layout .book-typography-inspector .book-typography-decision {font-size:13px;color:#285133;}
.book-layout .book-typography-inspector .book-typography-decision[data-applied=no] {color:#74362f;}
.book-typography-choices button:first-child[aria-pressed=true],.book-typography-mark[data-selected=yes] {background:#dff0e3;color:#274d31;}
.book-typography-choices button:last-child[aria-pressed=true],.book-typography-mark[data-selected=no] {background:#fbe2df;color:#74362f;}
.book-typography-sheet {grid-column:1;grid-row:1;position:relative;min-width:0;max-height:460px;overflow:auto;overscroll-behavior:contain;background:#fffefa;border:1px solid #e8dcd1;border-radius:12px;padding:clamp(14px,4vw,36px);font:17px/1.65 'PT Serif',serif;color:#342b25;white-space:break-spaces;overflow-wrap:anywhere;}
.book-layout .book-typography-sheet p {font:inherit;margin:0 0 .85em;white-space:inherit;}
.book-layout .book-typography-sheet h3 {font:700 1.18em/1.35 'PT Serif',serif;margin:0 0 .65em;white-space:inherit;}
.book-typography-mark {display:inline;border:0;border-radius:3px;padding:0 2px;font:inherit;white-space:inherit;cursor:pointer;}
.book-typography-mark[aria-current=true] {outline:2px solid currentColor;outline-offset:1px;}
.book-layout__paper[data-preserve-spacing] [data-layout-text] :is(p,h3) {white-space:break-spaces;}
@media(max-width:680px){.book-typography-reader{grid-template-columns:minmax(0,1fr);}.book-typography-sheet{grid-row:auto;max-height:340px;}}
.book-typography-dialog .book-typography-sheet {grid-row:auto;max-height:260px;}

.book-typography-review .book-typography-reader {
    gap:clamp(14px,2.4vw,28px);
    padding:clamp(12px,2.6vw,32px);
    border:1px solid #e8ded3;
    border-radius:18px;
    background:#f4efe7;
}
.book-typography-review .book-typography-inspector {
    background:#fffefa;
}
.book-typography-review .book-typography-sheet {
    min-height:410px;
    max-height:clamp(410px,66dvh,650px);
    padding:clamp(24px,4vw,52px);
    padding-inline-start:clamp(30px,5vw,74px);
    border-color:#e6d9c9;
    border-radius:3px 7px 7px 3px;
    background:#fffdf6 linear-gradient(90deg, #6b42201c 0, #6b422008 8px, transparent 26px);
    box-shadow:3px 3px 0 -1px #fffaf0,5px 5px 0 -2px #d5c6b7,5px 12px 25px #513c2919;
    font-size:clamp(17px,1.6vw,20px);
    line-height:1.75;
}
.book-typography-review .book-typography-sheet::before {
    display:block;
    margin-bottom:clamp(16px,2.8vw,30px);
    padding-bottom:10px;
    border-bottom:1px solid #e7daca;
    color:#735c49;
    content:"Рукопись";
    font:600 11px/1.35 'Nunito Sans',sans-serif;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.book-typography-review .book-typography-sheet h3 {
    margin-bottom:1.05em;
    text-align:center;
}
@media(max-width:680px){
    .book-typography-review .book-typography-reader{padding:9px;gap:12px;}
    .book-typography-review .book-typography-sheet{min-height:320px;max-height:clamp(320px,58dvh,480px);padding:24px 16px 27px 25px;}
}
@media(max-width:480px) {.book-typography-actions .btn {width:100%;}}
.author-dashboard,.author-auth {--author-border:#eadbd1;--author-muted:#655a53;--author-accent:#a63e35;font-size:16px;line-height:1.55;}
.author-dashboard .book-layout__hero h1,.author-auth .book-layout__hero h1 {font-size:clamp(32px,5vw,46px);margin:8px 0 12px;}
.author-dashboard .book-layout__hero p:last-child,.author-auth .book-layout__hero p:last-child {font-size:16px;}
.author-dashboard__toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin-bottom:24px;}
.author-dashboard__nav {display:flex;flex-wrap:wrap;gap:8px;}
.author-dashboard__nav a {display:flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--author-border);border-radius:24px;color:var(--author-accent);font-weight:700;background:#fff8f1;text-decoration:none;}
.author-dashboard__nav a:hover,.author-dashboard__nav [aria-current=page] {background:#ffece0;}
.author-dashboard__panel {min-width:0;padding:clamp(16px,2.5vw,24px);border:1px solid var(--author-border);border-radius:20px;background:#fffefa;scroll-margin-top:calc(var(--header-height,80px) + 16px);}
.author-dashboard h2 {margin:0 0 12px;font-size:24px;font-weight:800;line-height:1.2;}
.author-dashboard h3 {margin:0;font-size:18px;font-weight:800;line-height:1.3;overflow-wrap:anywhere;}
.author-dashboard p {margin:0 0 12px;font-size:16px;}
.author-dashboard .book-layout__hint {font-size:14px!important;color:var(--author-muted);}
.author-dashboard__section-head,.author-dashboard__actions,.author-dashboard__files {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.author-dashboard__section-head {justify-content:space-between;}
.author-dashboard__section-head h2 {margin:0;}
.author-dashboard__book {padding:16px 0;border-top:1px solid var(--author-border);}
.author-dashboard__book .book-layout__hint {margin:6px 0 12px;}
.author-dashboard__badge {font-size:14px;font-weight:700;border-radius:20px;padding:3px 10px;background:#f7ecdf;color:#654b35;}
.author-dashboard__badge[data-paid] {background:#e8f4eb;color:#2d5a39;}
.author-dashboard__receipt {position:relative;}
.author-dashboard__receipt summary {cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px;list-style:none;}
.author-dashboard__receipt summary::-webkit-details-marker {display:none;}
.author-dashboard__receipt summary::after {content:'▾';font-size:12px;}
.author-dashboard__receipt-body {position:absolute;z-index:2;inset-inline-end:0;top:100%;display:grid;gap:3px;width:max-content;max-width:min(235px,calc(100vw - 90px));padding:12px;border:1px solid var(--author-border);border-radius:12px;background:#fff;box-shadow:0 6px 20px #533e3026;font-size:14px;color:var(--author-muted);}
@media(hover:hover) {
    .author-dashboard__receipt:hover::details-content,.author-dashboard__receipt:focus-within::details-content {content-visibility:visible;}
}
.author-dashboard .btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;max-width:100%;padding:8px 14px;white-space:normal;font-size:14px;font-weight:800;}
.author-dashboard .btn svg {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.author-dashboard__files,.author-dashboard__help {margin-top:10px;font-size:14px;color:var(--author-muted);}
.author-dashboard__help summary {padding:8px 0;cursor:pointer;font-weight:700;}
.author-dashboard__help p {font-size:14px;}
.author-dashboard__delete {margin-top:8px;font-size:14px;color:#8f2f28;}
.author-dashboard__delete summary {width:fit-content;min-height:44px;padding:10px 0;cursor:pointer;font-weight:700;}
.author-dashboard__delete p {font-size:14px;}
.author-dashboard__info dl {margin:0 0 16px;}
.author-dashboard__info dl div {padding:8px 0;border-bottom:1px solid var(--author-border);}
.author-dashboard__info dt,.author-dashboard__info label {font-weight:700;font-size:14px;}
.author-dashboard__info dd {margin:0;overflow-wrap:anywhere;}
.author-dashboard__info input {display:block;width:100%;min-height:46px;margin:6px 0 10px;padding:8px 12px;border:1px solid #d8cdc5;border-radius:10px;font:inherit;background:#fff;}
.author-dashboard__info {max-width:620px;}
.author-dashboard__offers {margin-top:24px;}
.author-dashboard .author-dashboard__back,.author-auth .author-dashboard__back {margin:24px 0 0;}
.author-dashboard__back a {display:inline-flex;align-items:center;min-height:44px;}
.author-dashboard__offer-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.author-dashboard__offer-grid article {padding:20px;border:1px solid var(--author-border);border-radius:20px;background:#fff5ee;}
.author-dashboard__offer-grid article + article {background:#fff9e8;}
.author-dashboard__offer-grid p {margin:8px 0;}
.author-dashboard__offer-grid a {display:inline-flex;align-items:center;min-height:44px;font-weight:800;color:var(--author-accent);}
.author-auth .book-account {max-width:600px;font-size:16px;}
.author-auth .book-account input {min-height:46px;font-size:16px;}
@media(max-width:760px) {
    .author-dashboard__offer-grid {grid-template-columns:minmax(0,1fr);gap:12px;}
    .author-dashboard__toolbar {margin-bottom:16px;}
    .author-dashboard__toolbar form {margin-inline-start:auto;}
    .author-dashboard .book-layout__hero,.author-auth .book-layout__hero {margin-bottom:20px;}
}
@media(max-width:420px) {
    .author-dashboard__actions > *, .author-dashboard__actions .btn {width:100%;}
}
.book-layout__search p {font-size:13px!important;margin:8px 0;color:#6f6b66;}
.book-layout__paper p[data-list-level] {
    text-indent: 0;
}
.book-layout__list-marker {
    display: inline-block;
    width: 20px;
    margin-left: -20px;
    font-style: normal;
    font-weight: 400;
}
.book-layout__pdf-scroll {
    overflow: auto;
    max-width: 100%;
    max-height: 80vh;
}
.book-layout__illustration {
    display: block;
    max-width: 100%;
    max-height: 150mm;
    object-fit: contain;
    height: auto;
    margin: 5mm auto;
    break-inside: avoid;
}
.book-layout__notes {
    margin-top: 8mm;
    padding-top: 4mm;
    border-top: 1px solid #ddd;
}
.book-layout__paper .book-layout__notes p {
    text-indent: 0;
    font-size: 13px;
    white-space: pre-line;
    margin-bottom: 12px;
}
.book-layout__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0;
}
.book-layout__table td,.book-layout__table th {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.book-layout__table th {
    background: #f6f3ed;
    text-align: left;
}
.book-layout__paper .book-layout__table p {
    text-indent: 0;
    font-size: 12px;
    margin: 0 0 6px;
}
.book-layout__paper .book-layout__table p:last-child {
    margin-bottom: 0;
}
.book-layout__table .book-layout__illustration {
    max-height: 50mm;
}
.book-layout__paper [data-alignment="left"] {text-align: left;}
.book-layout__paper [data-alignment="right"] {text-align: right; text-indent: 0;}
.book-layout__paper [data-alignment="center"] {text-align: center; text-indent: 0;}
.book-layout__paper [data-alignment="justify"] {text-align: justify;}
.book-style-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.book-style-fields[hidden] {display:none;}
.book-style-form :is(label, input, select), .book-style-select {display:block;min-width:0;}
.book-style-form :is(input:not([type=hidden]),select), .book-style-select {width:100%;min-height:44px;padding:8px 10px;border:1px solid #d8c8bd;border-radius:8px;background:#fff;color:inherit;font:inherit;}
.book-style-form label {margin-bottom:10px;}
.book-layout__edition [data-manual-margins] {margin-top: 10px;}
.book-layout__edition [data-manual-margins] label {display: grid; gap: 4px; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4;}
.book-layout__edition [data-manual-margins] input[type=number] {box-sizing: border-box; font-size: 16px; font-weight: 400; line-height: 1.4;}
.book-style-form .btn {margin-top:8px;}
.book-layout .btn:disabled {opacity:.65;cursor:default;}
.book-layout__paper[data-custom-style] p:not([data-alignment]) {text-align:var(--custom-paragraph);text-indent:var(--custom-indent);}
.book-layout .book-layout__paper[data-custom-style] p {font-family:var(--custom-font),serif!important;font-size:var(--custom-size)!important;line-height:var(--custom-leading)!important;margin-bottom:var(--custom-gap,0);}
.book-layout .book-layout__paper[data-template=modern][data-custom-style] p {margin-bottom:var(--custom-gap,16px);}
.book-layout .book-layout__paper[data-custom-style] h3 {font-family:var(--custom-heading-font,var(--custom-font)),serif!important;}
.book-layout .book-layout__paper[data-custom-style] h3:not([data-heading-level]),.book-layout .book-layout__paper[data-custom-style] h3[data-heading-level="1"] {font-size:var(--custom-heading);text-align:var(--custom-align);margin-block-start:var(--custom-heading-before,0);margin-block-end:var(--custom-heading-after,1em);}
@media(max-width:520px){.book-style-fields{grid-template-columns:minmax(0,1fr);gap:4px;}}
@media (max-width: 520px) {.book-layout__edition [data-manual-margins] {gap: 10px;}}
.book-style-editor {display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.3fr);gap:clamp(16px,3vw,34px);align-items:start;}
.book-style-editor__settings {display:grid;gap:14px;min-width:0;}
.book-style-editor__settings > .btn {justify-self:start;min-height:44px;}
.book-style-group {display:grid;gap:9px;min-width:0;border:1px solid #e8d9cb;border-radius:12px;padding:12px;}
.book-style-group legend {float:none;width:auto;margin:0;padding:0 6px;font-size:16px;font-weight:800;}
.book-style-group small {color:#62554a;font-size:12px;}
.book-style-preview {min-width:0;position:sticky;top:16px;}
.book-style-preview__heading {margin-bottom:12px;}
.book-style-preview__heading h3 {margin:0 0 5px;}
.book-style-preview__sides {display:none;flex-wrap:wrap;}
.book-style-preview__sides .btn {min-height:44px;}
.book-style-preview__sides .btn[aria-pressed=true] {border-color:#a63e35;background:#fff0e8;color:#96392e;}
.book-style-preview__spread {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:clamp(7px,1.2vw,14px);border:1px solid #e8ded3;border-radius:14px;background:#f4efe7;}
.book-style-preview__page {position:relative;min-width:0;min-height:440px;padding-top:calc(var(--style-top,18mm)*.63);padding-bottom:calc(var(--style-bottom,20mm)*.63 + 18px);background:#fffdf6;color:#332c26;border:1px solid #e6d9c9;border-radius:4px;overflow-wrap:anywhere;box-shadow:0 3px 4px #513c2919;}
.book-style-preview__page--left {padding-left:calc(var(--style-outer,16mm)*.65);padding-right:calc(var(--style-inner,20mm)*.65);background-image:linear-gradient(270deg,#6b42201c,transparent 11px);}
.book-style-preview__page--right {padding-left:calc(var(--style-inner,20mm)*.65);padding-right:calc(var(--style-outer,16mm)*.65);background-image:linear-gradient(90deg,#6b42201c,transparent 11px);}
.book-style-preview .book-style-preview__page p {margin:0 0 calc(var(--style-gap,0mm)*.7);font:calc(var(--style-size,11pt)*.93)/var(--style-leading,1.45) var(--style-font,'PT Serif'),serif;text-align:var(--style-paragraph,left);text-indent:calc(var(--style-indent,5mm)*.75);}
.book-style-preview .book-style-preview__page h4 {margin:calc(var(--style-before,0mm)*.65) 0 calc(var(--style-after,7mm)*.65);font:700 calc(var(--style-heading,18pt)*.88)/1.25 var(--style-heading-font,'PT Serif'),serif;text-align:var(--style-align,center);}
.book-style-preview .book-style-preview__page h4 + p {text-indent:0;}
.book-style-preview--memoir .book-style-preview__page h4 {font-style:italic;font-weight:400;}
.book-style-preview .book-style-preview__page .book-style-preview__running {margin:0 0 15px;padding-bottom:7px;border-bottom:1px solid #e7daca;color:#735c49;font:600 10px/1.35 'Nunito Sans',sans-serif;letter-spacing:.11em;text-transform:uppercase;text-align:left;text-indent:0;}
.book-style-preview__folio {position:absolute;bottom:10px;inset-inline:0;text-align:center;color:#735c49;font-size:11px;}
@media(max-width:950px){.book-style-editor{grid-template-columns:minmax(0,1fr);}.book-style-preview{position:static;grid-row:1;}}
@media(max-width:650px){.book-style-preview__spread{grid-template-columns:minmax(0,1fr);}.book-style-preview__sides{display:flex;gap:6px;}.book-style-preview:not([data-side=right]) .book-style-preview__page--right,.book-style-preview[data-side=right] .book-style-preview__page--left{display:none;}.book-style-preview__page{min-height:300px;}.book-style-preview .book-style-preview__page p{font-size:var(--style-size,11pt);}}
