.storydesk{--sd-ink:#321e32;--sd-muted:#655363;--sd-paper:#fffefb;--sd-line:#cdbec9;--sd-soft:#f6f1f3;display:block;color:var(--sd-ink);font:inherit}
.storydesk [hidden]{display:none!important}
.storydesk .sd-paper{padding:clamp(1.05rem,2.4vw,2rem);background:var(--sd-paper);border:1px solid var(--sd-line);border-radius:.7rem;box-sizing:border-box}
.storydesk h2,.storydesk h3,.storydesk p,.storydesk ol{margin:0}
.storydesk h2,.storydesk h3{color:var(--sd-ink);line-height:1.16;font-family:inherit;font-weight:650;letter-spacing:-.03em}
.storydesk h2{font-size:clamp(1.24rem,2vw,1.52rem)}.storydesk h3{font-size:1.15rem}
.storydesk p,.storydesk li{line-height:1.55}.storydesk noscript ol{padding:1rem 0 1rem 1.5rem}.storydesk noscript li+li{margin-top:.55rem}
.storydesk .sd-section-top{display:flex;justify-content:space-between;align-items:baseline;gap:.65rem;flex-wrap:wrap;margin-bottom:1.1rem}
.storydesk .sd-brief-fields,.storydesk .sd-card-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.storydesk .sd-card-fields{grid-template-columns:minmax(9rem,.65fr) minmax(0,1.35fr)}
.storydesk .sd-layout{display:grid;grid-template-columns:minmax(14rem,2fr) minmax(0,3.8fr);align-items:start;gap:1rem;margin:1rem 0}
.storydesk label{display:block;color:var(--sd-ink);font-size:.96rem;font-weight:600;line-height:1.42;min-width:0}
.storydesk .sd-optional{color:var(--sd-muted);font-weight:400}
.storydesk :is(select,input,textarea){display:block;font:inherit;font-weight:400;font-size:1rem;color:var(--sd-ink);border:1px solid #aa98a8;border-radius:.32rem;background:#fff;box-sizing:border-box;padding:.65rem .78rem;line-height:1.4;margin-top:.35rem;width:100%;min-height:44px}
.storydesk input::placeholder,.storydesk textarea::placeholder{color:#7a6878;opacity:1}.storydesk textarea{resize:vertical;min-height:4.7rem}
.storydesk select{appearance:none;padding-right:2.35rem;background-image:linear-gradient(45deg,transparent 50%,#493448 50%),linear-gradient(135deg,#493448 50%,transparent 50%);background-position:calc(100% - 1.08rem) center,calc(100% - .8rem) center;background-size:.3rem .3rem;background-repeat:no-repeat}
.storydesk .sd-brief>label,.storydesk .sd-editor>label{margin-top:.85rem}
.storydesk .sd-actions,.storydesk .sd-template-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.storydesk .sd-template-actions{align-items:flex-end}.storydesk .sd-template-actions label{min-width:min(100%,14rem)}
.storydesk button{font:inherit;font-size:.95rem;font-weight:600;color:var(--sd-ink);border:1px solid #917d8d;background:var(--sd-paper);border-radius:.35rem;line-height:1.25;min-height:43px;padding:.6rem .88rem;cursor:pointer}
.storydesk button:hover:enabled{background:#f8efd9;border-color:#94651c}
.storydesk button:focus-visible,.storydesk input:focus-visible,.storydesk textarea:focus-visible,.storydesk select:focus-visible,.storydesk summary:focus-visible{outline:3px solid #a85808;outline-offset:3px}
.storydesk button.sd-primary{background:var(--sd-ink);color:white;border-color:var(--sd-ink)}.storydesk button.sd-primary:hover:enabled{background:#54344f;color:white;border-color:#54344f}
.storydesk button:disabled{opacity:.5;cursor:default}
.storydesk .sd-count,.storydesk .sd-save,.storydesk .sd-status{font-size:.91rem;color:var(--sd-muted)}
.storydesk .sd-card-list{padding:0;list-style:none;display:grid;gap:.45rem}
.storydesk .sd-card-list button{width:100%;display:flex;gap:.65rem;align-items:baseline;border:1px solid #ddd2d8;background:#faf7f8;text-align:left;overflow-wrap:anywhere;line-height:1.35}
.storydesk .sd-card-list button[aria-current="step"]{border:1px solid #8e6323;background:#fff0c8;box-shadow:inset 3px 0 #a16a08}
.storydesk .sd-card-number{font-variant-numeric:tabular-nums;font-size:.84rem;color:var(--sd-muted)}
.storydesk .sd-add{width:100%;margin-top:.75rem}.storydesk .sd-order{margin-top:1rem}
.storydesk .sd-output{display:flex;gap:1.25rem 1.8rem;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fbebbd;border-color:#d6b87b}
.storydesk .sd-output p,.storydesk .sd-templates p{max-width:65ch;color:var(--sd-muted);margin:.45rem 0 0}.storydesk .sd-output>div:first-child{flex:1 1 17rem}
.storydesk .sd-preview,.storydesk .sd-templates,.storydesk .sd-confirm{margin-top:.9rem}
.storydesk .sd-templates summary,.storydesk .sd-preview summary{cursor:pointer;font-weight:600}
.storydesk .sd-template-actions{margin-top:.75rem}
.storydesk .sd-confirm{border:1px solid #91601e;background:#fff3d4;border-radius:.55rem;padding:1.15rem}
.storydesk .sd-confirm p{font-weight:600;margin-bottom:.75rem}
.storydesk .sd-preview header{padding-bottom:1rem;border-bottom:1px solid var(--sd-line)}.storydesk .sd-preview h2{font-size:1.75rem}
.storydesk .sd-preview header p{margin-top:.5rem}.storydesk .sd-preview section{margin-top:1.2rem}.storydesk .sd-preview h3{margin:.25rem 0 .45rem}
.storydesk .sd-preview details{margin:.65rem 0;color:#563a50}.storydesk .sd-preview details p{margin:.4rem 0}
.storydesk .sd-lesson-text{white-space:pre-wrap;overflow-wrap:anywhere}.storydesk .sd-label{font-size:.82rem;font-weight:600;letter-spacing:.045em;text-transform:uppercase;color:#80560c}
.storydesk .sd-status{min-height:1.45em;margin-top:.5rem}
@media(max-width:48rem){.storydesk .sd-layout{grid-template-columns:1fr}.storydesk .sd-card-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,12.5rem),1fr))}}
@media(max-width:35rem){.storydesk .sd-brief-fields,.storydesk .sd-card-fields{grid-template-columns:1fr}.storydesk .sd-output{align-items:flex-start}}
.storydesk .sd-source{margin-top:1rem}.storydesk .sd-source summary{font-weight:650;cursor:pointer}.storydesk .sd-source>p{margin:.65rem 0;color:var(--sd-muted);max-width:70ch}.storydesk .sd-source [data-sd-proposals] ol{margin:1rem 0;padding-left:1.55rem}.storydesk .sd-source li{margin:.4rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.storydesk .sd-source [data-sd-source-status]{font-size:.92rem;margin-bottom:0}

.storydesk .sd-invitation{padding:clamp(1.05rem,2.4vw,2rem);margin-bottom:1rem;border:1px solid #c39b53;border-radius:.7rem;background:#fff2cf}.storydesk .sd-invitation p{margin-top:.55rem;max-width:70ch}.storydesk .sd-invitation .sd-actions{margin-top:1rem}
