:root{--ink:#24313b;--muted:#77818e;--bg:#faf9f7;--line:#eceaf0;--purple:#6943cc;--purple-light:#f1ecff;--white:#fff;--shadow:0 8px 32px rgba(29,28,45,.032)}
*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}button,input{font:inherit}button{cursor:pointer}a{color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 16px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;margin:0 10px 60px;color:#262638;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:-1.1px;line-height:1.1}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#6c48ca;color:#fff;font-family:"Playfair Display",Georgia,serif;font-size:22px;font-weight:700;letter-spacing:-1px}.brand-dot{color:#d3c3ff}.brand-light{font-weight:500;color:#8e86a5}.brand small{display:block;color:#9992a8;font-size:9px;letter-spacing:1.55px;margin-top:7px;font-weight:700}.sidebar-section-label{font-size:10px;letter-spacing:1.45px;color:#a8a9b3;font-weight:700;margin:0 16px 13px}.topic-label{margin-top:40px}.nav-items{display:grid;gap:5px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:12px 13px;text-align:left;background:transparent;border:0;border-radius:10px;color:#65707d;font-size:12.5px;font-weight:600}.nav-item:hover,.nav-item:focus-visible{background:#f7f4fc;color:#6543bd}.nav-item.active{background:#f1ebfb;color:#6943cc}.nav-icon{width:21px;text-align:center;font-size:18px;line-height:1}.nav-count{margin-left:auto;font-size:11px;color:#8c83a3}.topic-dot{width:8px;height:8px;border-radius:50%;margin:0 6px}.topic-dot.purple{background:#926bd9}.topic-dot.orange{background:#e4a072}.topic-dot.blue{background:#739ad6}.sidebar-bottom{margin-top:auto}.safety-mini{display:flex;gap:11px;background:#f8f6fc;padding:14px 12px;border-radius:12px}.safety-symbol{width:25px;height:25px;display:grid;place-items:center;color:#5b8d71;background:#e9f4ed;border-radius:50%;flex-shrink:0;font-weight:700}.safety-mini strong,.safety-mini span{display:block;font-size:11px}.safety-mini span{color:#88919b;font-size:10.5px}.sidebar-foot{color:#aca9b5;font-size:10px;padding:10px 13px 0}.workspace{min-width:0}.topbar{height:72px;border-bottom:1px solid #edeaf0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 45px}.crumb{display:flex;gap:11px;align-items:center;color:#aaa7b3;font-size:12px}.crumb strong{color:#403e50;font-weight:600}.slash{color:#d7d2df}.top-right{display:flex;align-items:center;gap:22px}.sync-indicator{font-size:11px;color:#7c8190}.pulse{display:inline-block;width:7px;height:7px;background:#74b894;border-radius:50%;margin-right:7px}.avatar{background:#eee7fb;color:#7349cc;font-size:11px;font-weight:700;width:33px;height:33px;display:grid;place-items:center;border-radius:50%}.mobile-brand{display:none;gap:8px;align-items:center}.content{max-width:1300px;margin:0 auto;padding:56px clamp(24px,4vw,70px) 25px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:2px;color:var(--purple)}.eyebrow-line{width:19px;height:2px;background:var(--purple)}.intro-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-top:15px}.intro h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(30px,3.2vw,45px);line-height:1.2;letter-spacing:-1.2px;margin:0;color:#292938}.intro h1 em{color:#805ed3;font-style:italic}.intro p{font-size:13.5px;color:#92909d;margin:13px 0 0}.today-box{text-align:right;white-space:nowrap;padding-bottom:5px}.today-box span{display:block;font-size:9px;letter-spacing:1.2px;color:#b0adba;font-weight:700}.today-box strong{font-weight:600;font-size:13px;color:#6f7180}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:39px 0 55px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px 22px;display:flex;align-items:center;gap:15px;box-shadow:var(--shadow)}.metric-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;font-size:21px;flex-shrink:0}.lilac{color:#7e5acb;background:#f1ebfc}.peach{color:#d69067;background:#fff2e9}.mint{color:#65a88c;background:#eaf7f1}.metric div span,.metric strong{display:block}.metric div span{font-size:11px;color:#9996a4}.metric strong{font-size:24px;line-height:1.2;letter-spacing:-.7px;margin-top:3px;color:#313140}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:26px}.section-kicker{font-size:10px;letter-spacing:1.5px;color:#8e69d6;font-weight:700}.section-title h2{font-family:"Playfair Display",Georgia,serif;font-size:28px;letter-spacing:-.6px;margin:5px 0 1px}.section-title p{color:#a0a0ad;font-size:12px;margin:3px 0}.results{color:#aaa6b3;font-size:11px;white-space:nowrap}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.search-wrap{width:min(380px,100%);display:flex;align-items:center;gap:11px;border:1px solid #e7e5eb;background:white;border-radius:10px;padding:0 14px;min-height:42px}.search-wrap span{color:#b8b4c1;font-size:25px;line-height:1}.search-wrap input{outline:0;width:100%;min-width:0;border:0;background:none;font-size:11px;color:#333}.search-wrap input::placeholder{color:#b2afb9}.search-wrap:focus-within{border-color:#ac93e5;box-shadow:0 0 0 3px #f0eafb}.filters{display:flex;gap:5px;flex-wrap:wrap}.filter{border:1px solid transparent;background:none;padding:9px 13px;border-radius:8px;color:#8d8b99;font-size:11px;font-weight:700}.filter.active{background:#eee8fa;color:#7048ca}.filter:hover{color:#7048ca}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.story-card{min-width:0;border:1px solid #ece9ee;border-radius:14px;background:white;padding:23px 24px 0;display:flex;flex-direction:column;box-shadow:var(--shadow)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.category-pill{font-size:10px;padding:5px 10px;border-radius:5px;color:#7659ba;background:#f2edfc;font-weight:700}.category-pill.saas{color:#c28253;background:#fff1e7}.category-pill.markets{color:#5c86bd;background:#ecf3fc}.card-date{color:#b0acb8;font-size:10px}.card-title{font-family:"Playfair Display",Georgia,serif;font-size:20px;letter-spacing:-.15px;font-weight:700;line-height:1.38;color:#30303f;margin:0 0 10px}.card-description{font-size:11.5px;color:#8f94a0;margin:0 0 15px;line-height:1.8;max-height:65px;overflow:hidden}.card-source{display:flex;align-items:center;gap:7px;font-size:11px;margin:0 0 19px;flex-wrap:wrap}.source-mark{color:#8d65ce}.source-link{color:#8660d1;text-decoration:none;font-weight:700}.source-link:hover{text-decoration:underline}.source-publisher{color:#b2aeba;overflow:hidden;text-overflow:ellipsis;max-width:140px;white-space:nowrap}.draft-panel{border-radius:9px;border:1px solid #eee9f6;background:#faf8fd;padding:16px;margin-top:auto}.draft-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.draft-heading>span:first-child{color:#8760d3;font-size:9px;font-weight:800;letter-spacing:1px}.review-tag{font-size:8px;color:#a29aaa;background:#fff;border:1px solid #e9e4f0;border-radius:4px;padding:3px 5px;letter-spacing:.4px}.draft-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#565363;font-size:12px;line-height:1.7;margin:13px 0}.draft-bottom{border-top:1px solid #ebe5f2;padding-top:13px;display:flex;justify-content:space-between;gap:10px;align-items:center}.char-count{font-size:10px;color:#afabb8}.char-count.over{color:#b96c58}.copy-button{background:#7048c8;border:0;border-radius:7px;color:white;font-weight:700;font-size:10.5px;padding:9px 12px}.copy-button:hover{background:#5b34b1}.copy-button:disabled{opacity:.5;cursor:not-allowed}.card-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 0;margin-top:5px}.status-info{font-size:10px;color:#9695a3}.status-info::before{content:"";display:inline-block;width:6px;height:6px;background:#d1ae77;border-radius:50%;margin-right:8px}.status-info.reviewed::before{background:#62a17b}.save-button{border:0;background:none;color:#a4a1ae;padding:3px;font-size:10.5px}.save-button span{font-size:16px;vertical-align:-1px;margin-right:4px}.save-button[aria-pressed="true"]{color:#7048c8}.notice{padding:13px 16px;margin-bottom:18px;background:#fff8e9;border:1px solid #f5e7ba;border-radius:9px;color:#8f6e2c;font-size:12px}.empty{text-align:center;border:1px dashed #e6dfed;padding:75px 20px;border-radius:16px;background:white}.empty-symbol{display:block;color:#b8a8d8;font-size:42px}.empty h3{font-family:"Playfair Display",Georgia,serif;font-size:23px;margin:12px 0 5px}.empty p{color:#95919f;font-size:12px}.secondary-action{background:#f0eafb;color:#734dc8;border:0;border-radius:8px;padding:10px 16px;font-weight:700;font-size:12px}.footer{border-top:1px solid var(--line);display:flex;gap:10px;justify-content:space-between;margin-top:55px;padding:22px 0 0;font-size:10px;color:#aaa6b2}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(max-width:1150px){.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:40px 28px}.topbar{padding:0 28px}.toolbar{align-items:stretch;flex-direction:column}.search-wrap{width:100%}.cards{gap:13px}.story-card{padding:18px 18px 0}}
@media(max-width:850px){.shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:12px 18px;background:#fff}.sidebar>.brand,.sidebar-section-label,.sidebar-bottom,.topic-label,.topic-item{display:none}.nav-items{display:flex;gap:6px;overflow:auto}.nav-items .nav-item{flex:0 0 auto;width:auto;white-space:nowrap;padding:9px 12px}.nav-count{margin-left:4px}.topbar{height:58px}.mobile-brand{display:flex}.crumb{display:none}.content{padding:35px 22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{margin:30px 0 42px}}
@media(max-width:650px){.content{padding:30px 16px}.cards{grid-template-columns:1fr}.intro-heading{display:block}.today-box{text-align:left;margin-top:23px}.intro h1{font-size:34px}.metrics{gap:8px}.metric{padding:13px 12px;gap:8px;align-items:flex-start}.metric-icon{width:29px;height:29px;font-size:15px;border-radius:7px}.metric div span{font-size:9px}.metric strong{font-size:21px}.topbar{padding:0 17px}.section-title h2{font-size:25px}.footer{flex-direction:column}.filter{padding:7px 10px}.story-card{padding:19px 18px 0}}
@media(prefers-reduced-motion:no-preference){.story-card,.copy-button{transition:box-shadow .17s,transform .17s,background .17s}.story-card:hover{box-shadow:0 11px 29px rgba(58,46,87,.07);transform:translateY(-2px)}}

/* Inline editor keeps the original card design and saves drafts in browser storage only. */
.draft-actions{display:flex;align-items:center;gap:8px}
.edit-button{border:1px solid #e0d7f0;background:#fff;border-radius:7px;color:#714cb8;font-size:10.5px;font-weight:700;padding:8px 11px}
.edit-button:hover,.edit-button:focus-visible{border-color:#ad92e3;background:#f7f2ff}
.compose-panel{margin:13px 0 2px;border:1px solid #e8dff5;background:#fff;border-radius:9px;padding:12px}
.compose-label{display:block;color:#69528f;font-size:11px;font-weight:700}
.compose-label span{font-size:10px;color:#a39eaf;font-weight:500;margin-left:4px}
.compose-input{display:block;width:100%;min-height:110px;margin-top:8px;border:1px solid #ded7e9;border-radius:7px;resize:vertical;background:#fff;color:#33313f;font-size:12px;line-height:1.7;padding:10px;outline:none}
.compose-input:focus{border-color:#9879d9;box-shadow:0 0 0 3px #ede5fb}
.compose-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}
.reset-edit{border:0;background:transparent;color:#7252b2;text-decoration:underline;font-size:10px;padding:0}
.reset-edit:disabled{color:#bbb7c3;text-decoration:none;cursor:default}
.local-note{font-size:9px;color:#aaa6b4;text-align:right}
@media(max-width:430px){.draft-bottom{align-items:flex-start;flex-wrap:wrap}.draft-actions{margin-left:auto}.compose-actions{align-items:flex-start;flex-wrap:wrap}.local-note{margin-left:auto}}


/* Phase 1 additions: compact newsroom signals and personal workflow.
   All original layout, typography and colors are intentionally retained. */
.card-top{gap:8px;flex-wrap:wrap}
.card-date{margin-left:auto}
.trend-pill{font-size:10px;font-weight:700;background:#e9f5ed;color:#397d55;padding:5px 9px;border-radius:6px;white-space:nowrap}
.trend-reason{font-size:10.5px;color:#696986;background:#faf9ff;border-left:2px solid #ae98e7;padding:7px 10px;margin:0 0 14px;line-height:1.55}
.feed-disclaimer{font-size:11px;color:#8d849c;padding:9px 12px;margin:-8px 0 18px;border-radius:8px;background:#f1edfa}
.workflow-filters{display:flex;gap:5px;flex-wrap:wrap;width:100%;align-items:center;margin:0 0 4px}
.stage-filter{padding:9px 12px;background:#fff;border:1px solid #e9e4ef;color:#858097;border-radius:8px;font-size:11px;font-weight:700}
.stage-filter:hover{border-color:#baa7e8}
.stage-filter.active{background:#eee8fa;border-color:#eee8fa;color:#7048ca}
.workflow-control{display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-width:0}
.workflow-label{display:flex;align-items:center;gap:8px;color:#8e889d;font-size:10px}
.workflow-select{appearance:auto;background:#fff;border:1px solid #ddd5ed;color:#5c5073;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:700;max-width:155px}
.workflow-select:focus-visible{outline:2px solid #a18bd4;outline-offset:2px}
.story-card .status-info{max-width:270px;line-height:1.4}
.story-card .status-info::before{width:5px;height:5px;margin-right:5px}
.card-footer{gap:10px;align-items:flex-end;flex-wrap:wrap}
@media(max-width:650px){.trend-reason{font-size:10px}.workflow-select{min-width:100px}.stage-filter{padding:7px 9px}.story-card .status-info{max-width:225px}}


/* Phase 2: quiet inline editorial tools, matching the existing card design. */
.studio-launchers{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.studio-open,.research-open{border:1px solid #e7e1f0;background:#fff;color:#7354ae;border-radius:8px;font-size:11px;font-weight:700;padding:8px 10px}
.studio-open:hover,.research-open:hover,.studio-open[aria-expanded="true"],.research-open[aria-expanded="true"]{background:#f1ecfb;border-color:#d9cbee}
.studio-open:focus-visible,.research-open:focus-visible,.studio-use:focus-visible,.studio-tone:focus-visible{outline:2px solid #9877d4;outline-offset:2px}
.studio-panel,.research-panel{border:1px solid #e8e2f2;background:#fcfafd;border-radius:10px;padding:15px;margin-top:12px;min-width:0}
.studio-panel-heading{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:5px;margin-bottom:12px}
.studio-panel-heading strong{font-family:"Playfair Display",Georgia,serif;font-size:17px;color:#36313e}
.studio-panel-heading span{font-size:10px;color:#9b94ab}
.studio-tone-label,.research-note-label{font-size:11px;font-weight:700;color:#736583;display:block}
.studio-tone{display:block;width:100%;padding:9px;margin-top:6px;background:#fff;border:1px solid #e0d8eb;border-radius:8px;font-size:11px;color:#43384e}
.studio-intro,.research-limit{font-size:11px;color:#8d8499;line-height:1.6;margin:12px 0}
.studio-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #ebe5f2;border-radius:8px;padding:12px;color:#464054;font-size:11.5px;line-height:1.7;min-height:85px;margin:0}
.studio-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.studio-length{font-size:10px;color:#9c93a7}
.studio-use{background:#7048c8;color:#fff;border:0;border-radius:7px;font-size:10.5px;font-weight:700;padding:9px 13px}
.studio-use:disabled{opacity:.5;cursor:default}
.research-headline{font-size:13px;font-weight:700;color:#3b3548;line-height:1.5;margin:9px 0}
.research-publisher{font-size:10px;color:#978caa;margin:5px 0}
.research-source{display:inline-block;color:#7750c1;font-size:11px;font-weight:700;margin:7px 0;text-decoration:none}
.research-source:hover{text-decoration:underline}
.research-subtitle{font-size:11px;font-weight:700;color:#5f526c;margin:15px 0 6px}
.research-questions{padding-left:18px;margin:0 0 13px;color:#6b6574;font-size:11px;line-height:1.7}
.research-questions li{padding:2px 0}
.research-notes{display:block;margin-top:7px;width:100%;resize:vertical;min-height:72px;padding:9px 10px;font:inherit;font-weight:400;line-height:1.5;font-size:11px;color:#47404f;border:1px solid #e1dceb;border-radius:8px;background:#fff}
.research-notes:focus-visible{outline:2px solid #a48cdd;outline-offset:2px}
.research-caution{color:#a39aab;font-size:10px;margin:11px 0 0}
@media(max-width:650px){.studio-panel,.research-panel{padding:12px}.studio-actions{flex-wrap:wrap}.studio-use{margin-left:auto}}


/* Phase 2B: short RSS context and editor-authored source notes. */
.rss-context{border:1px solid #e8e0f1;background:#fff;border-radius:9px;padding:11px 12px;margin:12px 0}
.rss-context-label{font-size:10px;font-weight:700;color:#8464bb;letter-spacing:.2px}
.rss-context-text{font-size:11.5px;line-height:1.7;color:#61596b;margin:6px 0 0;overflow-wrap:anywhere}
.rss-context.preview-missing{background:#faf9fc;border-style:dashed}
.rss-context.preview-missing .rss-context-text{color:#9d95a8}
.research-apply-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:11px}
.research-apply{border:0;border-radius:7px;background:#7048c8;padding:8px 11px;color:white;font-weight:700;font-size:10.5px}
.research-apply:disabled{background:#e0dbe9;color:#a69cac;cursor:default}
.research-apply-row span{font-size:10px;color:#a49ba9}
.research-apply:focus-visible{outline:2px solid #a58adb;outline-offset:2px}


/* Larger curated feed: quiet status notice + compact pagination. */
.refresh-note{color:#8f899a;font-size:11px;line-height:1.6;margin-top:9px!important;max-width:620px}
.refresh-note span{color:#7854cc;font-size:15px;vertical-align:-1px;margin-right:4px}
.more-container{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;margin:23px 0 6px}
.load-more{background:#fff;border:1px solid #ddd4ed;border-radius:9px;color:#7147c7;padding:11px 18px;font-size:12px;font-weight:700}
.load-more:hover,.load-more:focus-visible{background:#f1ecfc;border-color:#ae93e1}
.more-counter{color:#9990a3;font-size:11px}


/* India and copied-library navigation keeps the existing SignalDesk theme. */
.copy-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#f4effc;border:1px solid #e4d8f4;border-radius:9px;color:#6d578b;font-size:11px;line-height:1.5;padding:10px 13px;margin-bottom:14px}
.copy-undo[hidden]{display:none}
.copy-undo button{background:#fff;color:#6742b6;border:1px solid #cebfe7;border-radius:7px;font-size:11px;font-weight:700;padding:7px 12px}
.copy-undo button:hover,.copy-undo button:focus-visible{background:#e8ddfc;outline-offset:2px}
.nav-item[data-view="india"] .nav-icon{font-size:15px}
.nav-item[data-view="copied"] .nav-icon{color:#548b6b}


/* Separate collection time from browser check time without changing layout. */
.today-box .last-checked-display{display:block;margin-top:5px;font-size:10px;line-height:1.45;letter-spacing:0;color:#9792a1;font-weight:400;text-transform:none}


/* Keep copied-article actions clear on narrow screens and empty India feed. */
.copy-undo-actions,.empty-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.copy-undo-actions{margin-left:auto}
.empty-actions{margin-top:16px}
.copy-undo-actions button:first-child{background:#7048c8;color:#fff;border-color:#7048c8}
.copy-undo-actions button:first-child:hover,.copy-undo-actions button:first-child:focus-visible{background:#5939a4}


/* News History is a sub-view of All Stories, not an eighth sidebar menu. */
.archive-entry{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 14px}
.archive-entry-note{font-size:11px;color:#9b95a5;line-height:1.55}
.archive-controls{margin:0 0 17px;padding:17px 18px;border:1px solid #e9e0f1;border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(73,52,110,.035)}
.archive-controls-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.archive-controls-head strong{font-size:15px;color:#292435}
.archive-controls-head p{margin:6px 0 0;font-size:11px;color:#9790a0;line-height:1.6}
.archive-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.archive-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:600;color:#787185}
.archive-filter-grid select,.archive-filter-grid input{width:100%;min-width:0;border:1px solid #e2dae9;border-radius:8px;background:#fff;color:#494155;padding:9px 8px;font-size:12px}
.archive-filter-grid select:focus-visible,.archive-filter-grid input:focus-visible{outline:2px solid #9d76e5;outline-offset:2px}
.archive-submit{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:13px}
.archive-submit span{color:#9b93a5;font-size:11px}
.archive-status{color:#7d7191;font-size:11px;line-height:1.6;margin:12px 0 0}
.archive-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.archive-pagination span{font-size:11px;color:#868093}
.archive-pagination button:disabled{cursor:default;opacity:.4}
.archive-entry[hidden],.archive-controls[hidden],.archive-pagination[hidden]{display:none}
@media(max-width:850px){.archive-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.archive-filter-grid{grid-template-columns:1fr}.archive-controls{padding:13px}}

/* Archive is the last workspace destination, visually separated from daily feeds. */
.nav-item.nav-archive{margin-top:12px;border-top:1px solid #eae4ee;padding-top:16px}

.archive-statistics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.archive-statistics>div{padding:13px;border:1px solid #ece5f2;border-radius:10px;background:#faf8fd;min-width:0}
.archive-statistics span{display:block;color:#83798f;font-size:11px;margin-bottom:6px}
.archive-statistics strong{display:block;color:#30263f;font-size:16px;overflow-wrap:anywhere}
.archive-statistics[hidden]{display:none}
@media(max-width:850px){.archive-statistics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Phase 2: compact news header and accessible light/dark appearance switch. */
.topbar{justify-content:flex-end}
.top-right{gap:16px}
.header-refreshed{display:flex;flex-direction:column;text-align:right;gap:1px;line-height:1.4}
.header-refreshed span{color:#9691a5;font-size:10px;text-transform:uppercase;letter-spacing:.6px}
.header-refreshed strong{font-size:12px;color:#5f5971;font-weight:600}
.theme-toggle{width:52px;height:34px;border:1px solid #ded5ec;border-radius:18px;background:#f4effc;display:flex;align-items:center;justify-content:space-around;color:#8262c8;padding:3px;font-size:17px}
.theme-toggle:hover,.theme-toggle:focus-visible{outline:2px solid #ad90df;outline-offset:2px}
.theme-moon{opacity:.45}
[data-theme="dark"] .theme-sun{opacity:.45}
[data-theme="dark"] .theme-moon{opacity:1}
@media(max-width:850px){.topbar{justify-content:space-between}}
@media(max-width:480px){.top-right{gap:10px}.header-refreshed strong{font-size:10px}.theme-toggle{width:46px}}
[data-theme="dark"]{color-scheme:dark;--ink:#e5e0ed;--muted:#b9b2c7;--bg:#15141c;--line:#373141;--white:#26212f;--purple:#b699ff;--purple-light:#342845;--shadow:0 8px 28px rgba(0,0,0,.18)}
[data-theme="dark"] body,[data-theme="dark"] .workspace{background:var(--bg);color:var(--ink)}
[data-theme="dark"] .sidebar,[data-theme="dark"] .topbar,[data-theme="dark"] .metric,[data-theme="dark"] .story-card,[data-theme="dark"] .empty,[data-theme="dark"] .archive-controls,[data-theme="dark"] .archive-statistics>div,[data-theme="dark"] .search-wrap,[data-theme="dark"] .stage-filter,[data-theme="dark"] .compose-panel,[data-theme="dark"] .compose-input,[data-theme="dark"] .archive-filter-grid select,[data-theme="dark"] .archive-filter-grid input,[data-theme="dark"] .workflow-select{background:#24212d!important;color:#ebe5f4!important;border-color:#40374c!important}
[data-theme="dark"] .brand,[data-theme="dark"] .intro h1,[data-theme="dark"] .metric strong,[data-theme="dark"] .card-title,[data-theme="dark"] .section-title h2,[data-theme="dark"] .archive-controls-head strong,[data-theme="dark"] .archive-statistics strong,[data-theme="dark"] .header-refreshed strong{color:#f0eaf7!important}
[data-theme="dark"] .intro p,[data-theme="dark"] .section-title p,[data-theme="dark"] .card-description,[data-theme="dark"] .archive-controls-head p,[data-theme="dark"] .archive-statistics span,[data-theme="dark"] .header-refreshed span{color:#b5aebe!important}
[data-theme="dark"] .nav-item{color:#c6bdcf}
[data-theme="dark"] .nav-item.active,[data-theme="dark"] .nav-item:hover,[data-theme="dark"] .filter.active,[data-theme="dark"] .theme-toggle{background:#3a2d50;color:#d0baff}
[data-theme="dark"] .draft-panel,[data-theme="dark"] .trend-reason,[data-theme="dark"] .safety-mini,[data-theme="dark"] .secondary-action,[data-theme="dark"] .notice{background:#302b3b;color:#ddd0ee;border-color:#494058}
[data-theme="dark"] .search-wrap input,[data-theme="dark"] .compose-input,[data-theme="dark"] .archive-filter-grid input{color:#f0eaf7}

/* Header controls: clear SVG icons and guest account popover. */
.theme-toggle{width:76px;height:38px;gap:4px;padding:5px 8px}
.theme-toggle svg{width:19px;height:19px;flex-shrink:0;opacity:1}
.theme-toggle .theme-moon{opacity:.48}
[data-theme="dark"] .theme-toggle .theme-sun{opacity:.48}
[data-theme="dark"] .theme-toggle .theme-moon{opacity:1}
.profile-wrap{position:relative}
.profile-toggle{display:grid;place-items:center;width:38px;height:38px;background:#f1ebfb;border:1px solid #e2d8f1;border-radius:50%;color:#7653c1}
.profile-toggle svg{width:21px;height:21px}
.profile-toggle:hover,.profile-toggle:focus-visible{outline:2px solid #ad90df;outline-offset:2px}
.profile-menu{position:absolute;top:calc(100% + 10px);right:0;width:245px;background:#fff;border:1px solid #e5ddec;border-radius:12px;padding:15px;z-index:30;box-shadow:0 12px 32px rgba(35,25,55,.13)}
.profile-menu[hidden]{display:none}
.profile-menu strong{font-size:13px;color:#30263f}
.profile-menu p{font-size:11px;line-height:1.6;color:#817889;margin:8px 0 12px}
.profile-menu a{display:block;text-decoration:none;padding:8px 10px;margin-top:5px;border-radius:7px;color:#6943cc;background:#f3eefb;font-size:12px;font-weight:600}
.profile-menu a:hover,.profile-menu a:focus-visible{background:#e8dcfc}
[data-theme="dark"] .profile-toggle,[data-theme="dark"] .profile-menu{background:#292333;color:#decafa;border-color:#4c405b}
[data-theme="dark"] .profile-menu strong{color:#eee7f7}
[data-theme="dark"] .profile-menu p{color:#c8bdcf}
[data-theme="dark"] .profile-menu a{background:#443455;color:#e5d2ff}
@media(max-width:480px){.theme-toggle{width:69px}.top-right{gap:8px}.profile-menu{width:min(245px,85vw)}}

.account-page{min-height:100vh;display:grid;place-items:center;padding:22px;background:var(--bg)}
.account-panel{width:min(450px,100%);background:#fff;border:1px solid #ece5f2;border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.account-back{font-size:12px;color:#7355ad;text-decoration:none}
.account-mark{display:grid;place-items:center;margin-top:26px;background:#6c48ca;color:#fff;border-radius:12px;width:48px;height:48px;font:700 22px Georgia,serif}
.account-panel h1{font-size:24px;margin:18px 0 10px}
.account-panel p{color:#767080;font-size:13px;line-height:1.75}
.account-links{display:flex;gap:10px;margin:22px 0}
.account-links a{padding:10px 14px;border-radius:9px;background:#f1ebfb;color:#6c48ca;text-decoration:none;font-weight:700}
.account-links a[aria-current="page"]{background:#6c48ca;color:#fff}
.account-panel .account-note{font-size:11px}

/* Step 70: give the Archive its own compact header without duplicate top KPIs. */
#dashboard-intro[hidden],#dashboard-metrics[hidden]{display:none!important}
.content:has(#dashboard-intro[hidden]){padding-top:25px}
.content:has(#dashboard-intro[hidden]) .section-title{margin-bottom:13px}
.content:has(#dashboard-intro[hidden]) .toolbar{margin-bottom:13px}
@media(max-width:650px){.content:has(#dashboard-intro[hidden]){padding-top:18px}}

/* Auth foundation: these controls remain disabled until a dedicated Auth project is configured. */
#auth-form{display:grid;gap:9px;margin:18px 0}
#auth-form[hidden],#account-signed-in[hidden]{display:none}
#auth-form label{font-size:12px;font-weight:650}
#auth-form input{width:100%;border:1px solid #d8ceea;border-radius:8px;padding:11px;background:#fff;color:#252332}
#auth-form input[hidden],#auth-form label[hidden]{display:none}
#auth-form button,#account-sign-out{border:0;background:#6c48ca;color:white;border-radius:8px;padding:12px;font-weight:700;margin-top:8px}
#auth-status{border-radius:8px;background:#f1ebfb;padding:11px 13px;font-size:12px}
.account-links{flex-wrap:wrap}
.account-links a{font-size:12px}

/* Optional account menu controls, visible only for authenticated sessions. */
#profile-sign-out:not([hidden]){display:block;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;color:inherit;padding:9px 10px;cursor:pointer;font:inherit}
#profile-sign-out:not([hidden]):hover{background:rgba(125,90,205,.1)}
#profile-sign-out:disabled{opacity:.6;cursor:wait}
#profile-account-status:not([hidden]){font-size:12px;margin:5px 0;color:inherit}

/* Optional signed-in account settings */
.account-settings{margin-top:20px;border-top:1px solid #ebe5f2;padding-top:12px}
.account-settings h2{font-size:16px;margin:23px 0 8px}
.account-settings form{display:grid;gap:9px;margin:12px 0}
.account-settings label{font-size:12px;font-weight:650}
.account-settings input,.account-settings select{width:100%;border:1px solid #d8ceea;border-radius:8px;padding:11px;background:#fff;color:#252332}
.account-settings button{border:0;background:#6c48ca;color:white;border-radius:8px;padding:11px;font-weight:700;cursor:pointer}
.account-settings button:disabled{opacity:.6;cursor:wait}
.account-settings[hidden],.account-links[hidden]{display:none}

/* Authentication two-column animated editorial preview */
.account-page{display:block;min-height:100vh;padding:36px;background:#faf9f7}
.account-layout{max-width:1180px;margin:auto;min-height:min(760px,calc(100vh - 72px));display:grid;grid-template-columns:minmax(340px,470px) minmax(0,1fr);gap:34px;align-items:stretch}
.account-layout .account-panel{width:100%;max-width:none;align-self:start}
.account-showcase{position:relative;overflow:hidden;min-height:610px;background:linear-gradient(140deg,#21154c,#6c48ca 65%,#9b82e8);color:white;padding:65px 50px;border-radius:24px}
.showcase-orb{position:absolute;width:400px;height:400px;border-radius:50%;background:rgba(255,255,255,.08);right:-140px;top:-160px;animation:orb-drift 11s ease-in-out infinite alternate}
.showcase-kicker{font-size:12px;letter-spacing:2px;opacity:.8}
.account-showcase h2{font:600 clamp(28px,3vw,47px)/1.12 Georgia,serif;max-width:510px;margin:24px 0 55px;position:relative}
.showcase-feed{display:grid;gap:17px;position:relative}
.showcase-story{padding:20px 22px;border:1px solid rgba(255,255,255,.25);border-radius:16px;background:rgba(255,255,255,.13);backdrop-filter:blur(7px);display:grid;gap:5px;animation:story-float 7s ease-in-out infinite}
.showcase-story:nth-child(2){animation-delay:-2.3s;margin-left:25px}.showcase-story:nth-child(3){animation-delay:-4.6s;margin-left:10px}
.showcase-story span{font-size:11px;color:#f6d8ff;text-transform:uppercase;letter-spacing:1px}.showcase-story strong{font-size:18px}.showcase-story small{opacity:.7}
.account-showcase>p{font-size:13px;color:#eee4ff;margin-top:35px}
@keyframes story-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes orb-drift{to{transform:translate(-70px,65px)}}
#profile-greeting:not([hidden]){font-weight:700;color:var(--purple);white-space:nowrap;font-size:13px}
#nav-manage-account[hidden],#account-workspace[hidden]{display:none!important}
.content.account-open>:not(#account-workspace){display:none!important}
#account-workspace{max-width:1030px;margin:auto}
#account-workspace h1{font:700 30px Georgia,serif;margin:0 0 7px}
#account-workspace>p{color:var(--muted);margin-bottom:20px}
#account-frame{width:100%;min-height:1050px;border:0;background:transparent;border-radius:14px}
.account-embedded{padding:0!important;background:transparent!important}
.account-embedded .account-layout{display:block;min-height:0;max-width:860px}
.account-embedded .account-panel{box-shadow:none;width:100%;padding:25px 35px}
.account-embedded .account-showcase,.account-embedded .account-back,.account-embedded .account-mark{display:none!important}
@media(max-width:800px){.account-layout{display:block}.account-showcase{margin-top:25px;min-height:440px;padding:35px}.account-page{padding:16px}.account-embedded{padding:0!important}}
@media(prefers-reduced-motion:reduce){.showcase-story,.showcase-orb{animation:none!important}}

/* Single adaptive theme symbol. Moon prompts dark mode; sun prompts light mode. */
.theme-toggle .theme-moon{display:block!important;opacity:1!important}
.theme-toggle .theme-sun{display:none!important}
[data-theme="dark"] .theme-toggle .theme-moon{display:none!important}
[data-theme="dark"] .theme-toggle .theme-sun{display:block!important;opacity:1!important}
/* Dashboard-native account settings; no embedded frame or cross-site auth. */
.manage-account-panel{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.manage-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
.manage-account-grid section{min-width:0}.manage-account-grid h2{font-size:19px;margin:6px 0 10px}.manage-account-grid p,.manage-local-note{color:var(--muted);font-size:13px}
.manage-account-grid form{display:grid;gap:11px;margin:18px 0}.manage-account-grid label{font-size:13px;font-weight:650}
.manage-account-grid input,.manage-account-grid select{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink)}
.manage-account-grid button{border:0;border-radius:9px;background:var(--purple);color:#fff;padding:12px 16px;font-weight:700;cursor:pointer}
.manage-account-grid button:disabled{opacity:.65;cursor:wait}#manage-status{font-size:13px;color:var(--purple)}
@media(max-width:750px){.manage-account-panel{padding:20px}.manage-account-grid{grid-template-columns:1fr;gap:20px}}


/* Mobile workspace: real header first, compact swipeable navigation second. */
@media(max-width:850px){
  .shell{display:flex;flex-direction:column;min-width:0}
  .workspace{display:contents}
  .topbar{order:1;position:relative;z-index:11;width:100%;min-width:0;min-height:64px;height:auto;padding:10px 16px;gap:10px;justify-content:space-between}
  .sidebar{order:2;z-index:1;width:100%;min-width:0;overflow:visible;padding:8px 12px;background:var(--white)}
  .nav-items{width:100%;min-width:0;display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding:1px 0 3px}
  .nav-items::-webkit-scrollbar{display:none}
  .nav-items .nav-item{width:auto;min-height:42px;flex:0 0 auto;scroll-snap-align:start;white-space:nowrap;padding:9px 11px;gap:7px;font-size:12px;border-radius:10px}
  .nav-items .nav-icon{width:17px;flex:0 0 17px;font-size:15px}
  .nav-items .nav-count{margin-left:3px;font-size:10px}
  .mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink);font-size:17px;text-decoration:none;line-height:1.1}
  .mobile-brand strong{white-space:nowrap;letter-spacing:-.7px}
  .mobile-brand .brand-mark{width:35px;height:35px;flex:0 0 35px}
  .mobile-brand:focus-visible{outline:2px solid var(--purple);outline-offset:4px;border-radius:5px}
  .top-right{min-width:0;gap:11px}
  .content{order:3;width:100%;min-width:0;flex:1 0 auto;padding:28px 18px 36px}
  .content.account-open{padding:24px 18px 36px}
  #account-workspace{width:100%;min-width:0}
  #account-workspace h1{font-size:clamp(25px,5vw,30px);line-height:1.18;overflow-wrap:break-word}
  #account-workspace>p{font-size:13px;line-height:1.55;margin:10px 0 19px}
  .manage-account-panel{padding:20px}
  .manage-account-grid{grid-template-columns:1fr;gap:23px}
  .manage-account-grid h2{font-size:18px}
  .manage-account-grid input,.manage-account-grid select{font-size:16px}
}
@media(max-width:600px){
  /* A timestamp must not consume half of a phone-width account header. */
  .header-refreshed{display:none}
  .theme-toggle{flex:0 0 38px;width:38px;height:38px;border-radius:50%;padding:0;justify-content:center}
  .profile-toggle{width:38px;height:38px}
  #profile-greeting:not([hidden]){max-width:95px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .top-right{gap:9px}
}
@media(max-width:390px){
  .topbar{padding:9px 12px;gap:6px}
  .mobile-brand{font-size:15px;gap:6px}
  .mobile-brand .brand-mark{width:31px;height:31px;flex-basis:31px;font-size:19px}
  #profile-greeting:not([hidden]){max-width:66px;font-size:11px}
  .top-right{gap:6px}
  .content.account-open{padding:21px 12px 32px}
  .manage-account-panel{padding:16px}
}


/* Mobile hamburger navigation: a compact pill instead of horizontal news tabs. */
.mobile-menu-toggle{display:none}
.mobile-menu-backdrop:not([hidden]){display:none}
@media(max-width:850px){
  .sidebar{position:relative;z-index:1;padding:9px 12px;border-bottom:0}
  .sidebar.mobile-nav-open{z-index:40}
  .mobile-menu-toggle{
    display:flex;align-items:center;gap:12px;min-width:0;width:min(100%,340px);
    min-height:60px;padding:7px 12px 7px 7px;border:1px solid var(--line);
    border-radius:22px;background:var(--white);color:var(--ink);text-align:left;
    box-shadow:0 4px 16px rgba(38,27,67,.065)
  }
  .mobile-menu-toggle:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
  .mobile-menu-icon{
    flex:0 0 45px;width:45px;height:45px;display:grid;place-items:center;
    border:1px solid var(--line);border-radius:16px;background:var(--purple-light);color:var(--purple)
  }
  .mobile-menu-icon svg{width:26px;height:26px}
  .mobile-menu-caption{flex:1;min-width:0;font-size:11px;line-height:1.25;color:var(--muted);font-weight:600}
  .mobile-menu-caption strong{display:block;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-menu-caret{font-size:20px;line-height:1;color:var(--purple);transition:transform .16s ease}
  .mobile-nav-open .mobile-menu-caret{transform:rotate(180deg)}
  .sidebar .nav-items{
    position:absolute;top:calc(100% + 5px);left:12px;right:auto;z-index:43;
    width:min(340px,calc(100vw - 24px));max-height:min(67vh,530px);overflow-y:auto;overflow-x:hidden;
    padding:10px;display:flex;flex-direction:column;gap:3px;
    border:1px solid var(--line);border-radius:18px;background:var(--white);
    box-shadow:0 20px 45px rgba(26,17,47,.19);visibility:hidden;opacity:0;
    transform:translateY(-6px);pointer-events:none;scroll-snap-type:none;
    transition:opacity .15s ease,transform .15s ease,visibility .15s ease
  }
  .sidebar.mobile-nav-open .nav-items{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
  .sidebar .nav-items .nav-item{
    display:flex;flex:0 0 auto;min-height:45px;width:100%;padding:11px 13px;
    align-items:center;gap:11px;text-align:left;white-space:normal;font-size:13px;
    border-radius:11px;scroll-snap-align:none
  }
  .sidebar .nav-items .nav-icon{width:23px;flex:0 0 23px;font-size:17px}
  .sidebar .nav-items .nav-count{margin-left:auto;font-size:12px}
  .mobile-menu-backdrop:not([hidden]){
    display:block;position:fixed;inset:0;z-index:30;cursor:default;
    border:0;border-radius:0;padding:0;background:rgba(13,11,23,.30)
  }
  body.mobile-menu-open{overflow:hidden}
}
@media(max-width:390px){
  .mobile-menu-toggle{min-height:54px;border-radius:19px}
  .mobile-menu-icon{width:41px;height:41px;flex-basis:41px;border-radius:14px}
}
@media(prefers-reduced-motion:reduce){
  .sidebar .nav-items,.mobile-menu-caret{transition:none}
}

/* Change-password controls match profile actions on both account surfaces. */
.account-settings #account-password-form button{
  width:100%;border:0;border-radius:9px;padding:12px 16px;
  background:#6c48ca;color:#fff;font-weight:700;cursor:pointer
}
.account-settings #account-password-form button:disabled{opacity:.65;cursor:wait}
#account-settings-status{min-height:18px}
.manage-account-grid input[type="password"]{min-width:0}




/* Phase 4: manual X content studio — single post or editable thread. */
.studio-format{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 15px}
.studio-format button{padding:9px 12px;border:1px solid #e5def2;border-radius:8px;
  background:#fff;color:#705d88;font-weight:700;font-size:11px;cursor:pointer}
.studio-format button.active{background:#ebe2fb;border-color:#a88adf;color:#6240ac}
.studio-format button:focus-visible,.studio-thread-copy:focus-visible,
.studio-thread-reviewed:focus-visible,.studio-thread-input:focus-visible{
  outline:2px solid #9877d4;outline-offset:2px}
.studio-thread{min-width:0}
.studio-thread-part{border:1px solid #e8e2f2;background:#fff;border-radius:10px;
  padding:11px 12px;margin:12px 0}
.studio-thread-part label{display:block;font-size:11px;font-weight:700;color:#6b548c}
.studio-thread-input{box-sizing:border-box;display:block;margin-top:8px;width:100%;min-height:100px;
  border:1px solid #ddd4ec;border-radius:8px;background:#fff;color:#332a44;
  font-size:12px;line-height:1.65;padding:10px;resize:vertical;overflow-wrap:anywhere}
.studio-thread-part-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:9px}
.studio-thread-length{font-size:11px;color:#867998;font-variant-numeric:tabular-nums}
.studio-thread-length.over{color:#bb463a;font-weight:700}
.studio-thread-copy{padding:8px 12px;border:0;border-radius:7px;background:#7048c8;
  color:#fff;font-weight:700;font-size:11px;cursor:pointer}
.studio-thread-copy:disabled{background:#e9e2f1;color:#8e849d;cursor:not-allowed}
.studio-thread-review{display:flex;align-items:flex-start;gap:10px;padding:12px 0;
  color:#5c5269;font-size:11px;line-height:1.55;cursor:pointer}
.studio-thread-review input{margin-top:3px;flex:0 0 auto;accent-color:#7048c8}
.studio-thread-status{font-size:11px;color:#6f5d87;line-height:1.6;margin:0 0 4px}
[data-theme="dark"] .studio-format button,[data-theme="dark"] .studio-thread-part,
[data-theme="dark"] .studio-thread-input{background:#24212d;color:#eee8f4;border-color:#493b61}
[data-theme="dark"] .studio-format button.active{background:#413059;color:#efe0ff}
[data-theme="dark"] .studio-thread-review,[data-theme="dark"] .studio-thread-status,
[data-theme="dark"] .studio-thread-part label{color:#d4c6e8}
@media(max-width:650px){
  .studio-format{display:grid;grid-template-columns:1fr 1fr}
  .studio-format button{min-width:0}
  .studio-thread-part{padding:10px}
  .studio-thread-input{font-size:16px}
}


/* Editorial Review Desk — entirely within My Workflow, no extra sidebar item. */
.review-desk{margin:8px 0 26px;min-width:0}
.review-desk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 25px;
  border:1px solid var(--line);border-radius:15px;background:var(--white)}
.review-desk-head h3{font-family:Georgia,serif;font-size:24px;line-height:1.25;margin:6px 0;color:var(--ink)}
.review-desk-head p{font-size:12px;color:var(--muted);line-height:1.6;margin:4px 0 0;max-width:680px}
.review-desk-head button{flex:0 0 auto}
.review-desk-toggle{padding:9px 13px;border:1px solid var(--purple);background:var(--purple);
  color:white;border-radius:9px;font-size:11px;font-weight:700;cursor:pointer}
.review-desk-toggle[aria-expanded="true"]{background:var(--white);color:var(--purple)}
.review-desk-toggle:focus-visible,.review-actions button:focus-visible,
.review-select:focus-visible,.review-text:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.toolbar.review-mode .search-wrap,.toolbar.review-mode .filters,.toolbar.review-mode [data-stage]{display:none}
.review-desk-summary{color:var(--muted);font-size:12px;margin:17px 0}
.review-desk-empty{padding:28px 18px;background:var(--white);color:var(--muted);
  border:1px dashed var(--line);border-radius:12px;font-size:13px}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.review-column{background:var(--white);border:1px solid var(--line);border-radius:14px;
  padding:19px;min-width:0;box-shadow:var(--shadow)}
.review-select-label{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.review-select{display:block;width:100%;min-width:0;margin:7px 0 16px;
  border:1px solid var(--line);border-radius:8px;background:var(--white);
  color:var(--ink);padding:12px;font-size:13px}
.review-title{font-family:Georgia,serif;font-size:17px;color:var(--ink);line-height:1.4;margin:0 0 7px}
.review-publisher{font-size:12px;color:var(--muted);margin:0 0 7px}
.review-source{font-size:12px;font-weight:700;color:var(--purple);display:inline-block;margin:0 0 12px}
.review-stage{display:block;font-size:11px;color:var(--muted);margin:0 0 16px}
.review-text-label{display:block;font-weight:700;color:var(--ink);font-size:12px}
.review-text{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:195px;
  padding:12px;margin-top:8px;background:var(--white);color:var(--ink);
  border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.65;
  resize:vertical;overflow-wrap:anywhere}
.review-meter{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:9px 0 14px}
.review-length,.review-draft-state{font-size:11px;color:var(--muted)}
.review-length.over{color:#c24134;font-weight:700}
.review-confirm-label{display:flex;align-items:flex-start;gap:10px;font-size:12px;
  color:var(--ink);line-height:1.5;cursor:pointer}
.review-confirm-label input{accent-color:var(--purple);margin-top:3px}
.review-validation{min-height:18px;font-size:11px;color:var(--muted);line-height:1.5}
.review-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.review-actions button{border:1px solid var(--line);background:var(--white);color:var(--ink);
  border-radius:8px;font-size:11px;font-weight:700;min-height:39px;padding:9px 12px;cursor:pointer}
.review-actions .review-ready{color:var(--purple);border-color:var(--purple)}
.review-actions .review-copy{background:var(--purple);color:white;border-color:var(--purple)}
.review-actions button:disabled{opacity:.48;cursor:not-allowed}
.review-disclaimer{font-size:11px;color:var(--muted);line-height:1.55;margin:17px 0}
.review-add{padding:8px 11px;border:1px solid var(--purple);background:var(--white);
  color:var(--purple);font-size:11px;font-weight:700;border-radius:8px;cursor:pointer}
.review-add:hover{background:var(--purple-light)}
@media(max-width:900px){.review-grid{grid-template-columns:1fr}.review-desk-head{padding:18px}}
@media(max-width:600px){.review-column{padding:15px}.review-desk-head{flex-direction:column;gap:13px}
  .review-text{font-size:16px;min-height:160px}.review-actions button{flex:1 0 auto}}


/* Topic & Perspective Writer: separate user-written general topics from news facts. */
.topic-writer{margin:8px 0 28px;min-width:0}
.topic-writer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:16px}
.topic-writer-form,.topic-writer-preview{min-width:0;padding:22px;border:1px solid var(--line);
  background:var(--white);border-radius:15px;box-shadow:var(--shadow)}
.topic-writer label:not(.review-confirm-label){display:block;color:var(--ink);font-size:12px;
  font-weight:700;margin:0 0 8px}
.topic-writer-form input,.topic-writer-form select,.topic-writer-form textarea,
.topic-writer-preview textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;
  border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--white);
  font-size:14px;line-height:1.6;margin-bottom:18px}
.topic-writer-form textarea,.topic-writer-preview textarea{resize:vertical;min-height:118px}
.topic-writer-preview textarea{min-height:280px}
.topic-writer button{font:inherit;font-weight:700;border-radius:9px;
  min-height:42px;padding:10px 16px;cursor:pointer}
#topic-writer-build,#topic-writer-copy{color:#fff;background:var(--purple);border:1px solid var(--purple)}
#topic-writer-copy:disabled{opacity:.45;cursor:not-allowed}
#topic-writer-clear{background:var(--white);border:1px solid var(--line);color:var(--ink)}
.topic-writer-note,.topic-writer #topic-writer-status{color:var(--muted);font-size:12px;line-height:1.65}
.topic-writer-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.topic-writer-actions button{flex:1 1 120px}
.topic-writer #topic-writer-length{font-size:12px;color:var(--muted)}
.topic-writer #topic-writer-length.over{color:#c24134;font-weight:700}
.topic-writer .review-confirm-label{margin:12px 0;color:var(--ink)}
.topic-writer input:focus-visible,.topic-writer textarea:focus-visible,
.topic-writer select:focus-visible,.topic-writer button:focus-visible{
  outline:2px solid var(--purple);outline-offset:2px}
@media(max-width:900px){.topic-writer-grid{grid-template-columns:1fr}}
@media(max-width:600px){.topic-writer-form,.topic-writer-preview{padding:16px}
  .topic-writer-form input,.topic-writer-form select,.topic-writer-form textarea,
  .topic-writer-preview textarea{font-size:16px}}
