:root{--blue:#333333;--muted:#737373;--border:#e6e6e6;color:#292929;background:#f5f5f5;font-family:Arial,Helvetica,sans-serif}
body{background:#f5f5f5;color:#292929}a{color:inherit}h1,h2,h3,h4,.brand{color:#292929;font-family:Arial,Helvetica,sans-serif}button:focus-visible,a:focus-visible{outline:2px solid #555555;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #d5d5d5;border-color:#777777!important}button:disabled{cursor:not-allowed;opacity:.55}
.brand{font-size:23px;letter-spacing:-1.2px;padding:0;gap:9px}.brand b,.brandmark,.brand span[style]{color:#333333!important}.brandmark{border-radius:50%;background:#ededed;width:30px;height:30px;justify-content:center;gap:2px;margin:0!important}.brandmark i{width:3px}.brandmark i:nth-child(1){height:11px}.brandmark i:nth-child(2){height:19px}.brandmark i:nth-child(3){height:15px}
.btn{border:1px solid #e3e3e3;border-radius:999px;background:#ffffff;color:#444444;padding:10px 16px;box-shadow:none;font-size:12px;min-height:38px;text-decoration:none}.btn:hover{background:#ededed}.btn.primary{background:#333333;border-color:#333333;color:#ffffff;box-shadow:none}.btn.primary:hover{background:#505050}.btn.danger{color:#333333;border-style:dashed}.text-link{color:#444444;text-underline-offset:3px}.feedback,.auth-feedback{color:#333333;font-weight:600}.feedback:not(:empty)::before{content:'! ';font-weight:700}.empty,.subtitle,small{color:#737373}.panel,.stat,.board-shell{border-color:#e5e5e5;border-radius:14px;box-shadow:none}.panel{padding:22px}.avatar,.tag,.priority,.badge,.status-pill,.stat-icon,.column-dot,.notification-dot{filter:grayscale(1)}
.environment{background:#eeeeee;color:#666666;font-size:11px;padding:6px 16px}.auth-shell{background:#f5f5f5;min-height:calc(100dvh - 28px)}.auth-card{border:1px solid #e6e6e6;border-radius:22px;box-shadow:0 12px 44px #00000005;padding:40px}.auth-card>.brand{display:flex!important;margin-bottom:32px}.auth-card .brand>span:last-child{display:inline}.auth-card h1{font-size:26px;font-weight:650;letter-spacing:-.8px;margin-bottom:12px}.auth-card p,.auth-card small{color:#737373}.auth-card label{color:#444444}.auth-card input{border-color:#dddddd;color:#333333;border-radius:10px}.auth-card .btn{min-height:44px}.auth-card .text-link{margin-top:16px}
/* Shared Vantta structure: floating icon rail, pill toolbar and white surfaces. */
.portal-rail{position:fixed;left:26px;top:106px;bottom:22px;width:50px;z-index:30;display:flex;flex-direction:column;gap:20px}.portal-brand{position:fixed;left:26px;top:22px;background:#ffffff;padding:8px 13px;border-radius:999px;text-decoration:none}.portal-brand .brand>span:last-child{display:inline}.portal-rail nav,.portal-rail-bottom{background:#ffffff;border:1px solid #eeeeee;border-radius:28px;padding:8px 5px;display:flex;flex-direction:column;gap:1px}.portal-rail-bottom{margin-top:auto}.portal-rail nav a,.portal-rail-bottom a,.portal-rail-bottom button{width:38px;height:38px;display:flex;align-items:center;justify-content:center;color:#878787;border-radius:50%;position:relative;text-decoration:none;padding:0}.portal-rail svg{width:19px;height:19px}.portal-rail a[aria-current],.portal-rail nav a:hover,.portal-rail-bottom a:hover,.portal-rail-bottom button:hover{background:#333333;color:#ffffff}.nav-tooltip{position:absolute;left:46px;background:#333333;color:#ffffff;padding:8px 11px;border-radius:7px;font-size:12px;white-space:nowrap;pointer-events:none;opacity:0;transform:translateX(-3px);transition:opacity .12s}.portal-rail a:hover .nav-tooltip,.portal-rail a:focus-visible .nav-tooltip{opacity:1;transform:none}
.workspace-shell{max-width:none;margin-left:112px;padding:22px 32px 36px 0}.workspace-header{height:48px;margin-bottom:38px;gap:18px}.portal-tabs{display:flex;background:#ffffff;border-radius:999px;padding:5px;gap:3px}.portal-tabs a{font-size:12px;padding:10px 16px;border-radius:999px;text-decoration:none;color:#737373;white-space:nowrap}.portal-tabs a[aria-current]{background:#333333;color:#ffffff}.portal-tabs a:hover{background:#e9e9e9;color:#333333}.stage-controls{display:flex;gap:10px;align-items:center;background:#ffffff;padding:7px 13px;border:1px solid #eeeeee;border-radius:999px;min-width:0}.stage-controls label{font-size:10px;color:#737373;display:grid;gap:1px}.stage-controls select{padding:0 18px 0 0;border:0;background:transparent;font-size:12px;font-weight:600;max-width:210px;color:#333333;outline-offset:1px}.stage-controls small{font-size:10px;white-space:nowrap}.workspace-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:20px}.workspace-title h1{font-size:21px;letter-spacing:-.5px;margin:0 0 7px}.workspace-title p{font-size:12px;margin:0;color:#737373}.workspace-title a{font-size:12px;color:#666666}.case-grid{grid-template-columns:310px minmax(0,1fr);align-items:start;gap:20px}.case-grid .panel h2{font-size:15px;margin-top:0;margin-bottom:18px}.case-grid label{font-size:12px;color:#555555}.case-grid input{font-size:13px;border-color:#dedede;border-radius:9px}.case-list{gap:12px;margin:18px 0}.case-item{padding:18px;border-color:#e8e8e8;border-radius:11px}.case-item h3{font-size:14px;line-height:1.5;font-weight:600}.case-item small{font-size:11px;color:#777777}.case-item .btn{font-size:11px;padding:7px 13px;min-height:32px}.case-grid .empty{font-size:12px;line-height:1.6}.case-actions{align-items:center;justify-content:space-between}.case-item .case-actions{justify-content:flex-start}.case-actions h2{margin:0!important}#bridge-status{font-size:12px;line-height:1.6;color:#666666}#bridge-status:empty{display:none}#bridge-status .btn{margin-top:8px}
/* Keep all existing module actions, data and dialogs; replace only their shell. */
.app{display:block;min-height:100dvh}.sidebar{position:fixed;left:26px;top:106px;bottom:22px;width:50px;height:auto;padding:0;background:transparent;border:0;z-index:30;gap:0}.sidebar>.brand{position:fixed;left:26px;top:22px;background:#ffffff;border-radius:999px;padding:8px 13px}.sidebar .brand>span:last-child{display:inline}.sidebar>.workspace{position:fixed;top:22px;right:28px;width:210px;margin:0;min-height:42px;padding:6px 12px;border:1px solid #eeeeee;border-radius:999px;background:white;display:flex;z-index:32}.workspace .work-icon{background:#f1f1f1;color:#777777;border-radius:50%;width:28px;height:28px}.workspace strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.workspace small{font-size:9px}.sidebar .nav-title,.sidebar .nav-divider,.sidebar .nav button span,.sidebar .plan{display:none}.sidebar>.nav{background:#ffffff;gap:1px;padding:7px 5px;border-radius:28px}.sidebar>.nav:first-of-type{border-radius:28px 28px 0 0;padding-bottom:0}.sidebar>.nav:nth-of-type(2){border-radius:0 0 28px 28px;padding-top:1px}.sidebar .nav button{width:40px;height:36px;padding:8px;justify-content:center;border-radius:50%;color:#888888;flex-shrink:0}.sidebar .nav button.active{background:#333333;color:#ffffff}.sidebar .nav button:hover{background:#e8e8e8;color:#333333}.sidebar .nav button svg{width:18px;height:18px}.sidebar .side-bottom{display:block;margin-top:auto;padding-top:12px}.sidebar .side-bottom .nav{background:white;border-radius:28px 28px 0 0;padding:6px 5px 0;gap:0}.sidebar .profile{display:flex;justify-content:center;background:#ffffff;border-radius:0 0 28px 28px;border:0;padding:3px 5px 7px;margin:0;gap:0}.sidebar .profile>div,.sidebar .profile>.avatar{display:none}.sidebar .profile .icon-btn{margin:0;width:40px;height:36px;color:#888888}.main{margin-left:112px;padding-right:30px;min-width:0}.topbar{height:88px;background:transparent;border:0;padding:0 230px 0 0;gap:15px}.breadcrumb{background:#ffffff;border-radius:999px;padding:12px 17px;font-size:11px;white-space:nowrap;color:#777777}.breadcrumb strong{color:#333333}.top-actions{gap:8px;background:#ffffff;border-radius:999px;padding:5px 10px}.top-actions .global-search{color:#777777}.top-actions kbd{display:none}.content{padding:18px 0 30px}.page-heading h1{font-size:23px}.content .subtitle{font-size:12px}.board-header,.board-toolbar{border-color:#e6e6e6}.view-tab.active{color:#333333;border-color:#333333}.stat-value{color:#333333}.legacy-return{position:fixed;left:26px;top:76px;width:50px;text-align:center;font-size:10px;color:#777777;text-decoration:none;z-index:31}.legacy-return:hover{text-decoration:underline}
@media(max-width:1000px){.top-actions .global-search{font-size:0}.top-actions .global-search svg{width:18px}.stage-controls small{display:none}.case-grid{grid-template-columns:270px minmax(0,1fr)}.workspace-shell{padding-right:22px}.workspace-title{align-items:flex-start}}
@media(max-width:760px){.portal-rail,.sidebar{left:12px;top:96px;bottom:12px;width:46px}.portal-brand,.sidebar>.brand{left:12px;top:15px;padding:7px 10px}.portal-brand .brand,.sidebar .brand{font-size:19px}.portal-rail nav,.portal-rail-bottom{padding:6px 3px}.workspace-shell,.main{margin-left:76px;padding-right:14px}.workspace-shell{padding-top:75px}.workspace-header{height:auto;flex-wrap:wrap;gap:12px;margin-bottom:24px}.portal-tabs{max-width:100%;overflow:auto}.portal-tabs a{padding:8px 11px;font-size:11px}.stage-controls{width:100%;border-radius:12px}.stage-controls select{max-width:100%}.case-grid{grid-template-columns:1fr}.workspace-title{display:block}.workspace-title a{display:inline-block;margin-top:10px}.panel{padding:18px}.auth-card{padding:26px}.auth-card h1{font-size:23px}.sidebar>.workspace{top:16px;right:12px;width:170px;min-height:37px}.sidebar>.workspace strong{max-width:110px;font-size:10px}.sidebar>.workspace .work-icon{display:none}.sidebar>.nav{padding-left:3px;padding-right:3px}.sidebar .nav button{height:33px}.sidebar .side-bottom{padding-top:8px}.topbar{height:auto;padding:78px 0 8px;flex-wrap:wrap;gap:8px}.top-actions{display:flex}.content{padding-top:18px}.legacy-return{left:12px;top:65px;width:46px}.workspace-title h1{font-size:20px}}
@media(max-height:700px) and (min-width:761px){.sidebar{top:96px;bottom:10px}.sidebar .nav button{height:30px}.sidebar .side-bottom{padding-top:8px}}

.environment{position:fixed;bottom:8px;left:112px;z-index:25;border-radius:6px;max-width:calc(100vw - 130px)}.auth-shell{min-height:100dvh}.workspace-header{margin-left:100px}.feedback:empty{display:none}.case-grid .empty{padding:0;text-align:left;margin:18px 0 0}.case-grid .panel{min-height:0}.case-grid .panel form{margin-top:8px}
@media(max-width:760px){.workspace-header{margin-left:0}.environment{left:76px;max-width:calc(100vw - 90px);font-size:9px}}
.topbar{padding-left:100px}.board{background:#f1f1f1;background-image:none;scrollbar-color:#b8b8b8 #ededed}.column{background:#f9f9f9;border:1px solid #e1e1e1}.col-dot{background:#999999!important}.add-column{background:#ffffff;color:#666666;border:1px dashed #cccccc}.board-title,.stat-value,.card h3{font-family:Arial,Helvetica,sans-serif}.sidebar .nav button.active:hover{background:#333333;color:#ffffff}
@media(max-width:760px){.topbar{padding-left:0}}

/* Shared web adaptation: consistent hierarchy, spacing and accessible controls. */
:root{--ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ui-gap:16px;--ui-radius:14px;--ui-ink:#292929;--ui-secondary:#666666;--ui-line:#e2e2e2}
body,h1,h2,h3,h4,.brand,.board-title,.stat-value,.card h3{font-family:var(--ui-font)}
button,input,select,textarea{font-family:inherit}h1,h2,h3,p{overflow-wrap:anywhere}
.btn,.icon-btn{min-height:40px}.icon-btn{min-width:40px}.field{min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0;min-height:40px;border-radius:10px}
.page-heading,.heading-actions{gap:16px}.page-heading{align-items:flex-start}.page-heading h1{line-height:1.25;letter-spacing:-.5px}.subtitle{line-height:1.6}
.modal-head{align-items:flex-start;gap:16px}.modal-head h2{margin:0;line-height:1.3}.modal-head p{margin:8px 0 0;line-height:1.5;color:var(--ui-secondary)}
.modal-body{min-width:0}.modal-body .form-grid{gap:16px}.modal-body label{line-height:1.5}.modal-body input:not([type=checkbox]),.modal-body select,.modal-body textarea{max-width:100%;min-width:0;min-height:40px;border:1px solid var(--ui-line);border-radius:10px;padding:10px 12px;font-size:13px;background:#ffffff;color:var(--ui-ink)}
.modal-body textarea{min-height:96px}.team-list>div{gap:12px;flex-wrap:wrap}.team-list>div>span{min-width:0}.team-list b{overflow-wrap:anywhere}.task-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.task-stats .stat{padding:20px}.task-stats .stat p{margin:0 0 12px;font-size:13px;color:var(--ui-secondary)}.task-stats .stat strong{font-size:30px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.staff-shell{margin-left:112px;padding:22px 32px 40px 0;min-width:0}.staff-header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;margin-left:100px;margin-bottom:38px}.staff-section{border-radius:999px;background:#ffffff;padding:12px 20px;font-size:13px;font-weight:600}.staff-identity{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}.staff-identity strong{font-size:13px;overflow-wrap:anywhere}.staff-identity span{font-size:12px;color:var(--ui-secondary)}
#staff-content>.modal-head{border:0;padding:0 0 24px;background:transparent}#staff-content h1{font-size:24px;letter-spacing:-.6px;line-height:1.3;margin:0}#staff-content>.modal-body{padding:0;overflow:visible}.section-title{font-size:14px;font-weight:600;margin:0 0 16px}.task-card{margin:16px 0;padding:20px}.task-card h3{font-size:15px;line-height:1.5;margin:0 0 8px}.task-card p{font-size:14px;line-height:1.6;white-space:pre-wrap;margin:0 0 12px}.task-card small{font-size:12px;line-height:1.6}.task-card-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:20px}.task-card-actions label{display:grid;gap:8px;min-width:160px;font-size:12px;color:var(--ui-secondary)}.task-card-actions select{color:var(--ui-ink)}.task-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}.task-pagination span{font-size:12px;color:var(--ui-secondary)}.task-pagination [data-refresh]{margin-left:auto}.task-empty{border:1px dashed #cccccc;border-radius:14px;padding:40px 24px;text-align:center;background:#ffffff}.task-empty h3{font-size:16px;margin:0 0 10px}.task-empty p{font-size:14px;line-height:1.6;margin:0;color:var(--ui-secondary)}#task-error:empty{display:none}#task-error{line-height:1.6;margin:16px 0}.staff-rail svg{stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
#directory{margin-top:24px}#directory .activity{overflow-wrap:anywhere;padding:16px 0;line-height:1.6}#directory>.btn{margin:12px 8px 0 0}
@media(max-width:760px){.staff-shell{margin-left:76px;padding:82px 14px 28px 0}.staff-header{margin-left:0;margin-bottom:24px;align-items:flex-start;flex-wrap:wrap}.staff-identity{align-items:flex-start}.task-stats{grid-template-columns:1fr;gap:12px}.task-stats .stat{padding:16px}.task-stats .stat>div{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px}.task-stats .stat p{margin:0}.task-stats .stat strong{font-size:26px}.task-card{padding:16px}.task-card-actions label{min-width:0;width:100%}.task-pagination [data-refresh]{margin-left:0}.btn,.icon-btn,.modal-body select,.modal-body input:not([type=checkbox]){min-height:44px}.modal-body{padding:20px}.modal-head{padding:20px}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .full{grid-column:1/-1}.heading-actions{width:100%}.content .panel{min-width:0;max-width:100%;overflow-x:auto}.content .data-table{min-width:540px}.staff-section{padding:10px 16px}.auth-card{padding:24px}.auth-card h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Neutralize UI-only charts and inline accents; document previews keep their colors. */
.manager-charts,.manager-tables,.manager-stats,.chart-legend,.content [style*="color:"],.modal-body [style*="color:"]{filter:grayscale(1)}
.manager-stats strong,.charge-total strong{font-family:var(--ui-font);font-variant-numeric:tabular-nums}.attention{filter:grayscale(1)}.content select{max-width:100%;border-color:var(--ui-line)!important}.content .panel>label{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.content .panel>label>select{margin-left:0!important;min-width:0}
@media(max-width:760px){.content .panel>label>select{width:100%!important}.content .panel>label{width:100%}}
.modal-head h2{font-size:20px;letter-spacing:-.4px}.modal-body label{font-size:13px;font-weight:500}.modal-body .field{display:grid;gap:8px}

/* Staff inbox and assigned cases share the neutral task card system. */
#staff-workspace-tools{display:grid;gap:24px}
.staff-inbox,.staff-processes{padding:24px;min-width:0}
.staff-inbox summary{cursor:pointer;font-size:18px;font-weight:650;padding:8px 0}
.staff-unread{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:2px 8px;margin-left:8px;border-radius:99px;background:#ececec;color:#262626;font-size:14px}
.staff-notification{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #e5e5e5;overflow-wrap:anywhere}
.staff-notification.is-unread{border-left:3px solid #555555;padding-left:16px}
.staff-notification h3{font-size:16px;margin:8px 0}.staff-notification p{margin:4px 0}.staff-notification small{color:#606060}
.staff-case-search{display:flex;align-items:end;gap:12px;margin:20px 0}.staff-case-search label{display:grid;gap:8px;flex:1;min-width:0}
.staff-case-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.staff-case-fields dt{font-size:13px;color:#606060}.staff-case-fields dd{margin:6px 0 0;overflow-wrap:anywhere}
[data-case-list]{display:grid;gap:16px}[data-task-case-result]:not(:empty){margin-top:16px}
@media(max-width:640px){.staff-inbox,.staff-processes{padding:16px}.staff-case-fields{grid-template-columns:1fr}.staff-notification,.staff-case-search{align-items:stretch;flex-direction:column}.staff-notification .btn{min-height:44px}}

.staff-case-search input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #d8d8d8;border-radius:12px;background:#ffffff;color:#262626;font:inherit}.staff-case-search input:focus-visible{outline:2px solid #555555;outline-offset:2px}

/* Lawyer agenda uses the same neutral cards, controls and spacing. */
.staff-agenda{padding:24px;min-width:0}.staff-agenda-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.staff-agenda-filters label{display:grid;gap:8px;flex:1;min-width:160px}.staff-agenda-filters input,.staff-agenda-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #d8d8d8;border-radius:12px;background:#ffffff;color:#262626;font:inherit}.staff-agenda-filters :focus-visible{outline:2px solid #555555;outline-offset:2px}.staff-agenda-summary{display:flex;flex-wrap:wrap;gap:12px}.staff-agenda-event{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;padding:20px;overflow-wrap:anywhere}.staff-agenda-event.is-overdue{border-left:3px solid #555555}.staff-agenda-date{display:grid;align-content:start;gap:8px}.staff-agenda-event h3{margin:8px 0;font-size:16px}.staff-agenda-event p{margin:6px 0}.staff-agenda-event small,.staff-agenda-date span{color:#606060;font-size:13px}[data-agenda-list]{display:grid;gap:12px}@media(max-width:640px){.staff-agenda{padding:16px}.staff-agenda-filters{flex-direction:column;align-items:stretch}.staff-agenda-filters label{min-width:0}.staff-agenda-event{grid-template-columns:1fr;gap:12px;padding:16px}}

.event-fields{border:0;padding:0;margin:24px 0;min-width:0}.event-fields legend{font-size:18px;font-weight:650;margin-bottom:16px}.event-responsibles{padding:16px}.event-confirm{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:12px}.event-fields [hidden]{display:none!important}.event-confirm input{min-height:20px!important;width:20px!important;flex:none}[data-event-list]{display:grid;gap:16px}.event-fields input,.event-fields select{max-width:100%;min-width:0}.event-fields p{font-size:13px;color:#606060}

.email-report .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.email-delivery{padding:16px;margin:12px 0;overflow-wrap:anywhere}.email-delivery dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.email-delivery dd{margin:4px 0 0}.email-delivery dt{color:#666666;font-size:12px}.email-report input,.email-report select{min-width:0;max-width:100%}@media(max-width:600px){.email-report .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.email-delivery dl{grid-template-columns:1fr}}
