/* UMWE mobile stability + approved phone polish — loaded last */
html,body,#root,.app{max-width:100%}.app main{min-width:0}
.umwe-messages-layer{position:absolute;inset:0;z-index:45;background:var(--bg,#f4f8fb);overflow:hidden}.umwe-messages-layer .umwe-messages{height:100%;box-sizing:border-box}.messages-open .app>main{visibility:hidden}
@media(min-width:761px){.umwe-messages-layer{left:0;padding-top:64px}.umwe-messages-layer .umwe-messages{padding:34px 5.2vw 28px}}
@media(max-width:760px){
 html,body{overflow-x:hidden!important}.app main,.page,.dashboard-page,.umwe-messages{width:100%!important;max-width:100vw!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}.page *,.dashboard-page *,.umwe-messages *{min-width:0}h1,h2,h3,p,span,b,small{overflow-wrap:anywhere}
 /* Normal pages have no duplicate brand in the header; the floating mark is the mobile brand control. */
 .topbar{height:68px!important;padding:10px 16px!important;border-bottom:1px solid var(--line)!important}.topbar:before,.topbar:after{display:none!important;content:none!important}.topbar .umwe-logo,.topbar>.brand,.topbar>.logo{display:none!important}.top-actions{margin-left:auto!important;gap:10px!important}.profile-chip>span,.profile-chip .chev{display:none!important}.profile-chip{padding:4px!important;border-radius:50%!important}.menu-fab,.nav-back{display:none!important}.dashboard-page,.page{padding-top:18px!important}
 .mobile-umwe-float{position:fixed;left:15px;top:13px;z-index:235;width:44px;height:44px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:50%;background:color-mix(in srgb,var(--panel-strong,#fff) 94%,transparent) url('/assets/umwe-logo-mark.svg') center/29px no-repeat;box-shadow:0 8px 24px rgba(13,34,48,.16);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.mobile-umwe-float:active{transform:scale(.94)}.mobile-umwe-float[hidden]{display:none!important}
 .page>header,.page-head{align-items:flex-start!important;gap:12px!important;flex-wrap:wrap!important}.page>header h1,.page-head h1{font-size:28px!important;line-height:1.08!important}.page>header .primary,.page-head .primary,.page-actions .primary{width:auto!important;min-width:0!important;min-height:38px!important;height:38px!important;padding:0 13px!important;border-radius:10px!important;font-size:12px!important;white-space:nowrap!important;box-shadow:none!important}
 .pill,.v2-pill,.access-state{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:max-content!important;height:24px!important;min-height:24px!important;padding:0 9px!important;border-radius:999px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;font-size:10.5px!important;line-height:1!important;font-weight:800!important;align-self:flex-start!important}
 .role-user .dashboard-visual.worker-visual,.role-intern .dashboard-visual.worker-visual{display:block!important;height:205px!important;margin:-18px -12px 12px!important;width:calc(100% + 24px)!important;border:0!important;border-radius:0!important;box-shadow:none!important;-webkit-mask-image:radial-gradient(ellipse 74% 68% at 62% 45%,#000 34%,rgba(0,0,0,.88) 54%,rgba(0,0,0,.32) 73%,transparent 100%)!important;mask-image:radial-gradient(ellipse 74% 68% at 62% 45%,#000 34%,rgba(0,0,0,.88) 54%,rgba(0,0,0,.32) 73%,transparent 100%)!important}
 .task-card{padding:14px!important;border-radius:15px!important;gap:9px!important}.task-card .pill{position:static!important;align-self:flex-start!important}.task-card h3{font-size:15px!important;line-height:1.25!important}.task-card p{font-size:11px!important;line-height:1.5!important}
 .table-wrap:has(.row-actions){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.table-wrap:has(.row-actions) table{display:block!important;width:100%!important;min-width:0!important}.table-wrap:has(.row-actions) thead{display:none!important}.table-wrap:has(.row-actions) tbody{display:grid!important;gap:10px!important;width:100%!important}.table-wrap:has(.row-actions) tr{display:grid!important;grid-template-columns:1fr auto!important;gap:7px 12px!important;width:100%!important;padding:14px!important;background:var(--panel,#fff)!important;border:1px solid var(--line)!important;border-radius:15px!important;box-sizing:border-box!important}.table-wrap:has(.row-actions) td{display:block!important;padding:0!important;border:0!important;font-size:11px!important;white-space:normal!important}.table-wrap:has(.row-actions) td:nth-child(1){grid-column:2;grid-row:1;color:var(--muted)}.table-wrap:has(.row-actions) td:nth-child(2){grid-column:1;grid-row:1/3}.table-wrap:has(.row-actions) td:nth-child(2) b{display:block;font-size:14px;margin-bottom:3px}.table-wrap:has(.row-actions) td:nth-child(3){grid-column:1;grid-row:3;color:var(--muted)}.table-wrap:has(.row-actions) td:nth-child(4){grid-column:1;grid-row:4;font-weight:800}.table-wrap:has(.row-actions) td:nth-child(5){grid-column:2;grid-row:3/5;align-self:end;justify-self:end}.table-wrap:has(.row-actions) td:nth-child(6){grid-column:1/-1;grid-row:5;border-top:1px solid var(--line)!important;padding-top:9px!important}.row-actions{justify-content:flex-end!important;gap:7px!important}.row-actions .icon-btn{width:34px!important;height:34px!important}
 .v2-users{overflow:visible!important;padding:16px!important}.v2-users .section-head{margin-bottom:8px!important}.v2-users .active-users-table{display:block!important;width:100%!important;min-width:0!important}.active-users-table thead{display:none!important}.active-users-table tbody{display:grid!important;gap:9px!important}.active-users-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:'user done subs' 'role done subs' 'last last last'!important;gap:3px 10px!important;padding:12px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:color-mix(in srgb,var(--panel-strong,#fff) 96%,#10bf79)!important}.active-users-table td{padding:0!important;border:0!important;font-size:10px!important}.active-users-table td:nth-child(1){display:none!important}.active-users-table td:nth-child(2){grid-area:user}.active-users-table td:nth-child(3){grid-area:role;color:var(--muted);padding-left:38px!important}.active-users-table td:nth-child(4),.active-users-table td:nth-child(5){min-width:46px!important;text-align:center!important;font-weight:850!important;font-size:12px!important;align-self:center!important}.active-users-table td:nth-child(4){grid-area:done}.active-users-table td:nth-child(5){grid-area:subs}.active-users-table td:nth-child(4):after{content:' completed';display:block;font-size:7px;font-weight:650;color:var(--muted);white-space:nowrap}.active-users-table td:nth-child(5):after{content:' submissions';display:block;font-size:7px;font-weight:650;color:var(--muted);white-space:nowrap}.active-users-table td:nth-child(6){grid-area:last;text-align:right;color:var(--muted);font-size:8.5px!important;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)!important;padding-top:7px!important;margin-top:5px!important}.active-users-table td:nth-child(6):before{content:'Last active  ';font-weight:700}.v2-user{gap:8px!important}.v2-avatar{width:30px!important;height:30px!important;font-size:10px!important}.v2-user b{font-size:11.5px!important}
 .access-card{padding:13px!important;gap:10px!important;border-radius:15px!important}.access-card-action{gap:7px!important}.access-card-action button{min-height:34px!important;height:34px!important;padding:0 10px!important;font-size:10px!important}
 /* Proper mobile More sheet: fixed, safe, independently scrollable, always closable. */
 .mobile-more-scrim{position:fixed;inset:0;z-index:270;border:0;background:rgba(5,18,28,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
 .sidebar{position:fixed!important;left:10px!important;right:10px!important;top:84px!important;bottom:82px!important;width:auto!important;height:auto!important;max-height:none!important;border-radius:22px!important;padding:58px 15px 14px!important;z-index:280!important;transform:translateY(calc(100% + 110px))!important;transition:transform .22s ease!important;overflow-y:auto!important;overscroll-behavior:contain!important}.sidebar.open{transform:translateY(0)!important}.sidebar .umwe-logo{position:absolute!important;left:16px!important;top:13px!important;margin:0!important}.sidebar .umwe-logo strong,.sidebar .umwe-logo em{display:none!important}.sidebar .umwe-logo .u-mark{width:36px!important;height:36px!important;flex:0 0 36px!important}.mobile-more-close{position:absolute;right:14px;top:13px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.09);color:inherit;font-size:27px;line-height:34px;cursor:pointer;z-index:4}.sidebar nav{grid-template-columns:1fr!important;gap:3px!important}.sidebar nav button{min-height:44px!important}.sidebar footer{margin-top:12px!important}.mobile-more-open{overflow:hidden!important}
 /* Messages is a dedicated mobile screen: no regular topbar or underlying-page interaction. */
 body.messages-open{overflow:hidden!important;padding-bottom:0!important}.messages-open .app>main{visibility:hidden!important;pointer-events:none!important}.messages-open .topbar{display:none!important}.messages-open .mobile-umwe-float{display:none!important}.umwe-messages-layer{position:fixed!important;inset:0 0 72px 0!important;z-index:210!important;padding:0!important;background:var(--bg,#f4f8fb)!important}.umwe-messages{height:100%!important;padding:20px 10px 0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.msg-page-head{flex:0 0 auto!important;margin:0 0 10px!important;padding:0 2px!important}.msg-page-head h1{font-size:29px!important;line-height:1.05!important}.msg-page-head p{font-size:11px!important;margin-top:4px!important}.msg-shell{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important;border-radius:16px 16px 0 0!important}.msg-list{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.msg-list-tools{flex:0 0 auto!important}.msg-people{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}.msg-chat{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.msg-chat-head{flex:0 0 auto!important}.msg-thread{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:14px 10px 18px!important}.msg-compose{position:relative!important;flex:0 0 auto!important;display:flex!important;visibility:visible!important;opacity:1!important;z-index:20!important;margin:0!important;padding:10px!important;background:var(--panel-strong,#fff)!important;border-top:1px solid var(--line)!important}.msg-compose input{display:block!important;visibility:visible!important;flex:1!important;width:auto!important;min-width:0!important}.msg-compose .msg-send{flex:0 0 42px!important}.msg-shell.thread-open{padding-bottom:0!important}.msg-message-stack{display:flex!important;flex-direction:column!important;max-width:82%!important;align-items:flex-start!important}.msg-bubble-row.mine .msg-message-stack{align-items:flex-end!important}.msg-bubble{max-width:100%!important;padding:10px 12px!important}.msg-time{display:block!important;margin:4px 5px 0!important;font-size:8px!important;color:var(--muted)!important;opacity:.9!important;line-height:1!important}.msg-bubble-row.mine .msg-time{color:var(--muted)!important}.msg-day{margin-bottom:10px!important}.messages-open .mobile-bottom-nav{z-index:250!important}
 .popover.notifications{padding:10px!important;border-radius:17px!important}.notifications .notif{cursor:pointer!important;padding:11px 8px!important;border-radius:12px!important}.notifications .notif b{font-size:11.5px!important}.notifications .notif p{font-size:10px!important;line-height:1.4!important}.notifications .notif small{font-size:8.5px!important}
}
.msg-home-back{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:11px;padding:9px 12px;font:inherit;font-size:12px;font-weight:750;cursor:pointer;margin-bottom:10px}@media(max-width:760px){.msg-home-back{display:none!important}}
