.publish-page { max-width: 790px; padding-bottom: 36px; }
.publish-page [hidden] { display: none !important; }
.publish-header { padding: 8px 0 34px; }
.publish-header h1 { margin: 0 0 24px; color: var(--forest); font-size: clamp(36px, 4.2vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -1.8px; }
.publish-lead { max-width: 610px; margin: 0 0 20px; font-size: 20px; line-height: 1.6; }
.publish-jump { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; font-size: 16px; font-weight: 600; }
.publish-letter { border-block: 1px solid var(--line); padding: 28px 0 4px; }
.publish-letter p, .publish-contact p, .publish-approval-note p { margin: 0 0 20px; font-size: 17px; line-height: 1.8; }
.publish-letter u { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.publish-page a:not(.publish-payment-link) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #9bb7a8; }
.publish-page h2 { margin: 0 0 22px; font-size: 28px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; }
.publish-page h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.publish-offers, .publish-submission, .publish-contact { margin-top: 42px; }
.publish-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.publish-offer { padding: 24px 22px; border: 1px solid #b7c8bf; border-radius: 7px; }
.publish-offer-editorial { background: #f1f7f4; border-color: #6a9282; }
.publish-offer > p { font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.publish-offer > p:first-of-type { min-height: 5em; }
.publish-prices { margin: 25px 0 24px; }
.publish-prices div { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.publish-prices dt { font-size: 14px; color: var(--muted); }
.publish-prices dd { margin: 0; font-size: 34px; line-height: 1.2; color: var(--forest); font-weight: 600; font-variant-numeric: tabular-nums; }
.publish-price-pending { font-size: 18px; font-weight: 500; }
.publish-offer > .publish-label-caption { margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.publish-material-label, .publish-editorial-label { display: inline-block; padding: 5px 8px; border: 1px solid #c5d2cb; border-radius: 3px; font-size: 12px; line-height: 1.5; }
.publish-editorial-label { color: var(--forest); font-weight: 600; border-color: #6a9282; margin-top: 6px; }
.publish-approval-note { margin: 26px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--forest); }
.publish-approval-note h3 { font-size: 18px; }
.publish-approval-note p { font-size: 15px; }
.publish-submission { border-top: 1px solid var(--line); padding-top: 32px; scroll-margin-top: 24px; }
.publish-submission h2 { margin-bottom: 8px; }
.publish-form-intro { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.publish-setup { padding: 16px 18px; border-left: 3px solid #a37b2b; background: #fbf7eb; font-size: 15px; line-height: 1.6; }
.publish-choice-group { border: 0; margin: 28px 0; padding: 0; min-width: 0; }
.publish-choice-group legend { font-size: 16px; font-weight: 600; margin: 0 0 12px; padding: 0; }
.publish-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.publish-choices label { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #b7c8bf; border-radius: 5px; font-size: 14px; cursor: pointer; line-height: 1.5; }
.publish-choices label:has(input:checked) { border-color: var(--forest); background: var(--mint); color: var(--forest); }
.publish-page input[type="radio"], .publish-page input[type="checkbox"] { accent-color: var(--forest); width: 18px; height: 18px; flex-shrink: 0; }
.publish-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.publish-field { display: block; margin: 20px 0 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.publish-field input, .publish-field select, .publish-field textarea { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #a9bdb2; border-radius: 5px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; font-weight: 400; min-width: 0; }
.publish-field textarea { line-height: 1.65; resize: vertical; }
.publish-field input[type="file"] { font-size: 14px; padding: 10px; }
.publish-field input::file-selector-button { background: var(--mint); color: var(--forest); border: 0; padding: 8px 10px; border-radius: 3px; margin-right: 12px; font: inherit; cursor: pointer; }
.publish-page select:focus-visible, .publish-page textarea:focus-visible { outline: 3px solid #27755d; outline-offset: 3px; }
.publish-page select:disabled { color: var(--muted); background: #f3f5f4; }
.publish-field-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 8px 0; }
.publish-field-note:empty, .publish-error:empty { display: none; }
.publish-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.7; }
.publish-consent input { margin-top: 4px; }
.publish-checkout { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.publish-checkout > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
#order-summary { font-size: 15px; line-height: 1.5; }
#order-total { font-size: 32px; font-weight: 600; color: var(--forest); white-space: nowrap; }
#order-submit, .publish-payment-link { border: 1px solid var(--forest); padding: 16px 20px; border-radius: 5px; background: var(--forest); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; }
#order-submit:disabled { opacity: .55; cursor: not-allowed; }
.publish-payment-link { display: inline-block; margin: 8px 0 16px; }
.publish-payment-link:hover { background: #0f3a32; color: #fff; }
.publish-error { color: #9e2929; font-size: 15px; line-height: 1.6; }
.publish-result { padding: 26px; border: 1px solid #b7c8bf; border-radius: 7px; background: #f1f7f4; }
.publish-result p { line-height: 1.7; overflow-wrap: anywhere; }
.publish-status-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 20px 0; }
.publish-status-actions a { font-size: 14px; }
.publish-contact { border-top: 1px solid var(--line); padding-top: 30px; }
.publish-contact .publish-signature { font-size: 14px; color: var(--forest); font-weight: 600; }
@media (max-width: 600px) {
    .publish-header { padding-bottom: 28px; }
    .publish-header h1 { letter-spacing: -1px; }
    .publish-lead { font-size: 18px; }
    .publish-offer-grid, .publish-contact-fields { grid-template-columns: 1fr; }
    .publish-offer > p:first-of-type { min-height: 0; }
    .publish-contact-fields { gap: 0; }
    .publish-prices { display: flex; justify-content: space-between; gap: 15px; margin-top: 6px; }
    .publish-prices dd { font-size: 29px; }
    .publish-letter p, .publish-contact p { font-size: 16px; }
    .publish-page h2 { font-size: 25px; }
    .publish-result { padding: 20px; }
}
.publish-editor-shell { border: 1px solid #a9bdb2; border-radius: 5px; background: #fff; overflow: hidden; }
.publish-editor-shell:focus-within { border-color: #27755d; box-shadow: 0 0 0 2px #dbece3; }
.publish-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 10px; background: #f1f7f4; border-bottom: 1px solid #c5d2cb; }
.publish-editor-toolbar button, .publish-editor-toolbar select, .publish-editor-link-panel button, .publish-editor-footer button { font: inherit; font-size: 14px; line-height: 1.4; color: var(--forest); background: #fff; border: 1px solid #c5d2cb; border-radius: 3px; padding: 8px 10px; min-height: 38px; cursor: pointer; }
.publish-editor-toolbar button[aria-pressed="true"], .publish-editor-toolbar button:hover, .publish-editor-link-panel button:hover { background: #dcece3; border-color: #6a9282; }
.publish-editor-toolbar button:disabled, .publish-editor-toolbar select:disabled, .publish-editor-footer button:disabled { cursor: not-allowed; opacity: .5; }
.publish-editor-toolbar button:focus-visible, .publish-editor-link-panel button:focus-visible, .publish-editor-footer button:focus-visible { outline: 3px solid #27755d; outline-offset: 2px; }
.publish-editor-link-panel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid #c5d2cb; background: #f8faf9; font-size: 14px; }
.publish-editor-link-panel label { width: 100%; font-weight: 600; }
.publish-editor-link-panel input { flex: 1 1 220px; min-width: 0; padding: 9px; border: 1px solid #a9bdb2; border-radius: 3px; font: inherit; font-size: 16px; }
.publish-editor { min-height: 350px; max-height: 900px; overflow-y: auto; padding: 24px; outline: none; color: var(--ink); font-size: 17px; font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; }
.publish-editor:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.publish-editor[contenteditable="false"] { background: #f8faf9; }
.publish-editor > :first-child { margin-top: 0; }
.publish-editor > :last-child { margin-bottom: 0; }
.publish-editor p, .publish-editor div { margin: 0 0 1em; }
.publish-editor h2 { margin: 1.2em 0 .6em; font-size: 28px; }
.publish-editor h3 { margin: 1.2em 0 .6em; font-size: 22px; }
.publish-editor blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 3px solid #6a9282; color: #466355; }
.publish-editor ul, .publish-editor ol { margin: 1em 0; padding-left: 1.6em; }
.publish-editor li { margin: .3em 0; }
.publish-editor img { max-width: 100%; height: auto; display: block; margin: 16px auto; cursor: pointer; }
.publish-editor img[data-editor-selected] { outline: 3px solid #27755d; outline-offset: 3px; }
.publish-editor figure { margin: 20px 0; }
.publish-editor figcaption { font-size: 14px; color: var(--muted); }
.publish-editor table { border-collapse: collapse; width: 100%; margin: 18px 0; }
.publish-editor td, .publish-editor th { border: 1px solid #c5d2cb; padding: 8px; vertical-align: top; }
.publish-editor-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #e0e8e3; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.publish-editor-footer button { min-height: 32px; padding: 5px 9px; }
@media (max-width: 600px) {
    .publish-editor { padding: 18px 14px; min-height: 320px; font-size: 16px; }
    .publish-editor-toolbar { gap: 4px; padding: 8px; }
    .publish-editor-toolbar button, .publish-editor-toolbar select { padding: 8px; }
    .publish-editor h2 { font-size: 25px; }
    .publish-editor h3 { font-size: 20px; }
}
