/* Nest Stories only: one writer scrollport and the approved compact controls. */
.nest-story-writing-inline[hidden],.nest-story-writing-view[hidden]{display:none!important}
.nest-story-writing-entry{display:flex!important;flex-direction:column;justify-content:flex-start;gap:6px!important;width:100%;min-height:220px;padding:12px!important;margin:0 0 8px!important;border:1px solid #f2cdbf!important;border-radius:12px!important;background:#fff9f6!important;color:#19233f!important;text-align:left!important;font:inherit;cursor:pointer;box-sizing:border-box}
.nest-story-writing-entry strong{font-size:14px;font-weight:600;line-height:1.35}
.nest-story-writing-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:10;overflow:hidden;white-space:pre-wrap;font-size:12px;line-height:1.2;color:#404040;font-weight:400}
.nest-story-writing-entry small{margin-top:auto;font-size:12px;line-height:1.35;color:#667085;font-weight:400}
.nest-story-writing-entry:focus-visible,.nest-story-writing-view :is(button,select):focus-visible{outline:2px solid #155e63;outline-offset:2px}
.nest-story-writing-entry:disabled{cursor:default;opacity:.55}
html.nest-story-writing-open,html.nest-story-writing-open body{overflow:hidden!important;overscroll-behavior:none}
.nest-story-writing-view{position:fixed;z-index:100000;inset:auto;top:var(--nest-writing-top,0px);left:var(--nest-writing-left,0px);width:var(--nest-writing-width,100vw);height:var(--nest-writing-height,100dvh);box-sizing:border-box;display:flex;flex-direction:column;min-height:0;margin:0;padding:0;background:#fff;color:#19233f;overflow:hidden;font-family:inherit;isolation:isolate}
.nest-story-writing-view *{box-sizing:border-box}
.nest-story-writing-view .nest-story-writing-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:4px 12px;border-bottom:1px solid #f2cdbf;background:#fff9f6}
.nest-story-writing-view .nest-story-writing-heading-group{min-width:0;display:block}
.nest-story-writing-view h1{margin:0;font-size:16px;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
.nest-story-writing-view .nest-story-count{display:block;margin-top:2px;font-size:11px;line-height:1.25;color:#667085;font-weight:400}
.nest-story-writing-view .nest-story-writing-done{position:relative;isolation:isolate;flex:none;min-height:44px;min-width:56px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;color:#fff;font:inherit;font-size:14px;line-height:1.3;font-weight:600;cursor:pointer}
.nest-story-writing-view .nest-story-writing-done::before{content:"";position:absolute;z-index:-1;inset:6px 0;border-radius:9px;background:#E85D3F}
.nest-story-writing-view .nest-story-writing-done:disabled{cursor:default;opacity:.55}
.nest-story-writing-view .nest-story-editor{display:flex;position:relative;flex:1;flex-direction:column;min-height:0;min-width:0;width:100%;margin:0;overflow:hidden}
.nest-story-writing-view .nest-story-tools{flex:none;display:block;border:0;border-bottom:1px solid #f2cdbf;border-radius:0;margin:0;padding:0 12px 2px;background:#fff}
.nest-story-writing-view .nest-story-tool-row{display:grid;grid-template-columns:44px minmax(88px,128px) minmax(72px,104px);gap:4px;justify-content:start;min-height:44px}
.nest-story-writing-view .nest-story-tool-row .nest-story-tool{position:relative;isolation:isolate;border:0;border-radius:0;background:transparent;box-shadow:none;padding:4px 8px;min-height:44px}
.nest-story-writing-view .nest-story-tool-row button::before{content:"";position:absolute;z-index:-1;inset:6px 0;border:1px solid #f2cdbf;border-radius:8px;background:#fff}
.nest-story-writing-view .nest-story-bold-button{font-size:18px}
.nest-story-writing-view .nest-story-bold-button[aria-pressed="true"]::before,.nest-story-writing-view .nest-story-bold-button[aria-pressed="mixed"]::before{border-color:#b73f28;background:#fce9e3;box-shadow:inset 0 0 0 1px #b73f28}
.nest-story-writing-view select.nest-story-tool{font-size:16px}
.nest-story-writing-view .nest-story-reset-button{font-size:12px;line-height:1.2;width:auto;margin:0;gap:4px}
.nest-story-writing-view .nest-story-reset-button span{white-space:nowrap}
.nest-story-writing-view .nest-story-reset-button span[aria-hidden]{flex:none}
html:lang(de) .nest-story-writing-view:not(.nest-story-writing-narrow) .nest-story-tool-row{grid-template-columns:44px minmax(88px,128px) minmax(104px,116px)}
.nest-story-writing-view .nest-story-colour-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
.nest-story-writing-view .nest-story-colour-toggle{min-height:44px;padding:3px 4px;border:0;border-radius:8px;background:#fff;gap:5px}
.nest-story-writing-view .nest-story-colour-toggle[aria-expanded="true"]{background:#fff9f6;box-shadow:inset 0 0 0 1px #b73f28}
.nest-story-writing-view .nest-story-choice-label strong{font-size:12px;line-height:1.2}
.nest-story-writing-view .nest-story-choice-label small{font-size:11px;line-height:1.2;margin-top:2px}
.nest-story-writing-view .nest-story-text-sample{width:24px;font-size:14px;white-space:nowrap}
.nest-story-writing-view .nest-story-background-sample{width:17px;height:17px;border-radius:5px}
.nest-story-writing-view .nest-story-colour-panel{position:absolute;z-index:2;top:var(--nest-writing-tools-height,90px);left:8px;right:8px;max-height:calc(100% - var(--nest-writing-tools-height,90px) - 8px);margin:0;padding:8px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #f2cdbf;border-radius:12px;box-shadow:0 8px 20px #19233f1c}
.nest-story-writing-view .nest-story-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
.nest-story-writing-view :is(.nest-story-tool,.nest-story-swatch,.nest-story-panel-header button){min-height:44px}
.nest-story-writing-view .nest-story-editable{flex:1;min-height:0;height:auto;width:100%;display:block;margin:0;padding:16px;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto;overflow-anchor:none;outline-offset:-3px}
.nest-story-writing-view .nest-story-editor-footer,.nest-story-writing-view .nest-story-editor-hint{display:none!important}
.nest-story-writing-view .nest-story-editor-status{flex:none;margin:0;padding:4px 12px;font-size:12px;line-height:1.3;background:#fff}
.nest-story-writing-view .nest-story-editor-status:empty{display:none}
.nest-story-writing-view .nest-story-writing-notice{flex:none;max-height:25%;overflow:auto;margin:0;padding:8px 12px;background:#fff6e7;color:#19233f;font-size:12px;line-height:1.35}
.nest-story-writing-view .nest-story-writing-notice-error{background:#fff1ec;color:#9b3d2b}
.nest-story-writing-view [hidden]{display:none!important}
.nest-story-writing-view .nest-story-writing-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.nest-story-writing-view.nest-story-writing-narrow .nest-story-tool-row{grid-template-columns:44px minmax(0,1fr) 44px;justify-content:stretch;overflow-x:auto}
.nest-story-writing-view.nest-story-writing-narrow .nest-story-reset-button [data-nest-word="reset"]{display:none}
.modal[data-story-create-modal].nest-story-writing-form-fit{position:fixed!important;inset:auto!important;top:var(--nest-writing-form-top)!important;left:var(--nest-writing-form-left)!important;width:var(--nest-writing-form-width)!important;height:var(--nest-writing-form-height)!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px!important;box-sizing:border-box;align-items:stretch!important;justify-content:center!important}
.nest-story-writing-form-fit>.story-create-modal{width:min(340px,100%)!important;max-width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;margin:0!important;box-sizing:border-box;overflow-anchor:none;scroll-behavior:auto!important}
html.nest-story-writing-open .bottom-nav{display:none!important}
@media(min-width:700px){.nest-story-writing-view .nest-story-writing-header,.nest-story-writing-view .nest-story-tools{padding-inline:max(16px,calc((100% - 680px)/2))}.nest-story-writing-view .nest-story-editable{padding-inline:max(16px,calc((100% - 680px)/2))}.nest-story-writing-view .nest-story-colour-panel{left:max(8px,calc((100% - 660px)/2));right:max(8px,calc((100% - 660px)/2))}}

/* Approved Story form/Preview presentation on the existing LIVE stylesheet.
   Scoped here so unrelated form, account and admin styles remain unchanged. */
[data-story-writing-managed="true"] .story-create-modal,.nest-story-writing-view{-webkit-text-size-adjust:100%;text-size-adjust:100%}
[data-story-writing-managed="true"] .story-create-modal{padding:16px!important;gap:12px}
[data-story-writing-managed="true"] .story-create-modal :is(label,legend){font-size:.875rem!important;font-weight:600!important}
[data-story-writing-managed="true"] .story-create-modal :is(input:not([type="checkbox"]),select,textarea){font-family:inherit!important;font-size:1rem!important;font-weight:400!important;min-height:44px}
[data-story-writing-managed="true"] .story-create-modal :is(input,textarea)::placeholder{font-family:inherit!important;font-weight:400!important}
[data-story-writing-managed="true"] .story-create-modal :is(button.primary,button.secondary,button.ghost){box-sizing:border-box!important;min-height:44px!important;height:auto!important;padding:10px 14px!important;font-size:.9375rem!important;line-height:1.333333!important;font-weight:600!important;border-radius:12px!important;box-shadow:none!important}
[data-story-writing-managed="true"] .story-create-modal button.secondary{font-size:.875rem!important;line-height:1.428572!important;color:#17213b!important}
[data-story-writing-managed="true"] .story-create-modal button.primary{border:2px solid transparent!important;background-clip:padding-box!important;background-color:#E85D3F!important;color:#fff!important}
[data-story-writing-managed="true"] .story-create-modal [data-close-story-create]{min-height:44px;padding:8px 0!important;font-size:.875rem;font-weight:600!important;color:#E85D3F!important}
[data-story-writing-managed="true"] .story-create-modal .story-form-actions{gap:8px!important}
[data-story-writing-managed="true"] .story-create-modal [data-story-create-form]:not(.nest-story-previewing)>.story-form-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.75rem),1fr))}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane{padding:0;border:0;border-radius:0;background:transparent}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane .story-card.nest-story-reader{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane>.section-title{gap:8px!important;margin:0 0 12px}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane>.section-title strong{font-size:14px;font-weight:600}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane>.section-title small{font-size:12px;font-weight:400}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane .story-author strong{font-size:14px;font-weight:600}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane .story-author small{font-size:12px;font-weight:400}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane .story-area{font-size:12px;font-weight:400}
[data-story-writing-managed="true"] .story-create-modal .story-preview-pane .nest-story-formatted-body{padding:12px;margin:12px 0}
