/* Feed Studio: compact, browser-local editorial workbench. */
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;color:#20231f;background:#e9e6df;--muted:#66685f;--line:#deded4;--accent:#c94314;line-height:1.4;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;height:100dvh;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:9px 12px;background:#fffdf8;font-size:13px;font-weight:600;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#eee9de}button:active:not(:disabled){transform:scale(.98)}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-underline-offset:3px}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}input:not([type=checkbox]),textarea,select{width:100%;display:block;min-width:0;border:1px solid #d4d5ca;border-radius:10px;background:#fffdf8;padding:10px 12px;font-size:16px;min-height:44px;line-height:1.4}textarea{resize:vertical;scroll-margin:12px;max-width:100%}input::placeholder,textarea::placeholder{color:#75796e}label{display:block;font-size:13px;font-weight:600;margin:14px 0 6px}
.app-shell{height:calc(100dvh - 32px);max-width:1040px;margin:16px auto;background:#f8f5ef;border:1px solid #d4d5ca;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;position:relative}.app-header{display:flex;align-items:center;justify-content:space-between;padding:8px 20px 2px;flex:none}.icon-button{background:transparent;width:44px;height:44px;padding:0;font-size:26px;border:0}.app-identity{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;letter-spacing:-.3px}.app-identity small{color:var(--muted);font-size:10px;font-weight:500;letter-spacing:0;margin-left:5px}.app-mark{font-size:23px;line-height:1;color:var(--accent)}.progress{padding:0 24px 8px;flex:none;border-bottom:1px solid var(--line)}.progress ol{display:flex;list-style:none;padding:0;margin:0;gap:8px}.progress li{flex:1;min-width:0}.progress button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:36px;padding:6px 2px;background:transparent;border:0;color:var(--muted);font-size:11px}.progress button span{font-size:10px;display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%}.progress button[aria-current]{color:var(--accent);background:#f5e4d7}.progress button[aria-current] span{background:var(--accent);color:white;border-color:var(--accent)}.progress button.complete{color:#20231f}
main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:20px 32px 24px;scrollbar-gutter:stable}.stage{max-width:690px;margin:0 auto}.stage-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:0 0 10px;font-weight:750}h2{font-size:16px;letter-spacing:-.3px;margin:0}h3{font-size:15px;line-height:1.3;margin:0}.stage-heading h1{margin:0}.count{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.lede{color:var(--muted);font-size:14px;margin:0 0 16px}.small{font-size:11px;line-height:1.45;color:var(--muted);margin:7px 0}.small:empty{display:none}.prototype-note{font-size:11px;line-height:1.45;color:var(--muted);margin:7px 0 12px}.url-add{position:sticky;top:-1px;z-index:2;background:#f8f5ef;padding:6px 0 8px}.url-add label{margin-top:0}.url-entry{display:flex;align-items:start;gap:8px}.url-entry textarea{height:46px;max-height:120px;flex:1;resize:vertical}.url-entry button{background:#20231f;color:#fffdf8;border-color:#20231f;flex:none;min-height:46px;padding-inline:18px}.check-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.quiet{border-color:transparent;background:transparent;color:var(--muted);padding-inline:8px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 0 8px}.section-heading>span,.outline-heading>span{font-size:10px;color:var(--muted)}
#source-bundles{display:grid;gap:8px}.combination-card{background:#fffdf8;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;padding:12px}.concept-trigger{font-size:12px;margin:5px 0 7px;line-height:1.45;color:#454a40}.bundle-sources{display:flex;flex-wrap:wrap;gap:4px 12px;margin-bottom:8px;font-size:10px;color:var(--muted)}.combination-card button{font-size:11px;min-height:44px;padding:8px 10px;background:#f5e4d7;border-color:transparent;color:#9b310c}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.catalog button{display:flex;justify-content:space-between;align-items:center;gap:5px;text-align:left;padding:8px 10px;min-height:54px;font-size:12px;line-height:1.3}.catalog small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:3px}.catalog-plus{font-size:19px;color:var(--accent);flex:none}.sources{display:grid;gap:5px;margin-top:9px}.sources:empty{margin:0}.source-chip{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:4px 7px 4px 10px;background:#e9ecdf;border-radius:9px}.source-chip>div{min-width:0}.source-chip b{display:block;font-size:12px;overflow-wrap:anywhere}.source-chip small{display:block;font-size:10px;color:var(--muted)}.source-chip button{background:transparent;border:0;flex:none;font-size:20px;width:44px;min-height:44px;padding:0}.session-row{margin-top:14px}.error,.warning,.stale{color:#a63413}.warning{font-size:11px;margin:0;padding:0 16px}.warning:not(:empty){padding-block:8px}
.action-dock{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;border-top:1px solid var(--line);padding:12px 28px max(12px,env(safe-area-inset-bottom));background:#f8f5ef}.action-dock>div{min-width:0;flex:1}.action-dock>div>span{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.action-dock small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.action-dock .primary{width:auto;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--accent);color:#fff;border-color:var(--accent);min-height:46px;min-width:158px;font-size:12px}.primary:hover:not(:disabled){background:#ad360e}.app-messages{flex:none}
.story-toolbar{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding-bottom:6px}.story-toolbar button{font-size:11px}.story-toolbar>span{font-size:11px;margin-left:auto;color:var(--muted)}.article{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.article>input{width:22px;height:22px;flex:none;margin:2px 0;accent-color:var(--accent)}.article>div{min-width:0;flex:1}.article label{font-size:15px;line-height:1.35;margin:4px 0 6px;font-weight:650}.article-meta{font-size:10px;color:var(--muted)}.excerpt{font-size:12px;color:#565c50;margin:5px 0 8px}.article-bottom{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;font-size:10px;color:var(--muted)}.coverage{background:#e9ecdf;border-radius:4px;padding:3px 5px}.coverage.limited{background:#f0e6d6}.stale{font-size:11px}.story-pages{display:flex;gap:6px;margin-top:12px}.selection-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;padding:5px 0}.empty-state{padding:18px 0;font-size:13px;color:var(--muted)}.empty-symbol{font-size:22px}.intent-heading{display:flex;align-items:baseline;justify-content:space-between;margin:14px 0 6px;font-size:12px}.intent-heading span+span{color:var(--muted);font-size:10px}.intent-chips{display:flex;flex-wrap:wrap;gap:6px}.intent-chips button{font-size:11px}.format-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}.format-fields>div{min-width:0}.outline-heading{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 8px}.episode-outline{padding:0;margin:0 0 16px;list-style:none;counter-reset:beats}.episode-outline li{counter-increment:beats;position:relative;padding:10px 0 10px 30px;border-bottom:1px solid var(--line)}.episode-outline li:before{content:counter(beats,decimal-leading-zero);position:absolute;left:0;top:11px;color:var(--accent);font-size:11px;font-weight:600}.episode-outline b{font-size:13px;display:block}.episode-outline small{display:block;color:var(--muted);font-size:11px;margin-top:3px}details{border-top:1px solid var(--line);padding-top:10px}summary{font-size:13px;font-weight:600;cursor:pointer;min-height:44px;padding:10px 0}#brief-text{font-family:ui-monospace,monospace;font-size:12px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.button-row button{font-size:12px}
.sheet{border:1px solid var(--line);padding:20px;max-width:480px;width:calc(100% - 24px);border-radius:20px;background:#f8f5ef;color:inherit;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow:auto}.sheet::backdrop{background:#20231f70}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-link{display:flex;width:100%;justify-content:space-between;margin:16px 0}.explorer-link{display:inline-block;font-size:13px;margin:10px 0}.notice{padding:12px;background:#f5e4d7;font-size:12px;border-radius:10px}.danger{color:#ad360e}.skip,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{z-index:20;clip:auto;width:auto;height:auto;padding:10px;background:white}
@media(min-width:900px){#source-bundles{grid-template-columns:repeat(3,minmax(0,1fr))}.combination-card{display:flex;flex-direction:column}.bundle-sources{margin-top:auto;padding-top:4px}.combination-card button{width:100%;font-size:10px}.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.source-stage{max-width:850px}}
@media(max-width:800px){.app-shell{height:100dvh;margin:0;max-width:none;border:0;border-radius:0}.app-header{padding:calc(2px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}.progress{padding:0 10px 5px}.progress ol{gap:2px}.progress button{font-size:10px;gap:4px;min-height:34px}.app-identity small{display:none}main{padding:12px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));scrollbar-gutter:auto}h1{font-size:26px}.action-dock{gap:10px;padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.action-dock>div>span{font-size:11px}.action-dock small{font-size:9px}.action-dock .primary{min-width:142px;font-size:11px;padding:10px 12px;gap:10px}.sheet{padding:16px;margin:auto auto max(12px,env(safe-area-inset-bottom))}.section-heading{margin-top:16px}.combinations .section-heading>span{font-size:9px}}
@media(max-height:500px){.app-header .icon-button{height:36px;min-height:36px}.progress button{min-height:30px}.progress{padding-bottom:3px}main{padding-top:10px}.action-dock{padding-top:7px;padding-bottom:max(7px,env(safe-area-inset-bottom))}.action-dock .primary{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
