/* Acabamento inspirado na referência aprovada. Somente apresentação. */
:root{
 --ws-header-height:62px;--ws-sidebar-width:250px;--ws-radius-control:8px;--ws-radius-panel:12px;
 --ws-icon-blue:#0879ED;--ws-folder-light:#69B6FF;--ws-purple:#7355D6;--ws-purple-soft:#F1EBFD;
 --ws-teal:#07866F;--ws-teal-soft:#E4F5F0;--ws-orange:#E58B17;--ws-blue-soft:#ECF4FF;
 --ws-panel-shadow:0 2px 7px rgba(36,75,116,.055);--ws-control-shadow:0 1px 2px rgba(36,75,116,.035);
}
body{background:linear-gradient(135deg,#F6FAFF 0%,#FFFFFF 65%,#F5F9FD 100%);font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif}
.ws-icon{display:inline-block;vertical-align:middle;flex:none;width:19px;height:19px;pointer-events:none}
button .ws-icon{width:16px;height:16px}button:has(>.ws-icon){display:inline-flex;align-items:center;justify-content:center;gap:7px}
button{box-shadow:var(--ws-control-shadow);transition:background .15s,border-color .15s,box-shadow .15s}
button:hover{border-color:var(--ws-border-strong)}button.primary{background:linear-gradient(135deg,var(--ws-primary),#105D9D);border-color:var(--ws-primary);box-shadow:0 2px 5px rgba(36,75,116,.15)}
button.primary:hover{background:linear-gradient(135deg,var(--ws-accent),var(--ws-primary));border-color:var(--ws-accent)}
input,select,textarea{box-shadow:inset 0 1px 2px rgba(36,75,116,.025)}input:focus,select:focus,textarea:focus{border-color:var(--ws-accent)}
.sidebar{width:var(--ws-sidebar-width);padding:18px 20px 25px;background:linear-gradient(110deg,#F4F8FF,#F8FBFF);border-right:1px solid #EAF0F8}
.brand{margin:0 3px 33px;gap:14px;font-size:18px;color:#112947;font-weight:700}.brand small{font-size:11px;color:var(--ws-muted);margin-top:4px}
.sidebar .logo{width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,#3975B4,#2463D9);font-size:25px;font-weight:800;letter-spacing:-1px;box-shadow:inset 0 1px 1px #ffffff35,0 4px 10px #2463d917}
.sidebar .caption{display:none}.sidebar nav a{min-height:52px;margin:2px 0;padding:10px 12px;gap:12px;font-size:13px;color:var(--ws-text);border-radius:10px}
.sidebar nav a.active{background:linear-gradient(105deg,#E1EEFF,#E8F2FE);color:#125AAA;font-weight:600}
.ws-nav-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px}.ws-nav-icon .ws-icon{width:24px;height:24px}
.ws-clock{background:var(--ws-teal-soft);color:var(--ws-teal)}.ws-book{background:var(--ws-purple-soft);color:#443470}
.sidebar-bottom{gap:11px;font-size:13px;padding:0 3px}.avatar{display:grid;place-items:center;width:40px;height:40px;padding:0;background:linear-gradient(135deg,#E0EDFF,#EEF5FF);color:#16395D;font-size:14px;font-weight:600}
.shell{margin-left:var(--ws-sidebar-width)}.shell>header{height:var(--ws-header-height);display:grid;grid-template-columns:minmax(240px,.8fr) minmax(240px,500px) minmax(200px,1.2fr);gap:18px;padding:0 28px;background:linear-gradient(100deg,#F8FBFF,#F3F8FF);border-bottom:1px solid #E6EEF8}
.header-path{display:flex;align-items:center;gap:20px;font-size:13px;min-width:0}.header-home{color:var(--ws-primary);display:grid;place-items:center;width:28px;height:28px}.header-home .ws-icon{width:23px;height:23px}
#location{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-account{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:16px}.header-account .avatar{border-radius:11px;width:38px;height:38px}.header-account .demo{background:transparent;font-size:10px;padding:0;color:var(--ws-muted)}
.workspace-search{display:flex;align-items:center;gap:8px;height:37px;padding:0 10px;border:1px solid #D5E2F3;border-radius:9px;background:white;box-shadow:0 1px 3px #244b7409;color:var(--ws-primary)}.workspace-search[hidden]{display:none}
.workspace-search>span{display:flex}.workspace-search input{width:100%;min-width:0;border:0;outline:none;box-shadow:none;background:transparent;font-size:12px;padding:0;color:var(--ws-text)}.workspace-search input::placeholder{color:#748AA3}
.workspace-search kbd{font:10px Inter,"Segoe UI",sans-serif;color:#3975B4;background:#F8FBFF;border:1px solid #EDF2FA;border-radius:4px;padding:3px 5px;white-space:nowrap}
.workspace-search:focus-within{border-color:var(--ws-accent);box-shadow:0 0 0 3px #3975b414}
.ws-module-heading{display:flex;align-items:center;gap:16px;min-width:0}.ws-module-icon{display:grid;place-items:center;width:60px;height:60px;flex:none;border-radius:15px;background:linear-gradient(135deg,#E5F0FF,#F0F6FF);color:var(--ws-accent)}.ws-module-icon .ws-icon{width:32px;height:32px}
.ws-button-label{pointer-events:none}.ws-field-control{display:block;position:relative}.ws-field-control>.ws-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:1;width:17px;height:17px;color:var(--ws-accent)}
.ws-field-control input,.ws-field-control select{padding-left:32px!important}.ws-person>.ws-icon{color:var(--ws-teal)}.ws-flag>.ws-icon{color:var(--ws-orange)}
/* Projetos: três cartões independentes, nas proporções da referência. */
#app:has(>.projects-page){padding:18px 20px 14px;height:calc(100dvh - var(--ws-header-height));max-width:none;margin:0}
.projects-page{gap:14px}.pr-heading{min-height:60px}.pr-heading h1{font-size:25px;font-weight:700;letter-spacing:-.7px;margin:0 0 5px;color:#102847}.pr-heading p{font-size:12px;line-height:1.4;color:#405C80;max-width:600px}
.projects-page .pr-heading-actions button{font-size:12px;min-height:40px;padding:9px 14px;border-radius:9px;background:#FCFDFF}.projects-page .pr-heading-actions button.primary{background:linear-gradient(135deg,var(--ws-primary),#105D9D)}
.pr-heading-actions{gap:8px}.pr-workspace{grid-template-columns:minmax(280px,27.5%) minmax(300px,1fr) minmax(300px,29%);gap:12px;border:0;background:transparent;overflow:visible;border-radius:0}
.pr-workspace.pr-no-properties{grid-template-columns:minmax(280px,28%) minmax(300px,1fr)}
.pr-tree-pane,.pr-content-pane,.pr-properties-pane{border:1px solid #E2EBF6;border-radius:12px;box-shadow:var(--ws-panel-shadow);overflow:hidden;background:linear-gradient(135deg,#FFFFFF,#FDFEFF)}
.pr-pane-heading{height:46px;min-height:46px;padding:10px 20px;background:linear-gradient(120deg,#FBFDFF,#F7FAFF);border-bottom-color:#E8EFF8}.pr-pane-heading h2{font-size:14px;color:#14253D;font-weight:650}.pr-pane-heading>span{font-size:11px;color:#405C80}.pr-pane-heading button{box-shadow:none}
.projects-page .pr-tree-heading .pr-list-link{font-size:11px;color:#244B74;padding:3px 4px}
.pr-search-box{padding:12px 18px 8px;position:relative}.pr-search-box input{height:35px;padding:7px 10px 7px 31px;font-size:11px;background:white;border-color:#E0E9F5;border-radius:9px}
.ws-search-icon{position:absolute;left:28px;top:20px;color:#49698E;pointer-events:none}.ws-search-icon .ws-icon{width:16px;height:16px}
.pr-tree{padding:2px 17px 12px}.pr-row{height:58px;gap:9px;padding:6px 10px 6px calc(4px + var(--depth)*20px);margin:3px 0;border-radius:9px;min-width:100%}
.pr-row.selected{background:linear-gradient(120deg,#EAF3FF,#EAF2FC);border-color:#C6DDF9;box-shadow:inset 2px 0 #3975B4}.pr-row:hover{background:#F1F6FD}
.projects-page .pr-expander{width:16px;min-height:30px;color:#173A60;font-size:15px;box-shadow:none}.pr-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;color:var(--ws-icon-blue);background:#F5F9FF}
.pr-icon .ws-icon{width:22px;height:22px}.pr-icon:has(.ws-icon-cube){background:#F6F2FD;color:var(--ws-purple)}
.pr-node{min-width:145px;max-width:none;box-shadow:none}.pr-name{font-size:12px;font-weight:600;color:#15263A;line-height:18px}.pr-meta{font-size:10px;line-height:14px;margin-top:3px;gap:4px;color:#526984}.pr-dot{width:4px;height:4px}
.pr-more{color:#1C385C!important;opacity:1!important}.projects-page .pr-more{min-height:28px;font-size:17px;padding:0 3px;box-shadow:none}
.pr-bar{height:6px;width:64px;background:#E9EDF3}.pr-bar i.progress{background:linear-gradient(90deg,#3975B4,#2E86E9)}.pr-bar i.done{background:linear-gradient(90deg,#13AF7B,#26C48A)}.pr-percent{font-size:10px;color:#345477;min-width:28px}
.pr-tree-footer{padding:12px 18px 18px;flex:none}.projects-page .pr-tree-footer button{background:#EAF3FF;color:#164D85;min-height:40px;padding:9px 13px;font-size:12px;border:0;box-shadow:none}
.pr-breadcrumb{min-height:26px;padding:3px 17px;border-bottom-color:#F0F4FA;background:#FDFEFF}.pr-breadcrumb button{font-size:10px;min-height:18px;padding:2px 4px;box-shadow:none}
.pr-content{padding:18px 20px}.pr-content-title{gap:16px;border:0;padding-bottom:12px}.pr-content-title h2{font-size:22px;letter-spacing:-.55px;font-weight:650;margin:0 0 7px;color:#102847}.pr-content-title span:not(.pr-large-icon){font-size:12px;color:#496689}.pr-large-icon{width:66px;height:66px;border-radius:16px;background:linear-gradient(135deg,#E7F1FF,#EDF6FF);color:var(--ws-icon-blue)}.pr-large-icon .ws-icon{width:35px;height:35px}
.pr-content-more{box-shadow:none;background:transparent!important}.pr-summary{gap:20px;padding:8px 0 18px;border-bottom:1px solid #EAF0F8}.pr-summary .pr-bar{height:8px}.pr-summary .pr-percent{font-size:12px;font-weight:550;min-width:35px}
.pr-status{font-size:11px;border-radius:7px;padding:5px 8px;background:#F3F5F8;color:#526984}.pr-status.progress{color:#165695;background:#EAF3FF}.pr-status.done{color:#218054;background:#E8F6EE}
.pr-section-heading{margin:15px 0 12px}.pr-section-heading h3{font-size:12px;font-weight:600;color:#254466}.pr-section-heading button{min-height:30px;font-size:11px;padding:5px 9px;border:1px solid #E5ECF6;color:#183959;background:#FBFDFF}
.pr-child{height:53px;gap:9px;padding:7px 10px;border-radius:10px;border-color:#E3EBF6;margin:5px 0;background:linear-gradient(110deg,#FFFFFF,#FBFDFF)}.pr-child>button:first-child{gap:8px;box-shadow:none}.pr-child .pr-icon{width:24px;height:24px;background:transparent}.pr-child .pr-icon .ws-icon{width:18px;height:18px}
.pr-child-name{font-size:12px;color:#24466D}.pr-child-progress{flex:0 0 29%;min-width:68px;gap:8px}.pr-child-progress .pr-bar{height:7px}.pr-child-status{flex:none;font-size:10px;padding:4px 6px;white-space:nowrap}.pr-child>button:last-child{font-size:17px;color:#153A60;box-shadow:none}
.pr-description-label{font-size:12px;color:#345478;border-top:1px solid #EAF0F8;padding-top:16px;margin-top:17px}.pr-description-label textarea{border-color:#D5E1F0;border-radius:9px;font-size:12px;min-height:115px;padding:12px;line-height:1.65;margin-top:10px;color:#23466D;background:white}
.pr-session-note{font-size:10px;color:#526C8F;margin-top:12px;line-height:1.5}
.pr-properties{padding:14px 19px}.pr-group{padding-bottom:16px;margin-bottom:16px;border-bottom-color:#E9F0F9}.pr-group h3{font-size:11px;letter-spacing:.2px;font-weight:650;color:#193754;margin-bottom:10px}
.pr-action-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pr-action-bar button{display:flex;flex-direction:column;gap:7px;min-height:56px;padding:8px 3px;background:#F3F7FC;border:0;border-radius:10px;font-size:11px;color:#244B74;box-shadow:none}
.pr-action-bar button .ws-icon{width:17px;height:17px}.pr-action-bar button[data-project-action=child]{background:#EEF5FF;color:#126CCD}.pr-action-bar button.pr-delete{background:#FFF3F5;color:#C83B4C!important}
.pr-group label{font-size:11px;color:#24476C;margin:10px 0}.pr-group input,.pr-group select,.pr-group textarea{font-size:12px;min-height:36px;padding:7px 9px;border-color:#D6E1F0;border-radius:8px;margin-top:5px;color:#173B62;background:white}
.pr-form-grid{gap:14px}.pr-inline-actions button{font-size:10px;min-height:29px;padding:5px 8px;background:#F9FBFF;border-color:#DBE6F5}.pr-hint{font-size:9px;color:#778BA5;line-height:1.4;margin-top:7px}
.pr-group textarea{min-height:95px}.projects-page .pr-slider-line{gap:12px;margin:9px 0}.projects-page .pr-slider-line output{font-size:12px;color:#244B74}
.projects-page .pr-slider-line input[type=range]{appearance:none;-webkit-appearance:none;min-height:22px;height:22px;margin:0;padding:0;box-shadow:none;opacity:1}
.pr-slider-line input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:linear-gradient(to right,#3975B4 0 var(--range-fill),#E9EEF5 var(--range-fill) 100%)}
.pr-slider-line input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border:0;border-radius:50%;background:linear-gradient(135deg,#5DA6FF,#267BDA);box-shadow:0 1px 3px #2863a52b;margin-top:-5px}
.pr-slider-line input[type=range]::-moz-range-track{height:8px;border-radius:8px;background:linear-gradient(to right,#3975B4 0 var(--range-fill),#E9EEF5 var(--range-fill) 100%)}.pr-slider-line input[type=range]::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:#3975B4}
.pr-context-menu{border-color:#DCE6F3;box-shadow:0 8px 28px #244b7420;border-radius:10px}.pr-context-menu button:has(.ws-icon){justify-content:flex-start;display:flex;font-size:12px}.pr-dialog{border-radius:12px;box-shadow:0 18px 60px #244b7426}
/* Ponto: mesma família visual, mantendo lançamentos e ações compactos. */
main:has(>.point-page){height:calc(100dvh - var(--ws-header-height));padding:18px 20px 14px}
.point-page{gap:12px}.pt-heading>div:first-child,.kb-heading>div:first-child{display:grid;grid-template-columns:60px minmax(0,1fr);column-gap:16px;align-items:center;min-width:0}.pt-heading .ws-module-icon,.kb-heading .ws-module-icon{grid-row:1/3}.pt-heading h1,.kb-heading h1{grid-column:2;font-size:24px;font-weight:650;letter-spacing:-.5px;color:#102847;align-self:end}.pt-heading p,.kb-heading p{grid-column:2;font-size:11px;color:#496689;align-self:start;margin-top:4px}
.pt-toolbar button{min-height:34px;font-size:11px;gap:6px;padding:6px 10px;border-radius:8px}.pt-heading{min-height:60px}.pt-context input,.pt-context select{min-height:35px;border-color:#D6E1F0;border-radius:8px;font-size:12px;color:#173B62}.pt-context{gap:8px}.pt-context label{font-size:11px}.pt-context>button{min-height:34px;font-size:11px}.pt-company-actions button{width:30px;min-height:32px}.pt-company-actions .ws-button-label:empty{display:none}.pt-memory{font-size:9px}
.pt-kpis>div{border:1px solid #E1EAF5;border-top:2px solid #3975B4;border-radius:10px;box-shadow:var(--ws-panel-shadow);padding:10px 13px}.pt-kpis strong{font-size:21px}.pt-kpis small{font-size:10px}.pt-month-track{height:5px;background:#E9EEF5}.pt-month-track i,.pt-progress i{background:linear-gradient(90deg,#3975B4,#2E86E9)}
.pt-insights>div{border-radius:10px;border-color:#E1EAF5;box-shadow:var(--ws-panel-shadow);padding:9px 11px}.pt-insights b{font-size:11px}.pt-insights span{font-size:10px}
.pt-launch{border-radius:12px;border-color:#E1EAF5;box-shadow:var(--ws-panel-shadow)}.pt-list-title{padding:10px 13px;background:#F8FBFF}.pt-list-title strong{font-size:12px}.pt-columns{background:#F7FAFE;border-color:#E5EDF8}.pt-day-line{min-height:50px;padding:6px 12px}.pt-date button{font-size:12px;box-shadow:none}.pt-company-name{font-size:11px}.pt-day-total{font-size:12px}.pt-progress>div{height:6px;background:#E9EEF5}.pt-details{padding:7px 9px;background:#F4F8FD}.pt-period{border-radius:8px;border-color:#DFE8F5;overflow:hidden}.pt-period-head{background:#F8FBFF;padding:4px 8px}.pt-activity{min-height:30px;font-size:11px;border-color:#EDF2F9}.pt-activity strong{font-size:11px}.pt-activity-actions .ws-icon,.pt-period-actions .ws-icon,.pt-day-actions .ws-icon{width:14px;height:14px}.pt-activity-actions .ws-button-label:empty,.pt-period-actions .ws-button-label:empty,.pt-day-actions .ws-button-label:empty{display:none}.pt-activity-actions button,.pt-period-actions button,.pt-day-actions button{box-shadow:none;border-color:#DDE7F3}
.pt-dialog{border-radius:12px;box-shadow:0 18px 60px #244b7426}.pt-dialog-title{background:#F8FBFF}.pt-selected{background:#EAF3FF!important}.pt-calendar button{border-radius:8px}
/* Conhecimento: editor amplo e organização original, com os mesmos painéis. */
#app:has(>.knowledge-page){height:calc(100dvh - var(--ws-header-height))}.knowledge-page{height:calc(100% + 20px);margin:-10px -12px;gap:14px}.kb-heading{min-height:60px}.kb-heading h1{margin:0 0 2px}.kb-heading-actions button{min-height:36px;font-size:11px;padding:7px 11px;border-radius:8px}
.kb-workspace{gap:12px;grid-template-columns:270px minmax(270px,1fr) 285px;border:0;border-radius:0;overflow:visible;background:transparent}.kb-workspace.kb-no-properties{grid-template-columns:270px minmax(270px,1fr)}
.kb-tree-pane,.kb-editor-pane,.kb-properties-pane{background:white;border:1px solid #E1EAF5;border-radius:12px;box-shadow:var(--ws-panel-shadow);overflow:hidden}.kb-pane-heading{height:46px;min-height:46px;padding:9px 14px;background:#F8FBFF;border-color:#E6EEF8}.kb-pane-heading h2{font-size:13px;font-weight:650}.kb-pane-heading button{box-shadow:none}.kb-search{padding:10px}.kb-search input{height:34px;border-color:#DCE7F5;border-radius:8px}.kb-tree{padding:2px 9px 12px}.kb-row{height:42px;border-radius:9px}.kb-row.selected{background:#EAF3FF;border-color:#C6DDF9}.kb-node-text{font-size:12px}.kb-node-text small{font-size:9px}.knowledge-page .kb-node{gap:8px;box-shadow:none}.ws-item-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:7px;background:#F5F9FF;color:#197CDD}.ws-item-icon .ws-icon{width:20px;height:20px}.ws-item-icon:has(.ws-icon-cube){color:var(--ws-purple);background:var(--ws-purple-soft)}
.knowledge-page .kb-expander,.knowledge-page .kb-more{box-shadow:none}.kb-breadcrumbs{background:#FDFEFF;border-color:#EEF3FA}.kb-breadcrumbs button{box-shadow:none}.kb-pages{padding:7px 12px;gap:5px;border-color:#E8EFF8}.kb-pages button{border-radius:8px;font-size:11px;box-shadow:none}.kb-pages button.active{background:#EAF3FF;color:#165695}
.kb-document-heading{padding:14px 20px 9px}.kb-document-heading input{font-size:24px;color:#102847}.kb-toolbar{padding:7px 14px;gap:4px;background:#FBFDFF}.kb-toolbar button{min-height:28px;border-radius:6px;box-shadow:none;font-size:11px}.kb-document{padding:18px 22px;background:white}.kb-editor{font-size:13px;line-height:1.75}.kb-editor blockquote{border-radius:0 8px 8px 0;background:#F2F7FF}.kb-editor-note{padding:6px 12px;background:#FBFDFF}.kb-status{background:#EAF3FF;color:#165695;border-radius:6px}
.kb-properties{padding:14px}.kb-properties h3{font-size:12px;color:#193754}.kb-properties label{font-size:11px;color:#24476C}.kb-properties input,.kb-properties select{height:34px;border-radius:8px;border-color:#D6E1F0;font-size:12px}.kb-properties form{border-color:#E9F0F9;padding-bottom:14px;margin-bottom:14px}.kb-property-actions button{font-size:10px;background:#F6F9FE;box-shadow:none}.kb-property-actions button.kb-danger{background:#FFF3F5}.kb-memory{font-size:10px}.kb-dates span{font-size:10px}.kb-root-drop{border-color:#D1DFF2;background:#FBFDFF;border-radius:8px}.kb-dialog-actions button{gap:6px}#kb-dialog{border-radius:12px;box-shadow:0 18px 60px #244b7426}
.pr-name{font-size:13px}.pr-meta{font-size:11px}.pr-child-name{font-size:13px}.pr-child-status{font-size:11px}.pr-group h3,.pr-group label{font-size:12px}.pr-group input,.pr-group select,.pr-group textarea{font-size:13px}
/* Adaptação: não força os três painéis dentro de telas estreitas. */
@media(max-width:1400px){.pr-child-status{display:none}.pr-workspace{grid-template-columns:minmax(255px,27%) minmax(270px,1fr) minmax(280px,29%)}.pr-heading p{max-width:430px}.pr-form-grid{gap:9px}.pr-pane-heading{padding:10px 15px}.pr-content{padding:16px}.pr-properties{padding:13px 15px}}
@media(max-width:1250px){:root{--ws-sidebar-width:220px}.shell>header{grid-template-columns:minmax(185px,1fr) minmax(230px,400px) auto;gap:14px;padding:0 20px}.header-path{gap:10px;font-size:12px}.header-account .demo{display:none}.pr-workspace{grid-template-columns:250px minmax(235px,1fr) 270px}.pr-workspace.pr-no-properties{grid-template-columns:250px minmax(235px,1fr)}.pr-heading-actions{gap:5px}.projects-page .pr-heading-actions button{font-size:11px;padding:8px 9px}.pr-heading h1{font-size:23px}.pr-heading p{max-width:310px;font-size:11px}.pr-heading .ws-module-icon{width:52px;height:52px}.pr-form-grid{grid-template-columns:1fr}.kb-workspace{grid-template-columns:230px minmax(240px,1fr) 250px}.kb-workspace.kb-no-properties{grid-template-columns:230px minmax(240px,1fr)}}
@media(max-width:1100px) and (min-width:761px){.pr-workspace,.pr-workspace.pr-no-properties{grid-template-columns:230px minmax(0,1fr);position:relative}.pr-properties-pane{position:absolute;right:0;top:0;bottom:0;width:280px;z-index:5;box-shadow:-6px 0 25px #244b741c}.pr-heading{align-items:flex-start;flex-wrap:wrap}.pr-heading-actions{max-width:none;justify-content:flex-start}.pr-heading p{max-width:none}.pr-heading .ws-module-heading{min-width:0}.pr-heading h1{font-size:22px}}
@media(max-width:980px){.kb-workspace,.kb-workspace.kb-no-properties{grid-template-columns:220px minmax(0,1fr);position:relative}.kb-properties-pane{position:absolute;right:0;top:0;bottom:0;width:270px;z-index:4;box-shadow:-6px 0 25px #244b741c}.shell>header{grid-template-columns:minmax(160px,1fr) minmax(190px,1.4fr) auto;gap:10px;padding:0 16px}.header-home{display:none}.header-account{gap:0}.workspace-search kbd{display:none}.pt-heading{gap:10px}.pt-heading p{max-width:260px}}
@media(max-width:760px){
 :root{--ws-header-height:110px;--ws-sidebar-width:240px}:root:has(.point-page){--ws-header-height:62px}
 .sidebar{width:var(--ws-sidebar-width)}.shell{margin-left:0}.shell>header{display:flex;flex-wrap:wrap;gap:8px 12px;padding:10px 14px;align-content:center}.header-path{flex:1;font-size:11px;min-width:0}.header-account .avatar{width:30px;height:30px;font-size:11px}.header-home{display:none}#mobileNav{display:block;box-shadow:none;font-size:16px;padding:3px 5px;min-height:28px}.workspace-search{order:4;width:100%;height:34px;flex-basis:100%}.workspace-search kbd{display:block}.header-account .demo{display:none}
 #app:has(>.projects-page){height:auto;min-height:calc(100dvh - var(--ws-header-height));padding:15px 12px}.projects-page{height:auto;gap:12px}.pr-heading{gap:11px;flex-wrap:wrap}.pr-heading .ws-module-heading{gap:12px;width:100%}.pr-heading .ws-module-icon{width:45px;height:45px;border-radius:12px}.pr-heading .ws-module-icon .ws-icon{width:27px;height:27px}.pr-heading h1{font-size:22px}.pr-heading p{font-size:10px;max-width:none}.pr-heading-actions{width:100%;gap:5px}.projects-page .pr-heading-actions button{min-height:33px;font-size:10px;padding:6px 7px;gap:4px}.pr-heading-actions .ws-icon{width:14px;height:14px}.pr-workspace,.pr-workspace.pr-no-properties{display:flex;flex-direction:column;gap:12px;min-height:450px}.pr-tree-pane{max-height:365px;border:1px solid #E1EAF5}.pr-tree-pane.pr-open{display:flex}.pr-tree{flex-basis:180px}.pr-row{height:51px;gap:6px;margin:3px 0}.pr-name{font-size:11px}.pr-meta{font-size:9px}.pr-tree-footer{padding:8px 14px}.projects-page .pr-tree-footer button{min-height:32px;font-size:11px}.pr-content-pane,.pr-properties-pane{border:1px solid #E1EAF5}.pr-content{padding:14px}.pr-content-title h2{font-size:20px}.pr-large-icon{width:52px;height:52px;border-radius:12px}.pr-large-icon .ws-icon{width:29px;height:29px}.pr-content-title span:not(.pr-large-icon){font-size:10px}.pr-child-name{font-size:11px}.pr-child-status{display:none}.pr-child-progress{min-width:62px;flex-basis:28%;gap:5px}.pr-child{height:48px;gap:5px;padding:5px 7px}.pr-form-grid{grid-template-columns:1fr 1fr}.pr-heading-actions .ws-button-label{white-space:nowrap}.pr-properties{padding:14px}.pr-summary{gap:10px}.pr-pane-heading{height:42px;min-height:42px;padding:8px 14px}.pr-properties-pane{position:static;width:auto;box-shadow:var(--ws-panel-shadow)}
 main:has(>.point-page){height:auto;min-height:calc(100dvh - var(--ws-header-height));padding:14px 10px}.point-page{height:auto;gap:10px}.pt-heading>div:first-child,.kb-heading>div:first-child{grid-template-columns:44px minmax(0,1fr);column-gap:11px}.pt-heading .ws-module-icon,.kb-heading .ws-module-icon{width:44px;height:44px;border-radius:12px}.pt-heading .ws-module-icon .ws-icon,.kb-heading .ws-module-icon .ws-icon{width:26px;height:26px}.pt-heading h1,.kb-heading h1{font-size:20px}.pt-heading p{font-size:9px;max-width:none}.pt-toolbar button{min-height:29px;padding:5px 7px;font-size:10px}.pt-kpis>div{padding:9px}.pt-kpis strong{font-size:19px}.pt-insights>div{padding:8px}.pt-insights b{font-size:10px}.pt-insights span{font-size:9px}.pt-days{border-radius:10px}.pt-activity{font-size:10px}.pt-activity strong{font-size:10px}.pt-day-line{padding:6px 9px}.pt-company-name{font-size:9px}.pt-period-head{gap:5px}.pt-activity-actions button{gap:0}.pt-launch{border:0;box-shadow:none;overflow:visible}
 #app:has(>.knowledge-page){padding:12px 10px;height:calc(100dvh - var(--ws-header-height))}.knowledge-page{margin:0;height:100%;gap:10px}.kb-heading{min-height:44px;gap:10px}.kb-heading p{display:none}.kb-heading .ws-module-icon{grid-row:1}.kb-heading h1{align-self:center}.kb-heading-actions{width:100%;gap:5px}.kb-heading-actions button{min-height:30px;font-size:10px;padding:5px 8px;gap:5px}.kb-workspace,.kb-workspace.kb-no-properties{display:flex;position:relative;gap:0;overflow:visible}.kb-editor-pane{width:100%;flex:1}.kb-tree-pane{position:absolute;inset:0 auto 0 0;width:min(285px,93%);z-index:5;border:1px solid #E1EAF5;box-shadow:6px 0 20px #244b7426}.kb-properties-pane{position:absolute;right:0;top:0;bottom:0;width:min(270px,93%);z-index:4;border:1px solid #E1EAF5;box-shadow:-6px 0 20px #244b7426}.kb-document{padding:12px 15px}.kb-document-heading{padding:12px 14px 7px}.kb-document-heading input{font-size:21px}.kb-toolbar{padding:6px 9px}.kb-editor{font-size:12px}.kb-breadcrumbs{max-height:58px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* Visibilidade dos controles móveis preservada apesar dos ícones nos botões. */
.projects-page .pr-heading-actions .pr-mobile-tree,.knowledge-page .kb-heading-actions .kb-mobile-tree{display:none}
.projects-page .pr-expander:disabled{visibility:hidden}
.projects-page .pr-slider-line input[type=range]:disabled{opacity:1}
@media(max-width:760px){.projects-page .pr-heading-actions .pr-mobile-tree,.knowledge-page .kb-heading-actions .kb-mobile-tree{display:inline-flex}}

/* Ajustes pontuais: somente árvore de Projetos e cartões de lançamentos. */
.projects-page .pr-tree .pr-row.selected{box-shadow:none;background:linear-gradient(120deg,#EAF3FF,#EAF2FC)}
.projects-page .pr-tree .pr-expander{display:grid;place-items:center;align-self:center;flex:0 0 20px;width:20px;height:30px;line-height:1;padding:0;margin:0}
.projects-page .pr-tree .pr-icon{flex:0 0 31px}
.projects-page .pr-tree .pr-row{column-gap:8px;padding-left:calc(8px + var(--depth)*24px)}
.point-page .pt-columns{display:none}
.point-page .pt-days{padding:10px;background:#F5F8FC}
.point-page .pt-day{border:1px solid #DFE7F1;border-radius:10px;background:#FFFFFF;margin-bottom:10px;box-shadow:0 2px 5px #244b7406;overflow:hidden}
.point-page .pt-day:last-child{margin-bottom:0}
.point-page .pt-day-line{background:#FFFFFF;border:0;padding:6px 10px;min-height:50px}
.point-page .pt-day-total{color:#244B74}
.point-page .pt-status{justify-self:start;background:#F3F7FA;border-radius:6px;padding:4px 7px}
.point-page .pt-details{padding:8px;background:#FAFCFF;border-top:1px solid #EDF1F7;gap:8px}
.point-page .pt-period{border:1px solid #E1E8F1;border-radius:8px;background:#FFFFFF}
.point-page .pt-period-head{background:#F5F8FD;border-bottom:1px solid #EAF0F7}
.point-page .pt-period[data-period-tone=morning] .pt-period-head>strong{color:#8C681A;background:#FFF6DF}
.point-page .pt-period[data-period-tone=afternoon] .pt-period-head>strong{color:#315F8C;background:#EAF2FC}
.point-page .pt-period[data-period-tone=night] .pt-period-head>strong{color:#665080;background:#F1ECF8}
.point-page .pt-period-head>strong{border-radius:5px;padding:3px 6px;font-size:9px}
.point-page .pt-activity{border-top:1px solid #F0F3F8;background:#FFFFFF}
.point-page .pt-activity:hover{background:#FAFCFF}
.point-page .pt-activity-duration{color:#244B74;font-weight:600}
@media(max-width:760px){
 .point-page .pt-days{padding:7px;border:0;background:#F5F8FC}
 .point-page .pt-day{margin-bottom:8px}
 .point-page .pt-day-line{min-width:0;padding:6px 8px}
 .point-page .pt-details{padding:6px;gap:7px}
 .projects-page .pr-tree .pr-row{padding-left:calc(6px + var(--depth)*22px);column-gap:6px}
}

/* Base de Conhecimento: mesma seleção sem faixa e alinhamento da árvore. */
.knowledge-page .kb-tree .kb-row.selected{box-shadow:none;background:#EAF3FF}
.knowledge-page .kb-tree .kb-expander{display:grid;place-items:center;align-self:center;flex:0 0 20px;width:20px;height:28px;line-height:1;padding:0;margin:0}
.knowledge-page .kb-tree .kb-expander:disabled{visibility:hidden}
.knowledge-page .kb-tree .kb-row{padding-left:calc(6px + var(--depth)*22px);column-gap:5px}

/* Escala global: Projetos como referência, com controles compactos explícitos. */
:root{
 --ws-font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;
 --ws-font-title:24px;--ws-font-heading:14px;--ws-font-body:13px;--ws-font-label:12px;--ws-font-meta:11px;
 --ws-weight-title:650;--ws-weight-heading:600;--ws-weight-body:400;
 --ws-control-height:36px;--ws-button-height:34px;--ws-button-compact:26px;
 --ws-icon-action:16px;--ws-icon-nav:18px;--ws-icon-highlight:20px;--ws-icon-title:24px;
 --ws-gap-small:6px;--ws-gap:12px;--ws-gap-section:16px;
}
body,button,input,select,textarea{font-family:var(--ws-font-family)}
.projects-page,.point-page,.knowledge-page{font-size:var(--ws-font-body)}
:is(.pr-heading,.pt-heading,.kb-heading) h1{font-size:var(--ws-font-title);font-weight:var(--ws-weight-title);line-height:1.25;letter-spacing:-.5px}
:is(.pr-heading,.pt-heading,.kb-heading) p{font-size:var(--ws-font-label);line-height:1.4}
:is(.pr-pane-heading,.kb-pane-heading) h2,.pt-list-title strong{font-size:var(--ws-font-heading);font-weight:var(--ws-weight-heading)}
:is(.pr-group,.kb-properties) h3{font-size:var(--ws-font-label);font-weight:var(--ws-weight-heading)}
:is(.pr-group,.kb-properties,.pt-context,.pt-dialog,.pr-dialog,[id=kb-dialog]) label{font-size:var(--ws-font-label);line-height:1.4}
:is(.projects-page,.point-page,.knowledge-page,.pr-dialog,.pt-dialog,[id=kb-dialog]) button{font-family:var(--ws-font-family);font-size:var(--ws-font-label);border-radius:var(--ws-radius-control);min-height:var(--ws-button-height);padding:6px 10px;gap:6px;line-height:1.2}
:is(.projects-page,.point-page,.knowledge-page,.pr-dialog,.pt-dialog,[id=kb-dialog]) button:not(.primary):not(.pr-danger):not(.pt-danger):not(.kb-danger){color:var(--ws-text)}
:is(.pr-danger,.pt-danger,.kb-danger){color:var(--ws-danger);background:var(--ws-danger-soft);border-color:var(--ws-border)}
:is(.projects-page,.point-page,.knowledge-page,.pr-dialog,.pt-dialog,[id=kb-dialog]) button:focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}
:is(.projects-page,.point-page,.knowledge-page,.pr-dialog,.pt-dialog,[id=kb-dialog]) :is(input:not([type=range]),select,textarea){font-family:var(--ws-font-family);font-size:var(--ws-font-body);border:1px solid var(--ws-border);border-radius:var(--ws-radius-control);color:var(--ws-text);background:var(--ws-surface);min-height:var(--ws-control-height);padding:7px 9px}
:is(.projects-page,.point-page,.knowledge-page,.pr-dialog,.pt-dialog,[id=kb-dialog]) :is(input,select,textarea):focus{border-color:var(--ws-accent)}
.ws-icon,button .ws-icon,.pt-activity-actions .ws-icon,.pt-period-actions .ws-icon,.pt-day-actions .ws-icon{width:var(--ws-icon-action);height:var(--ws-icon-action)}
.ws-nav-icon .ws-icon,.header-home .ws-icon{width:var(--ws-icon-nav);height:var(--ws-icon-nav)}
.pr-icon .ws-icon,.ws-item-icon .ws-icon{width:var(--ws-icon-highlight);height:var(--ws-icon-highlight)}
.ws-module-icon .ws-icon,.pr-large-icon .ws-icon{width:var(--ws-icon-title);height:var(--ws-icon-title)}
/* Mesma posição e tamanho compacto das ações de linha, sem novos menus. */
:is(.point-page,.knowledge-page,.projects-page) :is(.pt-day-actions,.pt-period-actions,.pt-activity-actions,.pt-company-actions,.kb-toolbar,.kb-property-actions,.pr-inline-actions) button{min-height:var(--ws-button-compact);font-size:var(--ws-font-meta);padding:3px 5px}
.point-page :is(.pt-day-actions,.pt-period-actions,.pt-activity-actions) button[aria-label]{width:26px;min-width:26px;height:26px;padding:3px}
:is(.pr-heading-actions,.pt-toolbar,.kb-heading-actions) button{min-height:40px;font-size:var(--ws-font-label);padding:8px 11px}
.projects-page .pr-action-bar button{min-height:56px;flex-direction:column;font-size:var(--ws-font-label)}
:is(.pr-meta,.kb-node-text small,.pt-counts,.pt-status,.pt-company-name,.pt-date small,.pt-progress small,.pt-period-head,.pt-period-head>span,.pt-period-head>strong,.pr-hint,.pr-session-note,.kb-memory,.kb-dates span,.kb-editor-note,.pt-footer,.pt-memory,.pt-note,.pt-insights span,.pt-kpis small){font-size:var(--ws-font-meta);line-height:1.35}
:is(.pr-name,.kb-node-text,.pr-child-name,.pt-date button,.pt-day-total,.pt-activity,.pt-activity strong){font-size:var(--ws-font-body)}
.point-page .pt-activity{min-height:32px;line-height:18px;padding:2px 7px}
.point-page .pt-period-head{gap:8px;padding:4px 7px}
.point-page .pt-day-line{grid-template-columns:120px minmax(90px,.8fr) 65px 100px minmax(90px,.8fr) minmax(105px,.8fr) 235px}
.point-page .pt-context select{width:185px}
.pr-tree .pr-row,.kb-tree .kb-row{column-gap:6px;padding-left:calc(6px + var(--depth)*22px)}
.pr-tree .pr-icon,.kb-tree .ws-item-icon{width:28px;height:28px;flex:0 0 28px;border-radius:7px}
.projects-page .pr-tree .pr-expander,.knowledge-page .kb-tree .kb-expander{width:20px;height:28px;min-height:28px;flex:0 0 20px;padding:0;display:grid;place-items:center;color:var(--ws-primary)}
.pr-tree .pr-expander .ws-icon,.kb-tree .kb-expander .ws-icon{width:16px;height:16px}
.projects-page .pr-node,.knowledge-page .kb-node{padding:0 3px;min-height:0;gap:6px}
.projects-page .pr-more,.knowledge-page .kb-more{min-height:26px;padding:3px;width:26px}
.kb-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:3px}
.knowledge-page .kb-pages button{display:inline-flex;align-items:center;gap:5px;font-size:var(--ws-font-label);min-height:30px}
.knowledge-page #pageTitle{font-size:var(--ws-font-title);border:0;background:transparent;font-weight:var(--ws-weight-title)}
.knowledge-page .kb-editor{font-size:14px;line-height:1.7}
.pr-properties,.kb-properties{padding:14px 16px}
@media(max-width:1250px) and (min-width:761px){.point-page .pt-day-line{min-width:900px}}
@media(max-width:760px){
 :is(.pr-heading,.pt-heading,.kb-heading) h1{font-size:21px}
 :is(.pr-heading-actions,.pt-toolbar,.kb-heading-actions) button{min-height:34px;font-size:var(--ws-font-meta);padding:6px 7px}
 .point-page .pt-day-line{min-width:0;grid-template-columns:minmax(100px,1fr) minmax(70px,1fr) 75px;gap:6px}
 .point-page .pt-activity{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 45px 84px;gap:4px;font-size:var(--ws-font-label)}
 .point-page .pt-activity strong{font-size:var(--ws-font-label)}
 .point-page .pt-period-head{gap:5px}
 .point-page .pt-period-head>span{font-size:var(--ws-font-meta)}
 .pr-tree .pr-name,.kb-tree .kb-node-text{font-size:var(--ws-font-label)}
}

.point-page .pt-date button{min-height:24px;padding:0;line-height:1.2}

:is(.pr-status,.pr-percent,.kb-status,.kb-pane-heading>span,.kb-breadcrumbs,.pr-breadcrumb,.pt-insights small,.pt-list-title small){font-size:var(--ws-font-meta)}
.pr-group,.kb-properties form{padding-bottom:var(--ws-gap-section);margin-bottom:var(--ws-gap-section)}
/* Precedência explícita sobre tamanhos locais, inclusive no celular. */
#app button .ws-icon{width:var(--ws-icon-action);height:var(--ws-icon-action)}
#app .pr-icon .ws-icon,#app .ws-item-icon .ws-icon{width:var(--ws-icon-highlight);height:var(--ws-icon-highlight)}
#app .ws-module-icon .ws-icon,#app .pr-large-icon .ws-icon{width:var(--ws-icon-title);height:var(--ws-icon-title)}
#app :is(.pr-meta,.pr-status,.pr-percent,.pr-hint,.pr-session-note,.kb-status,.kb-node-text small,.kb-memory,.kb-dates span,.kb-editor-note,.kb-pane-heading>span,.kb-breadcrumbs,.pr-breadcrumb,.pt-counts,.pt-status,.pt-company-name,.pt-date small,.pt-progress small,.pt-period-head>span,.pt-period-head>strong,.pt-footer,.pt-memory,.pt-note,.pt-insights span,.pt-insights small,.pt-kpis small,.pt-list-title small){font-size:var(--ws-font-meta);line-height:1.35}
.header-account .demo,.sidebar-bottom small{font-size:var(--ws-font-meta)}

#pr-search{padding-left:34px}
.projects-page textarea,.knowledge-page textarea,.pt-dialog textarea,.pr-dialog textarea,[id=kb-dialog] textarea{min-height:96px}
