/* Paleta do RealOS. Cores de estado ficam nos componentes que as usam. */
:root{--navy:#1c172c;--navy-deep:#151023;--ink:#23212b;--muted:#605e6c;--line:#e4e3ea;--background:#f7f7f9;--white:#fff;--violet:#5736a7;--violet-dark:#442a72;--violet-soft:#eee7fb;--lavender:#e8d8ff;--on-dark-muted:#c1b7d2;--surface-soft:#faf9fc;--shadow-soft:#251a4014;--shadow-subtle:#251a4008;--mint:#e8f3e9;--radius:10px;--sidebar-width:clamp(224px,14vw,244px);--shell-gutter:clamp(18px,2.3vw,52px);color-scheme:light;font-family:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--ink);line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,2.4vw,2.25rem);font-weight:650;letter-spacing:-.045em;line-height:1.2}h2{font-size:1.2rem;font-weight:650;letter-spacing:-.025em;line-height:1.35}h3{font-size:1rem;font-weight:650}p{color:var(--muted)}svg{width:20px;height:20px;display:block;flex-shrink:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--violet);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--violet);box-shadow:0 0 0 3px #7564cc18}input,textarea,select{width:100%;border:1px solid #d9e1e8;background:var(--white);border-radius:9px;padding:11px 13px;color:var(--ink);transition:border-color .15s,box-shadow .15s;min-width:0}input::placeholder,textarea::placeholder{color:#8995a4}textarea{resize:vertical;line-height:1.65}select{appearance:auto}label{display:flex;flex-direction:column;gap:8px;font-size:.87rem;font-weight:600;color:var(--ink)}label .optional{font-weight:400;color:var(--muted);margin-left:4px}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;overflow-wrap:anywhere}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip-link{position:fixed;z-index:200;left:12px;top:10px;padding:10px 16px;border-radius:8px;background:white;transform:translateY(-150%);box-shadow:0 2px 12px #0002}.skip-link:focus{transform:translateY(0)}.eyebrow{font-size:.65rem;font-weight:750;letter-spacing:.14em;color:#7a899a;display:block;margin-bottom:12px}.eyebrow.light{color:var(--lavender)}.muted{color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;border:1px solid transparent;border-radius:9px;padding:10px 17px;font-weight:650;font-size:.84rem;line-height:1.3;white-space:nowrap;transition:background .15s,box-shadow .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--violet);color:white;box-shadow:0 2px 3px #1c172c08}.button.primary:hover{background:var(--violet-dark)}.button.secondary{background:white;color:var(--ink);border-color:var(--line)}.button.secondary:hover{background:var(--background);border-color:#d0c4df}.button.danger{background:#fff1ef;border-color:#f3d8d4;color:#a73a31}.button.compact{min-height:36px;padding:8px 13px;font-size:.8rem}.button.full{width:100%}.align-start{align-self:flex-start}.icon-button{border:0;background:transparent;color:inherit;border-radius:8px;min-height:38px;min-width:38px;padding:9px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:#98a9b41a}.text-link{display:inline-flex;align-items:center;gap:10px;font-weight:650;color:#3a4b62;font-size:.82rem}.text-link:hover{color:var(--violet)}.text-button{border:0;background:none;padding:6px 0;font-size:.83rem;font-weight:600;color:#53657c}.text-button:hover{color:var(--violet)}.surface{border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:6px;font-size:.7rem;font-weight:600;background:#eff3f6;color:#667688;white-space:nowrap}.pill.status-published{background:#edf5e7;color:#4d703b}.pill.status-pending{background:#f0edfb;color:#7861af}.pill.status-processing{background:#eaf2fb;color:#467299}.pill.status-failed{background:#fff0e6;color:#af6c32}.pill.status-draft{background:#f2f3f5;color:#747d88}.quiet-tag{display:inline-flex;gap:8px;align-items:center;white-space:nowrap;font-size:.75rem;font-weight:500;color:#748292;background:white;border:1px solid var(--line);border-radius:6px;padding:7px 10px}.brand{display:flex;align-items:center;gap:11px;color:white;font-weight:650;font-size:1.05rem;letter-spacing:-.02em}.logo-mark{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:var(--lavender);color:var(--navy);border-radius:8px;font-size:27px;font-weight:500;line-height:1;flex-shrink:0}.boot-screen{height:100dvh;display:flex;align-items:center;justify-content:center;gap:14px}.boot-screen p{font-size:.9rem}.app-shell{display:flex;min-height:100dvh}.sidebar{overflow-y:auto;overscroll-behavior:contain;width:var(--sidebar-width);padding:23px 14px 16px;background:var(--white);color:var(--ink);border-right:1px solid var(--line);position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;z-index:40}.sidebar .brand{padding:0 10px 26px;color:var(--ink)}.sidebar .logo-mark{background:var(--violet);color:var(--white);border-radius:7px}.nav-label{font-size:.72rem;color:var(--muted);font-weight:600;padding-left:11px;margin-bottom:8px}.main-nav{display:flex;flex-direction:column;gap:3px}.main-nav a,.settings-link{display:flex;align-items:center;gap:10px;min-height:41px;padding:9px 11px;font-size:.84rem;border-radius:7px;font-weight:550;color:var(--muted);transition:background .15s,color .15s}.main-nav a:hover,.settings-link:hover{background:var(--background);color:var(--ink)}.main-nav a.active,.settings-link.active{background:var(--violet-soft);color:var(--violet-dark);font-weight:650}.main-nav a.active svg{color:inherit}.main-nav svg,.settings-link svg{width:18px;height:18px;opacity:.95}.nav-count{margin-left:auto;background:var(--violet-soft);color:var(--violet-dark);min-width:20px;text-align:center;border-radius:5px;font-size:.65rem;padding:1px 5px}.sidebar-bottom{margin-top:auto;padding-top:24px}.settings-link{margin-bottom:12px}.account-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:14px 5px 0}.avatar{width:33px;height:33px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--violet-soft);color:var(--violet-dark);font-size:.72rem;font-weight:650;flex-shrink:0}.account-row>div{flex:1;min-width:0}.account-row strong,.account-row span:not(.avatar){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-row strong{font-size:.82rem;color:var(--ink);font-weight:600}.account-row div span{font-size:.72rem;color:var(--muted);margin-top:2px}.account-row .icon-button{color:var(--muted);min-width:30px;min-height:30px;padding:6px}.account-row .icon-button svg{width:16px;height:16px}.main-shell{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));min-width:0;display:flex;flex-direction:column}.topbar{min-height:64px;border-bottom:1px solid var(--line);background:var(--white);display:flex;align-items:center;justify-content:space-between;padding:8px var(--shell-gutter);gap:16px}.topbar-left{display:flex;align-items:center;gap:14px;font-size:.75rem;min-width:0}.breadcrumb-company{color:var(--muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb-separator{color:#c8d0d8}.topbar-left strong{font-weight:550;white-space:nowrap}.topbar .button svg{width:15px;height:15px}.mobile-menu{display:none}#main-content{padding:clamp(26px,2.6vw,54px) var(--shell-gutter) 32px;flex:1;width:100%;min-width:0;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:29px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{font-size:.86rem;margin-top:10px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.section-title h2{font-size:1.06rem}.section-title p{font-size:.75rem;margin-top:5px}.section-title .text-link{font-size:.73rem}.document-list{overflow:hidden}.document-row{display:flex;align-items:center;gap:15px;padding:19px 22px;border-bottom:1px solid var(--line)}.document-row:last-child{border-bottom:0}.document-icon{width:37px;height:42px;background:var(--violet-soft);border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--violet);flex-shrink:0}.document-icon svg{width:18px;height:18px}.document-row-main{flex:1;min-width:0}.document-title{display:block;border:0;padding:0;background:transparent;color:var(--ink);line-height:1.5;font-size:.82rem;font-weight:600;text-align:left}.document-title:hover{color:var(--violet)}.document-meta{display:flex;gap:9px;align-items:center;margin-top:6px;color:#96a2ae;font-size:.66rem;flex-wrap:wrap}.document-category{font-size:.7rem;color:var(--muted)}.document-excerpt{font-size:.73rem;line-height:1.6;margin-top:7px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:780px}.document-row .icon-button{color:#8c9aab;min-width:31px;min-height:31px}.document-row .icon-button svg{width:16px;height:16px}.document-row-actions{display:flex;align-items:center;gap:12px}.document-row .pill{font-size:.62rem}.empty-state{text-align:center;padding:43px 20px 46px;display:flex;flex-direction:column;align-items:center}.empty-icon{display:flex;justify-content:center;align-items:center;width:48px;height:48px;background:#eff2f6;border:1px solid var(--line);border-radius:13px;margin-bottom:15px;color:#94a1b1}.empty-state h2{font-size:1rem;margin-bottom:7px}.empty-state p{font-size:.8rem;max-width:420px;line-height:1.65}.empty-state .button{margin-top:17px}.loading-state{padding:32px 20px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:.8rem}.spinner{width:16px;height:16px;border:2px solid #dce3eb;border-top-color:var(--violet);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-footer{border-top:1px solid var(--line);margin:0 var(--shell-gutter);padding:17px 0 22px;display:flex;justify-content:space-between;font-size:.63rem;color:#9aa4af}.app-footer span:first-child{font-weight:550}.ask-form{padding:24px}.ask-form textarea{margin-top:10px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:19px}.form-footer p,.form-footer .field-help{font-size:.73rem;max-width:500px}.answer-area{margin-top:25px}.answer-card{padding:25px}.answer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px}.answer-heading h2{display:flex;align-items:center;gap:9px;font-size:1rem}.answer-heading h2 svg{color:#889b71;width:19px;height:19px}.answer-content{max-inline-size:78ch;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.8;color:#45566a}.answer-sources-heading{font-size:.76rem;color:#738397;font-weight:600;margin:26px 0 12px}.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.source-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:15px}.source-card .document-title{font-size:.78rem}.source-card p{font-size:.72rem;line-height:1.65;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.source-card .source-meta{display:flex;justify-content:space-between;gap:12px;margin-top:13px;font-size:.64rem;color:#91a0ad}.source-card .source-meta a{color:#7775a6}.source-card .source-meta a:hover{text-decoration:underline}.stack{display:flex;flex-direction:column;gap:18px}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-card{padding:26px;display:flex;flex-direction:column;gap:20px}.add-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,.9fr);align-items:start;gap:23px}.segmented{display:flex;gap:4px;background:#f1f4f7;padding:4px;border-radius:9px;align-self:flex-start}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;padding:8px 13px;border-radius:6px;color:#8a97a6;font-size:.77rem;font-weight:550}.segmented button.active{background:white;color:#405169;box-shadow:0 1px 4px #15233812}.segmented button svg{height:16px;width:16px}#contribution-text-fields{display:flex;flex-direction:column;gap:20px}.guidance-card{padding:27px 23px}.guidance-card .eyebrow{font-size:.58rem}.guidance-card h2{font-size:1.1rem;line-height:1.5}.guidance-card ol{list-style:none;counter-reset:guidance;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:24px}.guidance-card li{counter-increment:guidance;position:relative;padding-left:31px}.guidance-card li:before{content:counter(guidance);position:absolute;left:0;top:1px;width:19px;height:19px;border-radius:50%;background:#f0eef8;color:#9b8ec1;font-size:.63rem;display:flex;align-items:center;justify-content:center}.guidance-card li strong{font-weight:600;font-size:.76rem;display:block}.guidance-card li span{font-size:.7rem;line-height:1.7;display:block;color:#8693a3;margin-top:6px}.guidance-note{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.guidance-note svg{width:17px;height:17px;flex-shrink:0;color:#b3bbcc;margin-top:2px}.guidance-note p{font-size:.68rem;line-height:1.7;color:#94a0ae}.upload-zone{border:1.5px dashed #cbd6df;border-radius:12px;padding:28px 20px;align-items:center;text-align:center;background:#f9fbfc;font-weight:400;cursor:pointer}.upload-zone:hover{border-color:var(--violet);background:#f8f7fc}.upload-icon{background:#eceaf6;color:#9482c5;width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:10px;margin-bottom:7px}.upload-zone strong{font-size:.85rem;font-weight:600}.upload-zone>span:not(.upload-icon){font-size:.75rem;color:#8593a4}.upload-zone input{max-width:310px;margin-top:10px;font-size:.75rem}.file-description{font-size:.75rem;margin-top:12px;overflow-wrap:anywhere}.field-help{font-size:.72rem;color:#8a97a7;font-weight:400;line-height:1.7}.upload-zone~.field-help{margin-top:10px}.form-error{background:#fff2ee;border:1px solid #f2d7cf;border-radius:8px;padding:11px 13px;color:#a75845;font-size:.8rem;line-height:1.65}.result-notice{display:flex;gap:15px;align-items:center;justify-content:space-between;background:#edf5e7;border:1px solid #d9e7d0;border-radius:12px;padding:20px;margin-top:20px}.result-notice strong{font-size:.88rem}.result-notice p{font-size:.76rem;color:#78906b;margin-top:5px}.result-notice.processing{background:#eef3fa;border-color:#dbe5f3}.result-notice.processing p{color:#7c94b4}.result-notice.failed{background:#fff3ec;border-color:#f2dfd2}.result-notice.failed p{color:#b58c70}.library-filters{display:flex;align-items:center;gap:12px}.search-field{position:relative;flex:1;min-width:200px;display:block}.search-field>span{position:absolute;left:13px;top:13px;color:#a1afbc}.search-field svg{width:18px;height:18px}.search-field input{padding-left:40px;min-height:44px;font-size:.8rem}.library-filters select{width:auto;min-height:44px;font-size:.77rem;max-width:210px;padding-right:9px}.result-count{font-size:.73rem;color:#8a97a7;margin:18px 0 12px;min-height:19px}.review-guidance{border:1px solid #e5e0f2;border-radius:11px;background:#f3f0f9;display:flex;align-items:flex-start;gap:12px;padding:17px 19px;margin-bottom:21px}.review-guidance svg{color:#9a88b8;flex-shrink:0;margin-top:2px}.review-guidance p{font-size:.76rem;color:#887b9d;line-height:1.75}.review-guidance strong{font-weight:600;color:#6e5e8b}.settings-card{padding:25px;margin-bottom:21px}.settings-card>h2{font-size:1.05rem}.settings-card .section-title{margin-bottom:21px}.settings-card .section-title p{max-width:650px}.connection-info{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);margin:12px 0}.connection-info>div{min-width:0}.connection-info code{display:block;margin-top:5px;color:#66758a}.connection-info .field-help{font-size:.68rem}.inline-form{display:flex;align-items:flex-end;gap:13px}.inline-form label{flex:1}.inline-form .button{min-height:45px}.settings-list{margin-top:19px}.settings-list:empty{margin-top:0}.settings-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.settings-row-main{flex:1;min-width:0}.settings-row-main strong{display:block;font-size:.8rem;font-weight:600;overflow-wrap:anywhere}.settings-row-main p{font-size:.71rem;margin-top:4px;overflow-wrap:anywhere}.settings-row select{width:auto;max-width:190px;font-size:.74rem;padding:8px 9px;min-height:36px}.settings-row .button{min-height:34px;font-size:.7rem;padding:8px 11px}.settings-details{border-top:1px solid var(--line);margin-top:20px;padding-top:19px}.settings-details summary{font-size:.8rem;font-weight:600;color:var(--muted);cursor:pointer;list-style-position:inside}.settings-details[open] summary{margin-bottom:21px}.new-token{border:1px solid #e1d9f3;background:#f4f0fb;border-radius:10px;padding:17px;margin-top:18px}.new-token>strong{font-size:.82rem;color:#79659f}.new-token>p{font-size:.73rem;color:#9b8dae;margin-top:6px}.new-token .connection-info{background:white}.new-token .connection-info code{max-width:calc(100% - 75px);overflow-wrap:anywhere;color:#79669e;font-size:.76rem;margin:0}.usage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:23px}.usage-grid strong{font-size:.78rem;font-weight:600}.usage-grid p{font-size:.72rem;line-height:1.75;margin-top:8px}.demo-banner{padding:10px 14px;border-radius:8px;background:#faf3dd;border:1px solid #f0e5c2;font-size:.73rem;color:#9b875a;margin-bottom:22px}.document-dialog{border:0;padding:0;width:min(780px,calc(100vw - 40px));max-height:calc(100dvh - 60px);border-radius:18px;box-shadow:0 24px 100px #1c172c40;color:var(--ink)}.document-dialog::backdrop{background:#1c172c70;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:27px 29px 21px;border-bottom:1px solid var(--line)}.dialog-heading .eyebrow{font-size:.59rem;margin-bottom:10px}.dialog-heading h2{font-size:1.35rem;overflow-wrap:anywhere}.dialog-heading .icon-button{color:#9eabb8;margin:-7px -8px 0 0}.dialog-content{padding:23px 29px 29px}.dialog-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:21px;font-size:.7rem;color:#8996a5}.document-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:.9rem;color:#516177;background:#fafbfc;border:1px solid var(--line);border-radius:9px;padding:20px}.document-source-link{display:inline-flex;align-items:center;gap:6px;font-size:.77rem;color:var(--violet);margin-top:17px;overflow-wrap:anywhere}.document-source-link svg{width:15px;height:15px}.document-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;border-top:1px solid var(--line);padding-top:21px;margin-top:25px}.document-detail-actions .button{font-size:.75rem;min-height:37px;padding:8px 12px}.document-history{margin-top:22px}.version-entry{border:1px solid var(--line);border-radius:9px;background:#f9fafc;margin-top:11px;overflow:hidden}.version-entry summary{padding:13px 15px;font-size:.74rem;color:#66788c;cursor:pointer}.version-entry p{padding:0 15px 15px;font-size:.78rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.reject-form{display:flex;flex-direction:column;gap:14px;border:1px solid #eadbd5;border-radius:9px;background:#fff8f4;padding:17px;margin-top:22px}.reject-form .button{align-self:flex-start}.toast-region{position:fixed;bottom:22px;right:22px;z-index:150;max-width:380px;display:flex;flex-direction:column;gap:10px;pointer-events:none}.toast{padding:13px 18px;background:var(--navy);border:1px solid #263951;color:white;border-radius:10px;box-shadow:0 6px 25px #1c172c20;font-size:.8rem;line-height:1.6;pointer-events:auto;animation:toast-in .2s ease}.toast.error{background:#7e443e;border-color:#7e443e}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.login-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,1fr);min-height:100dvh;background:white;padding:18px}.login-story{background:var(--navy);border-radius:18px;padding:43px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:420px;height:420px;border:1px solid #bca2e524;border-radius:50%;left:-200px;bottom:-140px;box-shadow:0 0 0 75px #bca2e50b,0 0 0 150px #bca2e507;pointer-events:none}.login-brand{font-size:1.1rem}.login-story-content{margin:auto 0;padding:60px 0;max-width:460px;z-index:1}.login-story h1{font-size:clamp(2.1rem,3.5vw,3.1rem);color:#f3f6f9;font-weight:600;letter-spacing:-.05em;line-height:1.2}.login-story-content>p{color:var(--on-dark-muted);font-size:.92rem;line-height:1.85;margin-top:25px;max-width:380px}.login-story .eyebrow{color:var(--lavender);font-size:.62rem;margin-bottom:22px}.login-flow{display:flex;align-items:center;gap:17px;margin-top:35px;font-size:.73rem;color:var(--lavender)}.login-flow span:nth-child(even){color:#bba9d1}.login-story-footer{font-size:.65rem;color:var(--on-dark-muted);z-index:1}.login-panel{display:flex;align-items:center;justify-content:center;padding:55px 45px}.login-form-wrap{max-width:370px;width:100%}.login-form-wrap .eyebrow{font-size:.62rem}.login-form-wrap h2{font-size:1.85rem;font-weight:600;letter-spacing:-.045em;margin-bottom:11px}.login-form-wrap>.muted{font-size:.83rem}.login-form-wrap form{margin-top:33px;gap:21px}.login-form-wrap form label{font-size:.8rem}.login-form-wrap .button{margin-top:3px;min-height:46px}.login-note{font-size:.71rem;line-height:1.8;margin-top:27px;color:#9ca6b1}.demo-entry{margin-top:24px;padding-top:23px;border-top:1px solid var(--line)}.demo-entry p{font-size:.72rem;text-align:center;margin-bottom:11px}
@media(min-width:1500px){.page-heading{margin-bottom:32px}}
@media(max-width:1150px){:root{--sidebar-width:225px}.sidebar{padding-left:14px;padding-right:14px}.sidebar .brand{font-size:.93rem}.guidance-card{padding:23px 19px}.add-layout{grid-template-columns:minmax(0,2fr) minmax(210px,.9fr);gap:17px}.library-filters{flex-wrap:wrap}.library-filters .search-field{flex-basis:100%}.library-filters select{flex:1;max-width:none}.usage-grid{gap:20px}.document-row{padding:17px 18px}.quiet-tag{font-size:.65rem}}
@media(max-width:940px){.add-layout{grid-template-columns:1fr}.guidance-card{padding:23px}.guidance-card ol{flex-direction:row;gap:20px}.guidance-card li{flex:1;padding-left:27px}.guidance-note{margin-top:21px;padding-top:17px}.guidance-note p{font-size:.72rem}.source-grid{grid-template-columns:1fr}.usage-grid{grid-template-columns:1fr;gap:20px}.document-row-actions>.pill{display:none}.page-heading>.quiet-tag{display:none}.login-story{padding:33px}.login-story h1{font-size:2.2rem}.login-panel{padding:45px 32px}.settings-row{flex-wrap:wrap}.settings-row-main{min-width:200px}.settings-row select{max-width:none}.inline-form{align-items:flex-end}.settings-row>.avatar{align-self:flex-start}}
@media(max-width:720px){:root{--sidebar-width:258px}.sidebar{visibility:hidden;transform:translateX(-100%);transition:transform .2s ease,visibility .2s;padding:26px 20px 17px}.sidebar .brand{font-size:1.05rem}.sidebar.open{visibility:visible;transform:translateX(0)}.sidebar-scrim{display:block;position:fixed;inset:0;background:#1c172c66;z-index:35}.main-shell{margin-left:0;width:100%}.mobile-menu{display:inline-flex}.topbar{min-height:58px;gap:10px}.topbar-left{gap:9px;font-size:.7rem}.breadcrumb-company{max-width:120px}.topbar-left strong{max-width:150px;overflow:hidden;text-overflow:ellipsis}.topbar .button{padding:9px 11px;min-height:35px}.topbar .button span:last-child{display:none}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading .eyebrow{font-size:.57rem}.page-heading h1{font-size:1.7rem}.page-heading p{font-size:.78rem;line-height:1.7;max-width:450px}.page-heading>.button{font-size:.7rem;min-height:35px;padding:8px 10px}.page-heading>.button svg{width:14px;height:14px}.section-title h2{font-size:1rem}.section-title p{font-size:.69rem}.section-title .text-link{font-size:.68rem;gap:5px}.document-row{padding:17px 15px;gap:11px;align-items:flex-start}.document-icon{width:31px;height:36px;border-radius:7px}.document-title{font-size:.78rem}.document-row .icon-button{margin-top:2px}.document-meta{font-size:.61rem;gap:7px}.document-excerpt{font-size:.7rem}.ask-form,.form-card,.settings-card{padding:21px 18px}.form-footer{align-items:flex-end;gap:12px}.form-footer p,.form-footer .field-help{font-size:.65rem}.form-footer .button{font-size:.73rem;padding:10px 12px}.answer-card{padding:21px 18px}.answer-content{font-size:.84rem}.guidance-card ol{flex-direction:column;gap:20px}.field-row{grid-template-columns:1fr;gap:19px}.form-card{gap:20px}.form-card label,.settings-card label{font-size:.78rem}.segmented button{font-size:.74rem;padding:8px 11px}.library-filters{gap:10px}.library-filters select{font-size:.7rem;min-width:0}.library-filters>.button{font-size:.72rem;min-height:41px;padding:9px 12px}.library-filters .search-field{min-width:0}.search-field input{font-size:.76rem}.result-count{font-size:.7rem}.review-guidance{padding:15px 16px}.review-guidance p{font-size:.7rem}.settings-card .section-title{align-items:flex-start}.settings-card .section-title h2{font-size:1rem}.connection-info{padding:12px;gap:10px;align-items:flex-start}.connection-info .button{font-size:.65rem;padding:7px 9px}.connection-info .button svg{display:none}.connection-info code{font-size:.7rem}.connection-info .field-help{font-size:.62rem}.inline-form{flex-direction:column;align-items:stretch;gap:12px}.inline-form label{width:100%}.inline-form .button{align-self:flex-start;min-height:38px;font-size:.74rem}.new-token .connection-info{flex-direction:column}.new-token .connection-info code{max-width:100%}.settings-row-main{min-width:160px}.settings-row select{font-size:.7rem;max-width:180px}.settings-details summary{font-size:.76rem}.settings-row .button{font-size:.67rem}.result-notice{flex-direction:column;align-items:flex-start;padding:18px;gap:13px}.result-notice .button{min-height:35px;font-size:.7rem}.document-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 30px);border-radius:13px}.dialog-heading{padding:22px 20px 17px}.dialog-heading h2{font-size:1.2rem}.dialog-content{padding:20px}.document-content{padding:16px;font-size:.82rem}.dialog-meta{font-size:.65rem}.toast-region{left:16px;right:16px;bottom:16px;max-width:none}.login-screen{padding:0;grid-template-columns:1fr}.login-story{border-radius:0;padding:25px 27px;min-height:0}.login-story .brand{font-size:1rem}.login-story-content{padding:37px 0 15px;max-width:450px}.login-story h1{font-size:2rem}.login-story-content>p{font-size:.78rem;line-height:1.75;margin-top:17px;max-width:370px}.login-story .eyebrow{font-size:.53rem;margin-bottom:15px}.login-flow{margin-top:24px;font-size:.68rem;gap:14px}.login-story-footer{display:none}.login-panel{padding:34px 27px 38px}.login-form-wrap{max-width:430px}.login-form-wrap h2{font-size:1.55rem}.login-form-wrap .eyebrow{font-size:.55rem}.login-form-wrap>.muted{font-size:.77rem}.login-form-wrap form{margin-top:25px;gap:18px}.login-note{margin-top:22px}.demo-entry{margin-top:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.brand>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-source-link+.document-source-link{margin-left:18px}#token-form{display:grid;grid-template-columns:minmax(120px,1.6fr) minmax(115px,1.2fr) minmax(100px,.8fr) auto;align-items:end}#token-form .button{min-height:45px}@media(max-width:940px){#token-form{grid-template-columns:1fr 1fr}#token-form .button{justify-self:start}}@media(max-width:720px){#token-form{grid-template-columns:1fr}#token-form .button{min-height:38px}.document-source-link+.document-source-link{margin-left:0;display:flex}}
.answer-notice{font-size:.75rem;line-height:1.7;margin-bottom:16px;padding:11px 13px;border:1px solid #eee4c9;background:#faf6e9;border-radius:8px;color:#9a895e}

.member-table-scroll{overflow-x:auto;margin:18px 0;border:1px solid #e3e7ed;border-radius:10px}
.member-table{width:100%;min-width:610px;border-collapse:collapse;font-size:.8rem;line-height:1.55}
.member-table th,.member-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e8ebf0;vertical-align:top;overflow-wrap:anywhere}
.member-table thead{background:#f4f6fa}.member-table tbody tr:last-child>*{border-bottom:0}
.member-table .bulk-row-error{background:#fff4f2}.bulk-row-error td:last-child{color:#a33232}
#bulk-member-form{margin-top:22px}#bulk-member-content{font-family:ui-monospace,Consolas,monospace;font-size:.8rem}
.bulk-member-result{margin-top:20px;padding:20px;border:1px solid #ccd9c0;border-radius:12px;background:#f5f8f1}
.bulk-member-result h3{margin:0 0 10px}.bulk-member-result p{font-size:.82rem;line-height:1.7}
.bulk-member-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.connector-card{align-items:flex-start}.connector-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.connector-status{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:20px;font-size:.65rem;font-weight:600;line-height:1.5;background:#eef0f3;color:#556170}.connector-status:before{content:"";width:6px;height:6px;flex-shrink:0;border-radius:50%;background:currentColor}.connector-status-connected{background:#e8f5ed;color:#23613e}.connector-status-syncing,.connector-status-not_tested,.connector-status-stale{background:#fff4d7;color:#795b13}.connector-status-error{background:#fbeae7;color:#973d32}.connector-card .connector-counts{color:var(--muted);margin-top:9px}.connector-card .form-error{max-width:65ch;overflow-wrap:anywhere}.connector-card>.button{flex-shrink:0}.connector-card .settings-row-main{min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){.connector-card{flex-direction:column;gap:12px}.connector-card .settings-row-main{width:100%}}

.review-bulk-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px 20px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.review-select-label{display:flex;align-items:center;gap:10px;font-size:.78rem;color:var(--ink)}.review-select,.review-select-label input{width:18px;height:18px;min-width:18px;accent-color:var(--violet);cursor:pointer}.review-select{margin-top:8px}.review-publish-buttons{display:flex;flex-wrap:wrap;gap:9px}.review-bulk-actions>.field-help{flex-basis:100%;margin:0}.review-select:disabled{cursor:wait}@media(max-width:720px){.review-bulk-actions{padding:16px}.review-publish-buttons{width:100%}.review-publish-buttons .button{flex:1;font-size:.72rem;padding:9px}.review-select{margin-top:6px}#review-documents .document-icon{display:none}}
.rds-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.rds-opt-in{flex-direction:row;align-items:flex-start;line-height:1.5}.rds-opt-in input{width:18px;height:18px;flex-shrink:0;margin-top:2px}.rds-connected{background:#e6f4e9;color:#267140}.rds-commands,.rds-confirm{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.rds-command{padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rds-payload{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;padding:16px;background:var(--surface-soft);border-radius:9px;font-size:.8rem}.rds-confirm>strong{display:block;margin-top:15px;overflow-wrap:anywhere}#rds-section .stack{margin-top:22px}#rds-section .section-title{flex-wrap:wrap}#rds-command-result{margin-top:16px}#rds-section{min-width:0}#rds-section .rds-actions .button{white-space:normal}
#rds-destination{overflow-wrap:anywhere;margin-top:8px}
.check-option{flex-direction:row;align-items:flex-start;gap:10px;min-width:0;font-size:.8rem;font-weight:500;color:var(--ink);line-height:1.5;overflow-wrap:anywhere;cursor:pointer}.check-option input{width:18px;height:18px;min-width:18px;padding:0;margin:1px 0 0;flex-shrink:0;accent-color:var(--violet);cursor:pointer}.check-option input:disabled{cursor:not-allowed}.check-option>span{min-width:0}.check-option small{display:block;font-size:.7rem;font-weight:400;color:var(--muted);line-height:1.6}.check-option.all{font-weight:650}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:10px 18px;margin-top:8px}
.group-picker,.access-fieldset{border:1px solid var(--line);border-radius:10px;padding:12px 16px 16px;margin:0;min-width:0}.group-picker legend,.access-fieldset legend{padding:0 6px;font-size:.84rem;font-weight:600;color:var(--ink)}.group-picker>.field-help,.access-fieldset>.field-help{margin-top:10px}
.pill.access-pill,.pill.group-chip{white-space:normal;overflow-wrap:anywhere;max-width:100%;background:#f0edfb;color:#6a5aa8}.group-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.group-chips:empty{display:none}
.access-group{border-top:1px solid var(--line)}.access-group>.settings-row{border-top:0;align-items:flex-start}.access-group-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.access-group-actions .button[aria-expanded="true"]{background:#f0edfb;border-color:#ddd5f3;color:#5d4d9a}.access-group-panel{padding:2px 0 22px}.access-module{margin-top:14px}.access-module h4{margin:0;font-size:.74rem;font-weight:650;color:var(--muted);overflow-wrap:anywhere}.access-panel-actions{display:flex;flex-wrap:wrap;gap:9px}.access-notice{font-size:.78rem;line-height:1.7;margin-bottom:14px;padding:11px 13px;border:1px solid #eee4c9;background:#faf6e9;border-radius:8px;color:#8a7a4f}#access-groups-section .settings-list{margin-top:12px}
@media(max-width:720px){.access-group>.settings-row{flex-direction:column;align-items:stretch}.access-group-actions{justify-content:flex-start}.group-picker,.access-fieldset{padding:10px 12px 14px}}
.source-settings{margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.source-settings .source-settings-summary{margin:0;color:var(--muted);overflow-wrap:anywhere}.source-settings-actions{display:flex;flex-wrap:wrap;gap:8px}.settings-row .source-settings-actions .button{min-height:32px}.push-source{border-top:1px solid var(--line)}.push-source>.settings-row{border-top:0}.source-id code{background:var(--background);border-radius:5px;padding:1px 5px}.source-instructions{margin-top:12px;border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:0}.source-instructions summary{font-size:.76rem;font-weight:600;color:var(--muted);cursor:pointer}.source-instructions[open] summary{margin-bottom:10px}.source-instructions>.field-help{margin:8px 0}.source-snippet{margin-top:12px;min-width:0}.source-snippet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.source-snippet pre{margin:6px 0 0;padding:12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.74rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.source-dialog{border:0;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 40px);border-radius:16px;box-shadow:0 24px 100px #1c172c40;color:var(--ink)}.source-dialog::backdrop{background:#1c172c70}.source-dialog .dialog-heading h2{font-size:1.1rem}.source-dialog .check-option small{margin-top:2px}
@media(max-width:720px){.push-source .settings-row{flex-direction:column;align-items:stretch}.source-settings{align-items:flex-start}.source-dialog .dialog-heading{padding:18px 18px 14px}}
.rds-source-warning{background:#fff8e8;border:1px solid #f0e0b6;border-radius:8px;padding:11px 13px;color:#7a5b16;font-size:.8rem;line-height:1.65}.rds-filter-list{margin-top:10px;gap:10px}.rds-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) auto;gap:8px;align-items:center;min-width:0}#rds-source-panel{margin-top:10px}
@media(max-width:720px){.rds-filter-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rds-filter-row>input:nth-child(3){grid-column:1/-1}}
.ai-guides{margin-top:16px}.ai-guides .settings-details{margin-top:0;padding:13px 0}.ai-guides .settings-details[open] summary{margin-bottom:12px}.ai-steps{margin:0;padding-left:20px;font-size:.78rem;line-height:1.7;color:var(--ink);overflow-wrap:anywhere}.ai-steps li+li{margin-top:6px}.ai-command{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);min-width:0}.ai-command pre{margin:0;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.ai-command code{color:#4d5d73}.ai-subtitle{font-size:.9rem;margin-top:26px}#ai-connect-section .settings-list{margin-top:8px}#ai-local-warning{margin-top:4px}
@media(max-width:720px){.ai-command{flex-direction:column}.ai-command .button{align-self:flex-start}}
/* Legibility (WCAG AA 4.5:1) for small print: last so it wins over the responsive sizes above. */
.app-footer,.document-meta,.field-help,.guidance-card li span{color:var(--muted);font-size:.75rem}

.demo-banner{color:#6f5f33}
.review-select-label{flex-direction:row}
.briefing-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:14px}.briefing-preview{margin-top:14px}.briefing-preview .access-notice{margin-bottom:10px}.briefing-composed{max-height:440px;margin-top:10px;line-height:1.65;color:var(--ink)}.briefing-editors{margin-top:6px}.briefing-block{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;min-width:0}.briefing-block-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.briefing-block h3{margin:0;font-size:.92rem;min-width:0;overflow-wrap:anywhere}.briefing-block>.field-help{margin-top:6px}.briefing-meta{margin-top:6px;font-size:.71rem;color:var(--muted);overflow-wrap:anywhere}.briefing-form{gap:10px;margin-top:12px}.briefing-form textarea{min-height:120px;font-size:.82rem}.briefing-form-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}.briefing-counter{font-size:.71rem;color:var(--muted)}.briefing-counter.near-limit{color:#a75845;font-weight:600}.briefing-form .briefing-actions{margin-top:2px}.briefing-conflict{margin-bottom:0}.briefing-conflict p{margin:0 0 10px}.briefing-readonly{margin-top:12px;padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);font-size:.8rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}.briefing-readonly.empty{color:var(--muted)}.briefing-versions{margin-top:12px}.briefing-versions h4{margin:0;font-size:.76rem;font-weight:650;color:var(--muted)}.briefing-version-actions{padding:0 15px 15px}.briefing-areas-title{margin-top:28px;font-size:.9rem}.briefing-areas-title+.field-help{margin-top:6px}.briefing-dialog .briefing-block{border-top:0;margin-top:0;padding-top:0}
@media(max-width:720px){.briefing-block h3{font-size:.86rem}.briefing-form textarea{font-size:.78rem}.briefing-composed{font-size:.72rem}}

.topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: min(38%, 420px);
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--background);
  color: var(--muted);
  font-size: .84rem;
}

.topbar-search svg {
  width: 16px;
  height: 16px;
}

.topbar-search:hover {
  color: var(--violet);
  border-color: var(--lavender);
}

@media (max-width: 900px) {
  .topbar-search { width: auto; }
}

@media (max-width: 540px) {
  .topbar-search { display: none; }
}

.workspace-switcher {
  width: auto;
  max-width: 150px;
  padding: 4px 18px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: inherit;
  color: var(--ink);
}
.oauth-workspace-grant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.invitation-code { white-space: pre-wrap; overflow-wrap: anywhere; }
#back-to-login { margin-top: 12px; }
@media (max-width: 720px) {
  .workspace-switcher { max-width: 115px; }
}
