@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@200;300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eef0f4;color:#242735;font:14px 'DM Sans',sans-serif}aside{position:fixed;width:235px;background:#fff;height:100vh;border-right:1px solid #e8e9ef;padding:35px 25px;display:flex;flex-direction:column}.brand{font-size:24px;color:#6e58cf;text-decoration:none}.brand strong{color:#292733}.brand span{font-weight:400;color:#aaa;font-size:19px}aside>small{font-size:9px;letter-spacing:3px;margin:18px 0 45px;color:#9b9ca9}nav{display:grid;gap:12px}nav a{color:#717382;padding:13px;text-decoration:none;border-radius:0}nav a:first-child{background:#f1edfb;color:#735bc5}footer{margin-top:auto;color:#999;font-size:11px}main{margin-left:235px;padding:0 44px 40px;max-width:1700px}header{height:88px;border-bottom:1px solid #e5e7ed;display:flex;align-items:center;justify-content:space-between;color:#93949f;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;margin:42px 0 32px}.eyebrow{letter-spacing:2px;font-size:10px;color:#8a79b5;font-weight:700}h1{font:800 33px Manrope,sans-serif;letter-spacing:-1.3px;margin:12px 0}h1 span{color:#9278e1}p{color:#888a97;line-height:1.7}h2{font:700 18px Manrope,sans-serif}h2 small{font:12px 'DM Sans';color:#aaa;margin-left:12px}button,.button{background:#7960cf;color:white;border:0;border-radius:0;padding:13px 18px;cursor:pointer;text-decoration:none;font:500 12px 'DM Sans'}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}article{background:white;border:1px solid #e7e8ee;border-radius:0;padding:25px}.stats small{font-size:10px;letter-spacing:1px;color:#9293a1}.stats h2{font-size:32px;margin:17px 0 8px}.stats span{color:#999aa5;font-size:11px}section{margin-top:35px}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project-icon{background:color-mix(in srgb,var(--accent) 12%,white);color:var(--accent);padding:12px;border-radius:0;display:inline-block;font-size:24px}.projects article{border-top:3px solid var(--accent,#7960cf)}.projects p{min-height:35px;font-size:12px}.projects small{font-size:11px;color:#999}.progress{height:5px;background:#f0eff5;border-radius:0;margin:25px 0 12px}.progress i{display:block;height:100%;background:var(--accent);border-radius:0}.filters{display:flex;gap:12px;margin-bottom:15px}input,select{border:1px solid #e3e4ec;border-radius:0;padding:11px;background:white;color:#555;font:12px 'DM Sans';max-width:100%}input[type=color]{width:60px;height:40px;padding:4px}.table{overflow:auto;border:1px solid #e5e6ed;border-radius:0;background:white}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#fcfcfd;color:#999;font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:1px}th,td{padding:18px;border-bottom:1px solid #f0f0f4}td{font-size:12px}td small{color:#999;font-size:10px;display:inline-block;margin-top:6px}.badge{background:#f0edf9;color:#8d73bc;padding:5px 9px;border-radius:0;font-size:10px}.inline{display:flex;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #e7e8ee;padding:20px;border-radius:0}.login{max-width:620px;margin:90px auto}.login h1{font-size:46px}.login form{display:grid;gap:15px;max-width:380px;margin-top:35px}.secondary{background:#eae7f1;color:#776e8e;margin-top:30px}.error{background:#ffe7e7;padding:15px;color:#a33}code{display:block;padding:20px;background:#eeeaf6;overflow:auto;font-size:12px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.projects{grid-template-columns:repeat(2,1fr)}aside{width:190px;padding:25px 15px}main{margin-left:190px;padding:0 25px}.heading{align-items:start;gap:15px}h1{font-size:27px}}@media(max-width:650px){aside{position:static;width:100%;height:auto;padding:20px}aside>small,footer{display:none}nav{display:flex;overflow:auto;margin-top:15px;gap:0}nav a{white-space:nowrap;padding:10px;font-size:11px}main{margin:0;padding:0 18px 30px}header{height:60px}.heading{display:block;margin-top:25px}.heading .button{display:inline-block;margin-top:10px}.projects{grid-template-columns:1fr}.stats{gap:10px}.stats article{padding:18px}.login{margin-top:50px}.login h1{font-size:35px}}

.login label{font-size:12px;font-weight:600;color:#555365;margin-bottom:-8px}.login small{color:#858392;line-height:1.5}.notice{background:#eaf5ef;padding:15px;color:#2d7050;border-radius:0}

.projects{align-items:start}.project-card .add-subproject{display:block;margin-top:16px;color:#7960cf;font-size:12px;text-decoration:none;font-weight:600}.subprojects{display:grid;gap:12px;margin-top:20px;border-top:1px solid #e7e8ee;padding-top:16px}.projects .is-subproject{padding:16px;border-top:2px solid var(--accent);background:#fcfcfe}.is-subproject .project-icon{padding:7px;font-size:17px}.is-subproject h2{font-size:15px;margin:10px 0}.projects .is-subproject p{min-height:0}.is-subproject .progress{margin:16px 0 8px}.parent-field{display:grid;gap:6px;color:#717382;font-size:11px}.inline{align-items:end}.parent-field select{max-width:100%;min-width:220px}.subprojects .subprojects{margin-top:12px;padding-top:12px}@media(max-width:650px){.parent-field{width:100%}.parent-field select{width:100%;min-width:0}}

.project-priority{margin:12px 0}.project-priority label{display:flex;align-items:center;gap:8px;font-size:11px;color:#717382}.project-priority select{font-size:11px;padding:6px 8px;border-radius:0}.project-priority-badge{display:inline-block;margin:8px 0}[data-priority="Urgente"]{color:#a82632;background:#fff0f1;border-color:#efbcc2}[data-priority="Alta"]{color:#9c5a12;background:#fff5e8;border-color:#efd2ad}[data-priority="Bassa"]{color:#527262;background:#edf6f1;border-color:#c9dfd3}

.project-status-badge{display:inline-block;margin:6px 0}.project-completed{display:block;margin:8px 0}[data-project-status="Completato"]{color:#287346;background:#eaf7ef;border-color:#bce0c8}[data-project-status="In corso"]{color:#92610b;background:#fff7df;border-color:#ead79d}[data-project-status="In revisione"]{color:#6150a2;background:#f2edff;border-color:#d7ccf2}

.panel{background:#fff;border:1px solid #e7e8ee;border-radius:0;padding:24px;margin:24px 0}.project-card h2 a{color:inherit;text-decoration:none}.project-card h2 a:hover{color:#7960cf}.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}.fields-grid label{display:grid;gap:7px;color:#555365;font-size:12px}.fields-grid input,.fields-grid select{width:100%}.fields-grid button{justify-self:start}.fields-grid .check-field,.check-field{display:flex;align-items:center;gap:9px;font-size:12px;color:#555365}.check-field input{width:16px;height:16px;flex-shrink:0}.member-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.member-choices small{display:block;color:#888a97;margin-top:4px}.person-card summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;cursor:pointer}.person-card summary>span:not(.badge){color:#888a97;font-size:12px}.person-card form{margin-top:24px}.member-projects{font-size:12px}.member-projects a{display:inline-block;margin:5px 8px;color:#7960cf}.snippet-settings{display:grid;gap:12px;max-width:700px;margin:24px 0}.snippet-settings label:not(.check-field){display:grid;gap:7px;color:#555365;font-size:12px}.snippet-settings small,.hint{font-size:12px;color:#888a97}.snippet-settings textarea,.snippet-code{width:100%;border:1px solid #e3e4ec;border-radius:0;padding:13px;font:12px/1.6 'DM Sans',sans-serif;resize:vertical}.snippet-settings button{justify-self:start}.snippet-code{display:block;background:#f6f3fc;color:#554779;font-family:monospace;margin:12px 0}.copy-result{margin-left:12px;font-size:12px;color:#2d7050}.task-sharing summary{cursor:pointer;color:#7960cf;font-size:11px}.task-sharing form{display:grid;gap:10px;white-space:normal;margin:12px 0;min-width:180px}.task-sharing p{font-size:11px;max-width:240px}.task-sharing button{padding:8px 10px;font-size:11px}.parent-field small{font-size:10px;max-width:250px;line-height:1.5}.widget-body{background:#eef0f4}.widget-main,.authorize-main{margin:0;padding:20px;max-width:none}.widget-main header,.authorize-main header{height:50px}.widget-main header strong{font:800 21px Manrope,sans-serif;color:#292733}.widget-main header strong span{font-weight:400;color:#999}.widget-main h1,.authorize-main h1{font-size:25px;letter-spacing:-.5px}.widget-main h2{font-size:15px;line-height:1.5;white-space:pre-wrap}.widget-main p{font-size:12px}.widget-main progress{width:100%;height:10px;accent-color:#7960cf}.widget-tasks{display:grid;gap:12px;margin:20px 0}.widget-tasks article{padding:16px}.widget-tasks small{font-size:10px;color:#888a97}.widget-main footer{font-size:10px;color:#9293a1;margin:25px 0 0}.authorize-main{max-width:620px;margin:auto}.authorize-main p{font-size:14px}.project-card .project-priority label{flex-wrap:wrap}.people-list{margin-bottom:40px}@media(max-width:650px){.fields-grid,.member-choices{grid-template-columns:1fr}.panel{padding:18px}.person-card summary{align-items:start;flex-direction:column}.widget-main,.authorize-main{padding:15px}.copy-result{display:block;margin:12px 0}}

/* Uniform single-select chevrons and right-aligned project controls. */
select:not([multiple]){-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;padding-inline-end:44px!important}select[multiple]{background-image:none}.project-card .project-priority label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,170px);align-items:center;gap:12px;flex-wrap:nowrap}.project-card .project-priority select{width:100%;min-width:0;justify-self:end}.project-card .project-priority{width:100%}@media(max-width:380px){.project-card .project-priority label{grid-template-columns:minmax(0,1fr) minmax(0,150px)}}@media(forced-colors:active){select:not([multiple]){appearance:auto;background-image:none}}

/* Traffic-light activity status colors. */
.work-item[data-status="Completata"] .work-tags>.badge,[data-status="Completata"] select[name="status"]{color:#287346;background-color:#eaf7ef;border-color:#bce0c8}.work-item[data-status="In corso"] .work-tags>.badge,[data-status="In corso"] select[name="status"]{color:#92610b;background-color:#fff2cd;border-color:#e4c66c}.task-completed-date{color:#287346}
.section-picker{display:grid;gap:10px;min-width:0}.section-picker select,.creation-area .inline .section-picker select,.work-edit .section-picker select{width:100%;max-width:100%;height:48px;min-height:48px;font:400 16px/1.4 'DM Sans',sans-serif;padding:11px 42px 11px 14px;border:1px solid #d8dbe5;border-radius:0;background-color:#fff;color:#242735}.section-picker select:focus-visible,.section-picker input:focus-visible{outline:2px solid #7960cf;outline-offset:2px;box-shadow:none}.section-create-field{padding:12px;background:#f5f4f8;border:1px solid #e3e1ed;border-radius:0;display:grid;gap:6px}.section-create-field[hidden]{display:none!important}.section-create-field input{width:100%;min-width:0;height:48px;font-size:16px;background:#fff}.section-create-field small{font-size:12px;line-height:1.4;color:#626371}
.block-command{display:inline-flex;align-items:center;vertical-align:middle}.block-operation-form[hidden]{display:none!important}.block-menu-trigger{width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0!important;border:1px solid #dddfe7!important;border-radius:0;background:#fff!important;color:#626371!important;font:600 22px/1 Arial,sans-serif!important;cursor:pointer}.block-menu-trigger:hover{background:#f0edf9!important}.project-card,.work-item,.heading[data-block-kind]{position:relative}.project-card>.block-command{position:absolute;top:10px;right:12px}.project-card>h2{padding-right:34px}.work-item>.block-command{position:absolute;top:12px;right:0}.work-item>.work-tags{padding-right:38px}.heading[data-block-kind]>.block-command{position:absolute;top:0;right:0}.heading[data-block-kind]>div>.block-command{position:absolute;top:0;right:0}.section-actions>.block-command{height:44px}.project-work .section-remove{display:none}.project-trash-toolbar{display:flex;justify-content:flex-end;margin:12px 0 4px}.project-trash-toolbar .button{padding:9px 13px;font-size:14px;background:#fff;color:#554779;border:1px solid #dcd7e8}.block-context-menu{position:fixed;z-index:2000;width:min(350px,calc(100vw - 16px));background:#fff;border:1px solid #d7d8e0;border-radius:0;box-shadow:0 8px 28px #20233330;overflow:hidden}.block-context-menu[hidden]{display:none!important}.block-context-header{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:9px 12px;background:#7960cf;color:#fff}.block-context-header>span{font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:270px}.block-context-header button{background:transparent;color:#fff;font-size:26px;line-height:1;padding:0 4px}.block-context-actions{display:flex;justify-content:space-around;padding:8px;gap:4px}.block-context-actions button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;border:0;background:transparent;color:#626371;border-radius:0;padding:10px 4px;font:400 11px/1.25 'DM Sans',sans-serif;max-width:95px;min-width:0}.block-context-actions button:hover,.block-context-actions button:focus-visible{background:#f0edf9;color:#45336d}.block-context-actions svg{width:25px;height:25px;flex-shrink:0}.block-context-actions .danger,.trash-list .danger{color:#c52d26}.block-context-actions .danger:hover{background:#fff0ee;color:#b4211c}.trash-list{list-style:none;padding:0}.trash-list>li{position:relative;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0;border-top:1px solid #e7e8ee}.trash-list>li>div:first-child{flex:1;min-width:180px;overflow-wrap:anywhere}.trash-list strong{font-size:15px;font-weight:600}.trash-list p{font-size:12px;margin:5px 0 0}.trash-list button[data-block-run]{background:#fff;color:#3d5a49;border:1px solid #d4ddd5}.trash-list button.danger{border-color:#edcbc6;color:#c52d26}.overview-activities .block-command{margin-top:6px}.block-menu-trigger:focus-visible{outline:2px solid #7960cf;outline-offset:2px}
.heading[data-block-kind]>div:first-child{flex:1;min-width:0}.heading>.project-editor{position:relative;flex-shrink:0;margin:0 44px 0 16px;align-self:flex-start}.heading .project-editor>summary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;cursor:pointer;list-style:none;white-space:nowrap;border:1px solid color-mix(in srgb,var(--editor-accent,#7960cf) 35%,white);border-radius:0;background:color-mix(in srgb,var(--editor-accent,#7960cf) 12%,white);color:color-mix(in srgb,var(--editor-accent,#7960cf) 65%,black);font:500 14px/1.4 'DM Sans',sans-serif}.project-editor>summary::-webkit-details-marker{display:none}.project-editor[open]>summary{background:color-mix(in srgb,var(--editor-accent,#7960cf) 20%,white)}.heading .project-editor>form{position:absolute;right:0;top:calc(100% + 8px);z-index:30;display:grid;gap:14px;width:min(420px,calc(100vw - 48px));max-width:none;max-height:70vh;overflow-y:auto;margin:0;padding:18px;background:#fff;border:1px solid #dedfe7;border-radius:0;box-shadow:0 8px 24px #20233322;text-align:left}.project-editor form label{display:grid;gap:7px;font-size:14px;font-weight:400;color:#242735}.project-editor input:not([type=hidden]),.project-editor select{width:100%;min-width:0}.project-editor input[type=color]{width:88px;height:44px}.project-editor form small{font-size:12px;line-height:1.5;color:#626371}.project-editor-actions{display:flex;gap:10px;flex-wrap:wrap}.project-editor-actions button{font-size:14px}.project-editor-actions button[type=button]{background:#f0edf9;color:#554779}.project-edit-link{display:block;font-size:13px;color:#626371;text-decoration:none;margin:8px 0 14px}.project-edit-link:hover{text-decoration:underline}.project-editor>summary:focus-visible{outline:2px solid #7960cf;outline-offset:2px}@media(max-width:650px){.heading>.project-editor{margin:10px 44px 0 0;text-align:right}.project-editor>form{width:min(420px,calc(100vw - 72px))}}
.block-context-menu{width:224px;border-radius:0}.block-context-header{padding:6px 9px;cursor:grab;touch-action:none;user-select:none}.block-context-header:active,.editor-modal-header:active{cursor:grabbing}.block-context-header>span{max-width:175px;font-size:12px}.block-context-header button{font-size:24px}.block-context-actions{gap:2px;padding:4px}.block-context-actions button{flex:1;max-width:none;min-width:0;height:40px;gap:0;padding:8px 6px}.block-context-actions svg{width:23px;height:23px}.block-menu-trigger{width:24px!important;height:28px!important;border:0!important;background:transparent!important;border-radius:0;font-size:26px!important;font-weight:400!important;line-height:1!important}.block-menu-trigger:hover{background:#f0edf9!important}.work-title-row{display:flex;align-items:flex-start;gap:10px;min-width:0}.work-title-row>.work-title,.work-title-row>.overview-task-title{flex:1;min-width:0}.work-title-row>.block-command{position:static;align-self:flex-start;flex-shrink:0;margin-top:12px}.overview-activities .work-title-row>.block-command{margin-top:0}.work-item>.work-tags{padding-right:0}.project-work .work-list>.work-item{background:#fafafa;padding:14px 12px}.project-work .work-list>.work-item:nth-child(even of :not([hidden])){background:#fff}.project-work .completed-activities>.work-list{padding:0}.overview-activities #overview-activity-list tbody tr:not([hidden]){background:#fafafa}.overview-activities #overview-activity-list tbody tr:nth-child(even of :not([hidden])){background:#fff}dialog.editor-modal{position:fixed;width:min(820px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d7d8e0;border-radius:0;box-shadow:0 16px 60px #0004;color:#242735;background:#fff;overflow:hidden}dialog.editor-modal::backdrop{background:rgba(30,32,40,.46)}.editor-modal .editor-modal-form,.editor-modal .editor-modal-form.work-edit{display:flex;flex-direction:column;width:100%;max-width:none;max-height:calc(100dvh - 34px);padding:0;margin:0;border:0;border-radius:0;background:#fff;position:static;box-shadow:none;gap:0}.editor-modal .editor-modal-form .editor-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #dcdde4;background:#f0f0f3;flex-shrink:0;cursor:grab;touch-action:none;user-select:none}.editor-modal .editor-modal-header strong{flex:1;font:500 17px/1.4 'DM Sans',sans-serif;letter-spacing:.2px}.editor-modal .editor-modal-form .editor-modal-header button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;box-shadow:none;margin:0;padding:8px 12px;border-radius:0;min-height:38px;height:38px;font:500 14px/1.3 'DM Sans',sans-serif}.editor-modal .editor-modal-form .editor-modal-header .editor-modal-save{background:#16894c;color:#fff}.editor-modal-save svg{width:22px;height:22px}.editor-modal .editor-modal-form .editor-modal-header .editor-modal-close{background:transparent;color:#626371;width:36px;font-size:30px;padding:0}.editor-modal .editor-modal-form .editor-modal-body{padding:16px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:12px;min-height:0}.editor-modal .editor-modal-form .editor-modal-body label{display:grid;gap:7px;font-size:15px;font-weight:400;color:#242735}.editor-modal .editor-modal-body input:not([type=hidden]):not([type=color]),.editor-modal .editor-modal-body select,.editor-modal .editor-modal-body textarea{width:100%;min-width:0;font-size:16px}.editor-modal .editor-modal-body input[type=color]{width:88px;height:44px}.editor-modal .editor-modal-body .work-edit-actions,.editor-modal .editor-modal-body .project-editor-actions,.editor-modal .editor-modal-body>button[type=submit]{display:none}.editor-modal .editor-modal-body small{font-size:12px;line-height:1.5}.editor-modal .editor-modal-body .tox{max-width:100%}.editor-modal .editor-modal-feedback{padding:10px 12px;background:#fff0ee;color:#a32c25;margin:0;border-radius:0}.editor-modal button:focus-visible{outline:2px solid #7960cf;outline-offset:2px}.editor-modal-open{overflow:hidden}@media(max-width:650px){dialog.editor-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.editor-modal .editor-modal-form{max-height:calc(100dvh - 22px)}.editor-modal .editor-modal-form .editor-modal-header{padding:8px 10px;gap:8px}.editor-modal .editor-modal-header strong{font-size:15px}.editor-modal .editor-modal-form .editor-modal-body{padding:12px}.project-work .work-list>.work-item{padding:12px 8px}}
.project-editor[hidden]{display:none!important}.project-trash-toolbar .project-trash-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:36px;min-height:36px;padding:7px 10px;border:0;border-radius:0;background:#ff9800;color:#fff;box-shadow:none}.project-trash-toolbar .project-trash-button:hover{background:#ed8c00}.project-trash-button svg{width:24px;height:24px}.project-trash-button .trash-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;border-radius:0;padding:0 4px;display:flex;align-items:center;justify-content:center;background:#c52d26;color:#fff;font-size:10px;line-height:1}.project-trash-button:focus-visible{outline:2px solid #7960cf;outline-offset:3px}

/* Keep application button rules out of the rich text toolbar. */
.tox.tox-tinymce .tox-tbtn{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;margin:2px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#222f3e!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.tox.tox-tinymce .tox-tbtn:hover{background:#eef0f4!important}
.tox.tox-tinymce .tox-tbtn--enabled{background:#e5e7ed!important}
.tox.tox-tinymce .tox-toolbar,.tox.tox-tinymce .tox-toolbar__primary,.tox.tox-tinymce .tox-toolbar__overflow{background:#fff!important;background-image:none!important;border:0!important;box-shadow:none!important}
.tox.tox-tinymce .tox-editor-header{box-shadow:none!important;border-bottom:0!important;padding:4px!important}
.tox.tox-tinymce .tox-toolbar__group{padding:0 4px!important;border:0!important}

/* Anchor block menus to their block, independently of title length. */
.project-card>.block-command,.heading[data-block-kind]>.block-command,.heading[data-block-kind]>div>.block-command,.work-item .work-title-row>.block-command{position:absolute;top:12px;right:12px;margin:0;align-self:auto}
.work-item .work-tags,.work-item .work-title-row{padding-right:36px}
.project-work .work-group>.section-actions{top:12px;right:12px;min-height:28px}
.section-actions>.block-command{height:28px}
.project-work .work-group-heading>.section-toggle{margin-right:36px}
.overview-activities tr[data-block-kind]{position:relative}
.overview-activities .work-title-row>.block-command{position:absolute;top:12px;right:12px;margin:0}
.overview-activities tr[data-block-kind]>td:last-child{padding-right:48px}
.project-work .section-actions>.block-command{order:2;align-self:flex-start;margin:0}
.project-work details.work-group>.section-actions{top:9px;right:11px;min-height:28px;align-items:flex-start}
.project-work .section-actions>.section-manage{margin-right:72px}
.project-work .section-actions>.block-command{position:absolute;top:0;right:0}

.project-trash-toolbar{position:fixed;top:16px;right:20px;z-index:100;margin:0;display:block;width:42px;height:36px}
@media(max-width:760px){.project-trash-toolbar{top:72px;right:16px}}
.block-context-menu{width:180px}.block-context-actions{justify-content:flex-start;gap:0;padding:3px}.block-context-actions button{flex:0 0 42px;width:42px;height:38px;padding:7px 5px}.block-context-header>span{max-width:132px}

.project-work .work-group>.work-group-heading{display:block;min-height:0;padding-right:36px}
.project-work .work-group>.work-group-heading>div{padding:0;min-width:0}
.project-work .work-group-heading h3{display:flex;align-items:baseline;gap:10px}
.project-work .work-group-heading h3>.section-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;font-size:28px;line-height:1;margin:0}
.section-manage[hidden]{display:none!important}

html body *,html body *::before,html body *::after{border-radius:0!important}
.task-sharing form>button{justify-self:start;align-self:start;width:auto;max-width:100%}
/* Tighter spacing between content boxes; rounded action buttons. */
html body .stats,html body .projects{gap:8px}
html body main>section,html body .subproject-links{margin-top:12px}
html body .panel{margin-top:12px;margin-bottom:12px}
html body .project-work .work-group{margin-top:10px;margin-bottom:10px}
html body .creation-area{margin-top:12px;margin-bottom:12px}
html body button:not(.block-menu-trigger):not(.tox-tbtn):not(.block-context-menu button):not(.sidebar-branch-toggle):not(.mobile-menu-toggle):not(.editor-modal-close),html body .button,html body input[type=submit]{border-radius:7px!important}

.project-create-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin:12px 0}
html body .project-create-actions>.creation-area{flex:1 1 280px;min-width:0;margin:0}
.project-create-actions .creation-area .creation-box{margin:0}
.project-create-actions .creation-area .creation-box>summary{padding:12px 16px;font-size:17px}
#new-task-box>summary,.project-create-actions #new-project-box>summary{list-style:none;display:flex;align-items:center;gap:10px}
#new-task-box>summary::-webkit-details-marker,.project-create-actions #new-project-box>summary::-webkit-details-marker{display:none}
#new-task-box>summary::marker,.project-create-actions #new-project-box>summary::marker{content:''}
#new-task-box>summary::before,.project-create-actions #new-project-box>summary::before{content:'+';font:400 26px/1 Arial,sans-serif;flex-shrink:0}
html body .project-card,html body .stats>article,html body .project-work .work-summary{border-radius:12px!important}
html body .progress,html body .progress>i,html body .work-progress{border-radius:999px!important;overflow:hidden}
html body .work-progress::-webkit-progress-bar,html body .work-progress::-webkit-progress-value{border-radius:999px!important}
html body .work-progress::-moz-progress-bar{border-radius:999px!important}

.project-work .work-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.work-actions .action-icon{width:18px;height:18px;flex:0 0 18px}

html body .task-move-form select:not([multiple]){appearance:auto;background-image:none;height:48px;min-height:48px;padding:11px 12px;font:400 16px/1.4 'DM Sans',sans-serif;width:100%;border:1px solid #d8dbe5}
.task-move-form>button{justify-self:start;align-self:start;width:auto;max-width:100%}

.heading h1>a{color:inherit;text-decoration:none}.heading h1>a:hover{text-decoration:underline;text-underline-offset:5px}.heading h1>a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
html body .workspace-sidebar .sidebar-projects a::before{border-radius:50%!important}

html body .workspace-sidebar>.brand{margin:10px 0 14px 8px}
html body .notice{position:fixed;z-index:3000;top:16px;left:50%;width:420px;max-width:calc(100vw - 32px);margin:0;padding:14px 20px;text-align:center;border:1px solid #cde6d7;border-radius:8px!important;box-shadow:0 8px 28px #20233326;animation:pms-notice-in .2s ease-out both,pms-notice-out .2s ease-in 2.2s forwards}
@keyframes pms-notice-in{from{transform:translate(-50%,calc(-100% - 24px));opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes pms-notice-out{from{transform:translate(-50%,0);opacity:1;visibility:visible}to{transform:translate(-50%,calc(-100% - 24px));opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){html body .notice{animation:pms-notice-static 2.2s step-end forwards;transform:translateX(-50%)}@keyframes pms-notice-static{to{visibility:hidden;opacity:0}}}

html body .heading.project-heading{background:#fff;border-left:0!important;border-bottom:1px solid #dedfe3;padding:16px 52px 16px 20px!important;min-height:72px;margin-top:0}
html body .project-heading h1{font-family:'DM Sans',sans-serif;font-size:30px;font-weight:300;line-height:1.25;letter-spacing:.3px;text-transform:uppercase;color:#111!important;margin:0}
html body .project-heading p:empty{display:none}
html body .project-heading>div>.block-command{top:16px;right:16px}
@media(max-width:650px){html body .project-heading h1{font-size:25px}}

html body .editor-modal .editor-modal-form .editor-modal-header{display:grid;grid-template-columns:100px minmax(0,1fr) 100px}
html body .editor-modal .editor-modal-header strong{text-align:center;min-width:0}
html body .editor-modal .editor-modal-header .editor-modal-save{justify-self:start}
html body .editor-modal .editor-modal-header .editor-modal-close{justify-self:end}
dialog.editor-modal-copy::backdrop{background:rgba(213,126,25,.48)}
@media(max-width:650px){html body .editor-modal .editor-modal-form .editor-modal-header{grid-template-columns:80px minmax(0,1fr) 80px;gap:6px}}

html body.signed-in .heading.project-heading{margin-left:-24px;margin-right:-24px;border-left:10px solid var(--project-heading-accent,#7960cf)!important}
html body .project-heading h1{color:var(--project-heading-accent,#7960cf)!important}
@media(max-width:1000px) and (min-width:651px){html body.signed-in .heading.project-heading{margin-left:-20px;margin-right:-20px}}
@media(max-width:650px){html body.signed-in .heading.project-heading{margin-left:-14px;margin-right:-14px}}
html body .heading.project-heading{min-height:56px;padding:10px 52px 10px 20px!important;display:flex;align-items:center}
html body .project-heading>div>.block-command{top:50%;right:16px;transform:translateY(-50%)}
html body .project-heading>div>p:not(:empty){margin:4px 0 0}
.block-context-header{background:#000;color:#fff}
html body .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:7px;background:#f2f5f4;color:#246359;border:1px solid #cdd8d3;border-radius:0!important;justify-self:start;align-self:flex-start;margin-bottom:10px}
.theme-toggle svg{width:24px;height:24px}
html[data-theme=dark] body{background:#151a22;color:#e5e7eb}
html[data-theme=dark] body :is(.workspace-sidebar,.mobile-menu-bar,.project-card,.stats>article,.panel,.creation-box,.inline,.work-group,.work-summary,.table,.project-heading,.block-context-menu,.block-context-actions,.editor-modal,.editor-modal-form,.editor-modal-body,.project-management,.section-create-field){background:#202630!important;border-color:#3b4350!important;color:#e5e7eb}
html[data-theme=dark] body :is(h1,h2,h3,label,.work-title,.work-title p,.overview-task-title,.sidebar-menu>summary,.sidebar-account,.work-summary strong){color:#e5e7eb}
html[data-theme=dark] body :is(p,small,.work-meta,.stats span,.work-tags>span:not(.badge)){color:#aab2bf}
html[data-theme=dark] body :is(input,textarea,select){background-color:#171d26!important;color:#e5e7eb!important;border-color:#48515f!important}
html[data-theme=dark] body input[type=checkbox]{accent-color:#a997ec}
html[data-theme=dark] body :is(.work-list>.work-item,.overview-activities #overview-activity-list tbody tr:not([hidden])){background:#202630!important}
html[data-theme=dark] body :is(.work-list>.work-item:nth-child(even of :not([hidden])),.overview-activities #overview-activity-list tbody tr:nth-child(even of :not([hidden]))){background:#252d38!important}
html[data-theme=dark] body :is(.work-item,td,th,.sidebar-menu,.work-group-heading,.creation-box[open]>summary){border-color:#3b4350!important}
html[data-theme=dark] body :is(.work-actions>button,.task-move-form>button,.task-sharing button,.section-manage>summary){background:#29333d!important;color:#e0e8e3!important;border-color:#566459!important}
html[data-theme=dark] body .workspace-sidebar nav a{color:#bdc4d0}
html[data-theme=dark] body .workspace-sidebar nav a:hover{background:#303542}
html[data-theme=dark] body .workspace-sidebar nav a[aria-current=page]{background:color-mix(in srgb,var(--project-accent,#7960cf) 24%,#202630)!important;color:#f3f4f6}
html[data-theme=dark] body :is(.brand,.sidebar-account span){color:#e5e7eb}
html[data-theme=dark] body .block-menu-trigger{color:#bdc4d0!important}
html[data-theme=dark] body .block-context-actions button{color:#d7dce4}
html[data-theme=dark] body .block-context-actions button.danger{color:#ff8178}
html[data-theme=dark] body .editor-modal .editor-modal-form .editor-modal-header{background:#2b333e;border-color:#48515f}
html[data-theme=dark] body .editor-modal .editor-modal-header strong{color:#e5e7eb}
html[data-theme=dark] body .editor-modal .editor-modal-header .editor-modal-close{color:#d7dce4}
html[data-theme=dark] body .theme-toggle{background:#29333d;color:#ffd080;border-color:#566459}
html[data-theme=dark] body .tox.tox-tinymce :is(.tox-toolbar,.tox-toolbar__primary,.tox-toolbar__overflow,.tox-editor-header,.tox-statusbar){background:#29333d!important;color:#d7dce4!important;border-color:#48515f!important}
html[data-theme=dark] body .tox.tox-tinymce .tox-tbtn{color:#d7dce4!important}
html[data-theme=dark] body .tox .tox-tbtn svg{fill:#d7dce4}
html[data-theme=dark] body .tox.tox-tinymce .tox-tbtn:hover{background:#424c5a!important}
html[data-theme=dark] body .notice{background:#203c32;color:#b4ebcc;border-color:#406954}
html[data-theme=dark] body :is(.brand strong,.section-toggle,.task-move>summary,.project-management>details>summary,.completed-activities>summary,.section-picker label){color:#e5e7eb!important}
html[data-theme=dark] body .project-work .work-group{border-top-color:var(--work-accent,#7960cf)!important}
html[data-theme=dark] body :is(.task-sharing>summary,.project-work a){color:#c1b1ff}
html[data-theme=dark] body .projects>.project-card{border-top-color:var(--accent,#7960cf)!important}
html[data-theme=dark] body .project-card h2,html[data-theme=dark] body .project-card h2>a{color:var(--accent,#7960cf)!important}
html[data-theme=dark] body .project-card .progress>i{background:var(--accent,#7960cf)!important}
html body .projects>.project-card{border-top-width:8px}
html[data-theme=dark] body .brand{color:#6e58cf!important}
html[data-theme=dark] body .brand strong{color:#e5e7eb!important}
html[data-theme=dark] body .brand span{color:#aaa!important}
html body .heading.project-heading[data-block-kind]>div>.block-command{position:absolute;top:50%;right:16px;margin:0;transform:translateY(-50%)}
html body .project-heading h1{font-weight:700}

/* Shared form-field contrast: keep structural panel borders separate. */
:root{--pms-input-border:#b5bbc7}
html[data-theme=dark]{--pms-input-border:#718096}
html body :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=range]),textarea,select){border-color:var(--pms-input-border)!important}

/* Shared password visibility control: preserve the field's 48 px height. */
.password-control{position:relative;display:block;min-width:0;width:100%}
html body .password-control>input{padding-right:52px!important}
html body .password-control>.password-visibility{position:absolute;top:2px;right:2px;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;cursor:pointer}
.password-visibility svg{display:block;flex:none;width:20px;height:20px;pointer-events:none}
.password-visibility[aria-pressed=false] .password-eye-slash{display:none}
html body .password-control>.password-visibility:hover{background:transparent;color:inherit;opacity:.75}
html body .password-control>.password-visibility:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

/* Dark mobile navigation must keep its name and toggle readable. */
html[data-theme=dark] body .brand{background:transparent}
html[data-theme=dark] body .mobile-menu-bar button{background:transparent;color:#e5e7eb}

/* Use IDENTITY's exact moon glyph, rather than an alternative SVG. */
.theme-toggle .theme-moon{display:block;font:400 24px/normal 'DM Sans',sans-serif}

/* Shared content inset: 15 px on every side at every breakpoint. */
body.signed-in{--pms-content-inset:15px}
html body.signed-in>main{max-width:none;padding:var(--pms-content-inset)}
html body.signed-in .heading.project-heading{margin:calc(-1 * var(--pms-content-inset)) calc(-1 * var(--pms-content-inset)) var(--pms-content-inset);padding:var(--pms-content-inset)!important}
html body.signed-in .project-heading>div:first-child{padding-right:36px}
html body.signed-in .heading.project-heading[data-block-kind]>div>.block-command{right:var(--pms-content-inset)}
html body.signed-in[data-overview="1"] .heading{margin:0 0 var(--pms-content-inset);padding:0}
html body.signed-in :is(.stats>article,.project-card,.panel,.work-group,.work-summary,.creation-area .inline,.project-management .management-content,.work-list>.work-item){padding:var(--pms-content-inset)}
html body.signed-in .creation-area .creation-box>summary,html body.signed-in .project-management>details>summary,html body.signed-in .overview-activities>details>summary{padding:var(--pms-content-inset)}
html body.signed-in .project-management{padding:0}
html body.signed-in .project-management .management-content>:first-child,html body.signed-in .project-card>h2{margin-top:0}
html body.signed-in :is(.panel,.project-card,.work-summary) > :last-child{margin-bottom:0}
html body.signed-in .project-work .work-summary{margin-top:0}
html body.signed-in .project-create-actions{margin:var(--pms-content-inset) 0}
@media(max-width:650px){html body.signed-in .workspace-sidebar+main{padding-top:calc(60px + var(--pms-content-inset))}}
html body.signed-in .editor-modal .editor-modal-form .editor-modal-body{padding:var(--pms-content-inset)}
html body.signed-in .project-heading h1{margin:0}
html body.signed-in :is(.stats,.projects){gap:8px}
html body.signed-in .creation-area .creation-box{margin:0}

/* DIRETTIVE G13: each form data block occupies its own aligned row. */
html body .fields-grid{grid-template-columns:minmax(0,1fr);align-items:start}
html body .fields-grid>label{min-width:0;align-content:start}
html body form.inline{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
html body form.inline>input:not([type=hidden]):not([type=checkbox]):not([type=radio]),html body form.inline>select,html body form.inline>textarea{width:100%;min-width:0}

/* Compact keyboard and touch controls for persistent ordering. */
.project-work .task-order{display:flex;align-items:center;gap:6px;margin:10px 0;font-size:13px;color:var(--muted,#85858f)}
.project-work .task-order button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;font:400 23px/1 'DM Sans',sans-serif;border:1px solid var(--border,#cdd8ce);border-radius:7px;background:transparent;color:inherit;cursor:pointer}
.project-work .task-order button:disabled{opacity:.3;cursor:default}
