@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#1c2b25;--muted:#7a8981;--line:#e5eae6;--paper:#f6f8f6;--white:#fff;--green:#2e6650;--green-dark:#234b3b;--mint:#e9f3ed;--amber:#a9752d;--shadow:0 12px 34px rgba(30,52,40,.055)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b4d7c3;outline-offset:2px}.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;flex:0 0 252px;background:#17231f;color:#dce7df;padding:24px 16px 16px;display:flex;flex-direction:column;min-height:100vh}.brand-row{display:flex;align-items:center;gap:11px;padding:0 9px 28px}.brand-mark{width:39px;height:39px;border:1px solid #73917f;border-radius:12px;display:grid;place-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:14px;color:#fff;letter-spacing:-1px}.brand-mark span{color:#9ac8ac}.brand-title{font-family:Manrope,sans-serif;font-weight:700;font-size:13px;letter-spacing:-.2px}.brand-subtitle{font-size:9px;letter-spacing:1.7px;color:#8ea598;margin-top:4px}.primary-button{border:0;background:var(--green);color:#fff;border-radius:9px;padding:11px 15px;font-weight:700;display:inline-flex;gap:9px;align-items:center;justify-content:center;transition:.18s}.primary-button:hover{background:var(--green-dark);transform:translateY(-1px)}.new-article{width:100%;margin-bottom:29px}.new-article span{font-size:19px;font-weight:400}.side-label{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#789084;padding:0 11px 10px}.nav-item{width:100%;border:0;background:transparent;color:#afc0b5;text-align:left;display:flex;align-items:center;gap:12px;padding:11px;border-radius:8px;margin-bottom:4px;font-size:12px}.nav-item>span:first-child{width:17px;text-align:center;font-size:16px;color:#8da99a}.nav-item:hover{background:#23362d;color:white}.nav-item.active{background:#2a4236;color:#fff;font-weight:700}.nav-item.active>span:first-child{color:#b6dfc5}.nav-count{margin-left:auto;background:#3b5547;color:#d8e8dc;padding:2px 7px;border-radius:20px;font-size:10px}.side-divider{height:1px;background:#304239;margin:20px 4px 23px}.field-label{display:block;font-size:11px;font-weight:700;color:#58675f;margin:0 0 8px}.side-select{width:100%;padding:10px 9px;border-radius:7px;background:#22352b;color:#e3eee6;border:1px solid #3a5144;font-size:11px}.project-note{display:flex;gap:9px;align-items:center;padding:15px 6px}.status-dot,.chip-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#80bd95;flex:0 0 auto}.project-note strong,.project-note small{display:block}.project-note strong{font-size:11px}.project-note small{font-size:10px;color:#93a89a;margin-top:3px}.sidebar-footer{margin-top:auto;padding:15px 6px 0;color:#81958a;font-size:10px;border-top:1px solid #304239}.local-dot{display:inline-block;width:6px;height:6px;background:#83c89a;border-radius:50%;margin-right:5px}.footer-sep{padding:0 4px;color:#51675a}.main-area{min-width:0;flex:1}.topbar{height:65px;background:rgba(255,255,255,.83);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.breadcrumbs{display:flex;align-items:center;gap:11px;color:#89958e;font-size:11px}.breadcrumbs strong{color:#34483d;font-weight:700}.crumb-slash{color:#c5cec8}.topbar-right{display:flex;align-items:center;gap:18px}.save-status{font-size:10px;color:#6f8b78}.save-status:first-letter{color:#5a9d71}.avatar{width:30px;height:30px;border-radius:10px;border:1px solid #d8e5dc;background:#eaf3ed;color:#38654d;font-size:10px;font-weight:800}.mobile-menu{display:none}.view{display:none;max-width:1500px;margin:0 auto;padding:32px 35px 0}.active-view{display:block}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#7a9a85;margin-bottom:10px}.page-heading h1{font-family:Manrope,sans-serif;font-size:30px;line-height:1.15;letter-spacing:-1.2px;margin:0 0 9px;font-weight:800}.page-heading p{margin:0;color:#829087;font-size:12px}.heading-chip{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #dce7df;border-radius:9px;background:#fff;color:#587361;font-size:10px;white-space:nowrap;margin-bottom:2px}.context-strip{display:flex;align-items:center;gap:13px;padding:13px 16px;background:#eaf3ed;border:1px solid #dbe9df;border-radius:11px;margin-bottom:23px}.context-icon{width:34px;height:34px;border-radius:10px;background:#d4e8da;color:#386c4f;display:grid;place-items:center;font-size:18px}.context-copy{display:flex;flex-direction:column;gap:4px;flex:1}.context-copy strong{font-size:12px}.context-copy span{font-size:10px;color:#70857a}.text-button{border:0;background:transparent;color:#47785b;font-size:11px;font-weight:700;padding:7px}.text-button:hover{text-decoration:underline}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(310px,.92fr);gap:20px;align-items:start}.editor-column,.assistant-column{display:flex;flex-direction:column;gap:17px;min-width:0}.panel{background:var(--white);border:1px solid #e8ede9;border-radius:12px;box-shadow:var(--shadow)}.article-panel{padding:20px 22px 0}.panel-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.panel-kicker{font-size:9px;letter-spacing:1.6px;font-weight:800;color:#89968f;margin-right:10px}.draft-pill{background:#f7eedf;color:#9d7439;border-radius:5px;padding:4px 7px;font-size:8px;font-weight:800;letter-spacing:.7px}.icon-button{width:32px;height:32px;border:1px solid #e3eae5;background:white;border-radius:8px;color:#708078;font-size:16px;display:grid;place-items:center}.icon-button:hover{background:#f3f7f4}.icon-button.small{border:0;width:26px;height:26px}.title-input{width:100%;border:0;border-bottom:1px solid #e8eee9;padding:5px 0 17px;margin-bottom:20px;font-family:Manrope,sans-serif;font-weight:700;font-size:20px;letter-spacing:-.5px;color:#22352b;outline:none!important}.title-input::placeholder{color:#c1cbc4}.goal-input{width:100%;border:1px solid #e3ebe5;background:#fbfcfb;border-radius:8px;padding:12px;resize:vertical;min-height:61px;color:#35483c;font-size:12px;line-height:1.6;outline:none}.goal-input::placeholder,.article-body::placeholder{color:#a7b2aa}.optional{font-size:8px;color:#aab4ad;letter-spacing:.8px;margin-left:5px}.article-meta-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;margin:21px -22px 0;padding:15px 22px;border-top:1px solid #edf0ed;background:#fcfdfc;border-radius:0 0 12px 12px}.article-meta-row div{display:flex;flex-direction:column;gap:5px}.meta-label{font-size:8px;letter-spacing:1px;color:#9ba69f;font-weight:700}.article-meta-row strong{font-size:10px;color:#4a5d50;font-weight:600}.workflow-panel,.content-panel{padding:21px 22px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-heading h2,.assistant-header h2{font-family:Manrope,sans-serif;font-size:14px;letter-spacing:-.3px;margin:0 0 5px}.section-heading p,.assistant-header p{margin:0;font-size:10px;color:#8a978f}.progress-label{font-size:10px;color:#91a097}.workflow-steps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:21px 0 18px}.step-button{min-width:0;border:0;background:transparent;padding:0;color:#a3aea6;text-align:center}.step-number{height:30px;width:30px;display:grid;place-items:center;border:1px solid #e0e7e1;border-radius:50%;margin:0 auto 8px;font-size:10px;background:#fff}.step-name{font-size:8px;line-height:1.3;display:block;white-space:normal}.step-button.active .step-number{background:#2e6650;color:#fff;border-color:#2e6650;box-shadow:0 3px 9px #2e665026}.step-button.active .step-name{color:#2f5d44;font-weight:700}.step-button.complete .step-number{background:#e6f1e9;border-color:#cde1d2;color:#3d7652}.stage-detail{display:flex;align-items:center;gap:12px;padding:14px;background:#f7faf7;border:1px solid #eaf0eb;border-radius:9px}.stage-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e4f0e7;color:#3f7654;font-size:17px;flex:0 0 auto}.stage-copy{flex:1;min-width:0}.stage-copy strong{font-size:11px}.stage-copy p{font-size:10px;line-height:1.5;color:#87958b;margin:5px 0 0}.outline-button{border:1px solid #d9e5dc;background:#fff;border-radius:7px;padding:9px 11px;color:#426d51;font-size:10px;font-weight:700;white-space:nowrap}.outline-button:hover{background:#f1f7f2}.outline-button span{margin-left:8px}.word-badge{background:#f1f6f2;color:#68806f;border-radius:6px;padding:6px 8px;font-size:9px}.document-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eee9;margin-bottom:0}.doc-tabs{display:flex;gap:17px}.doc-tab{border:0;background:transparent;color:#8e9a92;padding:10px 1px 12px;font-size:10px;position:relative}.doc-tab.active{color:#37664a;font-weight:700}.doc-tab.active:after{content:"";height:2px;background:#3e7955;position:absolute;bottom:-1px;left:0;right:0;border-radius:2px}.doc-pane{padding-top:13px}.hidden{display:none!important}.article-body{width:100%;min-height:250px;border:1px solid #e4ebe5;background:#fcfdfc;border-radius:8px;padding:15px;resize:vertical;font-size:12px;line-height:1.8;color:#35483d;outline:none}.article-body:focus,.goal-input:focus{border-color:#a6cbb1}.editor-foot{display:flex;justify-content:space-between;gap:10px;color:#a0aaa3;font-size:9px;padding:10px 2px 0}.metadata-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.metadata-grid input,.metadata-grid textarea,.profile-form input,.profile-form select,.profile-form textarea,.library-tools input,.library-tools select{width:100%;border:1px solid #e1e9e3;background:#fcfdfc;border-radius:7px;padding:10px;color:#34483b;font-size:11px;outline:none}.metadata-grid textarea,.profile-form textarea{resize:vertical}.full-field{grid-column:1/-1}.assistant-panel{padding:20px 18px 14px}.assistant-header{display:flex;align-items:center;gap:10px}.assistant-orb{height:36px;width:36px;display:grid;place-items:center;border-radius:12px;background:#e4f1e8;color:#37704d;font-size:19px}.assistant-header>div:nth-child(2){flex:1}.assistant-header h2{margin-bottom:4px}.prototype-tag{font-size:7px;letter-spacing:1px;color:#8a9d90;background:#f1f5f2;border-radius:4px;padding:5px 6px}.chat-context{display:flex;gap:7px;align-items:center;background:#f7faf7;border:1px solid #e9efea;border-radius:7px;padding:9px 10px;margin:18px 0 13px;font-size:9px;color:#89978e}.chat-context strong{color:#52695a;font-weight:700}.context-lock{color:#789985}.chat-messages{display:flex;flex-direction:column;gap:13px;max-height:330px;overflow-y:auto;padding:2px 1px 13px}.message{display:flex;gap:8px;align-items:flex-start}.message-avatar{width:24px;height:24px;flex:0 0 auto;border-radius:8px;background:#e5f1e8;color:#3a7951;display:grid;place-items:center;font-size:13px}.message-bubble{min-width:0;max-width:94%;background:#f6f8f6;border:1px solid #edf0ed;border-radius:3px 10px 10px 10px;padding:10px 11px}.message-bubble p{margin:0;font-size:10px;line-height:1.7;color:#5f7065;white-space:pre-wrap;overflow-wrap:anywhere}.message-time{display:block;font-size:8px;color:#a0aaa3;margin-top:7px}.user-message{justify-content:flex-end}.user-message .message-bubble{background:#eaf3ed;border-color:#dce9df;border-radius:10px 3px 10px 10px}.user-message .message-avatar{display:none}.user-message .message-bubble p{color:#3c6049}.suggestion-wrap{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0;border-top:1px solid #edf1ed}.suggestion{border:1px solid #e0e9e2;background:#fff;border-radius:6px;padding:7px 8px;color:#587261;font-size:9px;text-align:left}.suggestion:hover{border-color:#b9d5c1;background:#f5faf6}.chat-composer{border:1px solid #dfe8e1;border-radius:9px;padding:8px 9px 7px;background:#fff}.chat-composer textarea{width:100%;resize:vertical;min-height:40px;max-height:120px;border:0;outline:none!important;font-size:10px;line-height:1.6;color:#34483b}.chat-composer textarea::placeholder{color:#a4afa7}.composer-bottom{display:flex;justify-content:space-between;align-items:center;color:#a1aba4;font-size:8px}.send-button{width:27px;height:27px;border:0;background:#2e6650;color:#fff;border-radius:7px;font-size:17px;line-height:1}.send-button:hover{background:#234b3b}.demo-notice{display:flex;gap:7px;align-items:flex-start;font-size:9px;line-height:1.55;color:#9a8a6b;margin-top:13px}.demo-notice span{font-size:12px}.quick-panel{padding:17px 18px}.quick-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.quick-heading h3{font-family:Manrope,sans-serif;font-size:12px;margin:0}.shield-icon{color:#649174;font-size:18px}.guardrail{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-top:1px solid #eff2ef}.guardrail-check{height:18px;width:18px;display:grid;place-items:center;background:#e8f3eb;color:#4e8a61;border-radius:6px;font-size:10px;flex:0 0 auto}.guardrail strong,.guardrail small{display:block}.guardrail strong{font-size:10px;margin:1px 0 4px}.guardrail small{font-size:9px;color:#8c9990}.main-footer{display:flex;justify-content:space-between;gap:12px;padding:27px 0 20px;margin-top:6px;color:#a0aaa3;font-size:9px}.library-panel{padding:18px}.library-tools{display:flex;gap:10px;margin-bottom:16px}.library-tools input{max-width:420px}.library-tools select{max-width:180px}.library-list{display:flex;flex-direction:column}.library-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 95px 90px;gap:12px;align-items:center;padding:15px 5px;border-top:1px solid #edf1ed}.library-title{font-size:12px;font-weight:700;color:#3b5043}.library-subtitle{font-size:9px;color:#95a098;margin-top:5px}.library-status{font-size:9px;color:#97713c;background:#f8f1e4;border-radius:5px;padding:5px 7px;width:max-content}.library-date{font-size:9px;color:#929e95}.row-actions{display:flex;gap:5px;justify-content:flex-end}.mini-action{border:1px solid #e1e9e3;background:white;border-radius:6px;padding:6px 7px;font-size:9px;color:#54735f}.empty-state{padding:38px 10px;text-align:center;color:#8c9a90;font-size:11px}.profile-intro{display:flex;align-items:flex-start;gap:13px;padding:18px;background:#eaf3ed;border:1px solid #dbe9df;border-radius:11px;margin-bottom:20px}.profile-symbol{width:37px;height:37px;border-radius:10px;background:#d4e8da;display:grid;place-items:center;color:#3e7653;font-size:19px;flex:0 0 auto}.profile-intro strong{font-size:12px}.profile-intro p{margin:6px 0 0;color:#70857a;font-size:11px;line-height:1.6;max-width:750px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.profile-card{background:#fff;border:1px solid #e5ece6;border-radius:11px;padding:19px;box-shadow:var(--shadow)}.profile-card-top{display:flex;align-items:flex-start;gap:11px}.profile-logo{height:39px;width:39px;display:grid;place-items:center;background:#eaf3ed;color:#3e7653;border-radius:10px;font-weight:800;font-size:11px}.profile-card-main{flex:1;min-width:0}.profile-card h3{font-family:Manrope,sans-serif;font-size:14px;margin:1px 0 5px}.profile-card .domain{font-size:10px;color:#91a096}.profile-card .profile-niche{font-size:11px;color:#526b5b;line-height:1.6;margin:15px 0 7px}.profile-card .profile-audience{font-size:10px;color:#8c9990;line-height:1.6;margin:0 0 15px}.profile-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1ed;padding-top:12px}.profile-card-footer span{font-size:9px;color:#8b9b8f}.profile-card-footer button{border:1px solid #dfe8e1;border-radius:6px;background:white;padding:7px 10px;color:#477457;font-size:9px;font-weight:700}.profile-editor{padding:22px;margin-top:20px}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.profile-form .field-label{margin-bottom:7px}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:5px}.roadmap-list{display:flex;flex-direction:column;gap:10px}.roadmap-item{display:flex;align-items:center;gap:15px;background:white;border:1px solid #e5ece6;border-radius:10px;padding:15px 18px}.roadmap-number{width:38px;height:38px;border-radius:10px;background:#eef4ef;display:grid;place-items:center;color:#497657;font-size:10px;font-weight:800;flex:0 0 auto}.roadmap-item.current .roadmap-number{background:#2e6650;color:white}.roadmap-copy{flex:1}.roadmap-copy strong{font-size:11px}.roadmap-copy p{margin:5px 0 0;color:#8a988e;font-size:10px;line-height:1.5}.roadmap-status{font-size:8px;letter-spacing:.7px;font-weight:800;padding:6px 8px;border-radius:5px;background:#f0f4f1;color:#87978b}.roadmap-item.current .roadmap-status{background:#e6f2e9;color:#39704d}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#1c3025;color:#fff;padding:11px 16px;border-radius:9px;font-size:11px;box-shadow:0 8px 25px #14271d26;transition:.2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}.export-dialog{border:1px solid #e0e9e2;border-radius:15px;width:min(560px,calc(100% - 28px));padding:22px;box-shadow:0 25px 90px #10271c38;color:var(--ink)}.export-dialog::backdrop{background:#15251dcc;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between}.dialog-header h2{font-family:Manrope,sans-serif;font-size:21px;margin:0}.dialog-copy{color:#87958b;font-size:11px;line-height:1.6}.export-options{display:flex;flex-direction:column;gap:8px;margin:17px 0}.export-option{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e3ebe5;background:#fff;border-radius:9px;padding:12px}.export-option:hover{background:#f6faf7;border-color:#c5ddcb}.export-option>span{width:43px;height:39px;border-radius:8px;background:#eaf3ed;color:#477457;display:grid;place-items:center;font-size:9px;font-weight:800}.export-option div{flex:1}.export-option strong,.export-option small{display:block}.export-option strong{font-size:11px}.export-option small{font-size:9px;color:#8c9990;margin-top:4px}.export-option>b{color:#73917d}.export-result{border-top:1px solid #e8eee9;padding-top:15px}.result-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:11px}.export-result textarea{width:100%;border:1px solid #dfe8e1;border-radius:8px;padding:10px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;line-height:1.5;resize:vertical}.download-button{margin-top:10px}
@media(max-width:1120px){.view{padding-left:23px;padding-right:23px}.topbar{padding:0 23px}.workspace-grid{grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:14px}.workflow-panel,.content-panel{padding:18px}.article-panel{padding:18px 18px 0}.article-meta-row{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.stage-detail{flex-wrap:wrap}.stage-copy{min-width:65%}.stage-detail .outline-button{margin-left:46px}.step-name{font-size:7px}}
@media(max-width:850px){.sidebar{position:fixed;left:-270px;top:0;bottom:0;z-index:15;transition:left .22s;box-shadow:15px 0 40px #14271c18}.sidebar.open{left:0}.mobile-menu{display:grid;margin-right:9px}.topbar{justify-content:flex-start;padding:0 16px}.topbar-right{margin-left:auto}.view{padding:25px 16px 0}.page-heading h1{font-size:26px}.workspace-grid{grid-template-columns:1fr}.assistant-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);align-items:start}.assistant-panel{min-width:0}.workflow-steps{gap:3px}.step-name{font-size:8px}.main-footer{flex-wrap:wrap}.profile-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.breadcrumbs{font-size:10px;gap:7px}.save-status{display:none}.page-heading{align-items:flex-start;flex-direction:column;gap:13px}.page-heading h1{font-size:25px}.heading-chip{margin:0}.context-strip{align-items:flex-start;padding:11px}.context-copy span{line-height:1.5}.context-strip .text-button{font-size:9px;padding:5px}.article-panel{padding:16px 15px 0}.article-meta-row{margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px;gap:8px}.title-input{font-size:18px}.workflow-panel,.content-panel{padding:16px 14px}.workflow-steps{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:14px}.step-name{font-size:9px}.stage-detail{align-items:flex-start}.stage-copy{min-width:calc(100% - 50px)}.stage-detail .outline-button{margin-left:46px}.assistant-column{display:flex}.assistant-panel{padding:16px 14px}.chat-messages{max-height:270px}.quick-panel{display:none}.metadata-grid{grid-template-columns:1fr}.full-field{grid-column:auto}.profile-grid{grid-template-columns:1fr}.profile-form{grid-template-columns:1fr}.profile-form .full-field,.form-actions{grid-column:auto}.library-tools{flex-direction:column}.library-tools input,.library-tools select{max-width:none}.library-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.library-row .library-date{display:none}.row-actions{grid-column:2;grid-row:1}.library-row .library-status{grid-column:1;grid-row:2}.library-row .library-title-wrap{grid-column:1;grid-row:1}.roadmap-item{gap:10px;padding:12px}.roadmap-status{font-size:7px}.main-footer{font-size:8px;gap:8px}.dialog-header h2{font-size:19px}}

.bible-divider{grid-column:1/-1;border-top:1px solid #e4ece5;padding-top:15px;margin-top:4px;color:#4f7b5d;font-size:9px;font-weight:800;letter-spacing:1px}.profile-editor .profile-form textarea{min-height:58px}.profile-editor .profile-form input,.profile-editor .profile-form select,.profile-editor .profile-form textarea{background:#fcfdfc}.profile-card-footer span{max-width:65%;line-height:1.5}

/* Build 03 library management */
.library-tools{flex-wrap:wrap}.library-tools input{flex:1 1 220px;min-width:180px}.library-tools select{flex:0 1 170px}.library-toolbar-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-3px 0 12px;color:#849388;font-size:10px}.library-toolbar-actions>div{display:flex;gap:7px;flex-wrap:wrap}.library-toolbar-actions .outline-button{font-size:9px;padding:8px 10px}.library-row{grid-template-columns:minmax(0,1fr) 70px 90px minmax(210px,auto)}.row-actions{flex-wrap:wrap}.mini-action{cursor:pointer}.archive-article{color:#876b40}.archived-section{margin-top:18px;border-top:1px solid #e8eee9;padding-top:12px;color:#728378;font-size:11px}.archived-section summary{cursor:pointer;font-weight:700;padding:8px 0}.archived-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 4px;border-top:1px solid #eff2ef}.archived-row span{overflow-wrap:anywhere}.library-status{white-space:nowrap}@media(max-width:900px){.library-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.library-row .library-title-wrap{grid-column:1;grid-row:1}.library-row .library-status{grid-column:1;grid-row:2}.library-row .library-date{display:block;grid-column:2;grid-row:2;text-align:right}.library-row .row-actions{grid-column:1/-1;grid-row:3;justify-content:flex-start}.library-toolbar-actions{align-items:flex-start;flex-direction:column}}

/* Build 04: Research workspace */
.research-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:18px;align-items:start;margin:18px 0}.research-editor,.research-summary,.source-list-panel{padding:22px}.source-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.source-form .full-field{grid-column:1/-1}.source-form input,.source-form select,.source-form textarea,#claimCheckNotes{width:100%;border:1px solid var(--line,#dfe5e0);border-radius:10px;padding:11px 12px;background:var(--surface,#fff);color:var(--text,#1d2924);font:inherit}.evidence-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 22px}.evidence-stats>div{padding:13px 9px;border:1px solid var(--line,#dfe5e0);border-radius:12px;display:flex;flex-direction:column;gap:4px}.evidence-stats strong{font-size:23px}.evidence-stats span,.muted-note{font-size:12px;color:var(--muted,#66736c)}.muted-note{line-height:1.55;margin:12px 0 18px}.full-width{width:100%}.source-list-panel{margin-bottom:20px}.source-list{display:grid;gap:12px}.source-card{border:1px solid var(--line,#dfe5e0);border-radius:13px;padding:16px;display:grid;gap:10px}.source-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.source-card h3{font-size:16px;margin:0 0 4px}.source-card p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:13px}.source-meta{display:flex;flex-wrap:wrap;gap:7px}.source-chip{font-size:11px;border-radius:20px;padding:5px 8px;background:var(--soft,#f0f4f1);color:var(--muted,#53645a)}.source-actions{display:flex;gap:8px;flex-wrap:wrap}.source-actions button{font-size:12px}.source-url{font-size:12px;overflow-wrap:anywhere}.empty-sources{padding:24px;text-align:center;color:var(--muted,#66736c);border:1px dashed var(--line,#dfe5e0);border-radius:12px}.source-status-supports{border-left:3px solid #4b8b66}.source-status-contradicts,.source-status-rejected{border-left:3px solid #b85b51}.source-status-outdated,.source-status-partial{border-left:3px solid #c18b37}
@media(max-width:900px){.research-grid{grid-template-columns:1fr}.source-form{grid-template-columns:1fr}.source-form .full-field{grid-column:auto}.research-editor,.research-summary,.source-list-panel{padding:16px}}


/* Build 05: article brief and outline */
.brief-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line,#e7e7e2);margin-bottom:16px}.brief-toolbar p{max-width:560px;margin:6px 0 0;color:var(--muted,#73756f);font-size:13px;line-height:1.5}.brief-grid{display:grid;grid-template-columns:1fr;gap:16px}.brief-textarea{width:100%;resize:vertical;min-height:190px;border:1px solid var(--line,#deded7);border-radius:10px;padding:13px;background:var(--surface,#fff);color:var(--ink,#242620);font:inherit;line-height:1.6}.brief-textarea:focus{outline:2px solid rgba(83,119,90,.22);border-color:#729078}.brief-toolbar .primary-button{white-space:nowrap}.brief-grid .field-label{display:block;margin-bottom:7px}@media(max-width:600px){.brief-toolbar{flex-direction:column}.brief-toolbar .primary-button{width:100%}}


/* Build 06: version history */
.version-panel{margin-top:18px;padding:20px}
.version-tools{display:grid;gap:8px;margin:12px 0 16px}
.version-label-input{width:100%;border:1px solid var(--line,#d9dfd9);border-radius:10px;padding:11px 12px;background:var(--surface,#fff);color:inherit;font:inherit}
.version-list{display:grid;gap:10px}
.version-item{border:1px solid var(--line,#d9dfd9);border-radius:12px;padding:12px;display:grid;gap:8px}
.version-item-top{display:flex;justify-content:space-between;gap:10px;align-items:start}
.version-item-title{font-weight:650;overflow-wrap:anywhere}
.version-item-meta{font-size:12px;opacity:.7}
.version-item-actions{display:flex;gap:8px;flex-wrap:wrap}
.mini-action{border:1px solid var(--line,#d9dfd9);border-radius:8px;padding:7px 10px;background:transparent;color:inherit;cursor:pointer}
.version-compare-result{white-space:pre-wrap;border:1px solid var(--line,#d9dfd9);border-radius:10px;padding:12px;margin:12px 0;max-height:260px;overflow:auto;font-size:13px;line-height:1.5}
.version-compare-result ins{background:#d9f7df;text-decoration:none}
.version-compare-result del{background:#ffe0df;text-decoration:line-through}
.revision-preview{white-space:pre-wrap;border:1px solid var(--line,#d9dfd9);border-radius:10px;padding:12px;margin-top:10px;font-size:13px;max-height:240px;overflow:auto}
.revision-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:720px){.version-panel{padding:14px}.version-item-top{align-items:flex-start}}


/* Build 07: SEO and editorial QA */
.qa-panel{padding:20px;display:grid;gap:14px}
.qa-summary{border:1px solid var(--line,#d9dfd9);border-radius:12px;padding:14px;font-weight:600;line-height:1.5}
.qa-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qa-finding{border:1px solid var(--line,#d9dfd9);border-radius:12px;padding:13px;min-width:0}
.qa-finding-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.qa-group{font-size:11px;text-transform:uppercase;letter-spacing:.07em;opacity:.7}
.qa-status{font-size:11px;font-weight:700;border-radius:999px;padding:4px 8px;background:#e8eee9;color:#35473b}
.qa-attention .qa-status{background:#fff0d9;color:#81520a}
.qa-review .qa-status{background:#e8edf7;color:#40567d}
.qa-finding h3{font-size:14px;margin:0 0 6px}
.qa-finding p{font-size:13px;line-height:1.5;margin:0;color:var(--muted,#5c665f)}
.qa-panel .qa-findings{grid-template-columns:repeat(2,minmax(0,1fr))}
#qaPane{display:grid;gap:14px}
#qaPane .qa-findings{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.qa-findings,#qaPane .qa-findings{grid-template-columns:1fr}.qa-panel{padding:14px}}


/* Build 08: publishing exports */
.export-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.export-checklist{display:grid;gap:9px;border:1px solid var(--line,#d9dfd9);border-radius:12px;padding:13px;margin:14px 0}
.export-checklist strong{font-size:13px}
.export-checklist label{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.4}
.export-checklist input{margin-top:2px;accent-color:#557b63}
#exportPreview{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5;white-space:pre}
@media(max-width:620px){.export-options{grid-template-columns:1fr}}


/* Build 09: secure AI connection settings */
.ai-setup-panel .field-help,.field-help{font-size:13px;line-height:1.55;color:var(--muted,#65716b);margin:8px 0 14px}
#aiEndpoint{width:100%;box-sizing:border-box;min-height:44px;padding:11px 12px;border:1px solid var(--line,#d9dfd9);border-radius:10px;background:var(--panel,#fff);color:var(--ink,#17231f);font:inherit}
.button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}
.ai-status-note{font-size:13px;line-height:1.5;margin:12px 0 0;color:var(--muted,#65716b)}
.setup-steps,.context-list{padding-left:22px;line-height:1.8;font-size:14px}
.ai-setup-panel .section-heading{align-items:flex-start}
@media(max-width:620px){.button-row>*{flex:1 1 auto}.setup-steps,.context-list{font-size:13px}}


/* Build 10: site inventory and internal-link suggestions */
.inventory-grid{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:18px;align-items:start}
.inventory-form{display:grid;gap:8px}
.inventory-form input,.inventory-form select,.inventory-form textarea,.inventory-list-panel input{width:100%;box-sizing:border-box;min-width:0;padding:10px 12px;border:1px solid var(--line,#d9dfd9);border-radius:10px;background:var(--panel,#fff);color:var(--ink,#17231f);font:inherit}
.inventory-import{border-top:1px solid var(--line,#d9dfd9);margin-top:16px;padding-top:14px}
.inventory-import>strong{font-size:14px}
.inventory-import input[type=file]{display:block;width:100%;font-size:12px;margin:10px 0}
.inventory-list-panel{margin-top:18px}
.inventory-list-panel .section-heading{align-items:center}
.inventory-list-panel .section-heading input{max-width:260px}
.inventory-list{display:grid}
.inventory-row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line,#d9dfd9)}
.inventory-row:last-child{border-bottom:0}
.inventory-row-copy{display:grid;gap:5px;min-width:0}
.inventory-row-copy strong{font-size:14px;overflow-wrap:anywhere}
.inventory-row-copy a,.link-suggestion>a{font-size:12px;color:var(--accent,#426e59);overflow-wrap:anywhere}
.inventory-row-copy span{font-size:12px;line-height:1.45;color:var(--muted,#65716b)}
.link-suggestion-note{font-size:12px;line-height:1.5;color:var(--muted,#65716b);padding:10px 12px;border-radius:10px;background:var(--soft,#f4f6f3);margin-bottom:12px}
.link-suggestions{display:grid;gap:10px}
.link-suggestion{display:grid;gap:6px;padding:12px;border:1px solid var(--line,#d9dfd9);border-radius:12px;min-width:0}
.link-suggestion strong{font-size:14px}
.link-suggestion p{font-size:12px;line-height:1.5;color:var(--muted,#65716b);margin:0}
.link-suggestion-actions{display:flex;justify-content:flex-start;margin-top:3px}
@media(max-width:850px){.inventory-grid{grid-template-columns:1fr}}
@media(max-width:620px){.inventory-row{align-items:flex-start}.inventory-list-panel .section-heading{align-items:stretch;flex-direction:column}.inventory-list-panel .section-heading input{max-width:none}.inventory-row .text-button{flex-shrink:0}}


/* Build 11: publication and performance tracking */
.performance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.publish-form{display:grid;gap:8px}
.publish-form input,.publish-form select,.publish-form textarea{width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line,#d9dfd9);border-radius:10px;background:var(--panel,#fff);color:var(--ink,#17231f);font:inherit}
.metric-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric-input-grid>div{min-width:0}
.performance-summary-panel{margin-top:18px}
.performance-summary-panel .section-heading{align-items:center}
.performance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.performance-stats>div{display:grid;gap:4px;padding:13px;border:1px solid var(--line,#d9dfd9);border-radius:12px}
.performance-stats strong{font-size:20px;font-variant-numeric:tabular-nums}
.performance-stats span{font-size:12px;color:var(--muted,#65716b)}
.performance-table{display:grid}
.performance-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid var(--line,#d9dfd9)}
.performance-row:last-child{border-bottom:0}
.performance-page-info{display:grid;gap:5px;min-width:0}
.performance-page-info strong{font-size:14px;overflow-wrap:anywhere}
.performance-page-info a{font-size:12px;color:var(--accent,#426e59);overflow-wrap:anywhere}
.performance-page-info span{font-size:12px;color:var(--muted,#65716b)}
.performance-numbers{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.performance-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.update-opportunities{display:grid;gap:10px}
.update-opportunity{display:grid;gap:6px;padding:13px;border:1px solid var(--line,#d9dfd9);border-radius:12px}
.update-opportunity strong{font-size:14px}
.update-opportunity a{font-size:12px;color:var(--accent,#426e59);overflow-wrap:anywhere}
.update-opportunity p{font-size:13px;line-height:1.5;color:var(--muted,#65716b);margin:0}
.performance-summary-panel .button-row{margin:0}
@media(max-width:850px){.performance-grid{grid-template-columns:1fr}}
@media(max-width:620px){.performance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-row{grid-template-columns:1fr}.performance-actions{grid-column:auto}.performance-summary-panel .section-heading{align-items:flex-start;flex-direction:column}.metric-input-grid{gap:8px}}

/* Build 12: content update planner */
.planner-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:16px;margin:16px 0}
.planner-page-context{margin:14px 0;padding:12px;border:1px solid var(--line,#dce3df);border-radius:10px;background:var(--surface-soft,#f7f9f8);font-size:13px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-line}
.planner-queue{display:grid;gap:10px}
.planner-queue-row{display:grid;gap:8px;padding:14px 0;border-bottom:1px solid var(--line,#dce3df)}
.planner-queue-row:last-child{border-bottom:0}
.planner-queue-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.planner-queue-row p{margin:0;color:var(--muted,#68746e);font-size:13px;line-height:1.5}
.planner-queue-meta{font-size:12px;color:var(--muted,#68746e)}
.planner-queue-actions{display:flex;gap:8px;flex-wrap:wrap}
.planner-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--surface-soft,#f7f9f8);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:760px){.planner-grid{grid-template-columns:1fr}}

/* Build 13: reusable content-type templates */
.content-type-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.content-type-row .field-label{margin:0}
.content-type-select{max-width:245px;min-width:190px}
.template-layout{display:grid;grid-template-columns:.95fr 1.05fr;gap:16px;margin:16px 0}
.template-list{display:grid;gap:8px;margin-top:14px}
.template-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;width:100%;border:1px solid var(--line,#dce3df);border-radius:10px;padding:12px;background:var(--surface,#fff);color:inherit;cursor:pointer}
.template-item.active{border-color:var(--accent,#477c68);background:var(--surface-soft,#f7f9f8)}
.template-item strong{display:block;font-size:14px;margin-bottom:4px}
.template-item small{display:block;color:var(--muted,#68746e);font-size:12px;line-height:1.4}
.template-tag{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#68746e);white-space:nowrap}
.template-form{display:grid;gap:8px}
.full-select{width:100%}
@media(max-width:760px){.template-layout{grid-template-columns:1fr}.content-type-select{flex:1;min-width:150px}}

/* Build 14 publishing handoff */
.publish-article-summary{margin:12px 0;padding:12px;border:1px solid var(--line,#dce3df);border-radius:10px;background:var(--surface-soft,#f7f9f8);font-size:13px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.publish-checklist{display:grid;gap:0}.publish-check-item{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line,#dce3df)}
.publish-check-item input{margin-top:3px;accent-color:var(--accent,#477c68)}.publish-check-copy{flex:1}.publish-check-copy strong{display:block;font-size:14px;font-weight:600}
.publish-check-copy small{display:block;color:var(--muted,#68746e);font-size:12px;line-height:1.4;margin-top:3px}
.publish-progress{height:6px;border-radius:999px;background:var(--line,#e4e9e6);overflow:hidden;margin-top:12px}.publish-progress-bar{height:100%;width:0;background:var(--accent,#477c68)}
.publish-export-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.publish-export-grid .template-item{height:100%}
@media(max-width:620px){.publish-export-grid{grid-template-columns:1fr}}

/* Build 15: low-friction navigation */
.quick-find-wrap{padding:12px 0 4px}
.quick-article-search{width:100%;min-width:0;border:1px solid var(--line,#dce3df);background:var(--surface,#fff);color:var(--text,#26332d);border-radius:9px;padding:10px 11px;font:inherit;font-size:13px;outline:none}
.quick-article-search:focus{border-color:var(--accent,#477c68);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#477c68) 14%,transparent)}
.quick-article-results{display:grid;gap:4px;margin-top:5px}
.quick-article-results:empty{display:none}
.quick-article-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text,#26332d);padding:8px 9px;cursor:pointer;min-width:0}
.quick-article-result:hover,.quick-article-result:focus-visible{background:var(--surface-soft,#f4f7f5);border-color:var(--line,#dce3df);outline:none}
.quick-article-result strong{font-size:12px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.quick-article-result small{font-size:11px;color:var(--muted,#6d7972);line-height:1.35}
.quick-find-empty{font-size:12px;color:var(--muted,#6d7972);padding:7px 9px;line-height:1.4}
@media(max-width:760px){.quick-find-wrap{padding:10px 0 3px}.quick-article-results{max-height:34vh;overflow:auto}}


/* Build 16: compact workflow progress in the article library */
.library-progress {
  width: min(100%, 340px);
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line, #e6e9e6);
}
.library-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #467b67);
  transition: width .18s ease;
}
.library-progress-note {
  margin-top: 5px;
  color: var(--muted, #737b76);
  font-size: 11px;
  line-height: 1.35;
}
.library-row .next-stage:disabled {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .library-row .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .library-row .mini-action {
    min-height: 36px;
  }
  .library-progress {
    width: 100%;
  }
}


/* Build 17: calmer writing workspace */
.workspace-primary { min-width: 0; }
.workspace-secondary {
  border: 1px solid var(--line, #e6e9e6);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface, #fff);
}
.workspace-secondary > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
  list-style-position: inside;
}
.workspace-secondary[open] > summary { margin-bottom: 10px; }
.workspace-secondary .field,
.workspace-secondary .form-group { margin-top: 10px; }
.workspace-focus-note {
  color: var(--muted, #737b76);
  font-size: 12px;
  margin: 4px 0 12px;
}
@media (max-width: 760px) {
  .workspace-secondary { padding: 10px; }
}


/* Build 18: chat-first writing workspace */
.chat-first-panel {
  margin: 16px 0;
  border: 1px solid var(--line, #e6e9e6);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface, #fff);
  color: var(--text, inherit);
}
.chat-first-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.chat-first-heading h2 { margin: 0 0 5px; font-size: 18px; }
.chat-first-heading p, .chat-first-advanced p {
  color: var(--muted, #737b76);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.chat-first-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 110px;
  max-height: 340px;
  overflow: auto;
  padding: 12px 0;
}
.chat-first-empty {
  border: 1px dashed var(--line, #d8ded9);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted, #737b76);
  font-size: 13px;
}
.chat-first-message {
  border: 1px solid var(--line, #e6e9e6);
  border-radius: 12px;
  padding: 11px 13px;
  overflow-wrap: anywhere;
}
.chat-first-message-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #737b76);
  margin-bottom: 5px;
}
.chat-first-message p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.chat-first-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.chat-first-form textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line, #d8ded9);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: var(--surface, #fff);
  color: inherit;
  box-sizing: border-box;
}
.chat-first-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.chat-first-panel button {
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 38px;
  cursor: pointer;
}
.chat-first-panel .primary-button {
  background: var(--accent, #467b67);
  color: white;
  border: 1px solid var(--accent, #467b67);
}
.chat-first-panel .secondary-button {
  background: transparent;
  border: 1px solid var(--line, #d8ded9);
  color: inherit;
}
.chat-first-advanced {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e6e9e6);
}
.chat-first-advanced summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.chat-first-advanced p { margin-top: 10px; }
@media (max-width: 600px) {
  .chat-first-panel { padding: 12px; }
  .chat-first-heading { flex-direction: column; }
  .chat-first-thread { max-height: 280px; }
}


/* Build 19: connected chat-first workspace */
.chat-first-status { margin: 8px 0 2px; color: var(--muted, #737b76); font-size: 12px; line-height: 1.45; }
.chat-first-panel button:disabled { opacity: .6; cursor: progress; }
.chat-first-panel .chat-first-actions { align-items: center; }

/* Build 20: article outline attachment */
.chat-first-attachment{border:1px solid var(--line,#e6e9e6);border-radius:12px;padding:11px 12px;margin:10px 0}.chat-first-attachment label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.chat-first-attachment input[type=file]{display:block;width:100%;max-width:100%;font-size:12px}.chat-first-file-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.chat-first-file-row span{min-width:0;overflow-wrap:anywhere;color:var(--muted,#737b76);font-size:12px}.chat-first-file-help{margin:7px 0 0;color:var(--muted,#737b76);font-size:11px;line-height:1.4}

/* Build 21 · reusable knowledge library */
.knowledge-panel{max-width:920px}.knowledge-profile-line,.knowledge-item-top,.knowledge-actions,.knowledge-upload{display:flex;align-items:center;justify-content:space-between;gap:12px}.knowledge-profile-line{padding-bottom:14px;border-bottom:1px solid var(--line,#e7e9e7)}.knowledge-help,.knowledge-footnote{color:var(--muted,#69736e);font-size:.9rem;line-height:1.55}.knowledge-upload{justify-content:flex-start;flex-wrap:wrap;margin:18px 0}.knowledge-status{font-size:.82rem;color:var(--muted,#69736e)}.knowledge-list{display:grid;gap:10px}.knowledge-item{border:1px solid var(--line,#e7e9e7);border-radius:12px;padding:14px;background:var(--panel,#fff)}.knowledge-item-top strong{overflow-wrap:anywhere}.knowledge-item-top small{white-space:nowrap;color:var(--muted,#69736e)}.knowledge-item p{font-size:.88rem;line-height:1.5;color:var(--muted,#69736e);white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 12px}.knowledge-actions{justify-content:space-between}.knowledge-toggle{display:flex;align-items:center;gap:8px;font-size:.86rem}.knowledge-footnote{margin-top:20px;padding-top:14px;border-top:1px solid var(--line,#e7e9e7)}.danger-text{color:#a33!important}

/* Build 22 · knowledge library organization */
.knowledge-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,220px);gap:10px;margin:16px 0}
.knowledge-category{max-width:240px;margin:6px 0;padding:8px;border:1px solid var(--line,#e7e9e7);border-radius:8px;background:#fff}
.knowledge-article-select{padding:12px;border:1px solid var(--line,#e7e9e7);border-radius:10px;margin:12px 0}
.knowledge-article-select p{margin:5px 0}
.knowledge-actions{flex-wrap:wrap}
.knowledge-actions .text-button{font-size:.82rem}
@media(max-width:620px){.knowledge-toolbar{grid-template-columns:1fr}.knowledge-actions{align-items:flex-start;flex-direction:column}.knowledge-profile-line{align-items:flex-start;flex-direction:column}}

/* Build 23 · relevance-aware knowledge selection */
.knowledge-mode-row{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}
.knowledge-mode-row select{padding:8px;border:1px solid var(--line,#e7e9e7);border-radius:8px;background:#fff}
.knowledge-relevance{font-size:.8rem;color:var(--muted,#667085);margin:4px 0 8px}

/* Build 24 · document import preview */
.knowledge-import-preview{border:1px solid var(--line,#e7e9e7);border-radius:12px;padding:14px;margin:14px 0;background:#fbfcfb}
.knowledge-preview-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.knowledge-preview-heading span{font-size:.78rem;color:var(--muted,#667085)}
.knowledge-import-preview textarea{width:100%;min-height:170px;resize:vertical;margin:8px 0 12px}
.knowledge-import-preview select{display:block;padding:9px;border:1px solid var(--line,#e7e9e7);border-radius:8px;background:white;margin:6px 0 12px}
.knowledge-preview-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Build 25 · knowledge document management */
.knowledge-details{margin:8px 0;padding:9px 11px;border:1px solid var(--line,#e7e9e7);border-radius:9px;background:#fcfdfc}
.knowledge-details summary{cursor:pointer;font-size:.84rem;font-weight:600}
.knowledge-detail-body{padding-top:8px;font-size:.82rem;color:var(--muted,#667085);line-height:1.5}
.knowledge-detail-body p{margin:5px 0}
#knowledgePreviewSource{width:100%;margin:6px 0 12px;padding:10px;border:1px solid var(--line,#e7e9e7);border-radius:8px;background:#fff}

/* Build 26 · knowledge assistant */
.knowledge-assistant{margin-top:22px;padding:16px;border:1px solid var(--line,#e7e9e7);border-radius:14px;background:#fff}
.knowledge-assistant-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.knowledge-assistant-head h2{font-size:1.15rem;margin:4px 0}
.knowledge-assistant-head p{margin:4px 0}
.knowledge-assistant-status{font-size:.82rem;color:var(--muted,#667085);padding:9px 0}
.knowledge-assistant-messages{display:flex;flex-direction:column;gap:10px;max-height:440px;overflow:auto;padding:10px 0}
.knowledge-assistant-empty{padding:18px;text-align:center;color:var(--muted,#667085);border:1px dashed var(--line,#e7e9e7);border-radius:10px}
.knowledge-assistant-message{max-width:94%;padding:11px 13px;border-radius:12px;background:#f4f6f5;align-self:flex-start;white-space:pre-wrap}
.knowledge-assistant-message.user{align-self:flex-end;background:#eaf2ee}
.knowledge-assistant-message strong{font-size:.8rem;display:block;margin-bottom:5px}
.knowledge-assistant-message p{margin:0;line-height:1.5;white-space:pre-wrap}
.knowledge-assistant-message small{display:block;margin-top:8px;color:var(--muted,#667085)}
.knowledge-assistant-form textarea{width:100%;resize:vertical;min-height:66px;padding:11px;border:1px solid var(--line,#e7e9e7);border-radius:10px;background:#fff}
.knowledge-assistant-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:9px}
.knowledge-assistant-actions button:disabled{opacity:.55;cursor:wait}

.knowledge-source-details{margin-top:8px;padding:8px 10px;border-left:3px solid #9bb7a7;background:#f7faf8;border-radius:0 8px 8px 0}
.knowledge-source-details p{font-size:.76rem;line-height:1.4;color:#53645a;margin:3px 0;overflow-wrap:anywhere}

/* Build 29 knowledge library intelligence */
.knowledge-intelligence-results{margin-top:14px;padding:14px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--surface-soft,#fafafa)}
.knowledge-intelligence-results h3{margin:0 0 8px;font-size:1.05rem}.knowledge-intelligence-results h4{margin:16px 0 6px;font-size:.92rem}.knowledge-intelligence-results ul{margin:6px 0 12px;padding-left:20px}.knowledge-intelligence-results li{margin:6px 0;line-height:1.45}.knowledge-intelligence-results p{line-height:1.5}


/* Build 30 · research gap analyzer */
.knowledge-gap-card{padding:12px 13px;margin:10px 0;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:#fff}.knowledge-gap-card h4{margin:0 0 5px;font-size:.94rem}.knowledge-gap-card p{margin:6px 0;font-size:.84rem;line-height:1.45;color:var(--muted,#667085)}.knowledge-gap-card ul{margin:7px 0;padding-left:20px}.knowledge-gap-card li{margin:5px 0;line-height:1.45;font-size:.86rem}.knowledge-gap-card .knowledge-gap-status{font-weight:600;color:#7a6235}

/* Build 31: lightweight research task workspace */
.research-task-form{display:grid;gap:7px;margin:14px 0;padding:13px;border:1px solid var(--line,#e7e9e7);border-radius:11px;background:#fafbfa}
.research-task-form input,.research-task-form textarea,.research-task-form select,.research-task-toolbar select,.research-task-card input,.research-task-card textarea,.research-task-card select{width:100%;padding:9px 10px;border:1px solid var(--line,#dfe3e0);border-radius:8px;background:#fff;color:inherit;font:inherit;min-width:0}
.research-task-form textarea,.research-task-card textarea{resize:vertical}.research-task-form-row{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}.research-task-form-row label{display:grid;gap:5px;min-width:130px;font-size:.82rem;color:var(--muted,#667085)}
.research-task-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.research-task-toolbar select{width:auto;min-width:160px}.research-task-list{display:grid;gap:11px}.research-task-card{padding:13px;border:1px solid var(--line,#e2e6e3);border-radius:11px;background:#fff}.research-task-card h4{margin:0;font-size:.96rem}.research-task-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:6px 0 10px}.research-task-meta span{font-size:.74rem;color:var(--muted,#667085);background:#f2f4f2;padding:3px 7px;border-radius:20px}.research-task-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.research-task-fields label{display:grid;gap:4px;font-size:.78rem;color:var(--muted,#667085)}.research-task-fields .wide{grid-column:1/-1}.research-task-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.research-task-actions button{font-size:.82rem}.research-task-empty{padding:18px;text-align:center;color:var(--muted,#667085);border:1px dashed var(--line,#e2e6e3);border-radius:10px}
@media(max-width:600px){.research-task-fields{grid-template-columns:1fr}.research-task-fields .wide{grid-column:auto}.research-task-form-row{align-items:stretch}.research-task-form-row button{width:100%}}

/* Build 31: lightweight research task workspace */
.research-task-form{display:grid;gap:7px;margin:14px 0;padding:13px;border:1px solid var(--line,#e7e9e7);border-radius:11px;background:#fafbfa}
.research-task-form input,.research-task-form textarea,.research-task-form select,.research-task-toolbar select,.research-task-card input,.research-task-card textarea,.research-task-card select{width:100%;padding:9px 10px;border:1px solid var(--line,#dfe3e0);border-radius:8px;background:#fff;color:inherit;font:inherit;min-width:0}
.research-task-form textarea,.research-task-card textarea{resize:vertical}.research-task-form-row{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}.research-task-form-row label{display:grid;gap:5px;min-width:130px;font-size:.82rem;color:var(--muted,#667085)}
.research-task-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.research-task-toolbar select{width:auto;min-width:160px}.research-task-list{display:grid;gap:11px}.research-task-card{padding:13px;border:1px solid var(--line,#e2e6e3);border-radius:11px;background:#fff}.research-task-card h4{margin:0;font-size:.96rem}.research-task-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:6px 0 10px}.research-task-meta span{font-size:.74rem;color:var(--muted,#667085);background:#f2f4f2;padding:3px 7px;border-radius:20px}.research-task-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.research-task-fields label{display:grid;gap:4px;font-size:.78rem;color:var(--muted,#667085)}.research-task-fields .wide{grid-column:1/-1}.research-task-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.research-task-actions button{font-size:.82rem}.research-task-empty{padding:18px;text-align:center;color:var(--muted,#667085);border:1px dashed var(--line,#e2e6e3);border-radius:10px}
@media(max-width:600px){.research-task-fields{grid-template-columns:1fr}.research-task-fields .wide{grid-column:auto}.research-task-form-row{align-items:stretch}.research-task-form-row button{width:100%}}

/* Build 32: task-linked source collector */
.research-source-box{margin-top:13px;padding:11px;border:1px solid var(--line,#e2e6e3);border-radius:10px;background:#fafbfa}.research-source-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.research-source-list{display:grid;gap:7px}.research-source-item{display:flex;justify-content:space-between;gap:10px;padding:9px;background:#fff;border:1px solid var(--line,#e2e6e3);border-radius:8px}.research-source-item p{margin:4px 0;font-size:.8rem;color:var(--muted,#667085);white-space:pre-wrap}.research-source-item a{font-size:.8rem}.research-source-item .text-button{align-self:start}.research-source-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;padding:11px;border:1px dashed var(--line,#dfe3e0);border-radius:9px}.research-source-form label{display:grid;gap:4px;font-size:.78rem;color:var(--muted,#667085)}.research-source-form input,.research-source-form textarea,.research-source-form select{width:100%;min-width:0;padding:8px;border:1px solid var(--line,#dfe3e0);border-radius:7px;background:#fff;color:inherit;font:inherit}.research-source-form .wide{grid-column:1/-1}.research-source-form button{justify-self:start}.research-source-form textarea{resize:vertical}@media(max-width:600px){.research-source-form{grid-template-columns:1fr}.research-source-form .wide{grid-column:auto}.research-source-item{flex-direction:column}}

/* Build 33 research-to-library handoff */
.research-library-handoff{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid var(--line,#dfe5e2);border-radius:12px;background:var(--surface-soft,#f7f9f8)}.research-library-handoff>strong{font-size:14px}.research-library-handoff label{display:grid;gap:6px;font-size:13px;font-weight:600}.research-library-summary{width:100%;min-height:150px;resize:vertical}.research-library-category{max-width:100%}.research-library-handoff .research-task-actions{align-items:center;flex-wrap:wrap}


/* Build 34: research-to-article brief generator */
.research-brief-builder{margin-top:18px;padding:18px;border:1px solid var(--line,#dfe5e0);border-radius:14px;background:var(--surface,#fff);display:grid;gap:14px}.research-brief-builder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.research-brief-builder-head h3{font-size:18px;margin:4px 0}.research-brief-task-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.research-brief-task-choice{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid var(--line,#dfe5e0);border-radius:10px;min-width:0;cursor:pointer}.research-brief-task-choice input{margin-top:3px;accent-color:#557b63}.research-brief-task-choice span{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.research-brief-task-choice small{display:block;color:var(--muted,#66736c);font-size:11px;margin-top:3px}.research-brief-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.research-brief-fields label,.research-brief-preview label{display:grid;gap:6px;font-size:12px;font-weight:650}.research-brief-fields input,.research-brief-preview textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#dfe5e0);border-radius:9px;padding:11px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px;line-height:1.55}.research-brief-preview{display:grid;gap:12px}.research-brief-preview textarea{resize:vertical;min-height:180px}.research-brief-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.research-brief-actions .knowledge-help{margin:0}@media(max-width:650px){.research-brief-task-choices,.research-brief-fields{grid-template-columns:1fr}.research-brief-builder{padding:14px}.research-brief-builder-head{flex-direction:column}}

/* Build 36/37: section drafting workflow */
.section-workflow{margin-top:20px;padding:18px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--panel,#fff)}
.section-workflow-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.section-workflow-head h3{margin:4px 0 6px}.section-workflow-head p{margin:0;color:var(--muted,#64748b);font-size:13px;max-width:620px}.section-workflow-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.section-progress-wrap{margin:12px 0 16px}.section-progress-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:7px}.section-progress-track{height:8px;background:#e9edf2;border-radius:99px;overflow:hidden}.section-progress-track span{display:block;height:100%;width:0;background:#43856d;border-radius:99px;transition:width .2s}.section-cards{display:grid;gap:12px}.section-card{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:14px;background:var(--surface,#fff)}.section-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.section-card h4{margin:0 0 8px;font-size:15px}.section-card textarea,.section-card input{width:100%;margin:6px 0 10px}.section-card textarea{min-height:120px}.section-card label{display:block;font-size:12px;font-weight:600}.section-card-actions{display:flex;gap:7px;flex-wrap:wrap}.section-status{font-size:11px;padding:4px 8px;border-radius:99px;background:#eef2f6;color:#475569;white-space:nowrap}.section-review-results{display:grid;gap:7px;margin:8px 0}.section-review-item{font-size:12px;padding:9px 11px;border-radius:8px;background:#f5f7f9;color:#475569}.section-review-item.warn{background:#fff7e8;color:#8a5a12}.section-review-item.good{background:#edf7f1;color:#286347}.section-card-meta{font-size:11px;color:var(--muted,#64748b);margin:0 0 8px}.section-empty{padding:14px;color:var(--muted,#64748b);font-size:13px}.section-card .section-instructions{min-height:58px}.section-card .section-draft{min-height:150px}
@media(max-width:640px){.section-workflow{padding:12px}.section-workflow-head{display:block}.section-workflow-head .heading-chip{display:inline-block;margin-top:8px}.section-card-top{display:block}.section-status{display:inline-block;margin-bottom:8px}}

/* Build 38: article-level editorial intelligence */
.editorial-intel{margin-top:18px;padding:16px;border:1px solid var(--border,#dbe2ea);border-radius:14px;background:var(--panel,#fff)}
.editorial-review-meta{font-size:12px;color:var(--muted,#64748b);margin:10px 0}
.editorial-report{display:grid;gap:9px}
.editorial-report .editorial-item{padding:11px 12px;border:1px solid var(--border,#dbe2ea);border-radius:10px;background:var(--surface,#f8fafc);font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.editorial-report .editorial-item strong{display:block;margin-bottom:4px}
.editorial-report .editorial-item.warn{border-left:3px solid #d49a42}
.editorial-report .editorial-item.good{border-left:3px solid #43856d}
.editorial-report .editorial-item.ai{border-left:3px solid #7186bd}
.editorial-intel button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:640px){.editorial-intel{padding:12px}.editorial-intel .section-workflow-actions{display:flex;flex-direction:column;align-items:stretch}}

/* Build 39: controlled revision comparison */
.revision-assistant{margin-top:18px}.revision-form-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0}.revision-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.revision-column{min-width:0;border:1px solid var(--line,#ddd);border-radius:12px;padding:12px;background:var(--surface,#fff)}.revision-column strong{display:block;margin-bottom:9px}.revision-column pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.92rem;line-height:1.55;margin:0;max-height:420px;overflow:auto}.revision-column textarea{width:100%;min-height:220px}.revision-column.proposed{border-color:var(--accent,#777)}@media(max-width:680px){.revision-compare{grid-template-columns:1fr}.revision-column pre{max-height:260px}}


/* Build 40: section-level batch revision manager */
.revision-manager{margin-top:18px;padding:16px;border:1px solid var(--line,#dfe3e0);border-radius:14px;background:var(--surface,#fff)}.revision-manager-form{display:grid;gap:12px;margin:16px 0}.revision-manager-form label{display:grid;gap:6px}.revision-manager-form select{width:100%;padding:10px;border:1px solid var(--line,#dfe3e0);border-radius:9px;background:#fff;color:inherit;font:inherit}.revision-queue{display:grid;gap:12px}.revision-queue-card{border:1px solid var(--line,#dfe3e0);border-radius:12px;padding:13px;background:var(--surface,#fff)}.revision-queue-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.revision-queue-state{font-size:11px;padding:4px 8px;border-radius:99px;background:#eef2f6;color:#475569}.revision-queue-meta{font-size:11px;color:var(--muted,#64748b);margin:6px 0 10px}.revision-queue-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}.revision-queue-compare>div{min-width:0;padding:10px;border:1px solid var(--line,#e1e5e2);border-radius:9px;background:#fff}.revision-queue-compare strong{display:block;font-size:12px;margin-bottom:7px}.revision-queue-compare pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font:inherit;font-size:12px;line-height:1.5;margin:0}.revision-queue-compare textarea{width:100%;min-height:180px;resize:vertical}.revision-manager button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:680px){.revision-manager{padding:12px}.revision-queue-compare{grid-template-columns:1fr}.revision-queue-top{align-items:flex-start;flex-direction:column}}

/* Build 41: revision timeline and selective section recovery */
.revision-history-tools{margin-top:18px;padding:15px;border:1px solid var(--line,#dfe3e0);border-radius:13px;background:var(--surface,#fff)}.revision-timeline{display:grid;gap:8px;margin:12px 0}.revision-timeline-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line,#e1e5e2);border-radius:10px}.revision-timeline-item strong{display:block;font-size:13px}.revision-timeline-item small{display:block;color:var(--muted,#64748b);font-size:11px;margin-top:3px}.revision-timeline-tag{font-size:10px;border-radius:99px;padding:4px 8px;background:#eef2f6;color:#475569;white-space:nowrap}.revision-history-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin:14px 0}.revision-history-form label{display:grid;gap:6px;font-size:12px;font-weight:600}.revision-history-form select{width:100%;padding:10px;border:1px solid var(--line,#dfe3e0);border-radius:9px;background:#fff;color:inherit;font:inherit}.revision-history-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.revision-history-preview>div{min-width:0;padding:11px;border:1px solid var(--line,#e1e5e2);border-radius:10px}.revision-history-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:inherit;font-size:12px;line-height:1.5}.revision-history-preview .history-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.revision-history-tools button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:720px){.revision-history-tools{padding:12px}.revision-history-form,.revision-history-preview{grid-template-columns:1fr}.revision-timeline-item{align-items:flex-start;flex-direction:column}}


/* Build 43: minimal splash and password gate */
.auth-gate{position:fixed;inset:0;z-index:9999;background:#f4f1e9;color:#24352d;display:grid;place-items:center;padding:0;}
.auth-gate.hidden{display:none!important}.auth-splash{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(17,28,22,.05),rgba(17,28,22,.04)),url('./splash-office.webp');background-size:cover;background-position:center;display:grid;place-items:center;}
.splash-copy{display:flex;flex-direction:column;align-items:center;gap:30px;text-align:center;margin-top:-3vh;padding:24px;width:min(100%,720px);box-sizing:border-box;}
.splash-tagline{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2rem,5.2vw,4rem);line-height:1.16;letter-spacing:-.025em;color:#26372d;text-shadow:0 1px 16px rgba(255,255,255,.25);margin:0;max-width:13ch;}
.splash-enter{min-width:220px;border:0;border-radius:999px;padding:15px 28px;background:#485a45;color:white;font-family:Georgia,serif;font-size:1.25rem;cursor:pointer;box-shadow:0 8px 28px rgba(20,30,22,.16);}
.splash-enter:hover{background:#344638}.auth-password{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:linear-gradient(rgba(24,35,28,.18),rgba(24,35,28,.18)),url('./splash-office.webp') center/cover no-repeat;}
.auth-password.hidden{display:none!important}.password-card{width:min(100%,410px);background:rgba(250,248,241,.96);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.65);border-radius:24px;padding:38px 34px;box-shadow:0 22px 80px rgba(15,25,18,.24);text-align:center;}
.password-lock{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#e9eadf;color:#304537;font-size:2rem}.password-card h1{font-family:Georgia,serif;font-size:2.1rem;font-weight:500;margin:0 0 8px;color:#20372b}.password-card>p{color:#59665d;margin:0 0 26px}.password-card form{display:grid;gap:14px}.password-card input{width:100%;box-sizing:border-box;border:1px solid #d9d8cf;border-radius:12px;background:#fff;padding:15px 16px;font:inherit;font-size:1rem;color:#24352d;outline-offset:2px}.password-card form button{border:0;border-radius:12px;padding:15px 18px;background:#254333;color:white;font:600 1rem inherit;cursor:pointer}.password-card form button:disabled{opacity:.65;cursor:wait}.password-card form button span{float:right}.auth-message{min-height:20px;margin:0;color:#9b3e32;font-size:.9rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.auth-locked .app-shell{display:none!important}body:not(.auth-locked) .auth-gate{display:none!important}
@media(max-width:600px){.auth-splash{background-position:57% center}.splash-copy{margin-top:-2vh;padding:22px;gap:26px}.splash-tagline{font-size:clamp(2rem,8vw,2.8rem);line-height:1.14;max-width:12ch}.splash-enter{min-width:190px;padding:14px 26px}.password-card{padding:32px 24px;border-radius:20px}}
