:root{color-scheme:light;--wine:#751d32;--wine-dark:#541327;--ink:#302a2b;--muted:#766e6d;--line:#e8e1dc;--cream:#f7f4ef;--paper:#fff;--pink:#f5e9ec;--green:#386a51;--radius:14px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled,select:disabled{cursor:wait;opacity:.58}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.25;font-weight:620}
button{border:0}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #ad7181;outline-offset:4px}
input,textarea,select{width:100%;border:1px solid #dcd3ce;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;transition:border-color .15s,box-shadow .15s}
input:focus,textarea:focus,select:focus{outline:0;border-color:var(--wine);box-shadow:0 0 0 3px #751d3210}
textarea{resize:vertical;min-height:80px}
textarea::placeholder,input::placeholder{color:#948b88}
label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}
button{transition:background .15s,color .15s}
button:not(:disabled):hover{filter:brightness(.97)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;padding:11px 17px;font-weight:650;white-space:nowrap;min-height:42px}
.primary{background:var(--wine);color:#fff}
.primary:not(:disabled):hover{background:var(--wine-dark)}
.secondary{border:1px solid var(--line);background:#fff;color:var(--wine)}
.text-button{background:transparent;color:var(--wine);padding:8px;font-size:12px;font-weight:650;border-radius:6px}
.icon-button{font-size:23px;line-height:1;background:transparent;border-radius:6px;color:var(--muted);padding:5px 8px}
.brand{display:flex;gap:10px;align-items:center;font-size:21px;font-weight:750;letter-spacing:.12em;line-height:1.1}
.brand-mark{background:var(--wine);color:#fff;font-family:Georgia,serif;font-size:32px;letter-spacing:0;text-align:center;width:40px;height:43px;line-height:43px;border-radius:8px;font-weight:500}
.brand-small{display:block;font-size:8px;letter-spacing:.2em;font-weight:600;margin-top:5px}
.eyebrow,.step-label{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--wine)}
.eyebrow{margin-bottom:8px}
.muted{color:var(--muted);font-size:12px}
.field-hint{font-size:11px;color:var(--muted);line-height:1.55;margin-top:7px}
.small-badge,.outline-badge{font-size:9px;font-weight:700;letter-spacing:.07em;color:var(--wine);border-radius:5px;padding:5px 7px}
.small-badge{background:var(--pink)}
.outline-badge{border:1px solid var(--line);color:var(--muted)}
.skip-link{position:fixed;top:-60px;left:12px;z-index:20;background:#fff;border:2px solid var(--wine);padding:10px}
.skip-link:focus{top:10px}
.notice{border:1px solid #decec3;background:#fff8ea;border-radius:8px;padding:12px 15px;font-size:13px;margin-bottom:18px}
.notice[data-kind="erro"]{background:#fff1f2;border-color:#e9c7cc;color:#80253a}
.notice[data-kind="sucesso"]{background:#edf5ef;border-color:#c6dbc9;color:#335c41}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.login-story{background:var(--wine);color:#fff;padding:55px 10%;display:flex;flex-direction:column;justify-content:space-between;gap:70px}
.login-story .brand-mark{background:#ffffff20}
.login-story .eyebrow{color:#e5bdc5;margin-bottom:25px}
.login-story h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(32px,3.4vw,53px);line-height:1.18;letter-spacing:-.03em}
.login-story p:not(.eyebrow){color:#edcfd6;max-width:360px;font-size:15px;line-height:1.8;margin-top:25px}
.login-footer{font-size:11px;color:#d8a9b4}
.login-content{padding:35px;display:flex;align-items:center;justify-content:center}
.login-card{width:100%;max-width:350px}
.login-card h2{font-size:28px;margin-top:22px;letter-spacing:-.035em}
.login-card>p{color:var(--muted);margin-top:12px}
.login-card label{margin-top:35px}
.login-card .button{width:100%;justify-content:space-between;margin-top:18px}
.login-card .form-status{font-size:12px;min-height:38px;margin-top:16px}
.login-card .form-status[data-kind="erro"]{color:var(--wine)}
.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}
.sidebar{background:#f0ebe5;border-right:1px solid var(--line);padding:30px 20px 20px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh}
.sidebar .brand{font-size:18px}
.sidebar .brand-mark{width:36px;height:39px;line-height:39px}
.sidebar>.button{margin-top:8px;justify-content:flex-start}
.history-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:-14px}
.history-heading h2{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted)}
.history-list{display:flex;flex-direction:column;gap:6px;overflow-y:auto;flex:1;min-height:90px;margin:0 -6px;padding:4px 6px}
.history-item{display:flex;text-align:left;gap:9px;border:1px solid transparent;border-radius:8px;padding:10px 9px;background:transparent;color:var(--ink);width:100%}
.history-item[aria-current="true"]{background:#fff;border-color:#ded4cd;box-shadow:0 2px 3px #50262203}
.history-item .history-icon{color:#a58382;font-size:17px;padding-top:1px}
.history-item strong{font-size:12px;font-weight:600;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:151px}
.history-item span.history-meta{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.sidebar-note{display:flex;gap:8px;color:var(--muted);font-size:11px;padding:12px 3px}
.note-mark{font-size:20px;color:var(--wine)}
.user-row{display:flex;align-items:center;gap:9px;border-top:1px solid #ded5cd;padding-top:17px}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#dfd4cd;color:#6f4547;font-size:12px;font-weight:600}
.user-row strong{font-size:12px;display:block}
.user-row div>span{font-size:9px;color:var(--muted)}
.user-row .text-button{margin-left:auto}
.workspace{padding:30px 30px 18px;min-width:0;max-width:1680px;width:100%;margin:0 auto}
.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:7px 0 27px}
.workspace-header h1{font-size:25px;letter-spacing:-.025em}
.activity{font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:6px;color:var(--muted)}
.activity>span{width:6px;height:6px;border-radius:50%;background:#629b73}
.activity[data-busy="true"]>span{background:#c79747;animation:pulse 1.4s infinite}
.work-grid{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(350px,1.12fr);gap:20px;align-items:start}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 3px 8px #392e2502}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 23px 20px;border-bottom:1px solid var(--line)}
.panel-heading h2{font-size:18px;margin-top:6px}
.case-form{padding:22px 23px;display:flex;flex-direction:column;gap:20px}
.case-details{border-top:1px solid var(--line);padding-top:15px}
.case-details summary{cursor:pointer;font-size:12px;font-weight:600}
.case-details summary>span{float:right;color:var(--muted);font-weight:400;font-size:10px}
.details-fields{display:grid;gap:17px;margin-top:18px}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-pair select{font-size:11px;padding-left:8px}
.generate-button{width:100%;justify-content:space-between}
.form-footnote{text-align:center;font-size:10px;color:var(--muted);margin-top:-10px}
.label-optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}
.documents-panel{border:1px solid var(--line);border-radius:10px;padding:15px;background:#fdfbf8;min-width:0}
.documents-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.documents-heading h3{font-size:13px;line-height:1.4}
.documents-heading p{font-size:11px;line-height:1.65;color:var(--muted);margin-top:5px}
.documents-heading .outline-badge{font-size:8px;padding:3px 5px;flex-shrink:0;margin-top:1px}
.document-pickers{display:grid;grid-template-columns:1fr;gap:9px;margin-top:14px}
.document-picker{position:relative;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:12px 10px;border:1px dashed #c7a6ac;border-radius:8px;background:#fff;min-height:113px;cursor:pointer;overflow:hidden}
.document-picker:focus-within{outline:3px solid #ad7181;outline-offset:3px}
.document-picker:has(input:disabled){opacity:.55;cursor:wait}
.document-picker:not(:has(input:disabled)):hover{border-color:var(--wine);background:#fffafd}
.document-picker-icon{font-size:19px;color:var(--wine);line-height:1;margin-bottom:8px}
.document-picker strong{font-size:11px;line-height:1.45;font-weight:650}
.document-picker>span:last-of-type{font-size:10px;font-weight:450;color:var(--wine);margin-top:4px}
.document-picker input{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:inherit}
.document-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.document-list:empty{display:none}
.document-row{display:flex;align-items:flex-start;gap:9px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px;min-width:0}
.document-icon{background:var(--pink);color:var(--wine);font-size:8px;line-height:1;font-weight:750;padding:9px 5px;border-radius:5px;flex-shrink:0}
.document-info{min-width:0;flex:1}
.document-name{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}
.document-meta,.document-state{display:block;font-size:9px;line-height:1.6;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.document-state[data-kind=sucesso]{color:var(--green)}
.document-state[data-kind=erro],.document-status[data-kind=erro]{color:#962b41}
.document-actions{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;gap:3px}
.document-actions .text-button{font-size:9px;min-height:27px;padding:4px 3px}
.document-status{font-size:10px;line-height:1.65;margin-top:11px;color:var(--muted);overflow-wrap:anywhere}
.draft-notice{border-left:3px solid #c6a573;padding:10px 12px;background:#fff8ea;font-size:11px;line-height:1.65;color:#795e38}
#documentos-slot-session:not(:empty){padding:18px 22px 0}
#documentos-slot-session .documents-heading>div>p{display:none}
#documentos-slot-session .documents-heading>.outline-badge{display:none}
#case-form input:disabled,#case-form textarea:disabled,#case-form select:disabled{background:#f8f6f3;color:#766e6d;cursor:default}
.result-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 22px;gap:25px;min-height:63px}
.result-tabs button{background:transparent;font-size:12px;font-weight:650;position:relative;color:var(--muted);padding:21px 2px}
.result-tabs button[aria-selected="true"]{color:var(--wine)}
.result-tabs button[aria-selected="true"]:after{content:"";height:2px;background:var(--wine);position:absolute;bottom:-1px;left:0;right:0}
.result-tabs span{border-radius:4px;padding:2px 5px;background:#f2ece6;font-size:10px;margin-left:3px}
.empty-piece{min-height:575px;padding:70px 35px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;background:linear-gradient(170deg,#fff,#fbf9f5)}
.empty-piece h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:26px;margin-top:13px;letter-spacing:-.025em}
.empty-piece>p{max-width:290px;font-size:12px;line-height:1.8;color:var(--muted);margin-top:14px}
.empty-steps{display:flex;align-items:center;gap:15px;margin-top:38px;font-size:10px;font-weight:600;color:#897270}
.empty-steps b{font-weight:400;color:#c4b6ad}
.paper-illustration{width:84px;height:105px;background:#fff;border:1px solid #e5d6ce;border-radius:6px;box-shadow:8px 9px 0 #f2ebe3;transform:rotate(-7deg);margin-bottom:35px;padding:24px 15px}
.paper-illustration span{display:block;background:#bb8a94;height:4px;width:28px;margin-bottom:15px}
.paper-illustration i{display:block;background:#e8e0d9;height:3px;margin:6px 0}
.paper-illustration i:last-child{width:30px}
.conversation{display:flex;flex-direction:column}
.messages{padding:20px 22px;display:flex;flex-direction:column;gap:22px;max-height:570px;min-height:250px;overflow:auto;scrollbar-width:thin}
.message{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.message-label{font-size:10px;font-weight:700;letter-spacing:.05em;color:var(--wine);display:block;margin-bottom:5px}
.message-text{white-space:pre-wrap}
.message[data-role="user"]{background:#f8f5f0;border-radius:9px;padding:12px 14px}
.message[data-role="user"] .message-label{color:#77675f}
.message-form{border-top:1px solid var(--line);padding:18px 22px;background:#fff}
.message-form textarea{font-size:12px}
.message-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.message-actions>span{font-size:10px;color:var(--muted)}
.message-actions .button{font-size:11px;padding:9px 13px;min-height:36px}
.piece-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:#fdfbf8;border-bottom:1px solid var(--line)}
.piece-toolbar label{font-size:9px;color:var(--muted);margin-bottom:3px}
.piece-toolbar select{padding:4px 20px 4px 0;border:0;background:transparent;font-size:11px;max-width:190px}
.download-actions{display:flex;align-items:center;gap:3px}
.download-actions .button{font-size:11px;padding:7px 12px;min-height:34px}
.download-actions .text-button{font-size:10px}
.review-notes{padding:0 20px}
.review-notes:empty{display:none}
.review-notes details{margin-top:12px;padding:11px 13px;border:1px solid #eadbc0;border-radius:8px;background:#fffaf0;color:#73562a;font-size:11px}
.review-notes summary{font-weight:650;cursor:pointer}
.review-notes h3{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-top:13px}
.review-notes ul{padding-left:17px;margin:8px 0}
.review-notes li+li{margin-top:5px}
.petition-paper{padding:32px 30px;overflow:hidden}
.petition-paper h2{font-family:Georgia,"Times New Roman",serif;font-size:23px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.petition-paper .eyebrow{font-size:8px;color:#9d8c82}
.piece-summary{font-size:11px;color:var(--muted);line-height:1.7;margin-top:12px;border-bottom:1px solid var(--line);padding-bottom:20px}
.piece-summary:empty{display:none}
.piece-body{font-family:Georgia,"Times New Roman",serif;line-height:1.9;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:25px 0 0}
.guidance-panel{padding:26px 24px}
.guidance-intro h2{font-size:21px;letter-spacing:-.02em;margin-top:8px}
.guidance-intro>p{font-size:12px;line-height:1.75;color:var(--muted);margin-top:12px}
.guidance-form{margin-top:22px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.guidance-form textarea{font-size:12px}
.guidance-actions{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:12px}
.guidance-actions select{font-size:11px}
.guidance-actions .button{font-size:11px;padding:10px 12px}
.guidance-actions label{font-size:10px;margin-bottom:4px}
.guidance-form>.field-hint{font-size:10px;margin-top:14px}
.saved-guidance-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px}
.saved-guidance-heading h3{font-size:12px}
.saved-guidance-heading>span{font-size:10px;color:var(--muted)}
.guidance-list{display:flex;flex-direction:column;gap:12px}
.guidance-card{border:1px solid var(--line);border-radius:9px;padding:13px 14px}
.guidance-card[data-active="false"]{background:#f8f6f2;color:var(--muted)}
.guidance-card>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;margin-top:8px}
.guidance-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}
.guidance-scope{font-size:9px;font-weight:650;color:var(--wine);background:var(--pink);border-radius:4px;padding:3px 6px}
.guidance-card-meta .text-button{font-size:10px;padding:3px}
.guidance-card time{display:block;font-size:9px;color:var(--muted);margin-top:9px}
.workspace-footer{display:flex;justify-content:space-between;margin-top:22px;color:#9a8e87;font-size:9px}
.workspace-footer>span{letter-spacing:.04em}
@keyframes pulse{50%{opacity:.35}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(min-width:1500px){.work-grid{grid-template-columns:minmax(340px,.8fr) minmax(500px,1.2fr)}
.workspace{padding:40px 45px}
.case-form{gap:23px}
.empty-piece{min-height:610px}
}
@media(max-width:1160px){.app-shell{grid-template-columns:206px minmax(0,1fr)}
.sidebar{padding:25px 15px}
.workspace{padding:25px 20px}
.work-grid{gap:14px;grid-template-columns:minmax(275px,1fr) minmax(305px,1fr)}
.workspace-header h1{font-size:22px}
.activity{font-size:9px}
.case-form,.panel-heading{padding:20px 17px}
.history-item strong{max-width:129px}
.guidance-panel{padding:22px 18px}
.guidance-actions{align-items:stretch;flex-direction:column}
.guidance-actions .button{width:100%}
.field-pair{grid-template-columns:1fr}
.petition-paper{padding:26px 22px}
}
@media(max-width:960px){.app-shell{grid-template-columns:190px minmax(0,1fr)}
.work-grid{grid-template-columns:1fr}
.sidebar{gap:20px}
.history-item strong{max-width:112px}
.workspace-header{align-items:flex-start;flex-direction:column;gap:12px}
.workspace-header h1{font-size:25px}
.empty-piece{min-height:350px;padding:40px 25px}
.field-pair{grid-template-columns:1fr 1fr}
.messages{max-height:430px}
.guidance-actions{align-items:end;flex-direction:row}
.guidance-actions .button{width:auto}
.sidebar-note{font-size:10px}
.workspace{max-width:800px}
.login-story{padding:40px 9%}
.login-story h1{font-size:35px}
}
@media(max-width:640px){.login-screen{grid-template-columns:1fr}
.login-story{padding:27px;gap:35px}
.login-story h1{font-size:30px}
.login-story p:not(.eyebrow){font-size:12px;margin-top:15px}
.login-story .eyebrow{margin-bottom:15px}
.login-footer{display:none}
.login-content{padding:30px 24px}
.login-card h2{font-size:25px}
.app-shell{display:block}
.sidebar{position:static;height:auto;padding:18px 18px 12px;display:grid;grid-template-columns:1fr auto;gap:16px}
.sidebar .brand{font-size:16px}
.sidebar .brand-mark{width:31px;height:34px;line-height:34px;font-size:27px}
.sidebar>.button{margin:0;padding:9px 13px;font-size:11px}
.history-heading{grid-column:1/-1;margin:0 0 -12px}
.history-list{grid-column:1/-1;flex-direction:row;min-height:0;max-height:82px;margin:0;padding:0 0 3px}
.history-item{min-width:170px;max-width:210px}
.history-item strong{max-width:160px}
.sidebar-note{display:none}
.user-row{grid-column:1/-1;padding-top:10px}
.user-row .avatar{height:26px;width:26px}
.user-row div{display:flex;align-items:center;gap:8px}
.workspace{padding:22px 15px 15px}
.workspace-header{margin:0 2px 22px}
.workspace-header h1{font-size:23px}
.workspace-header .eyebrow{font-size:9px}
.work-grid{gap:18px}
.panel-heading h2{font-size:18px}
.step-label{font-size:9px}
.piece-toolbar{padding:14px;gap:8px}
.piece-toolbar select{max-width:135px}
.download-actions .button{padding:7px 9px}
.guidance-actions{flex-direction:column;align-items:stretch}
.guidance-actions .button{width:100%}
.guidance-panel{padding:23px 19px}
.petition-paper{padding:25px 21px}
.result-tabs{min-height:58px}
.result-tabs button{padding:17px 2px}
.message-actions{align-items:flex-end}
.message-actions>span{max-width:145px}
.workspace-footer{font-size:8px}
.workspace-footer>span{display:none}
}
@media(max-width:370px){.field-pair{grid-template-columns:1fr}
.document-pickers{grid-template-columns:1fr}
.document-picker{min-height:92px}
.download-actions{flex-direction:column;align-items:stretch}
.workspace-header h1{font-size:21px}
}
