/* Mobile presentation updates: preserve official palette, type hierarchy and real click targets. */
@layer opsera-mobile-refinements{
 #home-page .home-quick-deadlines{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 #home-page .home-quick-deadlines button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:58px!important;padding:6px 3px!important;font:500 13px/1.25 Manrope,sans-serif!important;text-align:center!important;white-space:normal!important}
 #home-page .home-quick-deadlines button::before{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important}
 #home-page .home-quick-deadlines button[aria-pressed=true]{background:#3F777117!important;border-color:#3F7771!important;color:#343136!important}
 :is(#task-new,#new-note) :is(svg,img,.opsera-icon){color:#FFFFFF!important;stroke:#FFFFFF!important;filter:brightness(0) invert(1)!important}
 #tasks-page #task-proposals{margin-top:22px!important;margin-bottom:16px!important}
 #notes-page .note-item .clean-list-open{padding-right:78px!important}
 #notes-page .note-item .list-open-arrow{margin-right:10px!important}
 #notes-page .note-item .list-archive{right:6px!important}
 #sheet:has(#weave-report-form) #sheet-title,#sheet:has(#task-proposal-form) #sheet-title{font:700 23px/1.25 Manrope,sans-serif!important}
 #sheet:has(#weave-report-form) :is(.report-content,textarea),#sheet:has(#task-proposal-form) textarea{font-family:"Source Sans 3",sans-serif!important;font-size:16px!important;line-height:1.4!important}
 #sheet :is(#weave-report-form,#task-proposal-form) :is(label,legend){font-family:"Source Sans 3",sans-serif!important;font-size:15px!important;font-weight:500!important;line-height:1.35!important}
 #sheet :is(#weave-report-form,#task-proposal-form) button{font-family:Manrope,sans-serif!important;font-size:16px!important;font-weight:500!important;line-height:1.3!important}
 #messages-page .message-conversation-list{display:block!important;margin:0!important;padding:0!important}
 #messages-page .message-conversation-row{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;column-gap:10px!important;align-items:center!important;min-height:72px!important;width:100%!important;padding:10px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #34313621!important;border-radius:0!important;background:#FFFFFF!important;box-shadow:none!important}
 #messages-page .message-conversation-row>.avatar{grid-column:1!important;grid-row:1!important;width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;align-self:center!important;font-size:17px!important}
 #messages-page .message-conversation-content{grid-column:2!important;grid-row:1!important;min-width:0!important;display:block!important}
 #messages-page .message-conversation-content>strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:500 16px/1.3 Manrope,sans-serif!important;margin:0!important;color:#343136!important}
 #messages-page .message-conversation-content>span:not(.message-conversation-requests){display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;-webkit-line-clamp:unset!important;font:400 14px/1.3 "Source Sans 3",sans-serif!important;margin:4px 0 0!important;color:#343136C7!important}
 #messages-page .message-conversation-requests,#messages-page .audit-row-chevron{display:none!important}
 #messages-page .message-conversation-meta{grid-column:3!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:5px!important;width:auto!important;max-width:82px!important;align-self:center!important;font:400 12px/1.25 "Source Sans 3",sans-serif!important}
 #messages-page .message-conversation-meta>time{white-space:nowrap!important;font-size:12px!important}
 #messages-page .message-conversation-meta .message-new{font-size:11px!important;white-space:nowrap!important}
 #sheet:has(.message-thread) #back-message-list{display:flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;width:36px!important;padding:4px!important;margin:0 0 4px!important}
 #sheet .message-thread{display:flex!important;flex-direction:column!important;gap:6px!important;margin:6px 0 10px!important}
 #sheet .message-thread>.ops-message-bubble{width:fit-content!important;max-width:92%!important;min-width:110px!important;box-sizing:border-box!important;align-self:flex-start!important;padding:8px 10px!important;margin:0!important;border:0!important;border-radius:10px!important;background:#34313609!important;box-shadow:none!important}
 #sheet .message-thread>.ops-message-bubble.mine{align-self:flex-end!important;background:#3F777117!important}
 #sheet .message-thread .ops-message-bubble>header{display:flex!important;align-items:center!important;gap:5px!important;margin:0 0 4px!important;padding:0!important;min-height:22px!important}
 #sheet .message-thread .ops-message-bubble>header>div{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;flex:1!important;min-width:0!important}
 #sheet .message-thread .ops-message-bubble>header strong{font:500 12px/1.25 "Source Sans 3",sans-serif!important}
 #sheet .message-thread .ops-message-bubble>header small{font:400 11px/1.25 "Source Sans 3",sans-serif!important}
 #sheet .message-thread .ops-message-bubble>p{font-family:"Source Sans 3",sans-serif!important;font-size:16px!important;line-height:1.35!important;margin:0!important;overflow-wrap:anywhere!important}
 #sheet .message-thread .message-more-button{display:flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;min-width:32px!important;width:32px!important;padding:2px!important;margin:0!important}
 #sheet .message-thread .message-request-type{min-height:0!important;padding:2px 4px!important;gap:4px!important;font-size:11px!important}
 #sheet .message-thread .message-request-type img{width:14px!important;height:14px!important}
 #sheet .message-thread .message-reply-quote{display:block!important;box-sizing:border-box!important;width:100%!important;min-height:0!important;padding:6px 8px!important;margin:3px 0 6px!important;border:0!important;border-left:3px solid #3F7771!important;border-radius:5px!important;background:#3F777114!important;text-align:left!important}
 #sheet .message-thread .message-reply-quote strong{display:block!important;font:500 12px/1.25 "Source Sans 3",sans-serif!important;color:#3F7771!important;margin:0 0 3px!important}
 #sheet .message-thread .message-reply-quote span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;white-space:normal!important;font-family:"Source Sans 3",sans-serif!important;font-size:14px!important;font-style:italic!important;line-height:1.3!important;color:#343136C7!important}
 #sheet .message-thread .message-reply-time{display:block!important;font-size:11px!important;line-height:1.25!important;text-align:right!important;margin:4px 0 0!important}
 #sheet .message-thread .ops-message-bubble:has(.message-reply-time)>header small{display:none!important}
 #sheet #message-reply-form{display:grid!important;grid-template-columns:minmax(0,1fr) 64px!important;gap:6px!important;align-items:end!important;padding:8px 0 0!important;margin:0!important;border:0!important}
 #sheet #message-reply-form>label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
 #sheet #message-reply-form textarea{grid-column:1!important;grid-row:1!important;box-sizing:border-box!important;width:100%!important;min-height:44px!important;height:44px!important;max-height:120px!important;margin:0!important;padding:10px!important;font-size:16px!important;line-height:1.35!important}
 #sheet #message-reply-form>button[type=submit]{grid-column:2!important;grid-row:1!important;width:64px!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:8px 4px!important;font:500 14px/1.25 Manrope,sans-serif!important}
 #sheet #message-reply-feedback{grid-column:1 / -1!important;grid-row:2!important;margin:0!important;font-size:13px!important}
 #sheet #message-reply-feedback:empty{display:none!important}
 body.opsera-editing .device{height:var(--opsera-writing-device-height)!important;max-height:none!important}
 body.opsera-editing #screen{height:var(--opsera-writing-screen-height)!important;max-height:none!important}
 body.opsera-keyboard-open .floating-nav{visibility:hidden!important;pointer-events:none!important}
}

/* Project identity: one outline colour, graphite labels and white surfaces. */
@layer opsera-mobile-refinements {
 :is(.project-color-castello,.project-color-other-0){--project-outline:#3F7771}
 :is(.project-color-amministrazione,.project-color-other-1){--project-outline:#6C8695}
 :is(.project-color-organizzazione,.project-color-other-2){--project-outline:#B88182}
 :is(.project-color-eventi,.project-color-other-3){--project-outline:#DB1C4B}
 :is(.project-color-centro,.project-color-other-4){--project-outline:#343136}
 :is(.project-tag,.due-project-tag,.project-choice-pill,.candidate-pill)[class*="project-color-"]{color:#343136!important;background:#FFFFFF!important;border:1px solid var(--project-outline,#3F7771)!important;border-radius:6px!important;padding:3px 7px!important;box-shadow:none!important}
 :is(.project-tag,.due-project-tag,.project-choice-pill,.candidate-pill)[class*="project-color-"] span{color:#343136!important}
 :is(.project-tag,.due-project-tag)[class*="project-color-"]::before{content:none!important}
 .project-choice-pill:has(input:checked),.candidate-pill:has(input:checked){background:#FFFFFF!important;box-shadow:0 0 0 1px var(--project-outline,#3F7771)!important}
 #edit-task-title-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;max-width:100%!important;font:400 16px/1.35 "Source Sans 3",sans-serif!important}
 #edit-task-title-form label{font:500 14px/1.3 "Manrope",sans-serif!important;margin:0!important}
 #edit-task-title-form #task-short-title{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:9px 10px!important;font:400 16px/1.35 "Source Sans 3",sans-serif!important;border:1px solid #3F777166!important;border-radius:8px!important;background:#FFFFFF!important;color:#343136!important}
 #edit-task-title-form .helper{margin:0!important;font:400 13px/1.35 "Source Sans 3",sans-serif!important;overflow-wrap:anywhere!important}
 #edit-task-title-form .personal-title-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:2px 0 0!important}
 #edit-task-title-form button{width:100%!important;min-width:0!important;min-height:44px!important;padding:8px 10px!important;font:500 14px/1.3 "Manrope",sans-serif!important;white-space:normal!important}
 #edit-task-title-form #reset-personal-task-title{min-height:36px!important;padding:5px!important;font-size:13px!important}
}

/* Sidebar navigation approved 19 November: work, tools, information. */
@layer opsera-mobile-refinements {
 #dropdown-menu .drawer-heading>.sidebar-brand-logo{display:block!important;width:152px!important;max-width:calc(100% - 54px)!important;height:58px!important;object-fit:contain!important;object-position:left center!important;filter:none!important}
 #dropdown-menu.compact-sidebar :is(.sidebar-main-link,.sidebar-group>summary)>span:not(.sidebar-chevron){text-transform:uppercase!important;font-size:15px!important;letter-spacing:.15px!important}
 #dropdown-menu.compact-sidebar .sidebar-main-link>svg{width:23px!important;height:23px!important;color:#3F7771!important}
 #dropdown-menu.compact-sidebar .sidebar-separator{display:block!important;height:0!important;border:0!important;border-top:1px solid #34313621!important;margin:12px 8px!important;padding:0!important}
 #dropdown-menu.compact-sidebar .sidebar-information{border:0!important;padding-top:0!important;margin-top:0!important}
}

@layer opsera-mobile-refinements {
 body button.opsera-back-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;max-width:44px!important;padding:10px!important;margin:0 0 8px!important;border:0!important;background:transparent!important;color:#3F7771!important;font-size:0!important;box-shadow:none!important;flex:0 0 44px!important}
 body button.opsera-back-icon>svg{display:block!important;flex:0 0 24px!important;width:24px!important;height:24px!important;filter:none!important;color:#3F7771!important}
 #sheet .notification-category-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
 #sheet .notification-category-copy>span{font:500 16px/1.3 Manrope,sans-serif!important;color:#343136!important}
 #sheet .notification-category-copy>small{font:400 14px/1.3 "Source Sans 3",sans-serif!important;color:#343136C7!important}
}

/* One return control per view; reading and handling remain independent. */
@layer opsera-mobile-refinements {
 body button[data-back-duplicate]{display:none!important}
 body button.opsera-back-icon::before,body button.opsera-back-icon::after{display:none!important;content:none!important}
 #sheet:has(.opsera-back-icon) .sheet-head::before,#sheet:has(.opsera-back-icon) .sheet-head::after,#sheet:has(.opsera-back-icon) #sheet-title::before{display:none!important;content:none!important}
 #messages-page .message-list-title{margin:0 0 12px!important;font:500 18px/1.3 Manrope,sans-serif!important;color:#3F7771!important}
 #messages-page .message-conversation-meta{max-width:100px!important;gap:4px!important}
 #messages-page .message-conversation-meta .message-new{display:inline-flex!important;align-items:center!important;gap:4px!important;color:#DB1C4B!important;font:500 12px/1.25 "Source Sans 3",sans-serif!important}
 #messages-page .message-conversation-meta .message-new>span{color:#DB1C4B!important;font-size:15px!important}
 #messages-page .message-conversation-meta .message-pending-badge{display:inline-flex!important;align-items:center!important;padding:3px 6px!important;border-radius:5px!important;background:#DB1C4B17!important;color:#DB1C4B!important;font:500 12px/1.25 "Source Sans 3",sans-serif!important;white-space:nowrap!important}
 #sheet .message-thread>.ops-message-bubble.is-pending{background:#DB1C4B14!important}
 #sheet .message-thread>.ops-message-bubble:not(.mine):not(.is-pending){background:#34313609!important}
}
