
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#26362f;background:#fafbf9;font-synthesis:none;--green:#21644f;--muted:#7b857e;--border:#e3e8e1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #76b99e;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-weight:550;letter-spacing:-1.4px}h2{font-size:20px;font-weight:600}h3{font-size:17px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550}input,textarea,select{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:9px;background:white;color:#24372d;outline:none}input[type=checkbox]{width:auto}input:focus,textarea:focus,select:focus{border-color:#5e967e;box-shadow:0 0 0 3px #e9f1ec}textarea{resize:vertical;line-height:1.6}button{border:0;background:none;color:inherit}.primary{background:var(--green);color:white;border-radius:9px;padding:12px 20px;font-size:13px;font-weight:600;white-space:nowrap}.primary:hover{background:#184e3e}.full{width:100%}.muted{color:var(--muted);line-height:1.6}.tiny{font-size:12px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#7c927c}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:650;letter-spacing:-.5px}.brand-mark{display:grid;place-items:center;background:#ddebdd;color:#245a42;border-radius:10px;width:34px;height:34px;font-size:27px}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{padding:48px 64px;background:#173d30;color:#f2f5eb;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh;background-image:radial-gradient(ellipse at 0 80%,#31583d 0,transparent 65%)}.auth-story h1{font-size:clamp(36px,4.1vw,60px);line-height:1.18;margin:22px 0}.auth-story p{max-width:440px;line-height:1.8;color:#bccdc0;font-size:16px}.auth-story .eyebrow{color:#aec7a3}.auth-story small{color:#a9bdaf;font-size:11px}.story-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}.story-tags span{font-size:11px;border:1px solid #527060;border-radius:24px;padding:9px 12px}.auth-panel{display:grid;place-items:center;padding:36px}.auth-card{max-width:370px;width:100%}.auth-card h2{font-size:30px;letter-spacing:-1px;margin:15px 0 10px}.auth-card>.muted{font-size:14px}.tabs{display:flex;background:#eef1ec;padding:4px;border-radius:10px;margin:28px 0}.tabs button{flex:1;padding:10px;border-radius:7px;font-size:13px;color:#788477}.tabs .selected{background:#fff;box-shadow:0 1px 3px #0000000c;color:#244a34}.auth-card form{display:grid;gap:17px}.auth-card .tiny{margin-top:22px;text-align:center}.error{color:#af413b;font-size:13px;margin:0}.workspace{display:flex;height:100dvh;overflow:hidden}.sidebar{width:265px;flex-shrink:0;background:#f0f3ee;border-right:1px solid var(--border);padding:25px 17px 0;display:flex;flex-direction:column}.sidebar .brand{margin:0 10px 30px}.new-chat{border:1px solid #cfdacf;background:#fafcf8;border-radius:9px;padding:12px;text-align:left;font-size:13px;font-weight:550;margin-bottom:23px}.sidebar nav{display:grid;gap:5px}.nav-button{display:flex;align-items:center;gap:12px;padding:12px 14px;text-align:left;border-radius:8px;font-size:18px;color:#697a6a}.nav-button span{font-size:13px}.nav-button:hover,.nav-button.active{background:#e0e9dd;color:#264d32}.sidebar-label{font-size:9px;letter-spacing:1.3px;color:#889283;margin:31px 13px 12px}.history{flex:1;overflow:auto;min-height:0}.history-row{display:flex;align-items:center;border-radius:7px;margin:3px 0}.history-row.active,.history-row:hover{background:#e3e9de}.history-open{font-size:12px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:11px 12px;flex:1;min-width:0}.history-delete{color:#8c958a;padding:8px;font-size:15px}.history .empty{font-size:11px;margin:12px;color:#899283}.sidebar-footer{display:flex;align-items:center;gap:10px;border-top:1px solid #dce3d7;padding:18px 0;margin-top:16px}.avatar{width:33px;height:33px;background:#d9e4d0;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}.identity{min-width:0;flex:1}.identity strong,.identity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity strong{font-size:12px;font-weight:550}.identity small{font-size:10px;color:#83917f;margin-top:4px}.icon-button{padding:6px;font-size:21px;color:#788676}.main-panel{flex:1;display:flex;flex-direction:column;min-width:0;background:#fcfcfa}.topbar{height:76px;flex-shrink:0;border-bottom:1px solid #edf0e9;display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:14px}.topbar-left{display:flex;align-items:center;gap:14px}.topbar strong{font-size:14px;font-weight:550}.company-badge,.pill{font-size:11px;padding:7px 11px;border:1px solid var(--border);border-radius:20px;color:#6e7a69}.view{flex:1;min-height:0}.chat-view{display:flex;flex-direction:column;position:relative}.welcome{width:100%;max-width:850px;padding:0 35px;margin:auto;display:flex;align-items:center;flex-direction:column;text-align:center}.welcome-icon{font-size:47px;color:#5e7c55;margin-bottom:26px}.welcome .eyebrow{font-size:9px}.welcome h1{font-size:36px;margin:15px 0}.welcome>p{font-size:13px;color:#8b9386}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px;width:100%}.suggestions button{border:1px solid var(--border);border-radius:12px;background:#fff;padding:20px 18px;text-align:left;transition:transform .15s,border-color .15s}.suggestions button:hover{transform:translateY(-3px);border-color:#8fac82}.suggestions span{display:block;font-size:20px;color:#698b5b;margin-bottom:17px}.suggestions strong{display:block;font-size:12px;font-weight:550;margin-bottom:8px}.suggestions small{font-size:10px;color:#929a8b}.composer-area{width:100%;max-width:850px;margin:0 auto;padding:20px 35px 13px}.composer{border:1px solid #d7e0d1;box-shadow:0 3px 15px #32462906;border-radius:16px;background:#fff;padding:12px 16px}.composer textarea{border:none;padding:5px 0;background:none;resize:none;min-height:59px;max-height:160px;font-size:13px;box-shadow:none}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.context-options{display:flex;gap:15px}.context-options label{flex-direction:row;align-items:center;font-size:10px;color:#819079;font-weight:400;gap:5px}.context-options input{width:12px;height:12px;accent-color:var(--green)}.send-button{width:34px;height:34px;border-radius:10px;background:#2d6045;color:white;font-size:24px}.composer-note{text-align:center;font-size:9px;color:#a0a696;margin:12px 0 0}.messages{overflow-y:auto;flex:1;padding:28px max(35px,calc((100% - 780px)/2))}.messages:empty{display:none}.message{margin:0 0 28px;line-height:1.8;font-size:14px}.message.user{max-width:85%;margin-left:auto;background:#edf2e9;border-radius:16px 16px 3px 16px;padding:12px 18px;width:fit-content}.message.assistant{padding-left:0}.message-label{color:#547547;font-size:10px;font-weight:650;letter-spacing:.7px;margin-bottom:8px}.message-content{white-space:pre-wrap;overflow-wrap:anywhere}.message-content p{margin:0 0 8px}.message-content p:last-child{margin-bottom:0}.message-content ul,.message-content ol{margin:0 0 8px 20px;padding:0}.message-content li{margin-bottom:4px}.sources{font-size:10px;color:#788670;margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.sources a{background:#edf1e8;border-radius:5px;padding:3px 8px}.pending{color:#7d8d71}.stream-cursor{display:inline-block;width:2px;height:1em;margin-left:2px;background:currentColor;vertical-align:text-bottom;animation:blink 1s step-start infinite}@keyframes blink{50%{opacity:0}}.page-view{padding:40px max(35px,calc((100% - 1000px)/2));overflow:auto}.page-view h1{font-size:30px;margin:12px 0}.page-view>.muted,.page-heading .muted{font-size:13px}.upload-box{border:1px dashed #b6c9ab;border-radius:14px;background:#f4f7f0;text-align:center;padding:28px;margin:25px 0 32px}.upload-icon{font-size:26px;color:#658c53;margin-bottom:12px}.upload-box p{font-size:12px}.upload-box input{max-width:360px;background:white;margin:0 10px 12px 0;font-size:12px}.upload-box .tiny{margin:12px 0 0;font-size:10px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:23px 0 17px;gap:10px}.section-title h2{margin:0;font-size:16px}.section-title>.muted{font-size:11px}.item-list{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.item-row{display:flex;align-items:center;gap:14px;padding:17px 18px;border-bottom:1px solid #edf0e8}.item-row:last-child{border-bottom:none}.item-icon{width:36px;height:40px;display:grid;place-items:center;background:#eff3e9;border-radius:7px;color:#6f8b5b;font-size:11px}.item-info{flex:1;min-width:0}.item-info strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.item-info small{display:block;font-size:10px;color:#929b89;margin-top:6px}.item-actions{display:flex;gap:7px}.subtle-button{font-size:11px;border:1px solid var(--border);border-radius:6px;padding:7px 10px;background:white}.danger{color:#ae5c50}.empty-state{padding:28px;text-align:center;color:#8b9683;font-size:12px}.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;margin:22px 0}.card h2{font-size:16px}.card .section-title{margin:0 0 20px}.inline-form{display:flex;align-items:flex-end;gap:12px}.inline-form label{flex:1}.employee-form{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:15px}.employee-form .primary{justify-self:start}.card form>label{margin-bottom:15px}#memory-form textarea{min-height:90px}.mobile-only{display:none}.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}#notice{position:fixed;z-index:100;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#254f39;color:#fff;padding:12px 20px;border-radius:10px;box-shadow:0 5px 25px #0002;font-size:13px}#notice.failure{background:#963f36}#notice.clickable{cursor:pointer}#notice.clickable:hover,#notice.clickable:focus-visible{box-shadow:0 5px 25px #0004}#notice:focus-visible{outline:3px solid #76b99e;outline-offset:3px}@media(min-width:1450px){.welcome h1{font-size:42px}.suggestions{margin-top:40px}}@media(max-width:1000px){.sidebar{width:225px}.topbar{padding:0 24px}.suggestions{gap:8px}.suggestions button{padding:16px 12px}.welcome h1{font-size:29px}.employee-form{grid-template-columns:1fr}.auth-story{padding:40px}.welcome{padding:0 24px}}@media(max-width:700px){.auth-layout{grid-template-columns:1fr}.auth-story{min-height:0;padding:24px}.auth-story>div,.auth-story>small{display:none}.auth-panel{padding:35px 24px}.sidebar{position:fixed;top:64px;bottom:0;left:0;z-index:20;transform:translateX(-100%);transition:transform .2s;box-shadow:8px 0 24px #0001}.sidebar.open{transform:translateX(0)}.mobile-only{display:block}.topbar{height:64px;padding:0 16px}.topbar-left{gap:10px}.company-badge{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.welcome h1{font-size:27px;line-height:1.3}.welcome .eyebrow{font-size:8px;letter-spacing:1px}.welcome>p{font-size:12px;line-height:1.7}.welcome-icon{margin-bottom:18px}.suggestions{grid-template-columns:1fr;margin-top:16px;gap:8px}.suggestions button{padding:12px;display:grid;grid-template-columns:25px 1fr;column-gap:10px}.suggestions span{grid-row:span 2;margin:0}.suggestions strong{margin:0 0 3px}.composer-area{padding:14px 16px 12px}.context-options{gap:9px}.messages{padding:22px 18px}.page-view{padding:28px 18px}.page-view h1{font-size:25px}.upload-box{padding:22px 14px}.upload-box input{margin-right:0}.inline-form{flex-wrap:wrap}.inline-form label{min-width:160px}.item-row{padding:14px 12px;gap:10px;flex-wrap:wrap}.item-actions{margin-left:auto}.employee-form{grid-template-columns:1fr}.card{padding:18px}}@media(max-height:700px){.welcome-icon{margin-bottom:10px}.suggestions{margin-top:12px}.welcome h1{margin:10px 0}.welcome{padding-top:12px}.suggestions span{margin-bottom:8px}}.message-actions{display:flex;gap:4px;margin-top:10px;flex-wrap:wrap}.message.user .message-actions{justify-content:flex-end}.feedback-buttons{display:flex;gap:4px}.msg-action{font-size:10px;color:#8b9683;padding:5px 9px;border-radius:6px;border:1px solid transparent;white-space:nowrap}.msg-action:hover{background:#eef1ea;color:#45564a}.msg-action.active{background:#dcebdd;color:#1f5b40;font-weight:600}

.history-group{margin-bottom:20px}
.history-heading{margin:14px 10px 7px;font-size:11px;font-weight:550;color:#788474;line-height:1.6}
summary.history-heading{cursor:pointer;padding:3px 0;user-select:none}
summary.history-heading:focus-visible{outline:3px solid #76b99e;outline-offset:3px;border-radius:3px}
.history-pin{display:grid;place-items:center;flex-shrink:0;width:32px;height:34px;border-radius:6px;color:#83917f}
.history-pin:hover,.history-pin[aria-pressed="true"]{color:#21644f;background:#dcebdd}
.history-group .history-delete{flex-shrink:0;min-width:30px;min-height:34px}
.history-group .history-open{padding-left:10px}
.message-actions .msg-action{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;flex-shrink:0}
.msg-action svg{display:block;pointer-events:none}
@media(pointer:coarse){.message-actions .msg-action{width:40px;height:40px}}

.image-preview,.message-images{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.image-preview[hidden]{display:none}.image-attachment{position:relative}.image-attachment img{width:96px;height:80px;object-fit:contain;border-radius:8px;border:1px solid #ddd}.image-attachment button{position:absolute;right:0;top:0;background:white;border-radius:50%;line-height:1;padding:4px 8px}.message-images img{max-width:min(100%,360px);max-height:300px;object-fit:contain;border-radius:10px}

.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row .subtle-button { font-weight: 550; flex-shrink: 0; }
.generated-image { display: block; max-width: 100%; width: 512px; height: auto; border-radius: 12px; margin-bottom: 12px; }
.image-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.danger-button { color: #963f36; border: 1px solid #e5c5c0; border-radius: 8px; padding: 8px 12px; }
.danger-button:hover { background: #f9ecea; }
.image-queue-badge { position: absolute; top: -11px; left: 18px; font-size: 10px; font-weight: 650; letter-spacing: .4px; padding: 5px 11px; border-radius: 20px; background: #fff4d6; color: #8a6414; border: 1px solid #f0dca3; box-shadow: 0 2px 6px #0000000f; }
.image-queue-badge.running { background: #e3f0e6; color: #1f5b40; border-color: #bfe0c7; }
.image-state-card { position: relative; }
.image-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.image-tile{position:relative;overflow:hidden;border-radius:12px;background:#fff;border:1px solid var(--border);min-width:0}.image-tile .generated-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:0;margin:0;display:block}.image-tile-overlay{position:absolute;inset:0 0 58px;display:flex;align-items:center;justify-content:center;gap:8px;background:#102a2473;opacity:0;transition:opacity .18s}.image-tile:hover .image-tile-overlay,.image-tile:focus-within .image-tile-overlay{opacity:1}.image-overlay-button{padding:9px 13px;border-radius:8px;background:#fff;color:#26362f;font-size:12px;font-weight:600;box-shadow:0 4px 16px #0002}.image-overlay-button:hover{background:#edf4ef}.image-overlay-button.danger{background:#963f36;color:#fff}.image-tile-caption{height:58px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.image-tile-caption span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-tile-caption small{font-size:10px;color:var(--muted)}.image-state-card{min-height:190px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:18px;display:flex;flex-direction:column;gap:8px}.image-state-card p{font-size:12px;line-height:1.55;margin:0}.modal-open{overflow:hidden}.image-modal{position:fixed;inset:0;z-index:100}.image-modal-backdrop{position:absolute;inset:0;background:#10251fd9;backdrop-filter:blur(3px)}.image-modal-dialog{position:absolute;inset:2vh 2vw;display:grid;grid-template-columns:minmax(0,1fr) 300px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px #0006;outline:none}.image-modal-preview{position:relative;min-width:0;min-height:0;background:#111b17;display:grid;place-items:center;padding:18px;cursor:zoom-in}.image-modal-preview img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.image-zoom-lens{position:absolute;display:none;width:180px;height:180px;border:3px solid #fff;border-radius:50%;box-shadow:0 6px 22px #0007;pointer-events:none;background-repeat:no-repeat;background-color:#111b17;z-index:5}@media(hover:none),(pointer:coarse){.image-modal-preview{cursor:default}.image-zoom-lens{display:none!important}}.image-modal-info{min-height:0;padding:32px 26px 24px;display:flex;flex-direction:column;gap:24px;overflow:auto}.image-modal-info h2{margin:8px 0 0}.image-modal-close{position:absolute;right:14px;top:12px;z-index:2;width:38px;height:38px;border-radius:50%;background:#eef1ec;font-size:24px;line-height:1}.image-metadata{display:grid;gap:0;margin:0}.image-metadata-row{padding:13px 0;border-bottom:1px solid var(--border)}.image-metadata dt{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:6px}.image-metadata dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.image-modal-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.image-modal-actions .subtle-button,.image-modal-actions .danger-button{padding:10px 14px}
@media(max-width:1100px){.image-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.image-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.image-modal-dialog{inset:2vh 2vw;grid-template-columns:1fr;grid-template-rows:minmax(45vh,3fr) minmax(0,2fr)}.image-modal-info{padding:22px 18px}.image-modal-close{background:#fff}}@media(max-width:480px){.image-gallery{grid-template-columns:1fr}.image-tile-overlay{opacity:1;background:linear-gradient(transparent 20%,#102a2488)}.image-modal-dialog{inset:0;border-radius:0}}

.source-import-card{background:#f7faf5}.source-import-card h2{margin-bottom:8px}.source-import-card>.muted{margin-bottom:18px}.knowledge-inspector{margin-top:34px;padding-top:12px;border-top:1px solid var(--border)}.source-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}.source-link{font-size:12px;color:var(--green);text-decoration:underline;overflow-wrap:anywhere}.summary-content{font-size:13px;line-height:1.7}.summary-content p,.summary-content ul{margin-bottom:9px}.chunk-list{display:grid;gap:10px}.chunk-card{border:1px solid var(--border);border-radius:10px;background:#fff;padding:16px}.chunk-card p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:#405048}.chunk-number{font-size:10px;font-weight:650;letter-spacing:.5px;color:#6d826d}
.review-panel{margin:20px 0 32px;padding:22px;border:1px solid #d8c98f;border-radius:12px;background:#fffdf5}.review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.review-heading h2{margin:7px 0 0}.review-badge{font-size:10px;color:#805f12;background:#f6e9b9;border-radius:20px;padding:7px 11px;white-space:nowrap}.review-badge.approved{color:#1e6245;background:#dceee3}.review-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 24px}@media(max-width:700px){.review-panel{padding:16px}.review-heading{display:block}.review-badge{display:inline-block;margin-top:10px}}
.import-progress{display:flex;align-items:center;gap:10px;margin:16px 0}.spinner{width:16px;height:16px;flex-shrink:0;border-radius:50%;border:2px solid #d6e2d0;border-top-color:var(--green);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.chunk-heading-actions{display:flex;align-items:center;gap:10px}.chunk-editor-card{display:grid;gap:10px}.chunk-editor-card textarea{min-height:120px;line-height:1.6}.chunk-editor-tools{display:flex;gap:7px;flex-wrap:wrap}.chunk-editor-tools button{font-size:10px}.chunk-editor-number{display:flex;align-items:center;justify-content:space-between;gap:10px}.chunk-editor-number small{color:var(--muted)}
.upload-progress{max-width:480px;margin:18px auto 0;text-align:left}.upload-progress-bar{height:5px;background:#dfe7dc;border-radius:10px;overflow:hidden}.upload-progress-bar span{display:block;width:0;height:100%;background:var(--green);transition:width .25s ease}.upload-progress ol{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:11px}.upload-progress li{display:flex;align-items:center;gap:10px;color:#8b958d}.upload-progress li>span:last-child{display:grid;gap:2px}.upload-progress strong{font-size:12px;font-weight:600}.upload-progress small{font-size:10px}.step-marker{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border:1px solid #ccd7c9;border-radius:50%;font-size:10px;font-weight:700}.upload-progress li.active{color:var(--green)}.upload-progress li.active .step-marker{border:2px solid #d6e2d0;border-top-color:var(--green);font-size:0;animation:spin .8s linear infinite}.upload-progress li.done{color:#315c46}.upload-progress li.done .step-marker{border-color:#6f9b82;background:#e4efe7;font-size:0}.upload-progress li.done .step-marker::after{content:'✓';font-size:12px}.upload-progress li.failed{color:#a3433d}.upload-progress li.failed .step-marker{border-color:#c96a64;background:#fae8e6}.upload-progress li.failed .step-marker::after{content:'!';font-size:12px}.upload-progress #upload-elapsed{text-align:left;margin:12px 0 0}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.action-menu{position:relative;flex-shrink:0}.action-menu-list{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:260px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px #0001;padding:6px;display:grid;gap:2px}.action-menu-item{text-align:left;padding:11px 12px;border-radius:8px;font-size:13px;color:#2a3a30}.action-menu-item:hover{background:#eef3ea}
.modal-open{overflow:hidden}.simple-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.simple-modal-backdrop{position:absolute;inset:0;background:#10251fd9;backdrop-filter:blur(3px)}.simple-modal-dialog{position:relative;width:min(540px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:28px;box-shadow:0 24px 80px #0006;outline:none}.simple-modal-dialog h2{margin:0 0 8px}.simple-modal-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:50%;background:#eef1ec;font-size:22px;line-height:1}@media(max-width:700px){.simple-modal{padding:0}.simple-modal-dialog{width:100%;max-height:100vh;height:100%;border-radius:0}}
.section-review-list{display:grid;gap:12px;margin:16px 0}.section-review-card{border:1px solid var(--border);border-radius:10px;background:#fff;padding:14px 16px;transition:opacity .15s}.section-review-card.excluded{opacity:.5}.section-review-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.section-review-head label{flex-direction:row;align-items:center;gap:8px;font-size:12px;font-weight:600}.section-review-head input[type=checkbox]{width:15px;height:15px;accent-color:var(--green)}.section-review-card textarea{min-height:110px;font-size:12px}
/* Model selection uses native radio inputs for keyboard accessibility. */
.image-model-picker { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0 0 20px; }
.image-model-picker legend { margin-bottom: 10px; font-weight: 600; }
.image-model-card { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 220px; padding: 14px; border: 1px solid #a8aaa8; border-radius: 12px; cursor: pointer; }
.image-model-card:has(input:checked) { border-color: #34765c; background: #34765c12; box-shadow: 0 0 0 1px #34765c; }
.image-model-card:focus-within { outline: 2px solid #34765c; outline-offset: 3px; }
.image-model-card input { width: auto; margin: 4px 0 0; }
.image-model-card span { display: grid; gap: 5px; }
.image-model-card small { opacity: .75; }

.message-content code, .summary-content code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; background: #eef1ea; color: #3c4a3f; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.message-content blockquote, .summary-content blockquote { margin: 0 0 8px; padding: 2px 14px; border-left: 3px solid #9fb79a; color: #5a6a5c; font-style: italic; }
.code-block { margin: 10px 0; border-radius: 10px; overflow: hidden; background: #1e2622; border: 1px solid #2c362f; }
.code-block-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: #263029; border-bottom: 1px solid #333f37; }
.code-lang { font-size: 10px; letter-spacing: .5px; color: #9fb0a2; text-transform: lowercase; }
.code-copy-btn { color: #b7c4b9; padding: 4px 7px; border-radius: 6px; display: flex; }
.code-copy-btn:hover { background: #333f37; color: #fff; }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code-block code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: #e4ece6; white-space: pre; background: none; padding: 0; border-radius: 0; }
.message-content hr, .summary-content hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

.membership-choice { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 8px; }
.membership-choice input { flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.facebook-enabled{flex-direction:row;align-items:center;margin:4px 0 18px!important}.facebook-enabled input{width:auto;accent-color:var(--green)}.facebook-session-form{display:flex;align-items:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.facebook-session-form label{flex:1;margin:0!important}.facebook-session-form input{font-size:12px}.facebook-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.facebook-badge{flex-shrink:0;border-radius:20px;padding:6px 10px;background:#edf0ec;color:#68736a;font-size:10px;font-weight:650}.facebook-badge.ready,.facebook-badge.published{background:#dceee3;color:#1e6245}.facebook-badge.warning,.facebook-badge.scheduled{background:#fff1c9;color:#805f12}.facebook-badge.running{background:#dfeaf8;color:#285c94}.facebook-badge.failed{background:#f8dfdc;color:#963f36}.facebook-badge.cancelled{background:#eceeeb;color:#777}.facebook-post-row .item-info strong{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.facebook-error{color:#963f36!important}.facebook-post-row>.item-actions:empty{display:none}@media(max-width:700px){.facebook-form-row{grid-template-columns:1fr}.facebook-session-form{align-items:stretch;flex-direction:column}.facebook-post-row>.facebook-badge{margin-left:auto}}
.company-switcher{width:auto;max-width:240px;padding:7px 32px 7px 12px;border-radius:20px;font-size:11px;color:#4e6757;background-color:#fff}.company-switcher:disabled{opacity:1;cursor:default}.company-choices{display:grid;gap:8px;margin-top:18px}.company-choices>p{font-size:13px;margin:0 0 3px}.company-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--border);border-radius:9px;background:#fff;text-align:left}.company-choice:hover{border-color:#5e967e;background:#f7faf6}.company-choice strong{font-size:13px}.company-choice small{font-size:10px;color:var(--muted)}
.facebook-browser-dialog{position:relative;width:min(1180px,calc(100vw - 30px));max-height:96vh;overflow:auto;background:#fff;border-radius:16px;padding:18px;box-shadow:0 24px 80px #0006}.facebook-browser-head{display:flex;justify-content:space-between;gap:20px;padding-right:45px}.facebook-browser-head h2{margin:0 0 5px}.facebook-browser-head small{color:var(--muted)}.facebook-browser-screen{margin:15px 0;background:#18201c;border-radius:10px;overflow:hidden;line-height:0;min-height:320px;display:grid;place-items:center}.facebook-browser-screen img{display:block;width:100%;height:auto;cursor:crosshair}.facebook-browser-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.facebook-browser-controls input{flex:1;min-width:280px}.facebook-browser-controls .primary{margin-left:auto}#facebook-open-browser{margin-top:18px}@media(max-width:700px){.facebook-browser-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0;padding:12px}.facebook-browser-screen{min-height:180px}.facebook-browser-controls input{min-width:100%}}
.facebook-workspace-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(480px,1.15fr);gap:24px;align-items:start}.facebook-compose-column>.card:first-child{margin-top:22px}.facebook-test-column{min-width:0}.facebook-test-card{position:sticky;top:0}.facebook-test-card>h2{margin:10px 0 6px}.facebook-test-steps{list-style:none;padding:0;margin:20px 0;display:grid;gap:4px}.facebook-test-steps li{display:flex;align-items:center;gap:11px;padding:11px;border-radius:9px;color:#7b857e}.facebook-test-steps li>span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 auto;border-radius:50%;background:#eef1ec;font-size:11px;font-weight:700}.facebook-test-steps strong,.facebook-test-steps small{display:block}.facebook-test-steps strong{font-size:12px;color:#425047}.facebook-test-steps small{font-size:10px;margin-top:3px}.facebook-test-steps li.running{background:#edf4fb}.facebook-test-steps li.running>span{background:#285c94;color:#fff}.facebook-test-steps li.passed{background:#edf7f0}.facebook-test-steps li.passed>span{background:#27704f;color:#fff}.facebook-test-steps li.failed{background:#fff0ee}.facebook-test-steps li.failed>span{background:#963f36;color:#fff}.facebook-browser-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.facebook-browser-panel .facebook-browser-dialog{width:100%;max-height:none;overflow:visible;padding:0;border-radius:0;box-shadow:none}.facebook-browser-panel .facebook-browser-head{padding-right:38px}.facebook-browser-panel .facebook-browser-screen{min-height:230px}.facebook-browser-panel .facebook-browser-controls input{min-width:100%}.facebook-browser-panel .facebook-browser-controls .primary{margin-left:0;width:100%}@media(max-width:1180px){.facebook-workspace-grid{grid-template-columns:1fr}.facebook-test-card{position:static}}@media(max-width:700px){.facebook-workspace-grid{display:block}.facebook-browser-panel .facebook-browser-dialog{width:100%;height:auto;padding:0}.facebook-browser-panel .facebook-browser-screen{min-height:180px}}
.facebook-ai-writer{margin-top:20px;padding:20px;border:1px solid #cbdcca;border-radius:12px;background:#f7faf5}.facebook-writer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.facebook-writer-head h3{margin:7px 0 0}.facebook-writer-head>button{font-size:23px}.facebook-writer-progress{height:5px;margin:18px 0;background:#e1e8df;border-radius:10px;overflow:hidden}.facebook-writer-progress span{display:block;height:100%;width:20%;background:var(--green);transition:width .25s}.facebook-ai-writer textarea{background:#fff}.facebook-writer-actions{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.facebook-writer-review .section-title{margin:5px 0 12px}
.facebook-publish-now{border-color:#78a98f;color:#185a3f;background:#eff8f2;font-weight:650}.facebook-publish-now:hover{background:#dff0e5}
.facebook-account-actions{display:flex;gap:9px;flex-wrap:wrap}.facebook-live-activity{margin:14px 0;padding:12px;border-radius:9px;background:#edf4fb;font-size:12px}.facebook-live-activity strong{display:block;margin-bottom:4px}
.legal-grid{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}.legal-sources-card{position:sticky;top:0}.legal-sources-card .section-title:first-child{margin-top:0}.legal-catalog{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.legal-catalog summary{cursor:pointer;font-size:12px;font-weight:600;color:#2a3a30}.legal-catalog[open] summary{margin-bottom:4px}.suggestions-inline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 20px}#legal-library-link{margin-bottom:6px}.legal-toggle{width:auto;accent-color:var(--green)}@media(max-width:1100px){.legal-grid{grid-template-columns:1fr}.legal-sources-card{position:static}}
.zalo-mode-group{border:1px solid var(--border);border-radius:9px;padding:12px 14px;margin-bottom:15px;display:flex;flex-direction:column;gap:8px}.zalo-mode-group legend{font-size:11px;font-weight:650;color:var(--muted);padding:0 4px}.zalo-mode-option{flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:500}.zalo-mode-option input{width:auto;accent-color:var(--green)}.zalo-mode-option small{color:var(--muted);font-weight:400}#zalo-webhook-url-field input{font-size:11px;color:var(--muted)}
