:root{--ink:#323338!important;--muted:#676879!important;--paper:#f6f7fb!important;--line:#d0d4e4!important;--accent:#005eb8!important;--warn:#d83a52!important;--white:#fff!important;--hover:#f0f3ff!important;--navigation:#f6f7fb!important;--navigation-selected:#e5f0ff!important;--navigation-selected-text:#0060b9!important;--table-header:#f6f7fb!important;--focus:#005eb8!important;--selection:#cce5ff!important;--toast:#323338!important;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px rgba(50,51,56,.08),0 2px 8px rgba(50,51,56,.05);--shadow-lg:0 12px 36px rgba(50,51,56,.16)}
*{box-sizing:border-box}::selection{background:var(--selection);color:var(--ink)}html{background:var(--paper);scrollbar-color:#b9becd transparent}body{background:var(--paper)!important;color:var(--ink)!important;font-family:"Aptos","Segoe UI",Arial,sans-serif!important;font-size:14px!important;line-height:1.45!important;letter-spacing:0!important}body::-webkit-scrollbar{width:10px}body::-webkit-scrollbar-thumb{background:#b9becd;border:3px solid var(--paper);border-radius:99px}
header{min-height:64px!important;padding:10px 24px!important;background:#fff!important;border-bottom:1px solid #e6e9ef!important;box-shadow:0 1px 0 rgba(50,51,56,.03)!important;gap:16px!important}header strong{font-size:19px!important;letter-spacing:-.02em!important;color:#1f2a44!important}header span{font-size:12px!important;color:var(--muted)!important}header .tools{gap:8px!important}
.layout{grid-template-columns:246px minmax(0,1fr)!important;min-height:calc(100vh - 64px)}#nav{top:64px!important;height:calc(100dvh - 64px)!important;padding:18px 12px 28px!important;background:#f6f7fb!important;border-right:1px solid #e6e9ef!important}#nav button{border-radius:var(--radius-sm)!important;min-height:34px!important;padding:7px 10px!important;color:#4b4c5a!important;font-weight:500!important;text-align:left!important;transition:background-color 140ms ease,color 140ms ease!important}#nav button:hover{background:#eef1f7!important;color:#24252c!important}#nav button[aria-current=page]{background:#e5f0ff!important;color:#0060b9!important;font-weight:650!important}.nav-group-toggle{color:#676879!important;margin-top:2px!important}.nav-group-toggle:hover{background:transparent!important;color:#323338!important}#navToggle{top:76px!important;left:198px!important;width:34px!important;height:34px!important;border-radius:var(--radius-sm)!important;background:#fff!important;border-color:#d0d4e4!important;box-shadow:var(--shadow-sm)!important}body.nav-collapsed #navToggle{left:8px!important}
#main{max-width:1480px;width:100%;padding:32px 42px 64px!important}h1{font-family:"Aptos Display","Aptos","Segoe UI",sans-serif!important;font-size:30px!important;line-height:1.15!important;letter-spacing:-.035em!important;font-weight:700!important;margin:0 0 8px!important;color:#25262d!important}h2{font-family:"Aptos Display","Aptos","Segoe UI",sans-serif!important;font-size:19px!important;line-height:1.25!important;letter-spacing:-.018em!important;font-weight:650!important;margin:30px 0 12px!important;color:#323338!important}h3{font-size:15px!important}.sub{font-size:14px!important;color:var(--muted)!important;margin:0 0 24px!important;max-width:72ch}.help,.foot{color:var(--muted)!important;font-size:13px!important;max-width:75ch}
button,a,input,select,textarea{font:inherit}button{min-height:36px!important;padding:7px 14px!important;border:1px solid #c3c7d5!important;border-radius:var(--radius-sm)!important;background:#fff!important;color:#323338!important;font-weight:500!important;transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease!important}button:hover{background:#f0f3f8!important;border-color:#aeb3c2!important}button:active{background:#e8ebf1!important}.primary,button.primary{background:#0073ea!important;border-color:#0073ea!important;color:#fff!important}.primary:hover,button.primary:hover{background:#0060b9!important;border-color:#0060b9!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(0,115,234,.24)!important;outline-offset:2px!important}button:disabled{opacity:.48!important}a,.link{color:#005eb8!important;text-underline-offset:3px!important}.link{border:0!important;background:transparent!important;padding:0!important;min-height:auto!important;font-weight:600!important}
input,select,textarea{border:1px solid #c3c7d5!important;border-radius:var(--radius-sm)!important;background:#fff!important;color:#323338!important;padding:9px 11px!important;min-height:40px!important;caret-color:#0073ea!important}input:hover,select:hover,textarea:hover{border-color:#8f95a5!important}input:focus,select:focus,textarea:focus{border-color:#0073ea!important;box-shadow:0 0 0 1px #0073ea!important}label{font-size:13px!important;font-weight:650!important;color:#4b4c5a!important}
form,.panel{background:#fff!important;border:1px solid #e0e3eb!important;border-radius:var(--radius-lg)!important;padding:24px!important;box-shadow:var(--shadow-sm)!important}.bar{gap:16px!important;margin:0 0 20px!important}.tools{gap:8px!important}.actions{margin-top:24px!important;gap:10px!important}
.numbers{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;border:0!important;padding:0!important;margin:22px 0 34px!important}.numbers>div{background:#fff!important;border:1px solid #e0e3eb!important;border-radius:var(--radius-md)!important;padding:18px!important;min-width:0!important;box-shadow:var(--shadow-sm)!important}.numbers strong{font-size:26px!important;line-height:1!important;font-weight:700!important;color:#25262d!important}.numbers span{font-size:12px!important;color:var(--muted)!important;margin-top:8px!important}
.table-wrap{background:#fff!important;border:1px solid #dfe2ea!important;border-radius:var(--radius-md)!important;overflow:auto!important;box-shadow:var(--shadow-sm)!important}table{background:#fff!important;border-collapse:separate!important;border-spacing:0!important}th{position:sticky;top:0;background:#f6f7fb!important;color:#4b4c5a!important;font-size:12px!important;font-weight:700!important;padding:10px 12px!important;border-bottom:1px solid #dfe2ea!important;text-transform:none!important}td{padding:11px 12px!important;border-bottom:1px solid #eceef3!important;font-size:13px!important;vertical-align:middle!important}tbody tr:last-child td{border-bottom:0!important}tbody tr:hover td{background:#f8faff!important}.empty{padding:34px!important;color:var(--muted)!important;text-align:center!important}
.notice{background:#fff!important;border:1px solid #dfe2ea!important;border-radius:var(--radius-md)!important;padding:16px 18px!important;box-shadow:none!important}.notice.error,.error:not(:empty){background:#fff4f6!important;border-color:#f4b6c1!important;color:#b4233c!important}.status-chip{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:3px 9px!important;border-radius:4px!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;background:#e5f0ff!important;color:#0058a9!important}.status-chip[data-tone=green]{background:#d9f5e6!important;color:#08784f!important}.status-chip[data-tone=yellow]{background:#fff3cd!important;color:#8a5a00!important}.status-chip[data-tone=red]{background:#ffe0e6!important;color:#b4233c!important}.status-chip[data-tone=purple]{background:#ece5ff!important;color:#6741b8!important}.status-chip[data-tone=gray]{background:#eceef3!important;color:#555866!important}
#toast{background:#323338!important;border-radius:var(--radius-md)!important;box-shadow:var(--shadow-lg)!important;padding:12px 16px!important}.split{gap:20px!important}.cal-grid,.cal-day{border-radius:var(--radius-md)!important;overflow:hidden!important;border-color:#dfe2ea!important}.cal-event{border-radius:5px!important;background:#fff!important}.delivery-summary{background:#fff;border:1px solid #e0e3eb!important;border-radius:var(--radius-md)!important;padding:18px!important;box-shadow:var(--shadow-sm)!important}
dialog,#calDetail{border-radius:12px 0 0 12px!important;box-shadow:var(--shadow-lg)!important}dialog::backdrop,#calDetail::backdrop{background:rgba(31,42,68,.28)!important}
body:has(.box){background:#f6f7fb!important}body:has(.box) .box{border:0!important;border-radius:14px!important;box-shadow:0 12px 40px rgba(50,51,56,.12)!important;padding:38px!important}body:has(.box) #identity{display:none!important}
body:has(main>p>a[href="/"]) main{max-width:1180px!important}body:has(main>p>a[href="/"]) .tabs{border-bottom:1px solid #dfe2ea!important;gap:2px!important}body:has(main>p>a[href="/"]) .tabs button{border:0!important;border-radius:6px 6px 0 0!important;background:transparent!important}body:has(main>p>a[href="/"]) .tabs button[aria-selected=true]{background:#e5f0ff!important;color:#0060b9!important}
@media(max-width:1000px){#main{padding:28px 24px 56px!important}.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:850px){header{min-height:auto!important;padding:12px 16px 12px 62px!important}.layout{display:block!important}#main{padding:24px 16px 48px!important}#nav{top:0!important;height:100dvh!important;width:min(292px,88vw)!important;background:#f6f7fb!important}#navToggle{top:14px!important;left:14px!important}.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bar{align-items:stretch!important}.bar>.tools{width:100%;flex-wrap:wrap!important}.bar input{flex:1 1 180px!important}}
@media(max-width:560px){body{font-size:14px!important}h1{font-size:24px!important}.numbers{grid-template-columns:1fr 1fr!important;gap:8px!important}.numbers>div{padding:14px!important}.numbers strong{font-size:22px!important}.fields,.split{grid-template-columns:1fr!important}form,.panel{padding:18px!important;border-radius:var(--radius-md)!important}.table-wrap{margin-inline:-4px!important}.tools{flex-wrap:wrap!important}header .tools button{flex:1 1 auto!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Compact application chrome */
header.topbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;min-height:58px!important;padding:8px 18px!important;gap:14px!important}
.brand{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;margin-right:auto!important;align-self:center!important}
.brand-home{display:flex!important;align-items:center!important;gap:7px!important;min-height:40px!important;padding:3px 5px!important;border:0!important;border-radius:7px!important;background:transparent!important;text-align:left!important}.brand-home:hover{background:#f0f3f8!important}.brand-home:focus-visible{outline:3px solid rgba(0,115,234,.24)!important;outline-offset:2px!important}
.brand strong{font-size:20px!important;color:#25262d!important}
.brand-product{font-size:13px!important;color:#676879!important;font-weight:600!important}
#workspaceStatus{display:none!important}
.brand-logo-window{position:relative!important;display:block!important;width:190px!important;height:42px!important;overflow:visible!important;flex:0 0 auto!important}
.brand-logo{position:relative!important;left:auto!important;top:auto!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
.topbar-actions,.account-tools{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
.topbar-actions{margin-left:auto!important}
.topbar-actions svg,.account-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-action,.workspace-switch,.icon-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:36px!important;border-radius:6px!important}
.icon-action,.workspace-switch{padding:7px 10px!important}
.icon-link{width:36px;height:36px;border-radius:6px;text-decoration:none!important;color:#4b4c5a!important}
.icon-link:hover{background:#f0f3f8!important;color:#0060b9!important}
.account-tools{margin-left:4px!important;padding-left:10px!important;border-left:1px solid #e0e3eb!important}
.user-chip{display:flex!important;align-items:center!important;gap:8px!important;padding:3px 6px 3px 3px!important}
.avatar{display:grid!important;place-items:center!important;width:30px;height:30px;border-radius:50%;background:#e5f0ff;color:#0060b9!important;font-size:12px!important;font-weight:750!important}
.user-meta{display:flex!important;flex-direction:column!important;line-height:1.15!important;max-width:145px!important}
.user-meta strong{font-size:12px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-meta small{font-size:11px!important;color:#676879!important}
.signout{width:36px!important;padding:7px!important}
.sub,.foot{display:none!important}
.split .help{display:none!important}
#nav{padding-top:52px!important}
#nav button{border:0!important;background:transparent!important;box-shadow:none!important}
#nav .nav-group-items button{min-height:32px!important;padding:6px 10px!important;margin:1px 0!important}
#nav .nav-group-toggle{min-height:28px!important;padding-block:4px!important}
#nav .nav-group+.nav-group{margin-top:10px!important}
h1{margin-bottom:20px!important}
.bar button{white-space:nowrap}
@media(max-width:1050px){.user-meta{display:none!important}.topbar-actions .icon-action span{display:none!important}.topbar-actions .icon-action{width:36px!important;padding:7px!important}}
@media(max-width:850px){header.topbar{padding:8px 10px 8px 58px!important;gap:6px!important}.brand-product,.workspace-switch span{display:none!important}.workspace-switch{width:36px!important;padding:7px!important}.account-tools{padding-left:5px!important}.user-chip{display:none!important}.topbar-actions{gap:3px!important}.icon-link,.icon-action,.workspace-switch{width:34px!important;height:34px!important;min-height:34px!important}}
@media(max-width:480px){.brand strong{font-size:18px!important}.account-tools{border-left:0!important;margin-left:0!important;padding-left:0!important}.topbar-actions #restore{display:none!important}}

/* Calendar: aligned controls and self-labelled events */
.page-calendar{max-width:none!important;padding-right:32px!important}
.page-calendar>h1{margin-bottom:18px!important}
.page-calendar>.bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;margin-bottom:18px!important}
.page-calendar>.bar>.tools{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
.page-calendar>.bar:first-of-type{padding-bottom:18px!important;border-bottom:1px solid #e0e3eb!important}
.page-calendar>.bar:nth-of-type(2){margin-top:20px!important;margin-bottom:14px!important}
.page-calendar>.bar:nth-of-type(2) h2{margin:0!important}
.page-calendar .cal-filters{display:grid!important;grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:12px!important;padding:16px!important;background:#fff!important;border:1px solid #e0e3eb!important;border-radius:10px!important;box-shadow:var(--shadow-sm)!important}
.page-calendar .cal-filters label{min-width:0!important}
.page-calendar .cal-scroll{overflow-x:auto!important;border-radius:10px!important;box-shadow:var(--shadow-sm)!important}
.page-calendar .cal-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0!important;border:0!important;border-radius:10px!important}
.page-calendar .cal-weekday{padding:11px 12px!important;background:#f1f3f7!important;color:#555866!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.035em!important}
.page-calendar .cal-cell{min-height:112px!important;padding:7px!important;border-color:#e4e7ee!important}
.page-calendar .cal-cell>button:not(.cal-event){min-width:30px!important;min-height:30px!important;padding:4px!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;font-weight:650!important}
.page-calendar .cal-today{background:#f2f7ff!important}
.page-calendar .cal-today>button:not(.cal-event){border-radius:50%!important;background:#0073ea!important;color:#fff!important}
.page-calendar .cal-outside{background:#fafbfc!important}
.page-calendar .cal-outside>button:not(.cal-event){color:#989baa!important}
.page-calendar .cal-event{position:relative!important;padding:8px!important;margin:5px 0!important;border:0!important;background:color-mix(in srgb,var(--event-color) 8%,white)!important;color:#323338!important;box-shadow:none!important}
.page-calendar .cal-event:hover{background:color-mix(in srgb,var(--event-color) 13%,white)!important}
.page-calendar .cal-tag{display:inline-flex!important;width:max-content!important;padding:2px 6px!important;margin-bottom:5px!important;border-radius:4px!important;background:var(--event-color)!important;color:#fff!important;font-size:10px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:.02em!important}
.page-calendar .cal-title{font-size:12px!important;line-height:1.25!important;font-weight:650!important;color:#323338!important}
.page-calendar .cal-event small{margin-top:4px!important;font-size:10px!important;color:#676879!important}
@media(max-width:1100px){.page-calendar>.bar{grid-template-columns:1fr!important}.page-calendar>.bar>.tools{flex-wrap:wrap!important}.page-calendar .cal-filters{grid-template-columns:repeat(2,minmax(180px,1fr))!important}}
@media(max-width:700px){.page-calendar{padding-right:16px!important}.page-calendar .cal-filters{grid-template-columns:1fr!important;padding:12px!important}.page-calendar>.bar>.tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-calendar>.bar>.tools>*{width:100%!important}.page-calendar #calDate{grid-column:1/-1!important}.page-calendar>.bar:nth-of-type(2) .tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-calendar .cal-grid{min-width:760px!important}}

/* Sidebar control and unified account menu */
@media(min-width:851px){#navToggle{top:74px!important;left:198px!important;width:32px!important;height:32px!important;padding:6px!important;border:0!important;background:transparent!important;box-shadow:none!important}#navToggle:hover{background:#e5f0ff!important;color:#0060b9!important}body.nav-collapsed #navToggle{left:14px!important;background:#fff!important;border:1px solid #d0d4e4!important;box-shadow:var(--shadow-sm)!important}}
.account-tools{position:relative!important;border-left:1px solid #e0e3eb!important;padding-left:10px!important}
.user-menu-trigger{display:flex!important;align-items:center!important;gap:8px!important;min-height:40px!important;padding:4px 7px 4px 4px!important;border:0!important;background:transparent!important}
.user-menu-trigger:hover,.user-menu-trigger[aria-expanded=true]{background:#f0f3f8!important}
.user-menu-trigger>svg{width:14px!important;height:14px!important;color:#676879!important}
.user-menu{position:absolute!important;z-index:40!important;top:calc(100% + 8px)!important;right:0!important;width:220px!important;padding:7px!important;background:#fff!important;border:1px solid #dfe2ea!important;border-radius:10px!important;box-shadow:var(--shadow-lg)!important}
.user-menu[hidden]{display:none!important}
.user-menu-heading{display:flex!important;flex-direction:column!important;gap:2px!important;padding:9px 10px 10px!important;border-bottom:1px solid #eceef3!important;margin-bottom:5px!important}
.user-menu-heading strong{font-size:13px!important;color:#323338!important}
.user-menu-heading span{font-size:11px!important;color:#676879!important}
.user-menu a,.user-menu button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:38px!important;padding:8px 10px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#323338!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important}
.user-menu a:hover,.user-menu button:hover{background:#f0f3f8!important;color:#0060b9!important}
.user-menu svg{width:17px!important;height:17px!important;flex:0 0 auto!important}
@media(max-width:850px){.account-tools{border-left:0!important;padding-left:0!important}.user-menu-trigger{width:36px!important;height:36px!important;padding:3px!important}.user-menu-trigger .user-meta,.user-menu-trigger>svg{display:none!important}.user-menu{right:0!important;width:210px!important}}
.notification-button{position:relative!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;padding:7px!important;margin-left:2px!important;border:0!important;background:transparent!important;color:#4b4c5a!important}
.notification-button:hover,.notification-button[aria-current=page]{background:#e5f0ff!important;color:#0060b9!important}
.notification-button svg{width:19px!important;height:19px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-badge{position:absolute!important;top:1px!important;right:0!important;display:grid!important;place-items:center!important;min-width:17px!important;height:17px!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:10px!important;background:#d83a52!important;color:#fff!important;font-size:9px!important;line-height:1!important;font-weight:750!important}
@media(max-width:850px){.notification-button{width:34px!important;height:34px!important;min-height:34px!important;margin-left:0!important}}
@media(min-width:851px){body.nav-collapsed .layout{grid-template-columns:minmax(0,1fr)!important}body.nav-collapsed #main{grid-column:1!important;max-width:none!important;width:100%!important;padding-top:64px!important}body.nav-collapsed #navToggle{top:74px!important;left:14px!important;z-index:30!important;background:#fff!important}}
@media(max-width:850px){.brand-logo-window{width:142px!important;height:34px!important}.brand-logo{width:100%!important}}

.notification-panel{position:fixed!important;z-index:45!important;right:auto!important;max-height:min(560px,calc(100vh - 78px))!important;overflow:auto!important;padding:8px!important;background:#fff!important;border:1px solid #dfe2ea!important;border-radius:12px!important;box-shadow:var(--shadow-lg)!important}
.notification-panel[hidden]{display:none!important}
.notification-panel-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 8px 12px!important;border-bottom:1px solid #eceef3!important}
.notification-panel-heading>div{display:flex!important;flex-direction:column!important;gap:2px!important}.notification-panel-heading strong{font-size:15px!important;color:#323338!important}.notification-panel-heading span{font-size:11px!important;color:#676879!important}
#notificationClose{width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;font-size:20px!important;background:transparent!important}
.notification-list{display:flex!important;flex-direction:column!important;padding:4px 0!important}
.notification-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;padding:5px!important;border-bottom:1px solid #f0f1f4!important}.notification-item:last-child{border-bottom:0!important}.notification-item.is-read{opacity:.62!important}
.notification-open{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;padding:8px!important;border:0!important;background:transparent!important;text-align:left!important}.notification-open:hover{background:#f5f7fb!important}.notification-open strong{font-size:12px!important;line-height:1.35!important;font-weight:600!important;color:#323338!important}.notification-open span{font-size:10px!important;color:#676879!important}
.notification-read{min-height:30px!important;padding:4px 8px!important;border:0!important;background:transparent!important;color:#0060b9!important;font-size:11px!important}
.notification-empty{padding:24px 12px!important;margin:0!important;text-align:center!important;color:#676879!important}
#notificationReadAll{width:100%!important;border:0!important;border-top:1px solid #eceef3!important;border-radius:0 0 7px 7px!important;background:transparent!important;color:#0060b9!important}
.system-menu-items{display:flex!important;flex-direction:column!important;border-top:1px solid #eceef3!important;margin-top:5px!important;padding-top:5px!important}.system-menu-items>span{padding:7px 10px 4px!important;color:#5f6676!important;font-size:10px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.04em!important}
@media(max-width:850px){.notification-panel{max-height:calc(100vh - 70px)!important}}

/* Action-oriented management dashboard */
.dashboard-page{max-width:1240px;margin:0 auto}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.dashboard-head h1{margin:2px 0 5px!important}.dashboard-head .sub{margin:0!important}.eyebrow{margin:0!important;color:#676879;font-size:11px!important;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.dashboard-actions{display:flex;gap:8px;flex:0 0 auto}.dashboard-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}.dashboard-kpis>button{display:flex!important;min-width:0;min-height:116px!important;padding:16px!important;flex-direction:column;align-items:flex-start!important;text-align:left;border:1px solid #dfe2ea!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--shadow-sm)!important}.dashboard-kpis>button:hover{border-color:#9fc8f5!important;box-shadow:0 5px 15px rgba(20,32,63,.09)!important;transform:translateY(-1px)}.dashboard-kpis span{color:#555866;font-size:12px;font-weight:650}.dashboard-kpis strong{margin:7px 0 2px;color:#202124;font-size:29px;line-height:1}.dashboard-kpis small{overflow:hidden;max-width:100%;color:#626879;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.dash-card{min-width:0;padding:18px;background:#fff;border:1px solid #dfe2ea;border-radius:12px;box-shadow:var(--shadow-sm)}.dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.dash-card h2{margin:2px 0 0!important;font-size:18px!important}.dash-card-head .link{padding:6px!important;font-size:12px!important}.dash-attention{border-color:#dfe2ea}.dash-list{display:flex;flex-direction:column}.dash-list-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:53px;padding:9px 0;border-top:1px solid #eceef3}.dash-list-row:first-child{border-top:0}.dash-list-row>div{min-width:0}.dash-list-row strong{display:block;overflow:hidden;color:#292f4c;font-size:13px;white-space:nowrap;text-overflow:ellipsis}.dash-list-row small{display:block;overflow:hidden;margin-top:3px;color:#626879;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.dash-list-row>.link{max-width:90px;padding:5px!important;font-size:11px!important}.attention-dot{width:9px;height:9px;border-radius:50%;background:#fdab3d}.attention-dot.red{background:#d83a52}.attention-dot.yellow{background:#fdab3d}.type-mark{display:grid;width:32px;height:25px;place-items:center;border-radius:6px;background:#e5f0ff;color:#0060b9;font-size:9px;font-weight:800}.dash-list-row time{display:grid;width:37px;height:39px;place-items:center;border:1px solid #dfe2ea;border-radius:8px;color:#676879;font-size:9px;line-height:1}.dash-list-row time b{display:block;color:#202124;font-size:14px}.pipeline-chart{display:flex;flex-direction:column;gap:10px}.pipeline-chart>div{display:grid;grid-template-columns:minmax(100px,1fr) 28px 1.3fr;align-items:center;gap:10px}.pipeline-chart span{overflow:hidden;color:#3f4252;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.pipeline-chart b{text-align:right;font-size:12px}.pipeline-chart i{height:7px;overflow:hidden;border-radius:8px;background:#eff1f5}.pipeline-chart em{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#00c7b1,#6161ff)}.dash-empty{display:flex;min-height:124px;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#626879;text-align:center}.dash-empty button{background:#fff!important}.dashboard-foot{display:flex;align-items:center;gap:18px;margin-top:14px;padding:2px 4px;color:#626879;font-size:11px}.dashboard-foot .link{margin-left:auto;padding:4px!important;font-size:11px!important}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.dashboard-actions .primary{grid-column:1/-1}.dashboard-kpis{grid-template-columns:1fr 1fr}.dashboard-kpis>button{min-height:104px!important}.dashboard-grid{gap:10px}.dash-card{padding:14px}.dashboard-foot{align-items:flex-start;flex-wrap:wrap}.dashboard-foot .link{width:100%;margin-left:0;text-align:left}.pipeline-chart>div{grid-template-columns:100px 24px 1fr}}
.dashboard-filters{display:grid;grid-template-columns:minmax(250px,1fr) minmax(220px,1fr) auto;align-items:end;gap:10px;margin-bottom:14px;padding:12px 14px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.dashboard-filters label{margin:0!important}.dashboard-filters label>span{display:block;margin-bottom:5px;color:#555866;font-size:11px;font-weight:700}.dashboard-filters select,.dashboard-filters input{width:100%;min-height:38px!important;padding:7px 10px!important;font-size:12px!important}.dashboard-filters>button{min-height:38px!important;white-space:nowrap}.date-filter{position:relative}.date-filter>button{display:grid!important;width:100%;min-height:54px!important;padding:7px 38px 7px 12px!important;text-align:left;background:#fff!important}.date-filter>button::after{position:absolute;right:14px;top:20px;content:'⌄';font-size:16px}.date-filter>button span{color:#676879;font-size:10px;font-weight:700}.date-filter>button strong{color:#292f4c;font-size:12px}.date-filter>button small{color:#5f6676;font-size:10px}.date-filter-menu{position:absolute;z-index:35;top:calc(100% + 7px);left:0;width:min(390px,calc(100vw - 40px));padding:14px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;box-shadow:var(--shadow-lg)}.date-filter-menu[hidden]{display:none}.date-filter-menu>p{margin:0 0 9px;color:#555866;font-size:11px;font-weight:700}.date-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}.date-presets button{min-height:34px!important;text-align:left}.date-presets button.selected{border-color:#0073ea!important;background:#e5f0ff!important;color:#0060b9!important}.date-custom{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.date-filter-menu>.primary{width:100%}.team-performance{margin-top:14px;margin-bottom:14px;padding:18px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.team-performance .dash-card-head{margin-bottom:8px}.team-performance .dash-card-head p:not(.eyebrow){margin:4px 0 0;color:#626879;font-size:11px}.performance-note{align-self:flex-end;color:#626879;font-size:10px}.performance-list{display:flex;max-height:290px;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.performance-row{display:grid!important;grid-template-columns:minmax(160px,1.6fr) repeat(3,minmax(74px,.55fr)) minmax(80px,.7fr) minmax(86px,.8fr);align-items:center!important;gap:12px;width:100%;min-height:58px!important;padding:9px 6px!important;border:0!important;border-top:1px solid #eceef3!important;border-radius:0!important;background:transparent!important;text-align:left}.performance-row:hover{background:#f7f9fc!important}.performance-row:first-child{border-top:0!important}.performance-row span:not(.capacity):not(.trend){display:flex;flex-direction:column}.performance-row b{color:#292f4c;font-size:13px}.performance-row small{margin-top:2px;color:#626879;font-size:10px}.capacity{justify-self:start;padding:5px 8px;border-radius:12px;background:#e5f0ff;color:#0060b9;font-size:10px;font-weight:750}.capacity.high{background:#ffe5ea;color:#b4233c}.capacity.available{background:#d8f3eb;color:#087f5b}.trend{color:#676879;font-size:10px;font-weight:650}.trend.up{color:#087f5b}.trend.down{color:#b4233c}.performance-dialog{width:min(620px,calc(100vw - 32px));padding:24px;border:0;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.18)}.performance-dialog::backdrop{background:rgba(20,24,40,.38)}.performance-dialog h2{margin:4px 0!important}.performance-dialog>button{float:right;margin-top:18px}.assessment-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.assessment-metrics>div{padding:13px;border-radius:9px;background:#f4f6fa}.assessment-metrics b{display:block;font-size:20px}.assessment-metrics span{display:block;margin-top:3px;color:#676879;font-size:10px}.assessment-outcomes{display:flex;flex-wrap:wrap;gap:7px}.assessment-outcomes span{padding:7px 9px;border-radius:7px;background:#e5f0ff;color:#0060b9;font-size:11px;font-weight:650}.assessment-method{margin:18px 0 0;color:#626879;font-size:11px;line-height:1.5}
@media(max-width:1000px){.dashboard-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-filters>button{width:100%}.performance-row{grid-template-columns:minmax(150px,1.5fr) repeat(3,minmax(65px,.5fr))}.performance-row .capacity,.performance-row .trend{display:none}}
@media(max-width:600px){.dashboard-filters{grid-template-columns:1fr}.dashboard-filters>button{width:100%}.date-filter-menu{position:fixed;top:72px;left:16px;right:16px;width:auto}.performance-note{display:none}.team-performance{padding:14px}.performance-row{grid-template-columns:minmax(120px,1.4fr) repeat(2,minmax(56px,.5fr))}.performance-row>span:nth-child(4){display:none}.assessment-metrics{grid-template-columns:1fr 1fr}}

/* Keep register toolbars and wide record tables readable across modules. */
.register-page{min-width:0;max-width:1240px;margin-inline:auto}
.register-page>.bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end!important;gap:14px!important}
.register-page>.bar>.tools{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.register-page>.bar>.tools:first-child input{width:min(360px,100%);min-width:220px;flex:1 1 250px}
.register-page>.bar>.tools:first-child select{width:auto!important;min-width:160px}
.register-page .table-wrap{max-width:100%;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.register-opportunities .table-wrap table{min-width:1040px}
.register-activities .table-wrap table{min-width:920px}
.register-tasks .table-wrap table{min-width:980px}
.register-implementations .table-wrap table{min-width:980px}
.register-tickets .table-wrap table{min-width:1040px}
.register-customers .table-wrap table{min-width:940px}
.register-contacts .table-wrap table{min-width:840px}
.register-page .table-wrap th,.register-page .table-wrap td{white-space:normal;overflow-wrap:anywhere}
.register-page .table-wrap th:first-child,.register-page .table-wrap td:first-child{min-width:118px}
.register-page .table-wrap td button.link{white-space:nowrap}
.dashboard-filters .date-filter{display:grid;grid-template-rows:auto 44px;align-content:end;gap:5px;min-width:0}
.dashboard-filters .date-filter-label{display:block;margin:0 0 0 1px;color:#555866;font-size:11px;font-weight:700;line-height:1.2}
.dashboard-filters .date-filter>button{min-height:44px!important;height:44px!important;padding:7px 40px 7px 12px!important}
.dashboard-filters .date-filter>button::after{top:13px!important}
.dashboard-filters>label{display:grid;grid-template-rows:auto 44px;align-content:end;gap:5px;min-width:0}
.dashboard-filters>label>span{margin:0 0 0 1px!important;line-height:1.2}
.dashboard-filters select{height:44px!important;min-height:44px!important}
@media(max-width:1000px){.dashboard-filters>button{grid-column:1/-1}}
@media(max-width:760px){.register-page>.bar{grid-template-columns:1fr}.register-page>.bar>.tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.register-page>.bar>.tools:first-child input,.register-page>.bar>.tools:first-child select{grid-column:1/-1;width:100%!important;min-width:0}.register-page .table-wrap table{min-width:0!important}}

/* Refined date picker */
.date-filter>button{min-height:48px!important;padding:7px 40px 7px 12px!important}.date-filter>button::after{right:15px!important;top:15px!important;color:#676879!important;font-size:17px!important}.date-filter>button span{color:#626879!important;font-size:10px!important;font-weight:650!important}.date-filter>button strong{font-size:13px!important}.date-filter-menu{width:min(340px,calc(100vw - 40px))!important;padding:8px!important;border-radius:14px!important;box-shadow:0 16px 40px rgba(20,32,63,.17)!important}.date-menu-head{display:flex;align-items:center;justify-content:space-between;padding:7px 8px 9px}.date-menu-head strong{font-size:13px}.date-menu-head button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#676879!important;font-size:18px!important}.date-menu-head button:hover{background:#f0f2f6!important}.date-presets{display:flex!important;flex-direction:column;gap:2px!important}.date-presets button{position:relative;min-height:36px!important;padding:7px 36px 7px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;text-align:left}.date-presets button:hover{background:#f4f6fa!important}.date-presets button.selected{background:#e5f0ff!important;color:#0060b9!important;font-weight:700}.date-presets button.selected::after{position:absolute;right:12px;content:'✓';font-weight:800}.date-custom-title{margin:10px 4px 8px!important;padding-top:12px;border-top:1px solid #eceef3;color:#626879;font-size:10px!important;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.date-custom{margin:0 4px 10px!important}.date-custom label>span{color:#626879!important;font-size:10px!important}.date-custom input{border-color:#dfe2ea!important;border-radius:8px!important;background:#f8f9fb!important}.date-filter-menu>.primary{width:calc(100% - 8px)!important;margin:0 4px 4px}
.performance-list{max-height:330px!important}.performance-row{min-height:66px!important}.work-status{display:flex!important;align-items:center;flex-direction:row!important;gap:5px;color:#626879!important}.work-status i{width:7px;height:7px;border-radius:50%;background:#a8adbd}.work-status.online{color:#087f5b!important}.work-status.online i{background:#00a86b;box-shadow:0 0 0 3px rgba(0,168,107,.12)}.work-status.recent{color:#0060b9!important}.work-status.recent i{background:#0073ea}.work-status.offline i{background:#a8adbd}
.dashboard-charts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.chart-card{min-height:230px}.chart-card .dash-card-head>span{color:#626879;font-size:10px}.metric-bars{display:flex;flex-direction:column;gap:12px;margin-top:15px}.metric-bars>div{display:grid;grid-template-columns:minmax(82px,110px) minmax(90px,1fr) 28px;align-items:center;gap:10px}.metric-bars span{overflow:hidden;color:#555866;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.metric-bars i{height:10px;overflow:hidden;border-radius:8px;background:#edf0f5}.metric-bars em{display:block;height:100%;min-width:0;border-radius:8px;background:linear-gradient(90deg,#00c7b1,#6161ff)}.metric-bars b{color:#292f4c;font-size:12px;text-align:right}.workload-bars em.available{background:#00a86b}.workload-bars em.balanced{background:#0073ea}.workload-bars em.high{background:#d83a52}.chart-empty{margin:auto;color:#626879;font-size:12px;text-align:center}
@media(max-width:800px){.dashboard-charts{grid-template-columns:1fr}.chart-card{min-height:auto}}

/* Keep shared header actions visually unified across every page. */
.account-tools{border-left:0!important;padding-left:4px!important;margin-left:2px!important}

/* Unified dropdown controls: consistent chevrons, spacing and interaction states. */
select:not([multiple]){
  -webkit-appearance:none!important;
  appearance:none!important;
  padding-right:42px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.5 6.25 3.5 3.5 3.5-3.5' stroke='%23555866' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 13px center!important;
  background-size:16px 16px!important;
  cursor:pointer!important;
}
select:not([multiple]):hover{background-color:#fbfcfe!important}
select:not([multiple]):focus{background-color:#fff!important}
select:not([multiple]):disabled{cursor:not-allowed!important;background-color:#f2f3f6!important;color:#5f6676!important}

.date-filter>button{position:relative!important;align-content:center!important;padding-right:48px!important}
.date-filter>button::after{
  content:''!important;
  right:18px!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  border:0!important;
  border-right:1.7px solid #555866!important;
  border-bottom:1.7px solid #555866!important;
  transform:translateY(-68%) rotate(45deg)!important;
  transform-origin:center!important;
  transition:transform 160ms ease!important;
}
.date-filter>button[aria-expanded=true]::after{transform:translateY(-28%) rotate(225deg)!important}

.nav-group-toggle svg,.user-menu-trigger>svg{
  flex:0 0 auto!important;
  margin-left:auto!important;
  color:#13a9a2!important;
  transition:transform 160ms ease,color 140ms ease!important;
}
.nav-group-toggle:hover svg{color:#087f7a!important}.user-menu-trigger:hover>svg{color:#323338!important}
.user-menu-trigger[aria-expanded=true]>svg{transform:rotate(180deg)!important}

@media(max-width:600px){select:not([multiple]){padding-right:38px!important;background-position:right 11px center!important}}

/* Calendar controls and planning surface */
.page-calendar .cal-toolbar{display:flex!important;align-items:flex-end!important;margin:0 0 16px!important;padding:12px!important;border:1px solid #dfe2ea!important;border-radius:12px!important;background:#fff!important}
.cal-period-nav{display:flex;align-items:center;gap:6px}.cal-period-nav #calDate{width:154px!important;min-width:154px!important;margin-left:4px!important}
.cal-arrow{display:grid!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;place-items:center!important}.cal-arrow svg{width:18px;height:18px}
.cal-view-select{display:grid!important;grid-template-columns:auto 126px;align-items:center;gap:9px;margin:0 0 0 auto!important}.cal-view-select>span{color:#626879!important;font-size:11px!important;font-weight:700!important}.cal-view-select select{min-height:38px!important;padding-top:7px!important;padding-bottom:7px!important}
.page-calendar .cal-filters{padding:14px!important;border-radius:12px!important;box-shadow:none!important}.page-calendar .cal-filters label{margin:0!important}.page-calendar .cal-filters label>span{display:block;margin-bottom:6px;color:#676979;font-size:11px;font-weight:700}
.page-calendar .cal-section-head{align-items:center!important;margin:22px 0 12px!important}.page-calendar .cal-section-head h2{margin:0!important;font-size:20px!important;letter-spacing:-.02em!important}.page-calendar .cal-section-head .tools{gap:7px!important}
.page-calendar .cal-scroll{overflow:auto!important;border:1px solid #dfe2ea!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.page-calendar .cal-grid{overflow:hidden!important;border-radius:0!important;background:#fff!important}.page-calendar .cal-weekday{padding:12px 11px!important;background:#f7f8fb!important;color:#676979!important;font-size:10px!important;letter-spacing:.065em!important}.page-calendar .cal-cell{min-height:118px!important;padding:8px!important;background:#fff!important;border-color:#e8eaf0!important}.page-calendar .cal-cell:hover{background:#fafcff!important}.page-calendar .cal-today{background:#f2f7ff!important;box-shadow:inset 0 0 0 1px #b9d9fb}.page-calendar .cal-outside{background:#fafbfc!important}.page-calendar .cal-cell>button:not(.cal-event){display:grid!important;width:31px!important;height:31px!important;min-height:31px!important;place-items:center!important;padding:0!important;border-radius:50%!important;color:#353844!important;font-size:11px!important}.page-calendar .cal-cell>button:not(.cal-event):hover{background:#e9f2fd!important;color:#0060b9!important}.page-calendar .cal-today>button:not(.cal-event){background:#0073ea!important;color:#fff!important}
.page-calendar>.help{margin:10px 2px 0!important;color:#626879!important;line-height:1.6!important}
@media(max-width:700px){.page-calendar .cal-toolbar{align-items:stretch!important;flex-direction:column!important;gap:10px!important}.cal-period-nav{display:grid;grid-template-columns:38px 1fr 38px}.cal-period-nav #calDate{grid-column:1/-1;width:100%!important;min-width:0!important;margin:0!important}.cal-view-select{grid-template-columns:auto 1fr;width:100%;margin:0!important}.page-calendar .cal-section-head{align-items:flex-start!important;flex-direction:column!important}.page-calendar .cal-section-head .tools{display:grid!important;width:100%;grid-template-columns:1fr 1fr!important}.page-calendar .cal-section-head .tools>*{width:100%!important}}

.date-filter-label{
  display:block!important;
  margin-bottom:5px!important;
  color:#555866!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.45!important;
}
.date-filter>button{
  display:flex!important;
  align-items:center!important;
  min-height:40px!important;
  padding:8px 42px 8px 11px!important;
}
.date-filter>button strong{font-size:12px!important;font-weight:400!important;line-height:1.4!important}
.date-filter>button::after{right:15px!important}

/* Standalone account and administration surfaces */
.standalone-page{min-height:100vh;margin:0;background:var(--paper)!important;color:var(--ink)!important}
.standalone-page [hidden]{display:none!important}
.standalone-shell,.admin-shell{width:min(100% - 32px,760px);margin:0 auto;padding:40px 0 64px}
.admin-shell{width:min(100% - 40px,1180px)}
.back-link{display:inline-flex;align-items:center;gap:7px;margin-bottom:28px;color:#4b4c5a!important;font-size:13px;font-weight:650;text-decoration:none}
.back-link::before{content:'';width:8px;height:8px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.back-link:hover{color:var(--accent)!important;text-decoration:underline;text-underline-offset:4px}
.standalone-heading{display:block!important;min-height:0!important;margin:0 0 24px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.standalone-heading h1{margin:0 0 8px!important}
.standalone-heading p{max-width:70ch;margin:0;color:var(--muted);font-size:14px}
.account-identity{margin:0 0 16px;color:#4b4c5a;font-size:13px}
.account-form,.account-page #profileForm{margin:16px 0;padding:26px}
.account-form h2,.account-page #profileForm h2,.admin-page form h2,.admin-page .panel h2{margin:0 0 8px!important;font-size:18px!important}
.account-form label{margin-bottom:18px}
.account-form label:last-of-type{margin-bottom:0}
.form-help,.form-message{margin:18px 0 0;color:var(--muted);font-size:13px}
.form-message:not(:empty),#profileMessage:not(:empty),.admin-page [role=status]:not(:empty){padding:11px 13px;border-radius:var(--radius-sm);background:#eef8f4;color:#08784f}
.notice.warning{border-color:#f0d58a!important;background:#fff9e8!important;color:#7c5700!important}
.password-wrap{position:relative;display:block;margin-top:6px}
.password-wrap input{margin-top:0!important;padding-right:50px!important}
.password-toggle{position:absolute!important;right:3px;top:50%;display:grid!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;place-items:center;transform:translateY(-50%);border:0!important;background:transparent!important;color:#596171!important}
.password-toggle:hover{background:#eef1f7!important;color:#0058a9!important}
.password-toggle svg{width:19px;height:19px}
.admin-page .tabs{display:flex;gap:4px;overflow-x:auto;margin:0 0 24px;padding:4px;border:1px solid #dfe2ea;border-radius:10px;background:#fff;scrollbar-width:thin}
.admin-page .tabs button{flex:0 0 auto;border:0!important;background:transparent!important;color:#555866!important}
.admin-page .tabs button:hover{background:#f0f3f8!important}
.admin-page .tabs button[aria-selected=true]{background:#e5f0ff!important;color:#0058a9!important;font-weight:650!important}
.admin-page form,.admin-page .panel{margin:0 0 18px;padding:24px}
.admin-page [data-panel="accounts"]{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:18px}
.admin-page [data-panel="accounts"]>[hidden]{display:none!important}
.admin-page [data-panel="accounts"]>#create,.admin-page [data-panel="accounts"]>.panel:last-child{grid-column:1}
.admin-page [data-panel="accounts"]>.panel:nth-child(2){grid-column:2;grid-row:1 / span 2}
.admin-page .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.admin-page label{min-width:0}
.admin-page .user{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto auto auto;align-items:center;gap:9px;padding:14px 0;border-bottom:1px solid #eceef3}
.admin-page .user:last-child,.admin-page .backup:last-child{border-bottom:0}
.admin-page .user>span{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:12px}
.admin-page .user>span strong{color:var(--ink);font-size:13px}
.admin-page .backup{display:grid;grid-template-columns:minmax(220px,1fr) 130px auto auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #eceef3}
.admin-page .badge{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:4px;background:#fff3cd;color:#805700;font-size:11px;font-weight:650}
.admin-page .danger{color:#b4233c!important}
.admin-page dialog{width:min(520px,calc(100% - 32px));padding:0;border:0;border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,.18)}
.admin-page dialog form{margin:0;border:0;box-shadow:none}
@media(max-width:900px){.admin-page [data-panel="accounts"]{grid-template-columns:1fr}.admin-page [data-panel="accounts"]>#create,.admin-page [data-panel="accounts"]>.panel:nth-child(2),.admin-page [data-panel="accounts"]>.panel:last-child{grid-column:1;grid-row:auto}.admin-page .user{grid-template-columns:minmax(180px,1fr) 140px auto}.admin-page .user button{width:100%}}
@media(max-width:640px){.standalone-shell,.admin-shell{width:min(100% - 24px,760px);padding:24px 0 44px}.back-link{margin-bottom:22px}.account-form,.account-page #profileForm,.admin-page form,.admin-page .panel{padding:18px}.admin-page .fields,.admin-page .user,.admin-page .backup{grid-template-columns:1fr}.admin-page .tabs{margin-inline:-2px}}
.nav-group+.nav-group{margin-top:8px}.nav-group-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;background:transparent!important;border:0!important;color:#1f2a44!important;font-size:11px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.04em}.nav-group-toggle:hover{background:#eef6ff!important;color:#0060b9!important}.nav-group-toggle[aria-expanded=true]{color:#0060b9!important}.nav-group-toggle svg{width:14px;height:14px;color:#13a9a2!important;transition:transform 120ms ease}.nav-group-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.nav-group-items[hidden]{display:none}

/* Administration layout corrections */
.admin-topline{min-height:36px;margin-bottom:18px}.admin-topline .back-link{margin:0}
.admin-page [data-panel="accounts"]{display:grid;grid-template-columns:1fr;gap:18px}
.admin-page [data-panel="accounts"]>#create,.admin-page [data-panel="accounts"]>.panel:nth-child(2),.admin-page [data-panel="accounts"]>.panel:last-child{grid-column:1;grid-row:auto}
.admin-page #create .fields{grid-template-columns:minmax(240px,1fr) minmax(150px,190px);align-items:end}
.admin-page #create label:has(#password){grid-column:1/-1;max-width:420px}
.admin-page #create>p:has(.primary){margin:20px 0 0}
.admin-page [data-panel="accounts"]>.panel:nth-child(2){align-self:start}
.admin-page [data-panel="accounts"]>.panel:nth-child(2) p{margin:12px 0;color:#555866;font-size:13px;line-height:1.55}
.admin-page [data-panel="accounts"]>.panel:nth-child(2) strong{color:#292f4c}
.admin-page .user button{width:auto;white-space:nowrap}
@media(min-width:1120px){.admin-page [data-panel="accounts"]{grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr)}.admin-page [data-panel="accounts"]>#create{grid-column:1}.admin-page [data-panel="accounts"]>.panel:nth-child(2){grid-column:2;grid-row:1}.admin-page [data-panel="accounts"]>.panel:last-child{grid-column:1/-1}}
@media(max-width:720px){.admin-page #create .fields{grid-template-columns:1fr}.admin-page #create label:has(#password){grid-column:1;max-width:none}.admin-page .user{grid-template-columns:1fr}.admin-page .user button,.admin-page .user select{width:100%}}

/* Calendar event density and readability */
.page-calendar .cal-grid{min-width:910px!important}
.page-calendar .cal-cell{min-width:130px!important;padding:7px!important}
.page-calendar .cal-event{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;width:100%!important;min-height:0!important;margin:5px 0!important;padding:7px 8px!important;overflow:hidden!important;border:1px solid color-mix(in srgb,var(--event-color) 20%,#dfe2ea)!important;border-radius:7px!important;text-align:left!important}
.page-calendar .cal-tag{display:flex!important;align-items:center!important;gap:5px!important;width:auto!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--event-color)!important;font-size:9px!important;line-height:1.25!important;text-transform:uppercase!important;letter-spacing:.045em!important}
.page-calendar .cal-tag::before{content:'';width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--event-color)}
.page-calendar .cal-title{display:-webkit-box!important;overflow:hidden!important;color:#292f4c!important;font-size:11px!important;line-height:1.3!important;font-weight:650!important;overflow-wrap:anywhere!important;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.page-calendar .cal-event small{display:block!important;overflow:hidden!important;margin:0!important;color:#676879!important;font-size:9px!important;line-height:1.3!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.page-calendar .cal-event:focus-visible{outline:3px solid color-mix(in srgb,var(--event-color) 25%,transparent)!important;outline-offset:1px!important}
@media(max-width:700px){.page-calendar .cal-grid{min-width:910px!important}}

/* Administration form alignment */
.admin-page [data-panel="accounts"]{display:grid!important;grid-template-columns:1fr!important;gap:18px!important}
.admin-page [data-panel="accounts"]>#create,.admin-page [data-panel="accounts"]>.accounts-list{grid-column:1!important;grid-row:auto!important}
.admin-page label{display:block!important;color:#4b4c5a!important;font-size:12px!important;font-weight:650!important}
.admin-page label>input,.admin-page label>select,.admin-page label>.password-wrap{display:block!important;width:100%!important;margin-top:7px!important}
.admin-page label>input,.admin-page label>select{min-height:40px!important}
.admin-page .password-wrap input{width:100%!important}
.admin-page #create .fields{display:grid!important;grid-template-columns:minmax(260px,1.4fr) minmax(150px,.65fr) minmax(220px,1fr)!important;align-items:start!important;gap:16px!important}
.admin-page #create label:has(#password){grid-column:auto!important;max-width:none!important}
.admin-page #create>p:has(.primary){margin:22px 0 0!important}
.admin-page #policies .fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px 28px!important;max-width:900px!important}
.admin-page #policies label>input,.admin-page #policies label>select{width:100%!important;max-width:none!important}
.admin-page #policies>p:has(.primary){margin:24px 0 0!important}
.admin-page .accounts-list{padding-bottom:12px!important}
@media(max-width:820px){.admin-page #create .fields,.admin-page #policies .fields{grid-template-columns:1fr!important}}

/* Profile and security alignment */
.account-shell{width:min(100% - 32px,980px)}
.account-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:18px}
.account-page .account-section{display:flex;min-width:0;margin:0!important;padding:24px!important;flex-direction:column;gap:18px}
.account-section-heading{padding-bottom:15px;border-bottom:1px solid #eceef3}
.account-section-heading h2{margin:0 0 5px!important;font-size:18px!important}
.account-section-heading p{margin:0;color:var(--muted);font-size:12px}
.account-page .account-section label{display:block;margin:0!important;color:#4b4c5a;font-size:12px!important;font-weight:650!important}
.account-page .account-section label>input,.account-page .account-section label>.password-wrap{display:block;width:100%;margin-top:7px}
.account-page .account-section input{width:100%;min-height:42px!important}
.account-page .account-section>.primary{align-self:flex-start;margin-top:2px}
.account-page .form-message{min-height:0;margin:0}
.account-page .form-message:empty{display:none}
@media(max-width:760px){.account-grid{grid-template-columns:1fr}.account-page .account-section{padding:18px!important}}

/* Navigation hierarchy and settings hub */
#nav{display:flex!important;flex-direction:column!important}
#nav .nav-group{flex:0 0 auto}
#nav .nav-group-toggle{font-size:13px!important;font-weight:750!important;letter-spacing:.025em!important;min-height:38px!important;padding:7px 9px!important}
#nav .nav-group-toggle>span{display:flex;align-items:center;gap:10px}
#nav .nav-title-icon{width:18px;height:18px;flex:0 0 auto;color:#087f7a}
#nav .nav-group-items{padding-left:20px;border-left:1px solid #dfe4ec;margin-left:17px}
#nav .nav-group-items button{padding-left:14px!important;font-size:14px!important}
#nav .nav-settings{display:flex!important;align-items:center;gap:10px;margin-top:auto!important;padding:10px 12px!important;border-top:1px solid #e0e4ec!important;border-radius:0!important;font-size:14px!important;font-weight:700!important}
#nav .nav-settings svg{width:19px;height:19px;color:#087f7a}
.workspace-tabs{display:inline-flex;gap:4px;margin:0 0 24px;padding:4px;border:1px solid #d9deea;border-radius:11px;background:#eef1f7}
.workspace-tabs button{border:0!important;background:transparent!important;box-shadow:none!important}
.workspace-tabs button.primary{background:#fff!important;color:#0060b9!important;box-shadow:0 1px 3px rgba(20,32,63,.12)!important}
.settings-hub{max-width:980px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.settings-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:16px;width:100%;min-height:116px;padding:20px!important;text-align:left;text-decoration:none!important;border:1px solid #dfe3ec!important;border-radius:14px!important;background:#fff!important;color:#25262d!important;box-shadow:0 2px 8px rgba(25,32,63,.06);transition:border-color 140ms ease,box-shadow 140ms ease,transform 140ms ease}.settings-card:hover{border-color:#9ec9f5!important;box-shadow:0 8px 24px rgba(25,32,63,.1)!important;transform:translateY(-1px)}.settings-card h2{margin:0 0 5px!important;font-size:17px!important}.settings-card p{margin:0;color:#676979;font-size:13px}.settings-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#e7f2ff;color:#0060b9;font-size:20px;font-weight:700}.page-back-row{margin-bottom:18px}.back-button{display:inline-flex!important;align-items:center!important;gap:8px!important}.back-button::before{content:'←';font-size:17px;line-height:1}
.user-menu{min-width:190px!important}.user-menu>a,.user-menu-heading,.system-menu-items{display:none!important}
@media(max-width:700px){.settings-grid{grid-template-columns:1fr}#nav .nav-group-items{padding-left:14px;margin-left:14px}}

/* Keep section icons upright; rotate only the disclosure chevron. */
.nav-group-toggle[aria-expanded=true] .nav-title-icon{transform:none!important}
.nav-group-toggle[aria-expanded=true]>svg{transform:rotate(90deg)!important}
#nav .nav-group-items{border-left:0!important}

/* Sidebar disclosure and footer refinements */
#nav .nav-group-toggle>svg{color:#596171!important}
#nav .nav-group-toggle:hover>svg,#nav .nav-group-toggle[aria-expanded=true]>svg{color:#0060b9!important}
#nav .nav-settings{border-top:0!important}

#nav .nav-group-toggle>svg,#nav .nav-group-toggle:hover>svg,#nav .nav-group-toggle[aria-expanded=true]>svg{color:inherit!important}

/* Personal connection settings */
.connections-page{max-width:980px}.connection-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 14px}.connection-summary>div{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dfe3ec;border-radius:12px;background:#fff}.connection-summary strong,.connection-summary span{display:block}.connection-summary strong{font-size:13px}.connection-summary div div span{margin-top:2px;color:#676979;font-size:11px}.connection-dot{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:#a8adbd;box-shadow:0 0 0 4px #f0f1f4}.connection-dot.connected{background:#00a86b;box-shadow:0 0 0 4px #dff5ed}.connections-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.connection-card{display:flex;min-width:0;flex-direction:column;gap:18px;padding:22px;border:1px solid #dfe3ec;border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}.connection-card-head{display:grid;grid-template-columns:40px 1fr;gap:13px;align-items:start;padding-bottom:16px;border-bottom:1px solid #eceef3}.connection-card-head h2{margin:1px 0 4px!important;font-size:18px!important}.connection-card-head p{margin:0;color:#676979;font-size:12px;line-height:1.5}.connection-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#e7f2ff;color:#0060b9;font-size:18px;font-weight:700}.connection-card>label:not(.switch-row){display:block;margin:0;color:#4b4c5a;font-size:12px;font-weight:650}.connection-card>label select,.connection-card>label input{display:block;width:100%;margin-top:7px}.connection-card input[readonly]{background:#f7f8fa!important;color:#555866!important}.switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin:0!important;padding:13px 0;border-block:1px solid #eceef3}.switch-row span{display:block}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:13px}.switch-row small{margin-top:3px;color:#626879;font-size:11px;font-weight:400}.switch-row input{width:18px!important;height:18px!important;flex:0 0 auto}.connection-card fieldset{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;margin:0;padding:0;border:0}.connection-card legend{grid-column:1/-1;margin-bottom:10px;color:#4b4c5a;font-size:12px;font-weight:700}.check-row{display:flex!important;align-items:center;gap:8px;margin:0!important;color:#555866;font-size:12px!important;font-weight:500!important}.check-row input{width:16px!important;height:16px!important;margin:0!important}.connection-note{margin:-8px 0 0;color:#626879;font-size:11px;line-height:1.5}.warning-text{padding:10px 12px;border-radius:8px;background:#fff8e5;color:#805700}.connection-actions{display:flex;grid-column:1/-1;align-items:center;gap:14px;padding-top:4px}.connection-actions span{color:#08784f;font-size:12px}
@media(max-width:760px){.connection-summary,.connections-grid{grid-template-columns:1fr}.connection-card{padding:18px}.connection-actions{grid-column:1}.connection-card fieldset{grid-template-columns:1fr}}

/* Navigation shared by account and administration pages */
.standalone-page{padding-left:250px}.standalone-navigation{position:fixed;inset:0 auto 0 0;z-index:20;width:250px;overflow:hidden;border-right:1px solid #dfe3ec;background:#f5f7fb}.standalone-brand{position:relative;display:block;width:100%;height:64px;overflow:hidden;border-bottom:1px solid #e5e8ef;background:#fff}.standalone-brand img{position:absolute;left:50%;top:50%;width:430px;max-width:none;height:auto;transform:translate(-50%,-50%)}.standalone-navigation nav{padding:18px 14px}.standalone-navigation section{margin-bottom:15px}.standalone-navigation h2{margin:0 10px 5px!important;color:#3f4252;font-size:11px!important;text-transform:uppercase;letter-spacing:.05em}.standalone-navigation a:not(.standalone-brand){display:block;padding:7px 12px;border-radius:7px;color:#303449;font-size:13px;text-decoration:none}.standalone-navigation a:hover{background:#eef3fa}.standalone-navigation a[aria-current=page]{background:#e2efff;color:#0060b9;font-weight:700}.standalone-page .standalone-shell,.standalone-page .admin-shell{margin-inline:auto}.audit-page details{padding:0;border:0}.audit-page summary{color:#0060b9;font-size:12px}.audit-page pre{max-width:480px;max-height:220px;overflow:auto}.guide-page{max-width:1040px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0}.guide-card{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:20px;border:1px solid #dfe3ec;border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}.guide-card h2{margin:0 0 5px!important;font-size:17px!important}.guide-card p{margin:0 0 15px;color:#676979;font-size:12px}.guide-number{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#e5f0ff;color:#0060b9;font-size:12px;font-weight:750}.workflow-steps{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}.workflow-steps li{padding:6px 9px;border-radius:15px;background:#f0f3f8;color:#454857;font-size:11px}.guide-start,.guide-help{margin-top:14px;padding:22px;border:1px solid #dfe3ec;border-radius:14px;background:#fff}.guide-start h2,.guide-help h2{margin:0 0 12px!important;font-size:18px!important}.guide-start ol{display:grid;grid-template-columns:1fr 1fr;gap:10px 30px;margin:0;padding-left:22px}.guide-start li{padding-left:4px;color:#555866;font-size:13px}.guide-help p{color:#676979;font-size:13px}
@media(max-width:900px){.guide-grid,.guide-start ol{grid-template-columns:1fr}}
.audit-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px}.audit-pagination span{color:#676979;font-size:12px}

/* Responsive system pass: tablet, phone, touch, and safe areas */
.standalone-menu-toggle,.standalone-nav-shade{display:none}
@media (pointer:coarse){button,.icon-link,.user-menu a,.standalone-navigation a:not(.standalone-brand){min-height:44px!important}.notification-button,.user-menu-trigger,.workspace-switch,.icon-action{width:44px!important;height:44px!important;min-height:44px!important}.check-row{min-height:38px}.check-row input,.switch-row input{width:20px!important;height:20px!important}.page-calendar .cal-cell>button:not(.cal-event){width:40px!important;height:40px!important;min-height:40px!important}.date-menu-head button{width:44px!important;height:44px!important;min-height:44px!important}}
@media(max-width:1023px){#main{max-width:none!important;padding:26px 22px max(48px,env(safe-area-inset-bottom))!important}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-grid,.dashboard-charts{grid-template-columns:1fr!important}.connections-grid{grid-template-columns:1fr}.connection-actions{grid-column:1}.admin-page #create .fields,.admin-page #policies .fields{grid-template-columns:1fr 1fr!important}.admin-page .user{grid-template-columns:minmax(180px,1fr) 140px auto!important}.standalone-page{padding-left:220px}.standalone-navigation{width:220px}.standalone-brand img{width:400px}.standalone-navigation nav{padding-inline:10px}.account-grid{grid-template-columns:1fr}.account-shell{max-width:760px}}
@media(max-width:850px){html,body{max-width:100%;overflow-x:hidden}header.topbar{padding-top:max(8px,env(safe-area-inset-top))!important}.brand-logo-window{width:126px!important}.brand-logo{width:100%!important}#navToggle{width:44px!important;height:44px!important;min-height:44px!important;top:max(8px,env(safe-area-inset-top))!important;left:8px!important;padding:10px!important}#main{padding:22px 16px max(44px,env(safe-area-inset-bottom))!important}.bar,.dashboard-head{align-items:stretch!important}.bar>.tools,.dashboard-actions,.connection-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.bar>.tools>*{min-width:0!important;width:100%!important}.bar>.tools input,.bar>.tools select,.connection-actions .primary,.connection-actions span{grid-column:1/-1}.table-wrap{position:relative;max-width:100%;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-gutter:stable}.table-wrap table{min-width:680px}.table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;z-index:1;background:#fff!important;box-shadow:1px 0 #e2e5ec}.table-wrap th:first-child{z-index:3;background:#f6f7fb!important}.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}.split{grid-template-columns:1fr!important}.settings-card{min-height:96px;padding:16px!important}.notification-button,.user-menu-trigger{width:44px!important;height:44px!important;min-height:44px!important}.notification-panel{left:12px!important;right:12px!important;top:calc(58px + env(safe-area-inset-top))!important;width:auto!important;max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}.user-menu{position:fixed!important;top:calc(58px + env(safe-area-inset-top))!important;right:10px!important}.performance-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow:auto}.admin-page #create .fields,.admin-page #policies .fields{grid-template-columns:1fr!important}.admin-page .user{grid-template-columns:1fr 1fr!important}.admin-page .user>span{grid-column:1/-1}.admin-page .user button,.admin-page .user select{width:100%!important}.standalone-page{padding:76px 0 max(32px,env(safe-area-inset-bottom))}.standalone-navigation{inset:0 0 auto;width:100%;height:64px;overflow:visible;border-right:0;border-bottom:1px solid #dfe3ec;background:#fff}.standalone-brand{width:182px;height:63px;padding:11px 16px;border:0}.standalone-brand img{width:148px}.standalone-menu-toggle{position:absolute;right:10px;top:10px;display:grid!important;width:44px;height:44px;min-height:44px!important;padding:10px!important;place-items:center;border:0!important;background:transparent!important}.standalone-menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.standalone-navigation nav{position:fixed;z-index:32;inset:64px 0 0 auto;display:block!important;width:min(320px,88vw);height:calc(100dvh - 64px);padding:18px 14px max(28px,env(safe-area-inset-bottom));overflow-y:auto;background:#f6f7fb;box-shadow:-12px 0 36px rgba(31,42,68,.18);transform:translateX(105%);transition:transform 180ms ease-out}.standalone-nav-open .standalone-navigation nav{transform:none}.standalone-nav-shade{position:fixed;z-index:19;inset:64px 0 0;display:block;width:100%;height:auto;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(31,42,68,.32)!important}.standalone-nav-shade[hidden]{display:none!important}.standalone-nav-open{overflow:hidden}.standalone-shell,.admin-shell{width:calc(100% - 28px)!important;padding:22px 0 40px!important}.admin-page .tabs{scroll-snap-type:x proximity}.admin-page .tabs button{min-height:44px!important;scroll-snap-align:start}}
@media(max-width:560px){h1{font-size:26px!important}h2{font-size:18px!important}.brand-logo-window{width:112px!important}.brand-logo{width:100%!important}.topbar-actions{margin-left:0!important}.workspace-switch{display:none!important}#main{padding-inline:14px!important}.dashboard-head{gap:16px}.dashboard-actions{grid-template-columns:1fr 1fr!important}.dashboard-actions .primary{grid-column:1/-1}.dashboard-kpis,.numbers{grid-template-columns:1fr!important}.dashboard-kpis>button{min-height:92px!important}.numbers>div{min-height:92px}.dashboard-filters{grid-template-columns:1fr!important;padding:12px!important}.date-filter-menu{top:auto!important;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100dvh - 24px);overflow:auto}.performance-row{grid-template-columns:minmax(0,1fr) 70px!important}.performance-row>span:nth-child(n+3){display:none!important}.assessment-metrics{grid-template-columns:1fr 1fr!important}.bar>.tools,.connection-actions{grid-template-columns:1fr!important}.bar>.tools>*{grid-column:1!important}.settings-card{grid-template-columns:38px minmax(0,1fr) auto;gap:12px;padding:14px!important}.settings-icon{width:36px;height:36px}.connection-summary{grid-template-columns:1fr}.connection-card{padding:16px}.connection-card fieldset{grid-template-columns:1fr}.connection-actions .primary,.connection-actions span{grid-column:1}.workspace-tabs{display:grid;width:100%;grid-template-columns:1fr 1fr}.workspace-tabs button{min-width:0}.page-calendar .cal-section-head .tools{grid-template-columns:1fr!important}.page-calendar .cal-toolbar{padding:10px!important}.cal-period-nav{grid-template-columns:44px 1fr 44px!important}.cal-view-select{grid-template-columns:1fr!important}.cal-view-select>span{display:none}.page-calendar .cal-grid{min-width:760px!important}.page-calendar .cal-scroll{margin-inline:-2px}.drawer-heading h2{font-size:20px!important}#calDetail{padding:18px 16px max(28px,env(safe-area-inset-bottom))!important}.actions{display:grid;grid-template-columns:1fr!important}.actions button{width:100%}.admin-page .user{grid-template-columns:1fr!important}.admin-page .user>span{grid-column:1}.admin-page form,.admin-page .panel,.account-page .account-section{padding:16px!important}.guide-card{grid-template-columns:1fr}.guide-number{display:none}.guide-start,.guide-help{padding:18px}.guide-start ol{grid-template-columns:1fr}.audit-pagination{justify-content:space-between}.audit-pagination button{min-width:92px}.back-link{min-height:44px;align-items:center;margin-bottom:14px}.standalone-heading{margin-bottom:18px!important}}
@media(max-width:370px){header.topbar{padding-left:54px!important}.brand-logo-window{width:96px!important}.brand-logo{width:100%!important}.notification-button,.user-menu-trigger{width:40px!important;height:40px!important;min-height:40px!important}.settings-card{grid-template-columns:1fr auto}.settings-icon{display:none!important}}
@media(orientation:landscape) and (max-height:520px) and (max-width:950px){.notification-panel,.user-menu{max-height:calc(100dvh - 64px)!important;overflow:auto}.standalone-navigation nav{padding-top:10px}.standalone-navigation section{margin-bottom:8px}.standalone-navigation a:not(.standalone-brand){min-height:40px!important;padding-block:8px}}

/* Account management keeps the frequent role action visible and groups occasional actions. */
.admin-page .accounts-list{overflow:visible!important}
.roles-workspace{margin:0 0 18px;padding:24px;border:1px solid #e0e3eb;border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}
.roles-heading,.role-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.roles-heading{margin-bottom:20px}.roles-heading h2,.role-title-row h2{margin:0!important}.roles-heading .help{margin:7px 0 0}.roles-heading>button{white-space:nowrap}
.roles-layout{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:28px;align-items:start}
.roles-layout.editor-closed{grid-template-columns:1fr}.roles-layout.editor-closed .role-list{grid-template-columns:repeat(3,minmax(0,1fr));padding-right:0}
.role-list{display:grid;gap:7px;padding-right:20px}
.role-list-item{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:3px;width:100%;min-height:58px;padding:11px 12px!important;border:1px solid transparent!important;background:transparent!important;text-align:left}
.role-list-item:hover{background:#f4f6f9!important}.role-list-item[aria-current=true]{border-color:#b7d6f6!important;background:#eaf3ff!important;color:#0058a9!important}
.role-list-item strong{font-size:14px}.role-list-item span{font-size:11px;color:#676879}
.role-editor[hidden]{display:none!important}.role-editor{min-width:0;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}.role-editor .fields{display:grid!important;grid-template-columns:minmax(180px,.7fr) minmax(280px,1.3fr)!important;align-items:start!important;margin:18px 0 22px}.role-editor .fields label{display:block!important}.role-editor .fields textarea{display:block!important;width:100%!important;min-height:82px;margin-top:7px!important;resize:vertical}
.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.permission-groups fieldset{min-width:0;margin:0;padding:12px 14px 10px;border:1px solid #dfe3ec;border-radius:8px;background:#fafbfc}.permission-groups legend{padding:0 5px;font-size:12px;font-weight:700;color:#292f4c}
.admin-page .permission-option{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:40px;padding:7px 2px!important;color:#323338!important;font-size:13px!important;font-weight:500!important;line-height:1.35}.admin-page .permission-option input{display:block!important;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important}.admin-page .permission-option span{display:block;min-width:0}
.role-actions{display:flex;gap:9px;margin-top:20px}
@media(min-width:851px) and (max-width:1023px){.standalone-page .standalone-shell,.standalone-page .admin-shell{width:calc(100vw - 248px)!important;max-width:none!important}.roles-workspace{padding:20px}}
@media(max-width:900px){.roles-layout{grid-template-columns:1fr}.role-list{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 18px}.role-editor .fields,.permission-groups{grid-template-columns:1fr!important}}
@media(max-width:760px){.roles-heading{align-items:stretch;flex-direction:column}.roles-heading button{width:100%}.role-list{grid-template-columns:repeat(2,minmax(0,1fr))}.role-editor .fields,.permission-groups{grid-template-columns:1fr!important}}
@media(max-width:480px){.role-list{grid-template-columns:1fr}.role-title-row{flex-direction:column}.role-title-row button,.role-actions button{width:100%}.role-actions{display:grid}}
.admin-page .user{grid-template-columns:minmax(240px,1fr) minmax(250px,320px) auto!important;gap:18px!important;overflow:visible!important}
.admin-page .user>span{line-height:1.45}
.account-state{display:inline-flex;align-items:center;gap:6px;margin-top:6px;color:#555866;font-weight:600}
.account-state::before{content:"";width:7px;height:7px;border-radius:50%;background:#87909f}
.account-state.is-active::before{background:#0d9b6c}
.account-role-control{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:8px;align-items:center}
.account-role-control select,.account-role-control button{min-height:40px}
.account-actions{position:relative;z-index:1}
.account-actions[open]{z-index:8}
.account-actions summary{display:flex;align-items:center;justify-content:center;min-width:104px;min-height:40px;padding:8px 32px 8px 13px;border:1px solid #c7cede;border-radius:7px;background:#fff;color:#292f4c;font-size:13px;font-weight:650;cursor:pointer;list-style:none;position:relative}
.account-actions summary::-webkit-details-marker{display:none}
.account-actions summary::after{content:"";position:absolute;right:13px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform 150ms ease-out}
.account-actions[open] summary::after{transform:translateY(2px) rotate(225deg)}
.account-actions summary:hover,.account-actions[open] summary{background:#f0f3f8;border-color:#aeb8cb}
.account-actions summary:focus-visible{outline:3px solid #9bc9ff;outline-offset:2px}
.account-action-menu{position:absolute;right:0;top:calc(100% + 6px);width:190px;padding:6px;border:1px solid #dfe2ea;border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(31,42,68,.16)}
.admin-page .account-action-menu button{display:block;width:100%!important;min-height:40px;padding:9px 10px;text-align:left;border:0!important;background:transparent!important}
.admin-page .account-action-menu button:hover{background:#f0f3f8!important}
.admin-page .account-action-menu .danger{border-top:1px solid #eceef3!important;border-radius:0 0 5px 5px!important}
@media(max-width:850px){.admin-page .user{grid-template-columns:1fr auto!important}.admin-page .user>span{grid-column:1/-1}.account-role-control{min-width:0}.account-action-menu{right:0}}
@media(max-width:560px){.admin-page .user{grid-template-columns:1fr!important;gap:12px!important}.account-role-control{grid-template-columns:1fr!important}.account-actions summary{width:100%}.account-action-menu{position:static;width:100%;margin-top:6px;box-shadow:none}}

/* The application shell owns navigation visibility; these rules only define its layout. */
#nav[hidden]{display:none!important}
@media(min-width:851px){body.nav-collapsed .layout{grid-template-columns:minmax(0,1fr)!important}body.nav-collapsed #main{grid-column:1!important;padding-top:30px!important}}

.client-update-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:24px;border:0;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(31,42,68,.22);overflow:auto}
.client-update-dialog::backdrop{background:rgba(31,42,68,.34)}
.client-update-dialog form{display:grid;gap:18px;padding:0;border:0;background:transparent}
.client-update-dialog .drawer-heading{margin-bottom:2px}
.client-update-dialog .drawer-heading h2{margin:0 0 5px}
.client-update-dialog .drawer-heading p{margin:0;color:#676879;font-size:13px}
.client-update-dialog textarea{min-height:220px;line-height:1.55}
.client-update-dialog .error:empty{display:none}
@media(max-width:560px){.client-update-dialog{width:100%;height:100dvh;max-height:none;padding:18px 16px;border-radius:0}.client-update-dialog textarea{min-height:260px}}

/* Keep standalone settings pages aligned with the primary workspace navigation. */
.standalone-navigation nav{display:flex;min-height:calc(100dvh - 80px);flex-direction:column;padding:18px 12px 16px}
.standalone-nav-group{margin:0 0 9px!important}
.standalone-group-title{display:grid!important;width:100%;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:38px!important;margin:0!important;padding:7px 9px!important;border:0!important;background:transparent!important;color:#1f2a44!important;font-size:13px!important;letter-spacing:.025em;text-align:left;text-transform:uppercase}
.standalone-group-title strong{font-weight:750}
.standalone-group-icon{width:18px;height:18px;color:#08a9a3}
.standalone-group-chevron{width:14px;height:14px;color:inherit;transition:transform 120ms ease}
.standalone-group-title[aria-expanded=false] .standalone-group-chevron{transform:rotate(-90deg)}
.standalone-group-items[hidden]{display:none!important}
.standalone-group-items{padding-left:39px}
.standalone-navigation .standalone-group-items a{min-height:32px;padding:6px 10px!important;margin:1px 0;color:#303449!important;font-size:14px!important;font-weight:500}
.standalone-navigation .standalone-group-items a:hover{background:#eef1f7!important;color:#24252c!important}
.standalone-navigation .standalone-settings{display:flex!important;align-items:center;gap:10px;min-height:42px;margin-top:auto;padding:10px 12px!important;color:#0060b9!important;font-size:14px!important;font-weight:700!important}
.standalone-settings svg{width:19px;height:19px;color:#087f7a}
@media(max-width:850px){.standalone-navigation nav{min-height:0}.standalone-group-title{min-height:42px}.standalone-navigation .standalone-group-items a{min-height:40px}.standalone-navigation .standalone-settings{margin-top:12px}}

@media(max-width:850px){#nav{position:fixed!important;inset:0 auto 0 0!important;z-index:22!important;display:flex!important;width:min(280px,88vw)!important;height:100dvh!important;padding:68px 12px max(24px,env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;background:#f6f7fb!important;border-right:1px solid #e2e5ec!important;box-shadow:10px 0 28px rgba(31,42,68,.12);transform:translateX(-102%);visibility:hidden;pointer-events:none;transition:transform 180ms cubic-bezier(.2,.8,.2,1),visibility 0s linear 180ms}body.nav-mobile-open #nav{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform 180ms cubic-bezier(.2,.8,.2,1)}body.nav-mobile-open #navToggle{position:fixed!important;z-index:23!important;top:max(10px,env(safe-area-inset-top))!important;left:calc(min(280px,88vw) - 56px)!important;width:46px!important;height:46px!important;min-height:46px!important;padding:10px!important;border:1px solid #d0d4e4!important;border-radius:10px!important;background:#fff!important;color:#005eaf!important;box-shadow:0 2px 8px rgba(31,42,68,.12)!important}body.nav-mobile-open #navToggle:hover{background:#e5f0ff!important;border-color:#9ec9f5!important}#navShade{position:fixed!important;inset:0!important;z-index:19!important;background:rgba(31,42,68,.34)!important;opacity:1;transition:opacity 180ms ease-out}#navShade[hidden]{display:none!important}}

/* Mobile floating surfaces: anchor below the header and keep clear viewport margins. */
@media(max-width:850px){
  .user-menu{
    position:fixed!important;
    top:calc(64px + env(safe-area-inset-top))!important;
    right:12px!important;
    left:auto!important;
    width:min(260px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
  }
  .notification-panel{
    position:fixed!important;
    top:calc(64px + env(safe-area-inset-top))!important;
    right:12px!important;
    left:auto!important;
    width:min(390px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
  }
}
@media(max-width:600px){
  .date-filter-menu{
    position:fixed!important;
    z-index:50!important;
    top:auto!important;
    right:12px!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
    left:12px!important;
    width:auto!important;
    max-height:calc(100dvh - 88px - env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
  }
}

/* Match the main workspace mobile header and left-side navigation drawer. */
@media(max-width:850px){
  .standalone-menu-toggle{
    right:auto!important;
    left:8px!important;
  }
  .standalone-brand{
    position:absolute!important;
    left:58px!important;
    width:126px!important;
    height:63px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  .standalone-brand img{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    width:300px!important;
    max-width:none!important;
    height:auto!important;
    transform:translate(-50%,-50%)!important;
  }
  .standalone-navigation nav{
    inset:64px auto 0 0!important;
    width:min(292px,88vw)!important;
    box-shadow:12px 0 36px rgba(31,42,68,.18)!important;
    transform:translateX(-105%)!important;
  }
  .standalone-nav-open .standalone-navigation nav{transform:none!important}
  .standalone-nav-shade{inset:64px 0 0!important}
}
@media(max-width:560px){
  .standalone-brand{width:112px!important}
  .standalone-brand img{width:272px!important}
}

/* Standalone settings pages use the same topbar/sidebar composition as the workspace. */
.standalone-page{padding-top:64px}
.standalone-topbar{position:fixed!important;z-index:40;inset:0 0 auto;display:flex!important;height:64px!important;min-height:64px!important;align-items:center!important;justify-content:space-between;padding:0 18px!important;border-bottom:1px solid #e6e9ef!important;background:#fff!important;box-shadow:none!important}
.standalone-topbar-brand{position:relative;display:block;width:190px;height:42px;overflow:visible;flex:0 0 auto}
.standalone-topbar-brand img{position:relative;left:auto;top:auto;display:block;width:100%;max-width:100%;height:100%;object-fit:contain;transform:none}
.standalone-workspace-link{display:inline-flex;min-height:38px;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d0d4e4;border-radius:8px;color:#3f4252;font-size:13px;font-weight:650;text-decoration:none}
.standalone-workspace-link:hover{border-color:#aeb5c7;background:#f6f8fb;color:#202431}
.standalone-workspace-link svg{width:18px;height:18px}
.standalone-navigation{inset:64px auto 0 0;height:calc(100dvh - 64px);overflow:visible;transition:transform 160ms ease-out}
.standalone-navigation nav{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.standalone-menu-toggle{position:fixed;z-index:45;top:74px;left:234px;display:grid!important;width:32px;height:32px;min-height:32px!important;padding:6px!important;place-items:center;border:0!important;border-radius:var(--radius-sm)!important;background:transparent!important;box-shadow:none!important;color:#3f4252}
.standalone-menu-toggle:hover{background:#e5f0ff!important;color:#0060b9}
.standalone-menu-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.standalone-nav-collapsed{padding-left:0!important}
.standalone-nav-collapsed .standalone-navigation{transform:translateX(-100%)}
.standalone-nav-collapsed .standalone-menu-toggle{left:14px;border:1px solid #d0d4e4!important;background:#fff!important;box-shadow:var(--shadow-sm)!important}
@media(max-width:1023px) and (min-width:851px){.standalone-menu-toggle{left:204px}}
@media(max-width:850px){
  .standalone-page{padding-top:64px!important}
  .standalone-topbar{padding:0 12px 0 58px!important}
  .standalone-topbar-brand{width:126px;height:34px}
  .standalone-topbar-brand img{width:100%}
  .standalone-navigation{inset:64px auto 0 0!important;width:min(292px,88vw)!important;height:calc(100dvh - 64px)!important;border-bottom:0;transform:translateX(-105%)!important}
  .standalone-navigation nav{position:static!important;display:flex!important;width:100%!important;height:100%!important;min-height:0!important;transform:none!important;box-shadow:none!important}
  .standalone-nav-open .standalone-navigation{transform:none!important;box-shadow:12px 0 36px rgba(31,42,68,.18)!important}
  .standalone-menu-toggle{top:max(8px,env(safe-area-inset-top))!important;left:8px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;transform:none!important;border:1px solid #d0d4e4!important;background:#fff!important;box-shadow:var(--shadow-sm)!important}
  .standalone-nav-shade{inset:64px 0 0!important}
}
@media(max-width:560px){.standalone-topbar-brand{width:112px}.standalone-topbar-brand img{width:100%}.standalone-workspace-link span{display:none}.standalone-workspace-link{width:44px;justify-content:center;padding:8px}}
@media(prefers-reduced-motion:reduce){.standalone-navigation{transition:none}}

/* Sidebar clarity, location, and anchored actions. */
#nav,
.standalone-navigation nav{scrollbar-width:thin;scrollbar-color:transparent transparent}
#nav:hover,
#nav:focus-within,
.standalone-navigation nav:hover,
.standalone-navigation nav:focus-within{scrollbar-color:#aeb6c7 transparent}
#nav::-webkit-scrollbar,
.standalone-navigation nav::-webkit-scrollbar{width:7px}
#nav::-webkit-scrollbar-track,
.standalone-navigation nav::-webkit-scrollbar-track{background:transparent}
#nav::-webkit-scrollbar-thumb,
.standalone-navigation nav::-webkit-scrollbar-thumb{border-radius:8px;background:transparent}
#nav:hover::-webkit-scrollbar-thumb,
#nav:focus-within::-webkit-scrollbar-thumb,
.standalone-navigation nav:hover::-webkit-scrollbar-thumb,
.standalone-navigation nav:focus-within::-webkit-scrollbar-thumb{background:#aeb6c7}
#nav .nav-group+.nav-group,
.standalone-nav-group+.standalone-nav-group{margin-top:12px!important}
#nav .nav-group-toggle,
.standalone-group-title{color:#343746!important}
#nav .nav-group-items,
.standalone-group-items{padding-left:17px!important;margin-left:18px!important}
#nav .nav-group-items button,
.standalone-navigation .standalone-group-items a{position:relative;padding-left:13px!important}
#nav .nav-group-items button[aria-current=page],
.standalone-navigation .standalone-group-items a[aria-current=page]{background:#e5f0ff!important;color:#005eaf!important;font-weight:700!important}
#nav .nav-group-items button[aria-current=page]::before,
.standalone-navigation .standalone-group-items a[aria-current=page]::before{content:"";position:absolute;top:7px;bottom:7px;left:0;width:2px;border-radius:2px;background:#087f7a}
#nav .nav-settings,
.standalone-navigation .standalone-settings{position:sticky;z-index:2;bottom:-28px;margin-top:auto!important;border-top:1px solid #e1e5ed!important;background:#f6f7fb!important;box-shadow:0 -8px 16px rgba(31,42,68,.035)!important}
#nav .nav-settings:hover,
.standalone-navigation .standalone-settings:hover{background:#eaf1fa!important}
#nav .nav-settings[aria-current=page],
.standalone-navigation .standalone-settings[aria-current=page]{background:#e5f0ff!important}
@media(max-width:850px){#nav .nav-settings,.standalone-navigation .standalone-settings{bottom:-24px}}

.service-queues{display:flex;gap:7px;margin:24px 0;overflow-x:auto;padding:3px 0 8px;scrollbar-width:thin}
.service-queues button{display:inline-flex;min-height:38px;align-items:center;gap:8px;flex:0 0 auto;border-color:#d9deea;background:#fff;color:#4a4d5c;box-shadow:none}
.service-queues button span{display:grid;min-width:22px;height:22px;place-items:center;padding:0 6px;border-radius:11px;background:#eef1f6;color:#555968;font-size:11px;font-weight:700}
.service-queues button.primary{border-color:#9ec9f5;background:#e5f0ff;color:#005eaf}
.service-queues button.primary span{background:#fff;color:#005eaf}
@media(max-width:560px){.service-queues{margin-inline:-14px;padding-inline:14px}.service-queues button{min-height:44px}}

/* Consistent dropdowns and one responsive navigation control. */
select:not([multiple]),input[list]{width:100%;max-width:100%;min-width:0;min-height:44px!important;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
input[list]{padding-right:42px!important;background-color:#fff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.5 6.25 3.5 3.5 3.5-3.5' stroke='%23555866' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 13px center!important;background-size:16px 16px!important}
input[list]::-webkit-calendar-picker-indicator{opacity:0;width:20px;height:20px;cursor:pointer}
select:not([multiple]):invalid{color:#626879!important}
select:not([multiple]) option{color:#323338;background:#fff}
.fields input[type=file]{min-height:52px!important;padding:8px!important;overflow:hidden;background:#fff!important}
.fields input[type=file]::file-selector-button{min-height:34px;margin:-2px 10px -2px -2px;padding:6px 12px;border:1px solid #c3c7d5;border-radius:5px;background:#f6f7fb;color:#323338;font:inherit;font-weight:600;cursor:pointer}
.fields input[type=file]::file-selector-button:hover{background:#eaf1fa;border-color:#8f95a5}
.fields label,.cal-filters label,.dashboard-filters label,.connection-card label{min-width:0}
.user-menu,.notification-panel,.date-filter-menu,.account-action-menu{overscroll-behavior:contain;scrollbar-gutter:stable}
#navClose{display:none!important}
@media(max-width:850px){
  body.nav-mobile-open #navToggle{position:fixed!important;z-index:23!important;top:max(8px,env(safe-area-inset-top))!important;left:8px!important;background:#fff!important;border:1px solid #c3c7d5!important;box-shadow:var(--shadow-sm)!important}
  #nav{padding-top:68px!important;overscroll-behavior:contain;scrollbar-gutter:stable}
  .account-action-menu{position:static;width:100%;margin-top:6px;box-shadow:none}
  .admin-page .account-actions,.admin-page .account-actions summary{width:100%}
}
@media(pointer:coarse){
  select:not([multiple]){min-height:44px!important;padding-top:10px!important;padding-bottom:10px!important}
}

/* Shared mobile record layout: rows become labelled cards instead of compressed columns. */
@media(max-width:600px){
  .responsive-table{margin-inline:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .responsive-table table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block!important;width:100%!important;min-width:0!important}
  .responsive-table table{background:transparent!important}
  .responsive-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .responsive-table tbody{display:grid!important;gap:12px!important}
  .responsive-table tbody tr{overflow:hidden;border:1px solid #dfe2ea;border-radius:10px;background:#fff;box-shadow:var(--shadow-sm)}
  .responsive-table tbody td{display:grid!important;grid-template-columns:minmax(104px,34%) minmax(0,1fr)!important;align-items:center;gap:12px;padding:11px 14px!important;border-bottom:1px solid #eceef3!important;overflow-wrap:anywhere}
  .responsive-table tbody td::before{content:attr(data-label);color:#676879;font-size:11px;font-weight:700;line-height:1.3}
  .responsive-table tbody td:last-child{border-bottom:0!important}
  .responsive-table tbody tr:hover td{background:#fff!important}
  .responsive-table tbody td:first-child{position:static!important;left:auto!important;z-index:auto!important;box-shadow:none!important}
  .responsive-table td button,.responsive-table td a{justify-self:start;max-width:100%;white-space:normal;text-align:left}
  .responsive-table td button:not(.link){width:100%;text-align:center}
  .responsive-table .empty{display:block!important;padding:28px 18px!important;text-align:center!important}
  .responsive-table .empty::before{content:none}
}

.inbox-message{margin-bottom:10px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);overflow:clip}
.inbox-row{position:relative;display:block;min-width:0;margin-bottom:10px}
.inbox-row .inbox-message{min-width:0;margin:0}
.inbox-row-select{position:absolute;top:17px;left:14px;z-index:2;display:grid;width:24px;min-width:24px;height:24px;place-items:center;margin:0;cursor:pointer}
.inbox-row-select input,.inbox-bulk-heading input{width:18px;height:18px;accent-color:#0875e1}
.inbox-row .inbox-message-summary{padding-left:52px}
.inbox-row[data-selected="true"] .inbox-message{border-color:#8bbce9;box-shadow:0 0 0 2px rgba(8,104,201,.1),var(--shadow-sm)}
.inbox-bulk-toolbar{margin:8px 0;padding:8px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafd;box-shadow:none}
.inbox-bulk-toolbar[hidden]{display:none!important}
.inbox-bulk-toolbar:not(.has-selection) #inboxSelectionCount,.inbox-bulk-toolbar:not(.has-selection) #clearInboxSelection{display:none}
.inbox-bulk-heading{display:flex;align-items:center;gap:14px;margin-bottom:0}
.inbox-bulk-toolbar.has-selection .inbox-bulk-heading{margin-bottom:12px}
.inbox-bulk-heading label{display:flex;align-items:center;gap:8px;font-weight:650}
.inbox-bulk-heading strong{color:#535766}
.inbox-bulk-heading button{margin-left:auto;min-height:34px;padding:5px 10px}
.inbox-bulk-controls{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr)) auto;align-items:end;gap:10px}
.inbox-bulk-controls[hidden]{display:none!important}
.inbox-bulk-controls label{display:grid;gap:5px;color:#535766;font-size:12px;font-weight:650}
.inbox-bulk-controls select{width:100%;min-height:42px}
.inbox-bulk-controls button{min-height:42px;white-space:nowrap}
.inbox-message-focus{border-color:#0073ea;box-shadow:0 0 0 3px rgba(0,115,234,.16),var(--shadow-sm)}
.inbox-message-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px 20px;cursor:pointer;list-style:none}
.inbox-message-summary::-webkit-details-marker{display:none}
.inbox-message-summary:hover{background:#f8faff}
.inbox-message-summary:focus-visible{outline:3px solid rgba(0,115,234,.28);outline-offset:-3px}
.inbox-summary-copy{min-width:0}
.inbox-summary-copy h2{margin:7px 0 3px!important;font-size:16px!important;overflow-wrap:anywhere}
.inbox-summary-copy p{margin:0;color:#676879;font-size:12px}
.inbox-summary-meta{display:grid;grid-template-columns:auto minmax(90px,140px) 20px;align-items:center;gap:10px;color:#555968;font-size:12px;font-weight:650;text-align:right}
.inbox-summary-status{padding:5px 9px;border-radius:999px;background:#eef5ff;color:#005eaf}
.inbox-summary-chevron{width:20px;height:20px;transition:transform .18s cubic-bezier(.22,1,.36,1)}
.inbox-message[open] .inbox-summary-chevron{transform:rotate(180deg)}
.inbox-message-detail{padding:0 20px 18px}
.inbox-management{display:grid;grid-template-columns:1fr;gap:12px;padding:16px 0;border-top:1px solid #eceef3;border-bottom:1px solid #eceef3}
.inbox-management h3{margin:0 0 3px;font-size:14px}
.inbox-management p{margin:0;color:#676879;font-size:12px}
.inbox-message-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px}
.inbox-message-controls label,.inbox-search-label,.inbox-queue-field{display:grid;gap:5px;color:#535766;font-size:12px;font-weight:650}
.inbox-message-controls select{width:100%;min-height:38px!important}
.inbox-recipients{margin-top:3px!important;color:#676879}
.inbox-tools{display:grid;grid-template-columns:minmax(260px,1fr) minmax(160px,200px) minmax(180px,220px);align-items:end;gap:14px;margin:16px 0}
.inbox-search-label input,.inbox-queue-field select{min-height:48px}
.inbox-queue-field select{width:100%;background-color:#fff}
.inbox-department-field{display:grid;gap:5px;color:#535766;font-size:12px;font-weight:650}
.inbox-department-field select{width:100%;min-height:48px;background-color:#fff}
.inbox-result-count{margin:0 0 10px;color:#676879;font-size:12px}
.inbox-management select{min-height:40px!important}
.inbox-body{max-height:220px;margin:18px 0 0;padding-top:16px;overflow:auto;border-top:1px solid #eceef3;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-owner{margin:8px 0 0!important;color:#555968;font-size:13px;font-weight:650}
.inbox-conversation{display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #eceef3}
.inbox-conversation-entry{max-width:min(760px,94%);padding:12px 14px;border:1px solid #e3e6ed;border-radius:12px;background:#f8f9fc}
.inbox-conversation-entry.is-outbound{justify-self:end;border-color:#d7e8fb;background:#eff6ff}
.inbox-entry-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#535766;font-size:12px}
.inbox-entry-meta time{color:#777b89}
.inbox-conversation-entry>p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-reply{display:grid;justify-items:start;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #eceef3}
.inbox-reply label{display:grid;width:100%;gap:6px;color:#535766;font-size:13px;font-weight:650}
.inbox-reply textarea{width:100%;min-height:92px;resize:vertical}
.inbox-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.empty-state{text-align:center}
@media(max-width:700px){.inbox-tools{grid-template-columns:1fr;align-items:stretch}}
@media(max-width:760px){.inbox-bulk-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.inbox-bulk-controls button{grid-column:1/-1}}
@media(max-width:560px){.inbox-row-select{top:14px;left:11px}.inbox-row .inbox-message-summary{grid-template-columns:1fr;padding:15px 14px 15px 48px}.inbox-summary-meta{grid-template-columns:auto minmax(0,1fr) 20px;text-align:left}.inbox-message-detail{padding:0 14px 16px}.inbox-message-controls{grid-template-columns:1fr}.inbox-management select{width:100%}.inbox-bulk-toolbar{padding:8px}.inbox-bulk-heading{flex-wrap:wrap}.inbox-bulk-controls{grid-template-columns:1fr}.inbox-bulk-controls button{grid-column:auto}}

#nav .nav-group-items button[data-page=inbox]{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.nav-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#d83a52;color:#fff;font-size:11px;font-weight:750;line-height:1}

.inbox-routing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.inbox-route-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;border:1px solid #dfe2ea;border-radius:12px;background:#fff}
.inbox-route-row h3,.inbox-route-row>p{grid-column:1/-1;margin:0}
.inbox-route-row>p{color:#676879;font-size:13px}
.inbox-route-row label{display:grid;gap:6px;font-weight:650}
.inbox-assignee{margin:4px 0 0;color:#4f5b70;font-size:12px;font-weight:650}@media(max-width:700px){.inbox-routing-grid{grid-template-columns:1fr}}@media(max-width:480px){.inbox-route-row{grid-template-columns:1fr}.inbox-route-row h3,.inbox-route-row>p{grid-column:auto}}
.inbox-entry-focus{outline:3px solid #1473e6;outline-offset:3px;border-radius:8px}.inbox-conversation-entry:focus{outline-color:#1473e6}

/* Document cards keep file actions and record details readable at staff portal widths. */
.document-cards{display:grid;gap:12px}
.document-record-card{display:grid;gap:14px;min-width:0;padding:18px;border:1px solid #dfe2ea;border-radius:12px;background:#fff}
.document-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.document-card-title{display:grid;gap:4px;min-width:0}
.document-card-title>span{font-size:12px;font-weight:650}
.document-card-title h3{margin:0!important;font-size:17px!important;line-height:1.3;overflow-wrap:anywhere}
.document-card-heading>.status-chip{flex:0 0 auto}
.document-card-details{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(110px,1fr));gap:14px;margin:0;padding:14px 0;border-top:1px solid #eceef3;border-bottom:1px solid #eceef3}
.document-card-details>div{min-width:0}
.document-card-details dt{margin:0 0 4px;color:#676879;font-size:12px;font-weight:650}
.document-card-details dd{margin:0;overflow-wrap:anywhere}
.document-card-actions{display:flex;flex-wrap:wrap;gap:8px}
.document-card-actions button{min-width:132px}
.document-empty{margin:0;padding:24px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;color:#676879}
@media(max-width:560px){.document-record-card{padding:15px}.document-card-heading{align-items:flex-start}.document-card-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.document-card-organisation{grid-column:1/-1}.document-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.document-card-actions button{min-width:0;width:100%;padding-inline:8px!important}}
@media(prefers-reduced-motion:reduce){#nav,#navToggle,#navShade{transition:none!important}}

/* Project overview: one aligned status row, with narrative helper copy removed. */
.delivery-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden!important}
.delivery-summary>div{display:flex;min-width:0;min-height:116px;flex-direction:column;justify-content:space-between;gap:14px;padding:20px 22px}
.delivery-summary>div+div{border-left:1px solid #e6e9ef}
.delivery-summary span{display:block!important;min-height:2.8em;color:#676879!important;font-size:12px!important;line-height:1.35!important}
.delivery-summary strong{display:block!important;margin:0!important;color:#25262d!important;font-size:22px!important;line-height:1.2!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.delivery-owner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 28px!important;color:#555866}
.delivery-owner strong{color:#25262d}.delivery-owner span{white-space:nowrap}
.delivery-checklist-heading{margin-top:28px}.delivery-checklist-heading h2{margin:0!important}
@media(max-width:700px){.delivery-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.delivery-summary>div:nth-child(3){border-left:0;border-top:1px solid #e6e9ef}.delivery-summary>div:nth-child(4){border-top:1px solid #e6e9ef}.delivery-owner{align-items:flex-start;flex-direction:column;gap:4px}.delivery-owner span{white-space:normal}}
@media(max-width:420px){.delivery-summary{grid-template-columns:1fr!important}.delivery-summary>div+div{border-top:1px solid #e6e9ef;border-left:0}.delivery-summary>div{min-height:96px}.delivery-summary span{min-height:0}}

/* Keep delivery metrics aligned before the main workspace reaches phone width. */
@media(min-width:701px) and (max-width:1000px){.delivery-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.delivery-summary>div:nth-child(2){border-left:1px solid #e6e9ef}.delivery-summary>div:nth-child(3){border-top:1px solid #e6e9ef;border-left:0}.delivery-summary>div:nth-child(4){border-top:1px solid #e6e9ef}}
.table-wrap td{font-size:14px!important;line-height:1.45!important}

/* Shared select menu, based on the dashboard date-menu interaction. */
.uniform-select{position:relative;display:block;width:100%;min-width:0;font-family:"Aptos","Segoe UI",Arial,sans-serif;font-size:14px;font-weight:500;line-height:1.4}
.uniform-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.uniform-select-trigger{position:relative!important;width:100%!important;min-height:44px!important;padding:10px 42px 10px 12px!important;overflow:hidden;text-align:left!important;text-overflow:ellipsis;white-space:nowrap;background:#fff!important;font-size:14px!important;font-weight:500!important}
.uniform-select-trigger::after{position:absolute;right:15px;top:50%;width:7px;height:7px;content:'';border-right:1.7px solid #555866;border-bottom:1.7px solid #555866;transform:translateY(-68%) rotate(45deg);transition:transform 160ms ease}
.uniform-select.is-open .uniform-select-trigger{border-color:#0073ea!important;box-shadow:0 0 0 1px #0073ea!important}.uniform-select.is-open .uniform-select-trigger::after{transform:translateY(-28%) rotate(225deg)}
.uniform-select-trigger.is-placeholder{color:#626879!important}.uniform-select-trigger:disabled{cursor:not-allowed!important;background:#f2f3f6!important;color:#5f6676!important}
.uniform-select-popover{position:fixed;z-index:10000;inset:auto;margin:0;width:max(100%,260px);max-width:min(380px,calc(100vw - 32px));padding:8px;border:1px solid #dfe2ea;border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(20,32,63,.17)}
.uniform-select-popover[hidden]{display:none!important}.uniform-select-head{display:flex;align-items:center;justify-content:space-between;padding:7px 8px 9px}.uniform-select-head strong{color:#323338;font-size:13px;font-weight:700}.uniform-select-close{display:grid!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;place-items:center;border:0!important;border-radius:50%!important;background:transparent!important;color:#676879!important;font-size:18px!important}.uniform-select-close:hover{background:#f0f2f6!important}
.uniform-select-options{display:flex;max-height:280px;flex-direction:column;gap:2px;overflow-y:auto;overscroll-behavior:contain}.uniform-select-options [role=option]{position:relative;width:100%;min-height:38px!important;padding:8px 38px 8px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;text-align:left!important;font-size:14px!important;font-weight:500!important}.uniform-select-options [role=option]:hover,.uniform-select-options [role=option]:focus-visible{background:#f4f6fa!important}.uniform-select-options [role=option][aria-selected=true]{background:#e5f0ff!important;color:#0060b9!important;font-weight:700!important}.uniform-select-options [role=option][aria-selected=true]::after{position:absolute;right:12px;content:'✓';font-weight:800}
@media(max-width:600px){.uniform-select-popover{max-height:70dvh}.uniform-select-options{max-height:calc(70dvh - 24px)}}
.uniform-combobox-input{padding-right:42px!important}
.uniform-combobox::after{position:absolute;right:15px;top:20px;width:7px;height:7px;content:'';border-right:1.7px solid #555866;border-bottom:1.7px solid #555866;pointer-events:none;transform:rotate(45deg);transition:transform 160ms ease}
.uniform-combobox.is-open::after{transform:translateY(3px) rotate(225deg)}
.uniform-combobox-input:focus{border-color:#0073ea!important;box-shadow:0 0 0 1px #0073ea!important}
.uniform-select-empty{padding:10px;color:#676879;font-size:14px}
:where(.customer-row-actions){position:relative;display:inline-flex;align-items:center}
.customer-action-menu{position:absolute;z-index:30;top:calc(100% + 6px);right:0;min-width:180px;padding:6px;background:#fff;border:1px solid #d9deea;border-radius:10px;box-shadow:0 10px 28px rgba(20,35,60,.16)}
.customer-action-menu[hidden]{display:none}
.customer-action-menu button,.customer-action-menu a{display:block;width:100%;padding:9px 10px;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left;text-decoration:none;white-space:nowrap}
.customer-action-menu button:hover,.customer-action-menu a:hover{background:#eef4ff;color:#075fca}
.record-detail{margin:20px 0}
.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.detail-list>div{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);gap:12px;padding:13px 0;border-bottom:1px solid #e5e9f1;min-width:0}
.detail-list dt{font-weight:650;color:#596579}
.detail-list dd{margin:0;overflow-wrap:anywhere}
.detail-list .detail-notes{grid-column:1/-1}
@media(max-width:640px){.detail-list{grid-template-columns:1fr}.detail-list .detail-notes{grid-column:auto}.detail-list>div{grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr)}}
.transfer-work-tools{display:grid!important;grid-template-columns:minmax(220px,320px) auto!important;align-items:end!important;justify-content:start!important;gap:12px!important;margin-top:16px!important}.transfer-work-tools label{display:grid!important;gap:6px!important;min-width:0!important}.transfer-work-tools select{width:100%!important}.transfer-work-tools button{min-height:40px!important;white-space:nowrap!important}
@media(max-width:560px){.transfer-work-tools{grid-template-columns:1fr!important}.transfer-work-tools button{width:100%!important}}

/* Team member directory */
.register-members .member-directory-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,190px) auto;align-items:end;gap:12px;margin:0 0 18px}
.register-members .member-directory-toolbar label{display:grid;gap:6px;min-width:0;color:#4b4c5a;font-size:12px;font-weight:650}
.register-members .member-directory-toolbar input,.register-members .member-directory-toolbar select{width:100%;min-width:0;min-height:42px}
.register-members .member-directory-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.member-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.member-card{display:grid;align-content:start;gap:16px;min-width:0;padding:18px 20px;background:#fff;border:1px solid #e0e3eb;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.member-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.member-card-id{margin:0 0 4px;color:#676879;font-size:12px;font-variant-numeric:tabular-nums}
.member-card h2{margin:0!important;font-size:18px!important;line-height:1.3!important}
.member-card-open{min-width:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#1f2a44!important;font:inherit!important;font-weight:700!important;text-align:left!important;overflow-wrap:anywhere}
.member-card-open:hover{text-decoration:underline}
.member-card-status{display:inline-flex;flex:0 0 auto;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.member-card-status.is-active{background:#d8f3e8;color:#087a55}
.member-card-status.is-inactive{background:#eef0f4;color:#555866}
.member-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:0;padding-top:14px;border-top:1px solid #eceef3}
.member-card-details>div{min-width:0}
.member-card-details dt{margin:0 0 4px;color:#676879;font-size:12px;font-weight:650}
.member-card-details dd{margin:0;color:#323338;overflow-wrap:anywhere}
.member-card-email{grid-column:1/-1}
.member-card-details a{overflow-wrap:anywhere}
.member-empty-state{padding:30px 20px;border:1px dashed #cfd5e2;border-radius:var(--radius-md);background:#fff;color:#676879;text-align:center}
@media(max-width:900px){.register-members .member-directory-toolbar{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr)}.register-members .member-directory-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:700px){.member-card-grid{grid-template-columns:1fr}}
@media(max-width:560px){.register-members .member-directory-toolbar{grid-template-columns:1fr}.register-members .member-directory-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:auto}.register-members .member-directory-actions button{width:100%}.member-card{padding:16px}.member-card-details{grid-template-columns:1fr}.member-card-email{grid-column:auto}}


/* Repair primary workspace sidebar layout and navigation flow. */
@media(min-width:851px){
  .layout{display:grid!important;grid-template-columns:246px minmax(0,1fr)!important;align-items:stretch!important}
  body.nav-collapsed .layout{grid-template-columns:minmax(0,1fr)!important}
  #nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:246px!important;min-width:0!important;max-width:246px!important}
  #nav .nav-group{display:block!important;flex:0 0 auto!important;width:100%!important;min-width:0!important}
  #nav .nav-group-items{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important}
  #nav .nav-group-items[hidden]{display:none!important}
  #nav .nav-group-items button{display:flex!important;width:100%!important;min-width:0!important;justify-content:flex-start!important}
}
@media(max-width:850px){
  .layout{display:block!important}
  #nav{width:min(280px,88vw)!important;max-width:none!important;min-width:0!important;align-items:stretch!important}
  #nav .nav-group{display:block!important;flex:0 0 auto!important;width:100%!important}
  #nav .nav-group-items{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important}
  #nav .nav-group-items[hidden]{display:none!important}
  #nav .nav-group-items button{display:flex!important;width:100%!important;justify-content:flex-start!important}
}



/* Record and inbox layout refinements */
#navToggle{position:fixed!important;z-index:30!important}
@media(max-width:1380px){
 .register-page{min-width:0;max-width:1240px;margin-inline:auto}
 .register-page>.bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:14px!important}
 .register-page>.bar>.tools:first-child{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(160px,220px)!important;align-items:end!important}
 .register-page>.bar>.tools:first-child input,.register-page>.bar>.tools:first-child select{width:100%!important;min-width:0!important}
 .register-page>.bar>.tools:last-child{display:flex!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
 .register-page .responsive-table{max-width:100%;margin:14px 0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
 .register-page .responsive-table{max-width:100%;margin:14px 0!important;overflow-x:auto!important;overflow-y:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
}
@media(min-width:761px) and (max-width:1380px){
 .register-implementations .responsive-table table{min-width:900px!important;table-layout:fixed!important}
 .register-implementations .responsive-table .register-reference-id{display:none!important}
 .register-implementations .responsive-table td{overflow-wrap:normal!important;word-break:normal!important}
}
@media(max-width:760px){
 .register-page .responsive-table table,.register-page .responsive-table tbody,.register-page .responsive-table tr,.register-page .responsive-table td{display:block!important;width:100%!important;min-width:0!important}
 .register-page .responsive-table table{background:transparent!important}
 .register-page .responsive-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 .register-page .responsive-table tbody{display:grid!important;gap:12px!important}
 .register-page .responsive-table tbody tr{position:relative;border:1px solid #dfe2ea;border-radius:10px;background:#fff;box-shadow:var(--shadow-sm)}
 .register-page .responsive-table tbody td{display:grid!important;grid-template-columns:minmax(112px,30%) minmax(0,1fr)!important;align-items:center;gap:12px;padding:12px 14px!important;border-bottom:1px solid #eceef3!important;overflow-wrap:normal!important;word-break:normal!important}
 .register-page .responsive-table tbody td::before{content:attr(data-label);color:#596579;font-size:12px;font-weight:700;line-height:1.35}
 .register-page .responsive-table tbody td:last-child{border-bottom:0!important}
 .register-page .responsive-table tbody tr:hover td{background:#fff!important}
 .register-page .responsive-table td[data-label="ID"]{white-space:nowrap!important}
 .register-page .responsive-table td[data-label="Email"],.register-page .responsive-table td[data-label="Main Email"]{overflow-wrap:anywhere!important}
 .register-page .responsive-table td button,.register-page .responsive-table td a{justify-self:start;max-width:100%;white-space:normal;text-align:left}
 .register-page .responsive-table td button:not(.link){width:auto;text-align:center}
 .register-page .responsive-table td:has(.assignment-check){display:flex!important;align-items:center;justify-content:flex-start;min-height:48px}
 .register-page .responsive-table td:has(.assignment-check)::before{content:none}
 .register-page .responsive-table td[data-label="Actions"]{position:relative;overflow:visible!important}
 .register-page .responsive-table:has(.customer-action-menu:popover-open){position:relative;z-index:20}
 .register-page .responsive-table .empty{display:block!important;padding:28px 18px!important;text-align:center!important}
 .register-page .responsive-table .empty::before{content:none}
 .register-page>.bar{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 .register-page>.bar>.tools:first-child{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr)!important}
 .register-page>.bar>.tools:last-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
 .register-page>.bar>.tools:last-child button{grid-column:auto!important;min-width:0!important}
 .register-page .responsive-table tbody td{grid-template-columns:minmax(100px,34%) minmax(0,1fr)!important;gap:10px;padding:11px 12px!important}
 .notice:has(#selectVisible){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 .notice:has(#selectVisible)>.tools{display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;align-items:center;gap:8px;min-width:0}
 .notice:has(#selectVisible)>.tools select{width:100%!important;min-width:0!important}
 .notice:has(#selectVisible)>.help{margin:0!important}
 .notice:has(#selectVisible) #assignmentError:empty{display:none}
}
@media(max-width:560px){
 .register-page>.bar>.tools:first-child{grid-template-columns:minmax(0,1fr)!important}
 .register-page>.bar>.tools:last-child{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .register-page>.bar>.tools:last-child button{grid-column:auto!important}
 .register-page .responsive-table tbody td{grid-template-columns:minmax(88px,32%) minmax(0,1fr)!important}
 .notice:has(#selectVisible)>.tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .notice:has(#selectVisible)>.tools select,.notice:has(#selectVisible)>.tools button.primary{grid-column:1/-1}
}
.customer-action-menu[popover]{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 16px);max-height:min(60vh,420px);overflow:auto;padding:6px;border:1px solid #dfe2ea;border-radius:10px;background:#fff;box-shadow:var(--shadow-lg)}
.customer-action-menu[popover]::backdrop{background:transparent}
.customer-action-menu[popover] button,.customer-action-menu[popover] a{display:flex;align-items:center;width:100%;min-height:40px;padding:9px 12px;border:0;background:#fff;text-align:left;text-decoration:none}
.customer-action-menu[popover] button:hover,.customer-action-menu[popover] a:hover{background:#f2f6fc}
.record-detail-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
.record-detail-toolbar>.tools{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.customer-contact-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px;margin:16px 0}
.customer-contact-list h2{grid-column:1/-1;margin:0 0 4px!important;font-size:17px!important}
.customer-contact-list>a{min-width:0;padding:12px 14px;border:1px solid #dfe2ea;border-radius:10px;background:#fff;overflow-wrap:anywhere;text-decoration:none}
.inbox-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,190px) minmax(170px,210px)!important;align-items:end;gap:12px 14px}
.inbox-tools{display:contents!important;margin:0!important}
.inbox-search-label,.inbox-queue-field,.inbox-department-field{grid-column:auto!important;min-width:0}
.inbox-search-label input,.inbox-queue-field select,.inbox-department-field select{width:100%;min-width:0}
.inbox-bulk-toolbar,.inbox-result-count,#inboxMessages{grid-column:1/-1;min-width:0}
.inbox-row{position:relative!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:start;gap:8px;margin:0 0 10px!important}
.inbox-row:not(:has(.inbox-row-select)){grid-template-columns:minmax(0,1fr)!important}
.inbox-row-select{position:static!important;display:grid;place-items:center;width:32px!important;min-width:32px!important;height:48px;margin:0!important;padding:0!important;cursor:pointer}
.inbox-row .inbox-message{min-width:0;margin:0!important}
.inbox-row .inbox-message-summary{min-width:0;padding:16px 18px!important}
.inbox-summary-copy,.inbox-summary-meta{min-width:0}
.inbox-summary-meta{grid-template-columns:auto minmax(90px,150px) 20px;gap:10px}
.inbox-summary-meta>span:nth-child(2){overflow-wrap:anywhere}
@media(max-width:900px){
 .inbox-workspace{grid-template-columns:minmax(0,1fr) minmax(160px,220px)!important}
 .inbox-search-label{grid-column:1/-1!important}
 .inbox-department-field{grid-column:1/-1}
}
@media(max-width:700px){
 .record-detail-toolbar{grid-template-columns:minmax(0,1fr)!important}
 .record-detail-toolbar>.tools{justify-content:flex-start}
 .inbox-workspace{grid-template-columns:minmax(0,1fr)!important}
 .inbox-search-label,.inbox-queue-field,.inbox-department-field{grid-column:1/-1!important}
 .inbox-row{grid-template-columns:28px minmax(0,1fr)!important;gap:6px}
 .inbox-row-select{width:28px!important;min-width:28px!important}
 .inbox-row .inbox-message-summary{grid-template-columns:minmax(0,1fr)!important;padding:14px!important}
 .inbox-summary-meta{grid-template-columns:auto minmax(0,1fr) 20px;text-align:left}
 .inbox-message-detail{padding-inline:14px}
}
/* Prevent empty status nodes from occupying page space; keep active notices compact. */
#toast:empty{display:none!important}
#toast:not(:empty){position:fixed!important;z-index:60!important;right:16px!important;bottom:16px!important;left:auto!important;top:auto!important;width:max-content!important;max-width:min(420px,calc(100vw - 32px))!important;min-height:0!important;color:#fff!important;line-height:1.45!important;border-radius:10px!important;box-shadow:var(--shadow-lg)!important}
@media(min-width:851px){#navToggle{position:fixed!important}}
.numbers strong,.numbers span{display:block!important}
.numbers span{margin-top:7px!important;line-height:1.35!important}
@media(max-width:1380px){
 .register-page>.bar>.tools:first-child{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
 .register-page>.bar>.tools:first-child:not(:has(select)){grid-template-columns:minmax(0,1fr)!important}
 .register-page .responsive-table td[data-label="Actions"] .customer-row-actions{justify-self:end;width:max-content;max-width:100%;margin-left:auto}
 .register-page .responsive-table td[data-label="Actions"] .customer-row-actions>button{margin-left:auto}
 .register-page .responsive-table td[data-label="Select"]{grid-template-columns:minmax(112px,30%) minmax(0,1fr)!important}
 .register-page .responsive-table td[data-label="Select"]::before{content:"Select"}
 .notice:has(#selectVisible){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:14px 0!important}
 .notice:has(#selectVisible)>.tools{display:grid!important;grid-template-columns:auto auto minmax(220px,1fr) auto!important;align-items:center!important;gap:10px!important;min-width:0}
 .notice:has(#selectVisible)>.tools button,.notice:has(#selectVisible)>.tools select{min-width:0!important}
 .notice:has(#selectVisible)>.help{margin:0!important}
 .notice:has(#selectVisible) #assignmentError:empty{display:none}
}
@media(max-width:760px){
 .notice:has(#selectVisible)>.tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .notice:has(#selectVisible)>.tools select,.notice:has(#selectVisible)>.tools button.primary{grid-column:1/-1}
 .register-page>.bar>.tools:first-child{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .register-page>.bar>.tools:first-child:not(:has(select)){grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:560px){
 .register-page>.bar>.tools:first-child{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
 .register-page .responsive-table td:has(.assignment-check){gap:12px!important}
 .register-page .responsive-table td:has(.assignment-check)::before{content:"Select"!important;margin-right:auto}
}
/* Calendar views need explicit grid layout; keep the week/month matrix and day schedule structured. */
.page-calendar .cal-grid{display:grid!important;grid-template-columns:repeat(7,minmax(130px,1fr))!important;grid-auto-rows:auto!important;align-items:stretch!important}
.page-calendar .cal-weekday{min-width:0}
.page-calendar .cal-cell{min-width:0!important}
.page-calendar .cal-day{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0;align-content:start}
.page-calendar .cal-slot{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;align-items:start;gap:10px;min-width:0}
.page-calendar .cal-slot>div{min-width:0}
@media(max-width:700px){
 .page-calendar .cal-scroll{max-width:100%;overflow-x:auto!important;overscroll-behavior-inline:contain}
 .page-calendar .cal-grid{grid-template-columns:repeat(7,minmax(130px,1fr))!important;min-width:910px!important}
 .page-calendar .cal-day{min-width:0!important}
 .page-calendar .cal-slot{grid-template-columns:72px minmax(0,1fr)!important;gap:8px}
}
/* Inbox selection stays within its card and bulk controls appear only for an active selection. */
.inbox-titlebar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:18px!important}
.inbox-titlebar>div{min-width:0}
.inbox-titlebar #refreshInbox{flex:0 0 auto}
.inbox-selection-toggle{grid-column:1/-1;display:flex;align-items:center;min-width:0;margin:4px 0 0;padding:10px 14px;border:1px solid #dfe2ea;border-radius:10px;background:#fff}
.inbox-selection-toggle label{display:inline-flex;align-items:center;gap:9px;font-weight:650;cursor:pointer}
.inbox-selection-toggle input{width:18px;height:18px;margin:0;accent-color:#0875e1}
.inbox-bulk-toolbar{grid-column:1/-1;min-width:0}
.inbox-bulk-toolbar[hidden]{display:none!important}
.inbox-row{position:relative!important;display:block!important;min-width:0!important;margin:0 0 10px!important}
.inbox-row .inbox-message{display:block!important;width:100%!important;min-width:0!important;margin:0!important}
.inbox-row-select{position:absolute!important;top:16px!important;left:14px!important;z-index:2!important;display:grid!important;width:24px!important;min-width:24px!important;height:24px!important;place-items:center!important;margin:0!important;padding:0!important;cursor:pointer}
.inbox-row-select input{width:18px!important;height:18px!important;margin:0!important;accent-color:#0875e1}
.inbox-row .inbox-message-summary{min-width:0!important;padding:16px 18px 16px 52px!important}
.inbox-row[data-selected="true"] .inbox-message{border-color:#8bbce9;box-shadow:0 0 0 2px rgba(8,104,201,.1),var(--shadow-sm)}
@media(max-width:700px){
 .inbox-titlebar{align-items:center!important}
 .inbox-row{display:block!important}
 .inbox-row-select{top:13px!important;left:11px!important}
 .inbox-row .inbox-message-summary{grid-template-columns:minmax(0,1fr)!important;padding:14px 14px 14px 46px!important}
}

/* Keep the workspace header fixed and reserve its measured height in the page layout. */
header.topbar{position:fixed!important;inset:0 0 auto 0!important;z-index:50!important;width:100%!important;height:var(--header-height,64px)!important;min-height:64px!important;isolation:isolate}
body>.layout{padding-top:var(--header-height,64px)!important;min-height:100vh!important}
@media(max-width:850px){#navToggle{z-index:60!important}}
/* Settings is a regular navigation destination, not a floating footer control. */
#nav .nav-settings-group{margin-top:10px!important}
#nav .nav-settings-group .nav-group-items{padding-left:20px!important;border-left:1px solid #dfe4ec!important;margin-left:17px!important}
#nav .nav-settings-group .nav-utility-link{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:32px!important;margin:1px 0!important;padding:6px 10px!important;border:0!important;border-radius:var(--radius-sm)!important;text-align:left!important;font-size:14px!important;font-weight:500!important}
#nav .nav-utility-link svg{width:18px;height:18px;flex:0 0 auto;color:#087f7a}
#nav .nav-utility-link[aria-current=page]{font-weight:700!important}
/* Organisation details: clear summary, navigable related sections and balanced record tables. */
.org-detail-toolbar{margin:0 0 18px!important}
.org-page-heading{margin:0 0 18px}
.org-page-heading .eyebrow{margin:0 0 5px!important}
.org-page-heading h1{max-width:1100px;margin:0 0 7px!important;overflow-wrap:anywhere}
.org-page-heading .sub{margin:0!important}
.org-overview-card{margin:18px 0 16px!important;padding:20px 22px!important}
.org-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 22px;margin:0}
.org-overview-grid>div{min-width:0}
.org-overview-grid dt{margin:0 0 4px;color:#676879;font-size:12px;font-weight:700}
.org-overview-grid dd{margin:0;overflow-wrap:anywhere}
.org-related-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 28px;padding:0}
.org-related-link{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:6px 11px;border:1px solid #d9deea;border-radius:999px;background:#fff;color:#3f4654;text-decoration:none;font-size:13px;font-weight:600}
.org-related-link:hover{background:#f2f6fc;border-color:#bfc9db}
.org-related-count,.org-section-count{display:inline-grid;min-width:22px;height:22px;place-items:center;padding:0 6px;border-radius:999px;background:#eef1f6;color:#4b5565;font-size:12px;font-weight:700}
.org-related-section{margin:26px 0 0;scroll-margin-top:calc(var(--header-height,64px) + 18px)}
.org-section-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 11px!important}
.org-section-heading h2{display:flex;align-items:center;gap:9px;margin:0!important;font-size:21px!important}
.org-related-section .table-wrap{width:100%;max-width:100%;overflow-x:auto}
.org-related-section table{width:100%;min-width:740px;table-layout:auto}
#org-contacts table{table-layout:fixed}
#org-contacts th:nth-child(1),#org-contacts td:nth-child(1){width:15%}
#org-contacts th:nth-child(2),#org-contacts td:nth-child(2){width:19%}
#org-contacts th:nth-child(3),#org-contacts td:nth-child(3){width:17%}
#org-contacts th:nth-child(4),#org-contacts td:nth-child(4){width:29%}
#org-contacts th:nth-child(5),#org-contacts td:nth-child(5){width:20%}
#org-contacts td{white-space:normal!important;overflow-wrap:anywhere}
#org-timeline{margin-top:32px;scroll-margin-top:calc(var(--header-height,64px) + 18px)}
@media(max-width:760px){
 .org-overview-card{padding:16px!important}
 .org-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .org-section-heading h2{font-size:19px!important}
}
@media(max-width:480px){
 .org-overview-grid{grid-template-columns:1fr}
 .org-related-nav{gap:6px}
 .org-related-link{min-height:34px;padding:5px 9px}
 .org-detail-toolbar{grid-template-columns:1fr!important}
 .org-detail-toolbar>.tools{justify-content:flex-start}
}

/* Shared semantic colors, aligned with the system status palette. */
:root{--calendar-green:#08784f;--calendar-violet:#6741b8;--calendar-amber:#8a5a00;--calendar-teal:#087f8b;--calendar-slate:#555866}

/* Record forms use a consistent two-column field layout; long fields span the card. */
#recordForm{display:block!important;min-width:0!important;max-width:100%!important}
#recordForm>.fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px 22px!important;width:100%!important;min-width:0!important;margin:18px 0 22px!important}
#recordForm>.fields>label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:6px!important;min-width:0!important;margin:0!important}
#recordForm>.fields>label.wide{grid-column:1/-1!important}
#recordForm>.fields>label>input:not([type=hidden]),#recordForm>.fields>label>select,#recordForm>.fields>label>textarea{display:block!important;grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
#recordForm>.fields>label>textarea{min-height:108px!important;resize:vertical}
#recordForm>.fields>label>.help{display:block!important;grid-column:1!important;margin:0!important;line-height:1.45!important}
#recordForm>.actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;margin-top:20px!important}

/* Calendar: keep all seven days visible on desktop and give events a clear shared color language. */
.page-calendar .cal-toolbar{align-items:center!important;gap:14px!important}
.page-calendar .cal-period-nav{flex-wrap:wrap!important}
.page-calendar .cal-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.page-calendar .cal-section-head{display:flex!important;justify-content:space-between!important;gap:14px!important}
.page-calendar .cal-section-head .tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important}
.page-calendar .cal-scroll{width:100%!important;overflow-x:auto!important;border:1px solid #d0d4e4!important;border-radius:14px!important;background:#fff!important}
.page-calendar .cal-grid{width:100%!important;min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:42px repeat(6,minmax(126px,auto))!important;grid-auto-rows:minmax(126px,auto)!important;align-items:stretch!important}.page-calendar .cal-grid-week{grid-template-rows:42px minmax(240px,auto)!important}
.page-calendar .cal-weekday{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;padding:8px 4px!important;border-right:1px solid #dbe5f3!important;border-bottom:1px solid #c9d8ec!important;background:#eaf3ff!important;color:#005eaf!important;font-size:10px!important;letter-spacing:.045em!important;text-align:center!important}
.page-calendar .cal-weekday:nth-child(7n+6),.page-calendar .cal-weekday:nth-child(7n+7){background:#f1efff!important;color:#6741b8!important}
.page-calendar .cal-cell{display:flex!important;min-width:0!important;min-height:126px!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;padding:7px!important;border-right:1px solid #e0e6ef!important;border-bottom:1px solid #e0e6ef!important;background:#fff!important}
.page-calendar .cal-cell:nth-child(14n+13),.page-calendar .cal-cell:nth-child(14n+14){background:#fbfaff!important}
.page-calendar .cal-cell>button:not(.cal-event){align-self:flex-start!important;display:grid!important;width:29px!important;height:29px!important;min-height:29px!important;place-items:center!important;padding:0!important;border-radius:50%!important;color:#323338!important;font-size:11px!important}
.page-calendar .cal-outside{background:#f7f8fa!important}
.page-calendar .cal-outside>button:not(.cal-event){color:#969aaa!important}
.page-calendar .cal-today{background:#edf5ff!important;box-shadow:inset 0 0 0 2px #78b7f5!important}
.page-calendar .cal-today>button:not(.cal-event){background:var(--accent)!important;color:#fff!important}
.page-calendar .cal-event{border-left:3px solid var(--event-color)!important;border-radius:7px!important;background:color-mix(in srgb,var(--event-color) 9%,white)!important}
.page-calendar .cal-event:hover{background:color-mix(in srgb,var(--event-color) 16%,white)!important;box-shadow:0 2px 8px color-mix(in srgb,var(--event-color) 18%,transparent)!important}
.page-calendar .cal-tag{color:var(--event-color)!important}
.page-calendar .cal-legend{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px 14px!important;margin:12px 2px 0!important;padding:10px 12px!important;border:1px solid #dfe6f0!important;border-radius:10px!important;background:#fff!important}
.page-calendar .cal-legend-item{display:inline-flex!important;align-items:center!important;gap:6px!important;color:#4b5060!important;font-size:11px!important;font-weight:650!important}
.page-calendar .cal-legend-item i{width:9px;height:9px;border-radius:50%;background:var(--event-color)}
.page-calendar .cal-legend-note{margin-left:auto!important;color:#73798a!important;font-size:11px!important}
.page-calendar .cal-day{border:1px solid #dfe6f0!important;border-radius:12px!important;background:#fff!important}
.page-calendar .cal-slot:nth-child(odd){background:#f8faff!important}
.page-calendar .cal-slot>button{min-width:74px!important;border:1px solid #cbd9ea!important;border-radius:7px!important;background:#eaf3ff!important;color:#005eaf!important;font-weight:700!important}
@media(max-width:850px){
 #recordForm>.fields{gap:15px!important}
 .page-calendar .cal-toolbar{align-items:stretch!important}
 .page-calendar .cal-section-head{align-items:flex-start!important}
 .page-calendar .cal-section-head .tools{justify-content:flex-start!important}
 .page-calendar .cal-weekday{font-size:9px!important}
 .page-calendar .cal-cell{padding:5px!important}
}
@media(max-width:700px){
 #recordForm>.fields{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 #recordForm>.fields>label.wide{grid-column:1!important}
 .page-calendar .cal-filters{grid-template-columns:minmax(0,1fr)!important}
 .page-calendar .cal-grid{width:max-content!important;min-width:840px!important;grid-template-columns:repeat(7,minmax(120px,1fr))!important;grid-template-rows:42px repeat(6,minmax(126px,auto))!important}.page-calendar .cal-grid-week{grid-template-rows:42px minmax(240px,auto)!important}
 .page-calendar .cal-legend-note{flex-basis:100%;margin-left:0!important}
 .page-calendar .cal-slot{grid-template-columns:68px minmax(0,1fr)!important}
}

/* Sidebar: a consistent navigation list with Settings as its own main item. */
@media(min-width:851px){#nav{border-right:0!important;box-shadow:none!important;background:#f0f3f8!important}}
#nav .nav-settings-group{display:block!important;flex:0 0 auto!important;width:100%!important;margin-top:auto!important;padding-top:10px!important}
#nav .nav-settings{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:38px!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#4b4c5a!important;text-align:left!important;font-size:14px!important;font-weight:600!important}
#nav .nav-settings:hover{background:#eef1f7!important;color:#24252c!important}
#nav .nav-settings[aria-current=page]{background:#e5f0ff!important;color:#0060b9!important;font-weight:700!important}
#nav .nav-settings svg{width:18px;height:18px;flex:0 0 auto;color:#087f7a}
@media(max-width:850px){#nav{border-right:0!important}.nav-settings-group{margin-top:10px!important}}
/* Performance rows are separate cards rather than a ruled list. */
.team-performance{padding:20px!important;border-color:#dfe2ea!important}
.team-performance .dash-card-head{align-items:flex-end!important;gap:16px!important;margin-bottom:14px!important}
.team-performance .dash-card-head p:not(.eyebrow){max-width:62ch!important;line-height:1.5!important}
.performance-note{padding:6px 9px!important;border-radius:8px!important;background:#f4f6fa!important;white-space:nowrap!important}
.performance-list{max-height:none!important;overflow:visible!important;gap:9px!important}
.performance-row{min-height:74px!important;padding:11px 13px!important;border:1px solid #e4e8f0!important;border-left:4px solid #c9dcf4!important;border-top:1px solid #e4e8f0!important;border-radius:10px!important;background:#fbfcff!important}
.performance-row:first-child{border-top:1px solid #e4e8f0!important}
.performance-row:hover{border-color:#b6d2f0!important;border-left-color:var(--accent)!important;background:#f4f8ff!important}
.performance-row .performance-person{min-width:0!important}
.performance-row .work-status{flex-wrap:wrap!important;line-height:1.3!important}
.performance-row .capacity{white-space:nowrap!important}
@media(max-width:1000px){.performance-row{grid-template-columns:minmax(150px,1.5fr) repeat(3,minmax(62px,.5fr))!important}.performance-row .capacity,.performance-row .trend{display:flex!important}}
@media(max-width:700px){.team-performance{padding:15px!important}.team-performance .dash-card-head{align-items:flex-start!important;flex-direction:column!important}.performance-note{white-space:normal!important}.performance-row{grid-template-columns:minmax(0,1fr) repeat(2,minmax(58px,.45fr))!important;gap:9px!important}.performance-row .capacity,.performance-row .trend{display:none!important}}
/* Data-quality findings use the workspace warning and error colors. */
.data-quality-page .table-wrap{width:100%!important;max-width:none!important}
.data-quality-page .table-wrap table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.data-quality-page .table-wrap th:first-child,.data-quality-page .table-wrap td:first-child{width:130px!important}
.data-quality-page .table-wrap td{vertical-align:middle!important}
.data-quality-page .table-wrap td:last-child{overflow-wrap:anywhere!important}
.data-quality-page .quality-errors{border-top:3px solid #d83a52!important}
.data-quality-page .quality-warnings{border-top:3px solid #fdab3d!important}
.data-quality-page .status-chip[data-tone=yellow]{background:#fff3cd!important;color:#8a5a00!important}
.data-quality-page .status-chip[data-tone=red]{background:#ffe0e6!important;color:#b4233c!important}
.uniform-select-popover{padding:8px!important}
.uniform-select-options{max-height:min(320px,55dvh)!important}
@media(max-width:600px){.uniform-select-options{max-height:calc(min(70dvh,520px) - 18px)!important}}
#recordForm>.fields>label>.uniform-select{grid-column:1!important;width:100%!important;min-width:0!important}
#recordForm>.fields>label>.uniform-select>.uniform-select-trigger{width:100%!important;min-width:0!important}
#recordForm>.fields>label>input[type=date],#recordForm>.fields>label>textarea{grid-column:1!important;min-width:0!important;max-width:100%!important;width:100%!important}

/* Coordinated work-type colors shared by the calendar and matching page banners. */
:root{
 --work-opportunities:#3f6f9f;
 --work-tasks:#347a59;
 --work-activities:#76589d;
 --work-projects:#a96a18;
 --work-support:#b94f58;
 --work-customers:#287d7b;
 --work-documents:#687587;
}
.page-calendar .cal-legend-item{font-size:12px!important}
.page-calendar .cal-legend-item i{width:10px;height:10px;box-shadow:0 0 0 3px color-mix(in srgb,var(--event-color) 13%,white)}
.page-calendar .cal-event{border-color:color-mix(in srgb,var(--event-color) 26%,white)!important;border-left-color:var(--event-color)!important;background:color-mix(in srgb,var(--event-color) 11%,white)!important}
.page-calendar .cal-event:hover{background:color-mix(in srgb,var(--event-color) 17%,white)!important}
.page-calendar .cal-tag{color:var(--event-color)!important}
#main[data-work-type="opportunities"]{--page-work-color:var(--work-opportunities)}
#main[data-work-type="tasks"]{--page-work-color:var(--work-tasks)}
#main[data-work-type="activities"]{--page-work-color:var(--work-activities)}
#main[data-work-type="projects"]{--page-work-color:var(--work-projects)}
#main[data-work-type="support"]{--page-work-color:var(--work-support)}
#main[data-work-type="customers"]{--page-work-color:var(--work-customers)}
#main[data-work-type="documents"]{--page-work-color:var(--work-documents)}
#main[data-work-type] h1:first-of-type{display:flex!important;align-items:center!important;min-height:54px!important;margin:0 0 10px!important;padding:11px 16px!important;border:0!important;border-left:5px solid var(--page-work-color)!important;border-radius:9px!important;background:linear-gradient(100deg,color-mix(in srgb,var(--page-work-color) 12%,white),#fff 78%)!important;color:var(--ink)!important}


/* Shared record tables fill their card while the wrapper handles narrow-screen overflow. */
.table-wrap>table{width:100%!important}
.table-wrap>table td{vertical-align:middle}

/* Keep the navigation aligned with the workspace and usable through the full page height. */
@media(min-width:851px){
 #nav{position:sticky!important;top:var(--header-height,64px)!important;align-self:start!important;height:calc(100dvh - var(--header-height,64px))!important;min-height:calc(100dvh - var(--header-height,64px))!important;max-height:calc(100dvh - var(--header-height,64px))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;background:var(--paper)!important;border-right:1px solid var(--line)!important}
}
@media(max-width:850px){
 #nav{background:var(--paper)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
}

/* The per-message checkbox sits inside the message card; bulk actions still appear after selection. */
.inbox-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden!important;border:1px solid #dfe2ea!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--shadow-sm)!important}
.inbox-row:has(>.inbox-row-select){grid-template-columns:42px minmax(0,1fr)!important}
.inbox-row>.inbox-row-select{position:static!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;width:auto!important;min-width:0!important;height:auto!important;margin:18px 0 0!important;padding:0!important}
.inbox-row>.inbox-message{align-self:stretch!important;width:100%!important;min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.inbox-row .inbox-message-summary{padding:16px 18px!important}
.inbox-row[data-selected="true"]{border-color:#8bbce9!important;box-shadow:0 0 0 2px rgba(8,104,201,.1),var(--shadow-sm)!important}
.inbox-row[data-selected="true"]>.inbox-message{border:0!important;box-shadow:none!important}
@media(max-width:700px){
 .inbox-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .inbox-row:has(>.inbox-row-select){grid-template-columns:38px minmax(0,1fr)!important}
 .inbox-row>.inbox-row-select{position:static!important;margin:14px 0 0!important}
 .inbox-row .inbox-message-summary{padding:14px!important}
}


/* Organisation detail sections keep their actions at the lower left of each card. */
.org-detail-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important}
.org-detail-toolbar>#backOrganisations{flex:0 0 auto!important;width:auto!important;max-width:max-content!important;justify-self:start!important}
.org-detail-toolbar>.tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important}
.org-related-section{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:18px!important;border:1px solid #dfe2ea!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--shadow-sm)!important}
.org-section-heading{margin:0 0 12px!important}
.org-section-heading h2{display:block!important}
.org-related-section>.table-wrap{width:100%!important;box-shadow:none!important}
.org-section-actions{display:flex!important;justify-content:flex-start!important;align-items:center!important;margin-top:14px!important}
.org-related-link{justify-content:center!important}
.org-related-count,.org-section-count{display:none!important}
@media(max-width:700px){
 .org-related-section{padding:14px!important}
 .org-detail-toolbar{align-items:flex-start!important;flex-wrap:wrap!important}
 .org-detail-toolbar>.tools{justify-content:flex-start!important}
}

/* Keep custom select controls aligned with the full-width record form field. */
#recordForm>.fields>label>.uniform-select{display:block!important;grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important}
#recordForm>.fields>label>.uniform-select>.uniform-select-trigger{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}


/* Autocomplete inputs fill the same field width as their shared dropdown wrapper. */
.uniform-combobox{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
.uniform-combobox-input{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}

/* Shared operational record workbench */
.record-workbench{display:grid;gap:18px;max-width:1180px;margin:0 auto;padding-bottom:32px}
.record-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.record-work-toolbar .tools{display:flex;gap:8px;flex-wrap:wrap}
.record-work-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border:1px solid var(--line,#dbe1eb);border-left:4px solid var(--accent,#1473e6);border-radius:14px;background:linear-gradient(110deg,#edf5ff 0%,#fff 58%);box-shadow:0 2px 8px rgba(16,38,75,.04)}
.record-work-title h1{margin:4px 0 8px}
.record-work-title .eyebrow{margin:0;color:var(--muted,#697586);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.record-work-title .sub{margin:0;color:var(--muted,#697586)}
.record-work-title .status-chip{flex:0 0 auto}
.record-work-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.record-work-summary>div{display:grid;gap:5px;min-width:0}
.record-work-summary span,.record-work-field dt{color:var(--muted,#697586);font-size:.82rem}
.record-work-summary strong{overflow-wrap:anywhere}
.record-work-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-top:3px solid #dcecff}
.record-work-actions h2,.record-work-card h2{margin:0 0 6px}
.record-work-actions p{margin:0;color:var(--muted,#697586)}
.record-work-action-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.record-work-action-row button{white-space:nowrap}
.record-work-card{min-width:0}
.record-work-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:12px 0 0}
.record-work-field,.record-work-fields>div{min-width:0;padding:12px 0;border-bottom:1px solid var(--line,#e6eaf0)}
.record-work-fields dt{font-weight:650}
.record-work-fields dd{margin:4px 0 0;overflow-wrap:anywhere}
.record-work-fields dd .link{margin-right:5px}
.record-work-notes{white-space:pre-wrap}
.record-work-reference{color:var(--muted,#697586);font-size:.9em}
.record-work-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e9f2ff;color:#1559a6;font-size:.78rem;vertical-align:middle}
.record-work-card .table-wrap{max-width:100%;overflow:auto}
.record-work-card table{min-width:680px}
.record-work-history{display:grid;gap:0;padding:0;margin:10px 0 0;list-style:none}
.record-work-history li{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line,#e6eaf0)}
.record-work-history li span{color:var(--muted,#697586);text-align:right}
@media(max-width:720px){
 .record-workbench{gap:14px}
 .record-work-title{padding:16px;flex-direction:column}
 .record-work-summary{grid-template-columns:1fr}
 .record-work-fields{grid-template-columns:1fr}
 .record-work-actions{align-items:flex-start}
 .record-work-action-row{justify-content:flex-start}
 .record-work-history li{flex-direction:column;gap:3px}
 .record-work-history li span{text-align:left}
}

/* Keep the delivery checklist controls compact and aligned with their heading. */
.delivery-checklist-heading.bar{
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 flex-wrap:wrap!important;
 gap:12px!important;
 width:100%!important;
 margin:28px 0 12px!important;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
.delivery-checklist-heading.bar>h2{margin:0!important;min-width:0}
.delivery-checklist-heading.bar>.tools{
 display:flex!important;
 align-items:center!important;
 justify-content:flex-end!important;
 flex:0 0 auto!important;
 width:auto!important;
 min-width:0!important;
 margin:0!important;
 gap:8px!important;
 flex-wrap:wrap!important;
}
@media(max-width:560px){
 .delivery-checklist-heading.bar{align-items:flex-start!important}
 .delivery-checklist-heading.bar>.tools{width:100%!important;justify-content:flex-start!important}
}
.bar.delivery-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 18px!important;flex-wrap:wrap!important}.bar.delivery-toolbar>.tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;gap:8px!important;flex-wrap:wrap!important}.delivery-project-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:4px 0 20px;padding:18px 22px;border:1px solid #d7e5f7;border-left:4px solid #1773d1;border-radius:14px;background:linear-gradient(110deg,#edf5ff 0%,#fff 66%);box-shadow:0 3px 12px rgba(27,64,108,.05)}.delivery-project-heading .eyebrow{margin:0 0 4px;color:#60738d;font-size:.76rem;font-weight:750;letter-spacing:.07em}.delivery-project-heading h1{margin:0 0 7px}.delivery-project-heading .sub{margin:0;color:#64748b}.delivery-project-heading .sub .link{font-weight:650}.delivery-project-heading .sub span{margin-left:5px}.delivery-project-heading>.status-chip{flex:0 0 auto;padding:7px 12px;border-radius:999px;background:#e6f1ff;color:#1559a6;font-weight:700}.delivery-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:hidden}.delivery-summary>div{min-width:0}.delivery-summary>div+div{border-left:1px solid #e6eaf0}.delivery-summary .delivery-progress-card{display:grid;grid-template-columns:1fr auto;gap:7px 12px}.delivery-progress-card>span{grid-column:1/-1}.delivery-progress-card strong{grid-column:1;grid-row:2}.delivery-progress-card .delivery-progress{grid-column:1/-1}.delivery-progress-card small{grid-column:2;grid-row:2;color:#68778d;text-align:right;align-self:center}.delivery-progress{height:7px;overflow:hidden;border-radius:99px;background:#e7edf5}.delivery-progress>span{display:block;height:100%;border-radius:inherit;background:#159875;transition:width .2s ease}.delivery-owner{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:14px 0 24px!important;padding:13px 16px!important;border:1px solid #dbe7f5!important;border-radius:10px!important;background:#f4f8fd!important}.delivery-owner strong{color:#24466f}.delivery-owner span{margin-left:auto}.delivery-owner.is-attention{border-color:#f1d9a7!important;background:#fff8e8!important}.delivery-owner.is-attention strong{color:#895b00}.delivery-owner.is-on-track{border-color:#cde8db!important;background:#f0faf5!important}.delivery-owner.is-on-track strong{color:#176c4e}.delivery-owner button{flex:0 0 auto}.delivery-checklist-heading.bar{margin-top:28px!important}@media(max-width:760px){.delivery-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.delivery-summary>div:nth-child(3){border-left:0;border-top:1px solid #e6eaf0}.delivery-summary>div:nth-child(4){border-top:1px solid #e6eaf0}.delivery-owner{align-items:flex-start!important;flex-wrap:wrap}.delivery-owner span{width:100%;margin-left:0}}@media(max-width:520px){.delivery-project-heading{padding:15px;flex-direction:column}.bar.delivery-toolbar{align-items:flex-start!important}.bar.delivery-toolbar>.tools{width:100%!important;justify-content:flex-start!important}.delivery-summary{grid-template-columns:1fr!important}.delivery-summary>div+div{border-top:1px solid #e6eaf0;border-left:0}}@media(prefers-reduced-motion:reduce){.delivery-progress>span{transition:none}}.delivery-detail-card{margin:24px 0!important;min-width:0}.delivery-detail-card>h2{margin:0 0 12px!important}.delivery-detail-card>p{margin:0;color:#526176;line-height:1.65}.delivery-detail-card .table-wrap{margin:0!important}.delivery-detail-card table{width:100%}.record-work-next-step{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:3px solid #dcecff}.record-work-next-step .eyebrow{margin:0 0 4px;color:#60738d;font-size:.76rem;font-weight:750;letter-spacing:.07em}.record-work-next-step h2{margin:0 0 5px!important}.record-work-next-step p{margin:0;color:#64748b}.record-work-next-step>button{flex:0 0 auto}.record-work-card .help{margin:8px 0 0}.record-work-card table{min-width:620px}@media(max-width:560px){.record-work-next-step{align-items:flex-start;flex-direction:column}.record-work-next-step>button{width:100%}}.opportunity-action-cell{display:flex;align-items:flex-start;flex-direction:column;gap:3px;min-width:120px}.opportunity-next-action{padding:0!important;text-align:left!important;white-space:normal!important}.opportunity-action-overdue{color:#9a3412;font-size:.75rem;font-weight:700}.record-work-next-step{order:0}.opportunity-next-action:hover{text-decoration:underline}
.task-status-badge{
 display:inline-flex;
 align-items:center;
 width:max-content;
 max-width:100%;
 padding:4px 9px;
 border-radius:999px;
 font-size:.78rem;
 line-height:1.25;
 font-weight:700;
 white-space:nowrap;
}
.record-work-status.task-state-open,.task-status-badge.task-state-open{background:#e8f1ff!important;color:#1559a6!important}
.record-work-status.task-state-progress,.task-status-badge.task-state-progress{background:#fff2d6!important;color:#8a5700!important}
.record-work-status.task-state-blocked,.task-status-badge.task-state-blocked{background:#fde8e7!important;color:#a12622!important}
.record-work-status.task-state-completed,.task-status-badge.task-state-completed{background:#dcf5e9!important;color:#116b49!important}
.record-work-status.task-state-cancelled,.task-status-badge.task-state-cancelled{background:#edf0f4!important;color:#566273!important}
.record-work-summary .task-status-badge{font-size:.82rem}
.record-task-completion{display:grid;grid-template-columns:minmax(150px,.38fr) minmax(0,1fr);gap:10px 20px;margin:0 0 16px;padding:14px 16px;border:1px solid #cde8db;border-radius:10px;background:#f0faf5}
.record-task-completion>div{display:grid;align-content:start;gap:5px;min-width:0}
.record-task-completion span{color:#536b60;font-size:.8rem;font-weight:650}
.record-task-completion strong{color:#176c4e}
.record-task-completion p{margin:0;color:#304b3f;white-space:pre-wrap;overflow-wrap:anywhere}
input[name="completedDate"][readonly]{background:#f3f6f8!important;color:#506174!important;cursor:default}
@media(max-width:560px){.record-task-completion{grid-template-columns:1fr}}


/* Keep focused task steps focused and make the scrollable sidebar visibly discoverable. */
#recordForm.task-focused-work>.fields{grid-template-columns:minmax(0,1fr)!important}
#recordForm.task-focused-work>.fields>label[hidden]{display:none!important}
@media(min-width:851px){
  #nav{scrollbar-width:thin!important;scrollbar-color:#aeb6c7 #edf0f5!important}
  #nav::-webkit-scrollbar{width:7px}
  #nav::-webkit-scrollbar-track{background:#edf0f5}
  #nav::-webkit-scrollbar-thumb{background:#aeb6c7;border-radius:99px}
  #nav .nav-group+.nav-group{margin-top:6px!important}
  #nav .nav-group-toggle{min-height:32px!important;padding-block:4px!important}
  #nav .nav-group-items button{min-height:29px!important;padding-block:4px!important;margin:0!important}
}


/* Task detail banner: combine status, ownership, key dates, notes, and actions. */
.task-record-banner{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;padding:20px 22px!important}
.task-banner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.task-banner-head h1{margin:4px 0 0!important}
.task-priority-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:28px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}
.task-priority-low{background:#edf1f6;color:#536277}
.task-priority-normal{background:#e0f5f2;color:#087f70}
.task-priority-high{background:#fff1cc;color:#8b5a00}
.task-priority-critical{background:#fde5e7;color:#b42332}
.task-priority-neutral{background:#edf1f6;color:#536277}
.task-banner-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 22px;margin:0}
.task-banner-details>div{min-width:0}
.task-banner-details dt{color:var(--muted,#697586);font-size:.82rem;font-weight:650}
.task-banner-details dd{margin:4px 0 0;overflow-wrap:anywhere}
.task-banner-notes,.task-banner-evidence{grid-column:1/-1}
.task-banner-notes dd,.task-banner-evidence dd{white-space:pre-wrap}
.task-banner-actions{justify-content:flex-start;border-top:1px solid var(--line,#dbe1eb);padding-top:14px}
@media(max-width:720px){
 .task-record-banner{padding:16px!important}
 .task-banner-head{align-items:flex-start;flex-direction:column}
 .task-banner-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .task-banner-notes,.task-banner-evidence{grid-column:1/-1}
 .task-banner-actions{justify-content:flex-start}
}


/* Keep client portal account actions compact beside each account. */
.admin-page #clientAccounts .user{grid-template-columns:minmax(0,1fr) auto!important;gap:18px!important}
.admin-page #clientAccounts .account-actions{width:max-content;max-width:100%;justify-self:end}
.admin-page #clientAccounts .account-actions summary{width:140px;min-width:140px}
@media(max-width:560px){.admin-page #clientAccounts .user{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.admin-page #clientAccounts .user>span{grid-column:1}.admin-page #clientAccounts .account-actions{width:100%;justify-self:stretch}.admin-page #clientAccounts .account-actions summary{width:100%;min-width:0}}


/* Keep the client account action menu inside its card and viewport. */
.admin-page #clientAccounts .account-action-menu{top:auto;bottom:calc(100% + 6px);right:0;z-index:12}


/* Unified project workspace views */
.project-workspace{padding:22px;min-width:0}
.project-workspace-heading{align-items:center;gap:18px;margin:0}
.project-workspace-heading h2{margin:0}
.project-workspace-heading p{margin:5px 0 0;color:var(--muted,#66738a)}
.project-view-switch{display:inline-flex;align-items:center;gap:4px;margin-top:18px;padding:4px;border:1px solid var(--line,#d8dfeb);border-radius:10px;background:#f2f5fa}
.project-view-switch button{min-height:38px;padding:7px 16px;border:0;border-radius:7px;background:transparent;color:#53627a;font:inherit;font-weight:650;cursor:pointer}
.project-view-switch button[aria-pressed=true]{background:#fff;color:#075fbd;box-shadow:0 1px 4px rgba(16,32,64,.12)}
.project-view-switch button:focus-visible,.project-task-view button:focus-visible,.project-task-view select:focus-visible,.project-task-view input:focus-visible{outline:3px solid rgba(0,115,209,.25);outline-offset:2px}
.project-task-view{margin-top:18px;min-width:0}
.project-task-view .table-wrap{max-height:none}
.project-empty{display:flex;flex-direction:column;gap:7px;padding:24px;border:1px dashed #cbd5e3;border-radius:12px;background:#f8faff;color:#5d6d84}
.project-empty strong{color:#17243b}
.project-empty span,.project-view-hint{color:#69788f}
.project-view-hint{margin:12px 0 0;font-size:.88rem}
.project-task-view table{min-width:1089px;table-layout:fixed}
.project-task-view th:nth-child(1),.project-task-view td:nth-child(1){width:64px;text-align:center}
.project-task-view th:nth-child(2),.project-task-view td:nth-child(2){width:240px}
.project-task-view th:nth-child(3),.project-task-view td:nth-child(3){width:65px}
.project-task-view th:nth-child(4),.project-task-view td:nth-child(4){width:110px}
.project-task-view th:nth-child(5),.project-task-view td:nth-child(5){width:85px}
.project-task-view th:nth-child(6),.project-task-view td:nth-child(6){width:90px;text-align:center}
.project-task-view th:nth-child(7),.project-task-view td:nth-child(7){width:110px}
.project-task-view th:nth-child(8),.project-task-view td:nth-child(8),.project-task-view th:nth-child(9),.project-task-view td:nth-child(9){width:85px}
.project-task-view th:nth-child(10),.project-task-view td:nth-child(10){width:155px}
.project-task-view td:nth-child(2) .link{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.35}
.project-task-status{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:5px}
.project-task-status .status-chip{white-space:nowrap}
.project-kanban-column>header h3 .status-chip{min-height:26px}
.project-card-meta{flex-wrap:wrap}

.priority-chip{display:inline-flex;padding:4px 8px;border-radius:99px;background:#edf1f6;color:#526078;font-size:.74rem;font-weight:750;white-space:nowrap}
.priority-low{background:#edf1f6;color:#536277}
.priority-normal{background:#e0f5f2;color:#087f70}
.priority-high{background:#fff1cc;color:#8b5a00}
.priority-critical{background:#fde5e7;color:#b42332}
.project-kanban{display:grid;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:14px;overflow:auto;padding:2px 2px 12px;align-items:start}
.project-kanban-column{min-width:0;padding:12px;border:1px solid #dbe2ed;border-radius:12px;background:#f4f7fb;transition:background .15s,border-color .15s}
.project-kanban-column.is-drop-target{border-color:#0b74de;background:#eaf3ff}
.project-kanban-column>header{position:static;display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;padding:0;background:none}
.project-kanban-column h3{margin:0;font-size:.96rem}
.project-kanban-column>header span{min-width:26px;padding:3px 7px;border-radius:99px;background:#e6ebf3;text-align:center;font-size:.78rem;font-weight:700}
.project-kanban-cards{display:grid;gap:10px;min-height:54px}
.project-task-card{display:grid;gap:8px;padding:12px;border:1px solid #dce3ed;border-radius:10px;background:#fff;box-shadow:0 2px 7px rgba(24,43,76,.05)}
.project-task-card[draggable=true]{cursor:grab}
.project-task-card.is-dragging{opacity:.5}
.project-card-meta,.project-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#69788f;font-size:.77rem}
.project-card-title{padding:0;border:0;background:transparent;color:#075fbd;text-align:left;font:inherit;font-weight:750;line-height:1.35;cursor:pointer}
.project-task-card>p{margin:0;color:#607089;font-size:.84rem}
.project-card-footer time{font-variant-numeric:tabular-nums}
.project-card-move{display:flex;align-items:center;gap:8px;margin-top:2px;color:#63728a;font-size:.8rem}
.project-card-move select{min-width:0;max-width:150px;padding:5px 8px;border:1px solid #d3dce9;border-radius:6px;background:#fff;color:#26364e}
.project-kanban-empty{margin:0;padding:12px;color:#748197;font-size:.82rem}
.project-calendar-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.project-calendar-toolbar h3{flex:1;margin:0;text-align:center;font-size:1.02rem}
.project-calendar-toolbar button{min-width:38px;min-height:36px;border:1px solid #d7dfeb;border-radius:7px;background:white;color:#40516a;font:inherit;cursor:pointer}
.project-calendar{overflow:auto;border:1px solid #dbe2ed;border-radius:10px;background:#fff}
.project-calendar-weekdays,.project-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(104px,1fr))}
.project-calendar-weekdays{background:#f4f7fb}
.project-calendar-weekdays span{padding:9px 10px;color:#63728a;font-size:.78rem;font-weight:700}
.project-calendar-day{min-height:118px;padding:7px;border-top:1px solid #e4e9f1;border-right:1px solid #e4e9f1}
.project-calendar-day:nth-child(7n){border-right:0}
.project-calendar-day.is-outside{background:#f8f9fb;color:#9aa5b5}
.project-calendar-day>time{display:inline-block;margin:0 0 7px;font-size:.8rem;font-weight:700}
.project-calendar-day>div{display:grid;gap:5px}
.project-calendar-task{display:grid;width:100%;gap:2px;padding:6px 7px;border:0;border-left:3px solid #3184d6;border-radius:5px;background:#edf5ff;color:#234060;text-align:left;font:inherit;cursor:pointer}
.project-calendar-task.status-in-progress{border-color:#d19a20;background:#fff6df}
.project-calendar-task.status-blocked{border-color:#c53d46;background:#fff0f0}
.project-calendar-task.status-completed{border-color:#218663;background:#e8f7f0}
.project-calendar-task span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-weight:700}
.project-calendar-task small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem}
.project-calendar-task[draggable=true]{cursor:grab}
.project-gantt-scroll{overflow:auto;border:1px solid #dbe2ed;border-radius:10px;background:white}
.project-gantt{min-width:max-content}
.project-gantt-head,.project-gantt-row{display:grid;grid-template-columns:minmax(250px,290px) minmax(calc(var(--gantt-days)*18px),1fr)}
.project-gantt-head{position:sticky;top:0;z-index:2;background:#f3f6fa}
.project-gantt-label{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:10px 12px;border-right:1px solid #e1e7f0}
.project-gantt-label>button{padding:0;border:0;background:transparent;color:#075fbd;text-align:left;font:inherit;font-weight:700;cursor:pointer}
.project-gantt-label small{color:#68778e}
.project-gantt-axis,.project-gantt-track{display:grid;grid-template-columns:repeat(var(--gantt-days),minmax(18px,1fr));position:relative;min-width:calc(var(--gantt-days)*18px)}
.project-gantt-axis{min-height:38px}
.project-gantt-axis>span{grid-row:1;align-self:center;z-index:1;padding-left:5px;border-left:1px solid #dce3ed;color:#5c6b82;font-size:.7rem;white-space:nowrap}
.project-gantt-row{min-height:78px;border-top:1px solid #e8edf3}
.project-gantt-track{align-items:center;background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--gantt-days) - 1px),#edf0f5 calc(100% / var(--gantt-days) - 1px),#edf0f5 calc(100% / var(--gantt-days)))}
.project-gantt-bar{grid-row:1;height:18px;align-self:center;margin:0 2px;border-radius:99px;background:linear-gradient(90deg,#54a3e8 calc(var(--task-progress,0%)),#d9eafb calc(var(--task-progress,0%)));box-shadow:inset 0 0 0 1px #4b98db}
.project-gantt-bar.status-blocked{background:#f2a9ad;box-shadow:inset 0 0 0 1px #c54049}
.project-gantt-bar.status-completed{background:#8dd4b5;box-shadow:inset 0 0 0 1px #288260}
.project-gantt-bar.is-milestone{width:16px;height:16px;justify-self:center;margin:0;transform:rotate(45deg);border-radius:3px}
.project-gantt-dates{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.project-gantt-dates label{display:grid;gap:2px;color:#69788f;font-size:.66rem;font-weight:650}
.project-gantt-dates input{width:118px;height:28px;padding:3px 5px;border:1px solid #d5deea;border-radius:5px;color:#34445d;font:inherit;font-size:.72rem}
.project-workspace .project-task-order{min-width:64px;justify-content:center}
.project-workspace .project-task-order button{min-width:44px}
@media(max-width:900px){.project-workspace{padding:16px}.project-calendar-weekdays,.project-calendar-days{grid-template-columns:repeat(7,minmax(90px,1fr))}.project-calendar-day{min-height:102px}}
@media(max-width:600px){.project-workspace-heading{align-items:flex-start;flex-direction:column}.project-workspace-heading>.primary{width:100%}.project-view-switch{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.project-view-switch button{min-width:0;padding:7px 4px;font-size:.82rem}.project-kanban{grid-auto-columns:minmax(82vw,1fr)}.project-calendar-weekdays,.project-calendar-days{grid-template-columns:repeat(7,minmax(78px,1fr))}.project-calendar-day{min-height:94px;padding:5px}.project-calendar-task span{font-size:.68rem}.project-gantt-head,.project-gantt-row{grid-template-columns:minmax(210px,230px) minmax(calc(var(--gantt-days)*16px),1fr)}.project-gantt-axis,.project-gantt-track{grid-template-columns:repeat(var(--gantt-days),minmax(16px,1fr));min-width:calc(var(--gantt-days)*16px)}}

.project-workspace-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important}
.project-workspace-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-left:auto;flex:0 0 auto}
.project-plan-dialog{width:min(1120px,calc(100% - 32px));height:min(90dvh,920px);max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d7deeb;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.22);overflow:hidden}
.project-plan-dialog::backdrop{background:rgba(24,35,58,.42)}
.project-plan-dialog form{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:12px;height:100%;min-height:0;max-height:none;margin:0;padding:0;border:0;background:transparent}
.project-plan-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:4px}
.project-plan-header h2{margin:6px 0!important;font-size:25px}
.project-plan-header p{margin:0;color:#66738a;line-height:1.5}
.project-plan-summary{display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid #dbe4f2;border-radius:10px;background:#f5f8fd;color:#65738a}
.project-plan-summary strong{color:#1c3559;white-space:nowrap}
.project-plan-rows{display:grid;align-content:start;gap:12px;overflow:auto;min-height:0;padding:2px 4px 4px 2px}
.project-plan-row{padding:14px;border:1px solid #dce2ed;border-radius:12px;background:#fff;transition:border-color .15s,background .15s,opacity .15s}.project-plan-row.is-dragging{opacity:.55}.project-plan-row.is-drop-target{border-color:#0073ea;background:#f4f8ff}.project-plan-drag-handle,.project-task-drag-handle{cursor:grab;touch-action:none;font-size:19px;line-height:1;color:#52637d}.project-plan-drag-handle:active,.project-task-drag-handle:active{cursor:grabbing}.project-task-order{display:flex;align-items:center;gap:7px}.project-task-order-number{min-width:1.4em;text-align:center;color:#66738a}.project-task-drag-handle{min-width:30px!important;min-height:30px!important;padding:2px!important;border:1px solid #d7deeb!important;border-radius:7px!important;background:#fff!important}.project-task-view tbody tr.is-dragging{opacity:.45}.project-task-view tbody tr.is-drop-target{outline:2px solid #0073ea;outline-offset:-2px;background:#f4f8ff}
.project-plan-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.project-plan-row-heading>strong{color:#33435b}
.project-plan-row-controls{display:flex;align-items:center;gap:6px}
.project-plan-row-controls button{min-width:34px;min-height:32px;padding:4px 9px}
.project-plan-row-controls .project-plan-remove{color:#a43b4b}
.project-plan-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.project-plan-fields label{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:650}
.project-plan-fields input,.project-plan-fields select{width:100%;min-width:0}
.project-plan-fields .plan-field-name{grid-column:span 2}
.project-plan-fields .plan-field-dependency{grid-column:span 2}
.project-plan-footer{display:flex;align-items:center;gap:9px;padding-top:12px;border-top:1px solid #e4e8ef}
.project-plan-spacer{flex:1}
.project-plan-note{margin:0;color:#66738a;font-size:13px}
.project-plan-error{min-height:0;margin:0;color:#b42336}
.project-plan-error:empty{display:none}
.project-plan-dialog button:focus-visible,.project-plan-dialog input:focus-visible,.project-plan-dialog select:focus-visible{outline:3px solid rgba(0,115,209,.25);outline-offset:2px}
@media(max-width:760px){.project-plan-dialog{padding:18px}.project-plan-dialog form{grid-template-rows:auto auto minmax(0,1fr) auto auto auto}.project-plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:span 2}.project-plan-summary{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:560px){.project-workspace-actions{width:100%;margin:4px 0 0;justify-content:flex-start}.project-plan-header h2{font-size:21px}.project-plan-fields{grid-template-columns:1fr}.project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:auto}.project-plan-footer{flex-wrap:wrap}.project-plan-spacer{flex-basis:100%;height:0}.project-plan-footer button{flex:1}}

/* Kanban polish: clear status lanes and compact, readable task cards. */
#main .project-kanban{grid-auto-columns:minmax(250px,1fr);gap:16px;align-items:stretch;padding:4px 3px 14px;scroll-snap-type:x proximity}
#main .project-kanban-column{padding:12px;border:1px solid #e0e6ef;border-top:3px solid #aab6c7;border-radius:12px;background:#f7f9fc;scroll-snap-align:start}
#main .project-kanban-column[data-kanban-lane="Open"]{border-top-color:#2780d8}
#main .project-kanban-column[data-kanban-lane="In Progress"]{border-top-color:#d69b18}
#main .project-kanban-column[data-kanban-lane="Blocked"]{border-top-color:#c54149}
#main .project-kanban-column[data-kanban-lane="Completed"]{border-top-color:#218663}
#main .project-kanban-column[data-kanban-lane="Cancelled"]{border-top-color:#8b91a0}
#main .project-kanban-column>header{min-height:40px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e2e8f0}
#main .project-kanban-column>header h3{margin:0!important}
#main .project-kanban-column>header .project-kanban-count{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border:1px solid #dce3ed;border-radius:999px;background:#fff;color:#52627b;font-size:12px;font-weight:700}
#main .project-kanban-cards{gap:10px;align-content:start}
#main .project-task-card{gap:10px;padding:14px;border:1px solid #e0e6ef;border-radius:11px;background:#fff;box-shadow:0 2px 7px rgba(20,40,70,.045);transition:border-color .15s,box-shadow .15s,transform .15s}
#main .project-task-card:hover{border-color:#c8d5e5;box-shadow:0 5px 15px rgba(20,40,70,.08)}
#main .project-task-card[draggable=true]{cursor:grab}
#main .project-task-card.is-dragging{opacity:.48;transform:rotate(1deg)}
#main .project-task-card.is-drop-target{outline:2px solid #0877ea;outline-offset:1px}
#main .project-task-card .project-card-title{display:block!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#15375e!important;text-align:left!important;font-size:14px!important;font-weight:750!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;cursor:pointer!important}
#main .project-task-card .project-card-title:hover{background:transparent!important;color:#075fbd!important;text-decoration:underline}
#main .project-card-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#main .project-card-type{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid #e3e9f1;border-radius:999px;background:#f7f9fc;color:#5d6c80;font-size:11px;font-weight:650}
#main .project-card-phase{margin:0!important;color:#65758b!important;font-size:12px!important;font-weight:550!important}
#main .project-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid #edf0f5;color:#586980;font-size:12px}
#main .project-card-owner{min-width:0;overflow-wrap:anywhere;font-weight:600}
#main .project-card-due{display:grid;gap:1px;flex:none;text-align:right}
#main .project-card-due small{color:#8190a4;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
#main .project-card-due time{color:#334760;font-size:11px;font-variant-numeric:tabular-nums}
#main .project-task-card .project-card-move{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0!important;padding-top:9px;border-top:1px solid #edf0f5;color:#66758a!important;font-size:11px!important;font-weight:650!important}
#main .project-task-card .project-card-move select{width:100%!important;max-width:none!important;min-width:0!important;min-height:36px!important;margin:0!important;padding:6px 9px!important;font-size:12px!important}
#main .project-kanban-empty{margin:0;padding:14px 10px;border:1px dashed #d7e0eb;border-radius:9px;color:#77869a;font-size:12px;text-align:center}
@media(max-width:760px){#main .project-kanban{grid-auto-columns:minmax(82vw,1fr);gap:12px;scroll-padding-inline:4px}#main .project-task-card{padding:12px}}

/* Project planning views: usable month controls, visible status colors, and a readable Gantt. */
#main .project-calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0 0 12px}
#main .project-calendar-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#main .project-calendar-nav h3{flex:1 1 170px;margin:0!important;color:#182b45!important;text-align:center;font-size:17px!important}
#main .project-calendar-nav>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:40px!important;min-height:38px!important;margin:0!important;padding:7px 12px!important;border:1px solid #d5deea!important;border-radius:8px!important;background:#fff!important;color:#24364f!important;font:inherit!important;font-size:13px!important;cursor:pointer!important}
#main .project-calendar-nav>button:hover:not(:disabled){border-color:#8eb9e8!important;background:#f4f8ff!important}
#main .project-calendar-nav>button:disabled{opacity:.55!important;cursor:not-allowed!important}
#main .project-calendar-nav .project-calendar-jump{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;color:#64748b!important;font-size:12px!important}
#main .project-calendar-nav .project-calendar-jump input{width:150px!important;min-width:0!important;min-height:38px!important;margin:0!important;padding:6px 9px!important;border:1px solid #d5deea!important;border-radius:8px!important;background:#fff!important;color:#24364f!important;font:inherit!important}
#main .project-status-legend{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
#main .project-status-legend>span{display:inline-flex;align-items:center;gap:6px;color:#64748b;font-size:11px;font-weight:650}
#main .project-status-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#3984d8}
#main .project-status-legend i.status-in-progress{background:#d69b18}
#main .project-status-legend i.status-blocked{background:#c54149}
#main .project-status-legend i.status-completed{background:#218663}
#main .project-status-legend i.status-cancelled{background:#8b91a0}
#main .project-status-legend i.is-overdue{background:#d92d3a}
#main .project-calendar{overflow:auto;border-color:#d8e1ed!important;border-radius:12px!important;background:#fff!important}
#main .project-calendar-weekdays,#main .project-calendar-days{min-width:760px}
#main .project-calendar-weekdays{background:#f3f6fa!important}
#main .project-calendar-weekdays span{padding:10px 12px!important;color:#52647d!important;font-size:12px!important;text-align:left}
#main .project-calendar-day{min-height:132px!important;padding:8px!important;border-color:#e7ecf3!important;background:#fff!important;transition:background .14s,outline-color .14s}
#main .project-calendar-day.is-weekend{background:#fbfcfe!important}
#main .project-calendar-day.is-outside{background:#f6f8fb!important;color:#9aa6b6!important}
#main .project-calendar-day.is-today{background:#f3f8ff!important;box-shadow:inset 0 0 0 1px #8bbcf0}
#main .project-calendar-day.is-drop-target{background:#eaf4ff!important;outline:2px solid #1681e8;outline-offset:-2px}
#main .project-calendar-day-head{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:27px;margin:0 0 7px}
#main .project-calendar-day-head>time{margin:0!important;color:#34465f!important;font-size:12px!important;font-weight:750!important}
#main .project-calendar-day-head>time button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:inherit!important;font:inherit!important;cursor:pointer!important}
#main .project-calendar-day-head>time button:hover{background:#dcecff!important;color:#075fbd!important}
#main .project-calendar-day.is-today .project-calendar-day-head>time button{background:#0877ea!important;color:#fff!important}
#main .project-calendar-day-head>span{padding:3px 6px;border-radius:999px;background:#e5f1ff;color:#075fbd;font-size:10px;font-weight:700}
#main .project-calendar-day>div:last-child{display:grid;align-content:start;gap:5px}
#main .project-calendar-task{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;width:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:6px 7px!important;border:1px solid #d9e8f7!important;border-left:3px solid #3984d8!important;border-radius:6px!important;background:#eff6ff!important;color:#27415f!important;text-align:left!important;font:inherit!important;cursor:pointer!important}
#main .project-calendar-task.status-in-progress{border-color:#f1dfb3!important;border-left-color:#d69b18!important;background:#fff8e8!important}
#main .project-calendar-task.status-blocked{border-color:#f0c6c9!important;border-left-color:#c54149!important;background:#fff1f2!important}
#main .project-calendar-task.status-completed{border-color:#c5e7d9!important;border-left-color:#218663!important;background:#effaf5!important}
#main .project-calendar-task.status-cancelled{border-color:#d9dde4!important;border-left-color:#8b91a0!important;background:#f5f6f8!important;color:#6a7280!important}
#main .project-calendar-task.is-overdue{border-color:#efb8bd!important;border-left-color:#d92d3a!important;background:#fff0f1!important}
#main .project-calendar-task span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700}
#main .project-calendar-task small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7c93;font-size:10px}
#main .project-calendar-task b{color:#c21f31;font-size:9px;text-transform:uppercase;letter-spacing:.03em}
#main .project-calendar-task[draggable=true]{cursor:grab}
#main .project-calendar-task:hover{box-shadow:0 2px 7px rgba(26,58,94,.12)}
#main .project-gantt-wrap{display:grid;gap:10px}
#main .project-gantt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#main .project-gantt-toolbar p{margin:0!important;color:#66758a!important;font-size:12px!important}
#main .project-gantt-toolbar button{width:auto!important;min-height:36px!important;margin:0!important;padding:6px 12px!important;border:1px solid #d5deea!important;border-radius:8px!important;background:#fff!important;color:#24364f!important;font:inherit!important;font-size:13px!important;cursor:pointer!important}
#main .project-gantt-toolbar button:hover{border-color:#8eb9e8!important;background:#f4f8ff!important}
#main .project-gantt-scroll{max-height:70vh;border-color:#d8e1ed!important;border-radius:12px!important}
#main .project-gantt{position:relative;min-width:max-content;background:#fff}
#main .project-gantt-head{min-height:44px;background:#f3f6fa!important}
#main .project-gantt-row{min-height:100px!important}
#main .project-gantt-label{width:290px;min-width:290px;padding:10px 12px!important;gap:7px!important;background:#fff}
#main .project-gantt-label>button{display:block!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#075fbd!important;text-align:left!important;font:inherit!important;font-size:13px!important;font-weight:750!important;line-height:1.35!important;white-space:normal!important;cursor:pointer!important}
#main .project-gantt-label>button:hover{text-decoration:underline!important}
#main .project-gantt-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#main .project-gantt-meta small{color:#68778e!important;font-size:11px!important}
#main .project-gantt-status{padding:3px 7px;border-radius:999px;background:#e7f1ff;color:#075fbd;font-size:10px;font-weight:750}
#main .project-gantt-status.status-in-progress{background:#fff3d2;color:#8a5a00}
#main .project-gantt-status.status-blocked{background:#fde4e6;color:#ae2430}
#main .project-gantt-status.status-completed{background:#dff4eb;color:#147552}
#main .project-gantt-status.status-cancelled{background:#eceef1;color:#687180}
#main .project-gantt-status.is-overdue{background:#fde4e6;color:#b42332}
#main .project-gantt-dates{display:flex!important;align-items:flex-end!important;gap:8px!important;flex-wrap:wrap!important;margin:2px 0 0!important}
#main .project-gantt-dates label{display:grid!important;gap:3px!important;width:auto!important;margin:0!important;color:#69788d!important;font-size:10px!important;font-weight:700!important}
#main .project-gantt-dates input{width:128px!important;min-width:0!important;min-height:34px!important;margin:0!important;padding:5px 7px!important;border:1px solid #d8e1ed!important;border-radius:7px!important;background:#fff!important;color:#26364e!important;font:inherit!important;font-size:11px!important}
#main .project-gantt-axis{min-height:44px!important;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--gantt-days) - 1px),#e9edf3 calc(100% / var(--gantt-days) - 1px),#e9edf3 calc(100% / var(--gantt-days)))}
#main .project-gantt-axis>span{font-size:11px!important;font-weight:700!important}
#main .project-gantt-track{min-height:100px!important;overflow:hidden}
#main .project-gantt-track:after{position:absolute;z-index:1;top:0;bottom:0;left:var(--gantt-today,-100%);width:2px;background:#1681e8;content:"";pointer-events:none;opacity:.7}
#main .project-gantt-bar{position:relative;z-index:2;height:20px!important;min-height:20px!important;border:0!important;border-radius:999px!important;background:#dcecff!important;box-shadow:inset 0 0 0 1px #3984d8!important;cursor:grab!important}
#main .project-gantt-bar.status-in-progress{background:#ffedbd!important;box-shadow:inset 0 0 0 1px #d69b18!important}
#main .project-gantt-bar.status-blocked{background:#f8d5d8!important;box-shadow:inset 0 0 0 1px #c54149!important}
#main .project-gantt-bar.status-completed{background:#ccebdc!important;box-shadow:inset 0 0 0 1px #218663!important}
#main .project-gantt-bar.status-cancelled{background:#e4e7eb!important;box-shadow:inset 0 0 0 1px #8b91a0!important}
#main .project-gantt-bar.is-overdue{background:#ffd9dc!important;box-shadow:inset 0 0 0 1px #d92d3a!important}
#main .project-gantt-bar.is-dragging{opacity:.55;cursor:grabbing!important}
#main .project-gantt-track.is-drop-target{background-color:#eef6ff;outline:2px solid #1681e8;outline-offset:-2px}
#main .project-gantt-bar.is-milestone{width:16px!important;height:16px!important;min-height:16px!important;border-radius:3px!important;cursor:grab!important}
#main .project-view-hint{margin-top:10px!important;color:#66758a!important;font-size:12px!important}
@media(max-width:760px){#main .project-calendar-nav{gap:6px}#main .project-calendar-nav h3{order:-1;flex-basis:100%;text-align:left}#main .project-calendar-nav .project-calendar-jump{flex:1 1 100%}#main .project-calendar-nav .project-calendar-jump input{flex:1;width:auto!important}#main .project-calendar-day{min-height:112px!important}#main .project-gantt-label{width:238px;min-width:238px}#main .project-gantt-dates input{width:108px!important}}

/* Inbox: clearer scanning, stronger unread contrast and a responsive filter bar. */
#main .inbox-titlebar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:16px!important}
#main .inbox-titlebar>div{min-width:0}
#main .inbox-intro{margin:4px 0 0!important;color:#69788d!important;font-size:13px!important;line-height:1.45}
#main .inbox-title-actions{display:flex;align-items:center;gap:12px}
#main .inbox-unread-total{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 11px;border:1px solid #f1c7cb;border-radius:999px;background:#fff4f4;color:#a92332;font-size:12px;font-weight:750;white-space:nowrap}
#main .inbox-unread-total:before{width:8px;height:8px;border-radius:50%;background:#d92d3a;content:""}
#main .inbox-workspace{display:block!important;padding:clamp(14px,2vw,22px)!important;border:1px solid #dfe4ed!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 22px rgba(31,48,76,.06)!important}
#main .inbox-tools{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(155px,210px) minmax(170px,220px)!important;align-items:end!important;gap:12px!important;margin:0 0 18px!important}
#main .inbox-search-label,#main .inbox-queue-field,#main .inbox-department-field{display:grid!important;grid-column:auto!important;gap:6px!important;margin:0!important;color:#4d5c72!important;font-size:12px!important;font-weight:700!important}
#main .inbox-search-label input,#main .inbox-queue-field select,#main .inbox-department-field select{width:100%!important;min-height:44px!important;margin:0!important;border:1px solid #d5deea!important;border-radius:9px!important;background:#fff!important}
#main .inbox-result-count{margin:0 0 9px!important;color:#66758b!important;font-size:12px!important}
#main #inboxMessages{display:grid;gap:9px;min-width:0}
#main .inbox-row{min-width:0!important;margin:0!important;overflow:hidden!important;border:1px solid #e0e6ef!important;border-radius:12px!important;background:#fff!important;box-shadow:0 1px 3px rgba(28,44,68,.04)!important;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
#main .inbox-row:hover{border-color:#bdcfe2!important;box-shadow:0 4px 14px rgba(28,44,68,.07)!important}
#main .inbox-row[data-read="false"]{border-left:4px solid #0877ea!important;background:#f7fbff!important}
#main .inbox-row[data-read="false"] .inbox-message-summary{background:linear-gradient(90deg,#f3f8ff 0%,#fff 78%)}
#main .inbox-row .inbox-message{min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#main .inbox-row .inbox-message-summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;min-width:0!important;padding:15px 18px!important}
#main .inbox-row .inbox-summary-copy{min-width:0}
#main .inbox-row .inbox-summary-copy h2{margin:6px 0 4px!important;color:#26354a!important;font-size:15px!important;font-weight:650!important;line-height:1.35!important;overflow-wrap:anywhere}
#main .inbox-row[data-read="false"] .inbox-summary-copy h2{color:#142b48!important;font-weight:800!important}
#main .inbox-row .inbox-summary-copy p{color:#68778c!important;font-size:12px!important;line-height:1.45}
#main .inbox-row .inbox-summary-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;color:#55657c!important;font-size:11px!important;text-align:right!important}
#main .inbox-read-state{display:inline-flex;align-items:center;gap:6px;min-height:25px;padding:3px 8px;border-radius:999px;background:#edf1f5;color:#5e6b7d;font-size:10px;font-weight:750;white-space:nowrap}
#main .inbox-read-state.is-unread{background:#e8f2ff;color:#075fba}
#main .inbox-read-dot{width:7px;height:7px;border-radius:50%;background:#8e9bad}
#main .inbox-read-state.is-unread .inbox-read-dot{background:#0877ea;box-shadow:0 0 0 3px #0877ea20}
#main .inbox-summary-status{padding:4px 8px!important;border:1px solid #e1e6ee;background:#f4f6f9!important;color:#48566a!important;font-size:10px!important;white-space:nowrap}
#main .inbox-row[data-read="false"] .inbox-summary-status{border-color:#c9def5;background:#edf5ff!important;color:#075fba!important}
#main .inbox-row .inbox-summary-chevron{flex:0 0 20px;color:#667991}
#main .inbox-row-select{align-self:start!important;margin:16px 0 0!important}
#main .inbox-row-select input{width:17px!important;height:17px!important}
#main .inbox-read-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:8px 11px;border:1px solid #e4eaf2;border-radius:9px;background:#f8fafd}
#main .inbox-read-action-state{color:#586a80;font-size:12px;font-weight:700}
#main .inbox-read-action button{min-height:32px;padding:4px 11px;border:1px solid #cbd8e7;border-radius:8px;background:#fff;color:#075fba;font-size:12px;font-weight:700;cursor:pointer}
#main .inbox-read-action button:hover{border-color:#8fb9e4;background:#f1f7ff}
#main .inbox-message-detail{min-width:0!important}
@media(max-width:900px){#main .inbox-tools{grid-template-columns:minmax(0,1fr) minmax(150px,200px)!important}#main .inbox-search-label{grid-column:1/-1!important}}
@media(max-width:620px){#main .inbox-titlebar{align-items:flex-start!important}#main .inbox-title-actions{align-items:flex-end;flex-direction:column;gap:7px}#main .inbox-intro{max-width:40ch}#main .inbox-tools{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}#main .inbox-search-label,#main .inbox-queue-field,#main .inbox-department-field{grid-column:1/-1!important}#main .inbox-row .inbox-message-summary{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:13px 12px!important}#main .inbox-row .inbox-summary-meta{justify-content:flex-start!important;flex-wrap:wrap;text-align:left!important}#main .inbox-row-select{margin-top:14px!important}#main .inbox-row:has(>.inbox-row-select){grid-template-columns:32px minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){#main .inbox-row{transition:none!important}}

/* Shared workspace finish: consistent controls, content width and responsive spacing. */
#main{max-width:1640px!important;padding:clamp(24px,2.4vw,42px) clamp(18px,3vw,56px) 64px!important}
#main h1{margin-bottom:8px!important}
#main .sub{margin-bottom:20px!important;line-height:1.55!important}
#main h2{margin-top:26px!important;margin-bottom:12px!important}
#main button:not(.link){min-height:40px!important;padding:8px 14px!important;border-radius:8px!important;font-weight:600!important;transition:background-color 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease!important}
#main button:not(.link):hover:not(:disabled){box-shadow:0 2px 7px rgba(35,61,92,.10)!important}
#main button:not(.link):active:not(:disabled){transform:translateY(1px)!important}
#main button.primary:not(:disabled){box-shadow:0 2px 5px rgba(0,92,184,.16)!important}
#main button:disabled{cursor:not-allowed!important;box-shadow:none!important}
#main input:not([type=checkbox]):not([type=radio]):not([type=file]),#main select:not([multiple]),#main textarea{min-height:42px!important;padding:9px 12px!important;border:1px solid #c8d2e0!important;border-radius:8px!important;background-color:#fff!important;color:#26364a!important;box-shadow:0 1px 2px rgba(20,38,62,.035)!important;transition:border-color 140ms ease,box-shadow 140ms ease!important}
#main textarea{min-height:112px!important;line-height:1.55!important;resize:vertical!important}
#main input::placeholder,#main textarea::placeholder{color:#697a8f!important;opacity:1!important}
#main input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,#main select:not([multiple]):hover,#main textarea:hover{border-color:#9eb2ca!important}
#main input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,#main select:not([multiple]):focus,#main textarea:focus{border-color:#1681e8!important;box-shadow:0 0 0 3px rgba(22,129,232,.14)!important;outline:0!important}
#main label{line-height:1.4!important}
#main .panel,#main form{border-color:#dce3ec!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(25,45,70,.055),0 5px 16px rgba(25,45,70,.035)!important}
#main .numbers{margin:18px 0 22px!important;gap:12px!important}
#main .numbers>div{padding:16px 18px!important;border-radius:10px!important}
#main .table-wrap{border-color:#dce3ec!important;border-radius:10px!important;box-shadow:0 1px 3px rgba(25,45,70,.05)!important}
#main th{background:#f4f7fb!important;color:#42536a!important}
#main td{overflow-wrap:anywhere}
#main .service-queue-toolbar{display:flex;align-items:center;gap:14px;margin:10px 0 20px;min-width:0}
#main .service-queues{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;overflow:visible!important}
#main .service-queues button{min-height:38px!important;padding:6px 11px!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;white-space:nowrap}
#main .service-queues button.primary{background:#eaf3ff!important;border-color:#a9ccef!important;color:#075cab!important}
#main .service-queues button span{min-width:20px;height:20px}
#main .service-new-ticket{flex:0 0 auto;margin-left:auto;min-width:112px}
#main .record-change-history{padding:18px 20px!important}
#main .record-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
#main .record-history-heading h2{margin:0!important}
#main .record-history-toggle{min-height:34px!important;padding:5px 10px!important;background:#fff!important;color:#35608e!important;font-size:12px!important}
#main .record-work-history[hidden]{display:none!important}
#main .record-work-history{margin-top:10px!important}
#main .record-work-history li{align-items:flex-start}
#main .record-work-history li strong{font-weight:650}
#main .record-work-history li span{font-size:12px}
@media(min-width:1500px){#main{padding-inline:clamp(44px,3.1vw,64px)!important}}
@media(max-width:900px){#main .service-queue-toolbar{align-items:flex-start;flex-direction:column}#main .service-new-ticket{align-self:flex-end}}
@media(max-width:760px){#main{padding:22px 18px 44px!important}#main .numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}#main .service-queues{flex-wrap:nowrap;max-width:100%;overflow-x:auto!important;padding:2px 2px 8px!important;scrollbar-width:thin}#main .service-new-ticket{width:100%;align-self:stretch}}
@media(max-width:460px){#main{padding:18px 14px 36px!important}#main .numbers>div{padding:13px!important}#main .record-history-heading{align-items:flex-start;flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){#main button:not(.link){transition:none!important}}

/* Dashboard and inbox finishing pass. */
#main .dashboard-page{width:100%!important;max-width:1540px!important;margin-inline:auto!important}
#main .dashboard-head{align-items:flex-start!important;margin-bottom:22px!important}
#main .dashboard-head .sub{max-width:68ch!important}
#main .dashboard-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;gap:16px!important}
#main .dash-card{padding:20px!important;border-color:#dce3ec!important;border-radius:12px!important}
#main .dash-list-row.dash-record-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:58px!important;margin:0!important;padding:9px 10px!important;border:0!important;border-top:1px solid #e7edf4!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:#25364b!important;text-align:left!important;text-decoration:none!important;cursor:pointer!important}
#main .dash-list-row.dash-record-row:first-child{border-top:0!important}
#main .dash-list-row.dash-record-row:hover{background:#f2f7fd!important;box-shadow:none!important;transform:none!important}
#main .dash-list-row.dash-record-row:focus-visible{outline:3px solid rgba(0,115,234,.24)!important;outline-offset:-2px!important}
#main .dash-record-copy{display:block!important;min-width:0!important}
#main .dash-record-copy strong{white-space:normal!important;line-height:1.35!important}
#main .dash-record-id{color:#176bc0!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important}
#main .dash-list-row time{display:flex;flex-direction:column;min-width:34px;color:#5e7188;font-size:11px;line-height:1.25}
#main .dash-list-row time b{color:#203752;font-size:16px}
#main .inbox-titlebar{align-items:center!important;margin-bottom:18px!important}
#main .inbox-intro{max-width:65ch!important;margin:0!important}
#main .inbox-workspace{gap:14px!important}
#main .inbox-bulk-toolbar{padding:12px 14px!important;border-color:#d8e3ef!important;border-radius:10px!important;background:#f7faff!important}
#main .inbox-bulk-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important}
#main .inbox-bulk-heading strong{color:#253a55!important;font-size:13px!important}
#main .inbox-bulk-heading-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#main .inbox-bulk-heading-actions button{min-height:36px!important;padding:6px 12px!important}
#main .inbox-bulk-heading-actions .inbox-delete-selected{border-color:#efc3ca!important;background:#fff!important;color:#b4233c!important}
#main .inbox-bulk-heading-actions .inbox-delete-selected:hover:not(:disabled){border-color:#df8795!important;background:#fff4f5!important}
#main .inbox-bulk-toolbar.has-selection .inbox-bulk-controls{margin-top:12px;padding-top:12px;border-top:1px solid #e0e9f3}
#main .inbox-row{grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important;margin-bottom:10px!important}
#main .inbox-row-select{width:36px!important;min-width:36px!important;height:52px!important}
#main .inbox-row-select input{width:18px!important;height:18px!important;accent-color:#0875e1}
#main .inbox-message{border-color:#dce4ee!important;border-radius:11px!important;background:#fff!important;box-shadow:0 1px 3px rgba(25,45,70,.045)!important}
#main .inbox-row[data-read="false"] .inbox-message{border-color:#c8daed!important}
#main .inbox-row[data-read="false"] .inbox-summary-copy h2{font-weight:750!important}
#main .inbox-row .inbox-message-summary{gap:18px!important;padding:15px 18px!important}
#main .inbox-summary-copy .badge{display:inline-flex;min-height:22px;align-items:center;padding:3px 8px;border-radius:6px;background:#eef4fa;color:#526a83;font-size:10px;font-weight:700}
#main .inbox-summary-copy h2{margin:7px 0 4px!important;color:#20354f!important;font-size:15px!important;line-height:1.4!important}
#main .inbox-summary-copy p{line-height:1.45!important}
#main .inbox-summary-meta{display:flex!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:8px!important;max-width:390px!important;text-align:right!important}
#main .inbox-read-state{padding:5px 8px;border-radius:999px;background:#f0f3f7;color:#526276;font-size:11px;font-weight:700}
#main .inbox-read-state.is-unread{background:#e8f2ff;color:#075fba}
#main .inbox-summary-status{padding:5px 8px!important;border-radius:999px!important;background:#f0f3f7!important;color:#46566a!important;font-size:11px!important}
#main .inbox-message-detail{padding:0 18px 18px!important}
#main .inbox-management{padding:14px 0!important}
#main .inbox-conversation{display:grid;gap:10px;margin-top:14px}
#main .inbox-conversation-entry{max-width:min(78ch,100%);padding:13px 15px!important;border-radius:10px!important;line-height:1.6!important;font-size:13px!important}
@media(max-width:1000px){#main .dashboard-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){
 #main .dashboard-head{align-items:flex-start!important;flex-direction:column!important}
 #main .dashboard-actions{width:100%;flex-wrap:wrap}
 #main .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #main .inbox-row{grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important}
 #main .inbox-row-select{width:32px!important;min-width:32px!important}
 #main .inbox-row .inbox-message-summary{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 #main .inbox-summary-meta{justify-content:flex-start!important;max-width:none!important;text-align:left!important}
 #main .inbox-bulk-heading{align-items:flex-start!important;flex-direction:column!important}
 #main .inbox-bulk-heading-actions{width:100%;justify-content:flex-end}
 #main .inbox-bulk-controls{grid-template-columns:1fr!important}
}
@media(max-width:460px){#main .dashboard-kpis{grid-template-columns:1fr!important}#main .inbox-row .inbox-message-summary{padding:13px!important}}


/* Shared workspace spacing and register alignment */
#main{max-width:1800px!important;width:100%!important;min-width:0}
.register-page{width:100%;max-width:none!important;margin-inline:0!important}
.register-page>h1,.page-calendar>h1{margin-bottom:6px!important}
.register-page>.sub,.page-calendar>.sub{max-width:80ch;margin:0 0 18px!important}
.register-toolbar{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 16px;padding:12px;background:#fff;border:1px solid #e0e4ec;border-radius:12px;box-shadow:0 2px 8px rgba(24,43,76,.035)}
.register-filters{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0}
.register-filters input{flex:1 1 240px;min-width:170px;width:auto!important}
.register-filters select{flex:0 1 210px;min-width:145px;width:auto!important}
.register-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.register-actions button,.register-filters input,.register-filters select{min-height:40px!important}
.register-page .table-wrap{width:100%;max-width:100%;margin-top:10px}
.register-page .table-wrap table{width:100%;max-width:100%}
.register-page .table-wrap th{font-weight:700}
.register-page .table-wrap tbody tr{transition:background-color .15s}
.register-page .table-wrap tbody tr:hover{background:#f8faff}
.register-page .table-wrap td{vertical-align:middle}
.register-customers .customer-row-actions>button{min-width:86px;min-height:36px;padding:7px 12px;border:1px solid #cfd8e6;border-radius:8px;background:#fff;color:#34445b;font-weight:650;cursor:pointer}
.register-customers .customer-row-actions>button:hover,.register-customers .customer-row-actions>button[aria-expanded=true]{border-color:#1683e8;background:#f1f7ff;color:#0869c5}
.customer-action-menu{position:fixed!important;z-index:200;min-width:190px!important;padding:6px!important;border:1px solid #dce3ed!important;border-radius:11px!important;background:#fff!important;box-shadow:0 12px 32px rgba(24,43,76,.18)!important}
.customer-action-menu button{min-height:38px;padding:9px 11px!important;border-radius:7px!important;font-size:13px;text-align:left}
.bulk-assignment-panel{display:grid;gap:10px;margin:0 0 14px;padding:14px 16px;border:1px solid #dfe5ef;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(24,43,76,.035)}
.bulk-assignment-controls{display:flex;align-items:end;gap:10px;min-width:0}
.bulk-assignment-selectors{display:flex;gap:8px;margin-right:auto}
.bulk-assignment-owner{display:grid;gap:5px;min-width:220px;color:#596579;font-size:12px;font-weight:650}
.bulk-assignment-owner select{width:100%;min-width:0}
.bulk-assignment-controls>button{min-height:40px;white-space:nowrap}
.bulk-assignment-panel>.help{margin:0}
.bulk-assignment-panel [role=alert]:empty{display:none}
#main[data-page="customerHealth"] .numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;margin:16px 0}
#main[data-page="customerHealth"] .table-wrap{width:100%;margin-top:18px}
#main[data-page="customerHealth"] .table-wrap table{width:100%;min-width:1080px}
#main[data-page="customerHealth"] .table-wrap th,#main[data-page="customerHealth"] .table-wrap td{text-align:left;vertical-align:middle}
#main[data-page="customerHealth"] .table-wrap td:first-child{font-weight:700}
#main[data-page="customerHealth"] h1{margin-bottom:6px!important}
#main[data-page="customerHealth"]>.sub{max-width:80ch;margin:0 0 18px!important}

/* Calendar navigation stays in one clear row on tablet and desktop. */
.page-calendar .cal-toolbar{width:100%;min-height:62px;align-items:center!important;justify-content:space-between!important;gap:12px}
.cal-period-nav{flex:0 1 auto;min-width:0;flex-wrap:nowrap}
.cal-view-select{flex:0 0 auto;grid-template-columns:auto minmax(112px,150px)!important}
.cal-period-nav #calDate{width:154px!important;min-width:135px!important}
.page-calendar .cal-filters{width:100%}

/* Project board cards: phase sits with priority and work type; cards can be reordered. */
.project-card-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.project-card-phase{display:inline-flex;align-items:center;max-width:100%;min-height:25px;margin:0;padding:4px 8px;border:1px solid #dbe5f2;border-radius:999px;background:#f4f7fb;color:#53637b;font-size:.73rem;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.project-task-card[draggable=true]{cursor:grab;touch-action:pan-y}
.project-task-card[draggable=true]:active{cursor:grabbing}
.project-task-card.is-drop-target{outline:2px solid #1683e8;outline-offset:2px;background:#f2f8ff}
.project-task-card .project-card-title{width:100%;overflow-wrap:anywhere}
.project-task-card .project-card-move{justify-content:space-between}
.project-kanban-column.is-drop-target{box-shadow:inset 0 0 0 2px #1683e8}
.project-kanban-column,.project-kanban-cards{min-width:0}
.project-kanban-cards{padding:2px}

/* Keep related data tables and titles aligned across the workspace. */
#main .table-wrap{max-width:100%;min-width:0}
#main .table-wrap table{max-width:100%}
#main[data-page="organisations"] .table-wrap,
#main[data-page="contacts"] .table-wrap,
#main[data-page="customers"] .table-wrap,
#main[data-page="implementations"] .table-wrap{width:100%}
#main[data-page="organisations"] .table-wrap table,
#main[data-page="contacts"] .table-wrap table,
#main[data-page="customers"] .table-wrap table,
#main[data-page="implementations"] .table-wrap table{width:100%}
@media(max-width:900px){
 .register-toolbar{gap:8px;padding:10px}
 .register-filters input{min-width:140px;flex-basis:170px}
 .register-filters select{min-width:130px;flex-basis:150px}
 .register-actions{gap:6px}
 .register-actions button{padding-inline:10px}
 .bulk-assignment-owner{min-width:185px}
}
@media(max-width:760px){
 #main{padding-inline:18px!important}
 .register-toolbar{align-items:stretch;flex-wrap:wrap}
 .register-filters{flex:1 1 100%;flex-wrap:nowrap}
 .register-filters input{min-width:0;flex:1 1 50%}
 .register-filters select{flex:0 1 42%;min-width:118px}
 .register-actions{flex:1 1 100%;justify-content:flex-end}
 .bulk-assignment-controls{align-items:stretch;flex-wrap:wrap}
 .bulk-assignment-selectors{flex:1 1 100%;margin:0}
 .bulk-assignment-owner{flex:1 1 180px}
 .bulk-assignment-controls>button{align-self:end}
 #main[data-page="customerHealth"] .numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-calendar .cal-toolbar{align-items:stretch!important;flex-wrap:wrap}
 .cal-period-nav{flex:1 1 100%;justify-content:flex-start}
 .cal-view-select{margin-left:auto!important}
}
@media(max-width:520px){
 .register-filters{flex-wrap:wrap}
 .register-filters input,.register-filters select{flex:1 1 100%;width:100%!important}
 .register-actions button{flex:1 1 0}
 .bulk-assignment-owner{flex:1 1 100%}
 .bulk-assignment-controls>button{width:100%}
 .cal-period-nav{gap:4px}
 .cal-period-nav #calDate{flex:1 1 100px;width:auto!important;min-width:100px!important}
 .cal-view-select{width:100%;grid-template-columns:auto 1fr!important}
}

/* Keep bulk selection columns compact while giving record IDs room to scan. */
.register-organisations .table-wrap th:first-child,.register-organisations .table-wrap td:first-child,
.register-tasks .table-wrap th:first-child,.register-tasks .table-wrap td:first-child{width:46px;min-width:46px!important;text-align:center}
.register-organisations .table-wrap td:first-child input,.register-tasks .table-wrap td:first-child input{width:18px!important;min-width:18px!important}
@media(max-width:760px){.register-organisations .table-wrap td:first-child,.register-tasks .table-wrap td:first-child{width:auto;min-width:0!important}}


/* Resolve recurring page width and spacing inconsistencies. */
#main{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
#main>.record-detail-toolbar{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:40px;margin:0 0 18px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#main>.record-detail-toolbar>.tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0}
#main>h1{margin:0 0 8px!important}
#main>.sub{margin:0 0 18px!important}
#main>.register-page{width:100%!important;max-width:none!important}
.register-page>.sub{margin-bottom:18px!important}
.register-toolbar{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(150px,210px) auto!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0 0 16px!important;padding:10px 12px!important}
.register-filters{display:contents!important}
.register-filters input{grid-column:1;grid-row:1;width:100%!important;min-width:0!important}
.register-filters select{grid-column:2;grid-row:1;width:100%!important;min-width:0!important}
.register-actions{grid-column:3;grid-row:1;display:flex!important;align-items:center!important;gap:8px!important}
.register-actions button{white-space:nowrap}
.register-page .table-wrap{margin-top:12px!important}
.register-page>h1{margin-bottom:8px!important}
#main[data-page="customer"]>.record-detail-toolbar{margin-bottom:16px!important}
#main[data-page="customer"]>h1{margin:0 0 6px!important}
#main[data-page="customer"]>.sub{margin-bottom:18px!important}
#main[data-page="customer"]>.record-detail{margin:0 0 18px!important;padding:20px!important}
#main[data-page="customer"]>.record-detail>h2{margin:0 0 14px!important}
#main[data-page="customer"]>.record-detail+.panel{margin-top:16px!important}
.customer-contact-section{margin-top:16px;padding-top:14px;border-top:1px solid #e6e9ef}
.customer-contact-heading{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.customer-contact-heading h3{margin:0!important;color:#4b5568;font-size:13px!important;font-weight:700}
.customer-contact-heading>span{padding:3px 8px;border-radius:999px;background:#eef3f9;color:#64738a;font-size:11px;font-weight:650}
.customer-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:10px}
.customer-contact-card{display:grid;align-content:start;gap:5px;min-width:0;padding:12px 14px;border:1px solid #e0e6ef;border-radius:10px;background:#fbfcfe}
.customer-contact-card>.link{justify-self:start;max-width:100%;font-weight:700;text-align:left;white-space:normal;overflow-wrap:anywhere}
.customer-contact-role{color:#68778e;font-size:12px}
.customer-contact-methods{display:grid;gap:3px;min-width:0;color:#64738a;font-size:12px}
.customer-contact-methods a{width:fit-content;max-width:100%;overflow-wrap:anywhere}
.customer-contact-empty{margin:0;padding:10px 12px;border:1px dashed #d7deea;border-radius:8px;color:#737f92;font-size:13px}

/* Keep the document action aligned with its four status cards. */
.document-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px;margin:0 0 18px}
.document-summary-row>.numbers{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;min-width:0;margin:0!important}
.document-summary-row>.numbers>div{min-width:0}
.document-create-button{align-self:center;justify-self:end;min-width:112px;min-height:42px;white-space:nowrap}
#main[data-page="documentControl"]>h1{margin:0 0 14px!important}
#main[data-page="documentControl"]>.service-queues{margin:16px 0 18px}
#main[data-page="documentControl"]>h2{margin:16px 0 12px!important}
@media(max-width:900px){
 .register-toolbar{grid-template-columns:minmax(145px,1fr) minmax(125px,160px) auto!important;gap:8px!important;padding:9px!important}
 .register-actions{gap:6px!important}
 .register-actions button{padding-inline:9px!important}
 .document-summary-row>.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .document-create-button{min-width:96px}
}
@media(max-width:760px){
 .register-toolbar{display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(112px,140px) auto!important;align-items:center!important}
 .register-filters{display:contents!important}
 .register-filters input{grid-column:1!important;grid-row:1!important}
 .register-filters select{grid-column:2!important;grid-row:1!important}
 .register-actions{grid-column:3!important;grid-row:1!important;justify-content:flex-end!important}
 .register-actions button{padding-inline:7px!important;font-size:12px!important}
 #main>.record-detail-toolbar{flex-wrap:wrap!important}
}
@media(max-width:560px){
 .register-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 .register-filters input{grid-column:1/-1!important;grid-row:1!important}
 .register-filters select{grid-column:1/-1!important;grid-row:2!important}
 .register-actions{grid-column:1/-1!important;grid-row:3!important;justify-content:flex-end!important}
 .document-summary-row{grid-template-columns:minmax(0,1fr)!important}
 .document-summary-row>.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .document-create-button{justify-self:stretch;width:100%}
 #main[data-page="customer"]>.record-detail{padding:15px!important}
 #main>.record-detail-toolbar>.tools{justify-content:flex-start!important}
}


/* Use the full workspace width consistently and keep wide-screen gutters compact. */
@media(min-width:851px){
  body>.layout{display:grid!important;width:100%!important;max-width:none!important;grid-template-columns:246px minmax(0,1fr)!important}
  body>.layout>#main{grid-column:2!important;justify-self:stretch!important;align-self:stretch!important;width:auto!important;min-width:0!important;max-width:none!important;padding-inline:clamp(16px,1.25vw,26px)!important}
  body.nav-collapsed>.layout>#main{grid-column:1!important}
}
#main>.register-page{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;margin-inline:0!important}
#main>.register-page>.register-toolbar,#main>.register-page>.table-wrap{width:100%!important;min-width:0!important;max-width:none!important}
#main>.register-page>.table-wrap>table{width:100%!important;max-width:none!important}

/* Customer row actions use a clear menu trigger and grouped, easy-to-scan options. */
.register-customers .customer-row-actions>button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
  min-width:104px!important;min-height:38px!important;padding:7px 11px!important;
  border:1px solid #cbd7e5!important;border-radius:9px!important;background:#fff!important;
  color:#20334d!important;font-size:13px!important;font-weight:700!important;white-space:nowrap!important;
  box-shadow:0 1px 2px rgba(22,42,68,.05)!important;cursor:pointer
}
.register-customers .customer-row-actions>button::after{
  content:"";width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;
  transform:translateY(-2px) rotate(45deg);transition:transform 140ms ease
}
.register-customers .customer-row-actions>button[aria-expanded=true]{
  border-color:#1683e8!important;background:#f3f8ff!important;color:#075fbd!important
}
.register-customers .customer-row-actions>button[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg)}
.register-customers .customer-action-menu[popover]{
  min-width:224px!important;padding:7px!important;border:1px solid #d9e2ee!important;border-radius:12px!important;
  background:#fff!important;box-shadow:0 14px 36px rgba(20,38,65,.2)!important
}
.register-customers .customer-action-menu .customer-menu-heading{
  padding:8px 10px 6px;color:#718096;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase
}
.register-customers .customer-action-menu .customer-menu-heading.is-related{
  margin-top:5px;padding-top:10px;border-top:1px solid #edf1f6
}
.register-customers .customer-action-menu button{
  display:flex!important;align-items:center!important;min-height:40px!important;width:100%!important;
  padding:9px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;
  color:#263b56!important;font-size:13px!important;font-weight:600!important;text-align:left!important;
  box-shadow:none!important;transform:none!important;cursor:pointer
}
.register-customers .customer-action-menu button:hover,
.register-customers .customer-action-menu button:focus-visible{
  outline:none!important;background:#f0f6ff!important;color:#075fbd!important
}
@media(prefers-reduced-motion:reduce){
  .register-customers .customer-row-actions>button::after{transition:none}
}


/* Calendar period controls sit with the period heading, as in project calendars. */
.page-calendar .cal-section-head{
 display:grid!important;grid-template-columns:auto minmax(120px,1fr) minmax(152px,180px) auto!important;
 align-items:center!important;gap:12px!important;margin:14px 0!important;padding:10px 12px!important;
 border:1px solid #dfe2ea!important;border-radius:12px!important;background:#fff!important
}
.page-calendar .cal-section-head>.cal-period-nav{grid-column:1;grid-row:1;flex-wrap:nowrap!important}
.page-calendar .cal-section-head>h2{grid-column:2;grid-row:1;min-width:0;margin:0!important;white-space:nowrap}
.page-calendar .cal-section-head>.cal-view-select{grid-column:3;grid-row:1;width:100%;margin:0!important}
.page-calendar .cal-section-head>.tools{grid-column:4;grid-row:1;display:flex!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important}
.page-calendar .cal-section-head>.tools button{white-space:nowrap}
.page-calendar .cal-section-head .cal-view-select select{width:100%!important}
@media(max-width:1250px){
 .page-calendar .cal-section-head{grid-template-columns:auto minmax(120px,1fr) minmax(150px,180px)!important}
 .page-calendar .cal-section-head>.tools{grid-column:1/-1;grid-row:2;justify-content:flex-end!important;flex-wrap:wrap!important}
}
@media(max-width:760px){
 .page-calendar .cal-section-head{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}
 .page-calendar .cal-section-head>.cal-period-nav{grid-column:1/-1;grid-row:1;flex-wrap:wrap!important}
 .page-calendar .cal-section-head>h2{grid-column:1;grid-row:2;white-space:normal}
 .page-calendar .cal-section-head>.cal-view-select{grid-column:2;grid-row:2;width:auto}
 .page-calendar .cal-section-head>.tools{grid-column:1/-1;grid-row:3;justify-content:flex-start!important}
}
@media(max-width:480px){
 .page-calendar .cal-section-head>.tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%}
 .page-calendar .cal-section-head>.tools button{min-width:0!important;white-space:normal}
}

/* Put the document create action on the queue-tab row at the right edge. */
#main[data-page="documentControl"]>.document-summary-row{display:block!important;margin-bottom:14px!important}
#main[data-page="documentControl"]>.document-summary-row>.numbers{width:100%!important}
.document-queue-toolbar{display:flex!important;align-items:center!important;gap:12px!important;width:100%;min-width:0;margin:0 0 14px}
.document-queue-toolbar>.service-queues{flex:1 1 auto!important;min-width:0;margin:0!important;flex-wrap:nowrap!important}
.document-queue-toolbar>.document-create-button{flex:0 0 auto!important;align-self:center!important;justify-self:auto!important;margin:0 0 7px auto!important}
@media(max-width:760px){
 .document-queue-toolbar{gap:8px!important}
 .document-queue-toolbar>.document-create-button{min-width:100px!important;margin-left:auto!important}
}
@media(max-width:520px){
 .document-queue-toolbar{align-items:flex-start!important;flex-wrap:wrap!important}
 .document-queue-toolbar>.service-queues{flex-basis:100%!important}
 .document-queue-toolbar>.document-create-button{margin:0 0 0 auto!important}
}


/* Extend register tables into the unused right gutter without changing their columns. */

/* Project register refinements: wider stage filter and concise reference values on phones. */
.register-implementations .register-reference-id{display:none!important}
.register-implementations .table-wrap td.is-centered,.register-implementations .table-wrap th:nth-last-child(-n+3){text-align:center!important}
@media(max-width:560px){
 .register-implementations .register-toolbar{grid-template-columns:minmax(0,1fr)!important}
 .register-implementations .register-filters select{grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important}
 .register-implementations .register-actions{grid-column:1!important;grid-row:3!important}

 .register-implementations .responsive-table tbody td.is-centered{display:flex!important;align-items:center!important;justify-content:space-between!important}
 .register-implementations .responsive-table tbody td.is-centered::before{text-align:left}
}
@media(min-width:851px){
 #main>.register-page>.table-wrap{width:calc(100% + clamp(16px,1.25vw,26px))!important;max-width:none!important;margin-right:calc(-1 * clamp(16px,1.25vw,26px))!important;overflow-x:auto!important}
 #main>.register-page>.table-wrap>table{width:max-content!important;min-width:100%!important;max-width:none!important;table-layout:auto!important}
 #main>.register-page>.table-wrap>table th,#main>.register-page>.table-wrap>table td{white-space:nowrap!important;overflow-wrap:normal!important}
}


/* Fix the recurring compact-screen and alignment regressions from the latest review. */
/* Customer contacts stay content-sized instead of stretching one contact across the panel. */
#main[data-page="customer"] .customer-contact-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),360px))!important;align-items:start!important}
#main[data-page="customer"] .customer-contact-card{width:100%;min-height:118px;padding:14px 16px;gap:7px}
#main[data-page="customer"] .customer-contact-card>.link{font-size:14px!important}
#main[data-page="customer"] .customer-contact-role{font-size:12px}
#main[data-page="customer"] .customer-contact-methods{gap:5px}

/* Keep inbox selection in a dedicated gutter, aligned with each conversation card. */
#main .inbox-row{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:start!important;gap:8px!important}
#main .inbox-row-select{position:relative!important;inset:auto!important;display:grid!important;grid-column:1;grid-row:1;align-self:start!important;justify-self:center!important;width:28px!important;min-width:28px!important;height:46px!important;margin:8px 0 0!important;place-items:start center!important}
#main .inbox-row .inbox-message{grid-column:2;grid-row:1;min-width:0}
#main .inbox-row:not(:has(.inbox-row-select)) .inbox-message{grid-column:1/-1}
#main .inbox-row .inbox-message-summary{padding-left:16px!important}
@media(max-width:760px){#main .inbox-row{grid-template-columns:30px minmax(0,1fr)!important;gap:5px!important}#main .inbox-row-select{width:26px!important;min-width:26px!important;height:42px!important;margin-top:7px!important}}

/* Calendar toolbar uses two balanced rows at laptop widths to avoid collisions. */
@media(max-width:1500px){
 .page-calendar .cal-section-head{grid-template-columns:minmax(0,1fr) auto!important;gap:10px 14px!important;padding:12px!important}
 .page-calendar .cal-section-head>.cal-period-nav{grid-column:1;grid-row:1;min-width:0}
 .page-calendar .cal-section-head>h2{grid-column:2;grid-row:1;justify-self:end}
 .page-calendar .cal-section-head>.cal-view-select{grid-column:1;grid-row:2;width:min(190px,100%)!important}
 .page-calendar .cal-section-head>.tools{grid-column:2;grid-row:2;justify-content:flex-end!important}
}
#calDetail{width:min(560px,calc(100vw - 36px))!important;max-width:calc(100vw - 36px)!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:22px!important;overflow:auto!important;border:1px solid #dce4ee!important;border-radius:16px!important;background:#fff!important}
#calDetail .drawer-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0 0 8px!important}
#calDetail .drawer-heading h2{min-width:0;margin:0!important;font-size:19px!important;line-height:1.35!important;overflow-wrap:anywhere}
#calDetail #drawerForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:12px!important;margin:14px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#calDetail #drawerForm>label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;align-content:start!important;min-width:0!important;margin:0!important;font-size:12px!important}
#calDetail #drawerForm>label input,#calDetail #drawerForm>label select,#calDetail #drawerForm>label textarea{width:100%!important;min-width:0!important}
#calDetail #drawerForm>label:has(textarea),#calDetail #drawerForm>.help,#calDetail #drawerForm>#drawerError,#calDetail #drawerForm>.actions{grid-column:1/-1!important}
#calDetail #drawerForm>label:has(textarea) textarea{min-height:100px!important}
#calDetail #drawerForm>.help{margin:0!important;max-width:none!important}
#calDetail #drawerForm>.actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
#calDetail #drawerForm>.actions button{width:auto!important}
@media(max-width:560px){#calDetail{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;padding:18px!important}#calDetail #drawerForm{grid-template-columns:minmax(0,1fr)!important}}

/* Show all task lanes together on desktop; keep horizontal lane scrolling for smaller work areas. */
@media(min-width:1200px){
 #main .project-kanban{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:unset!important;overflow-x:auto!important;scroll-snap-type:none!important;gap:10px!important}
 #main .project-kanban-column{min-width:0!important;padding:10px!important}
 #main .project-kanban-column>header{gap:6px!important}
 #main .project-task-card{min-width:0!important;padding:10px!important;overflow-wrap:anywhere}
 #main .project-task-card .project-card-title{overflow-wrap:anywhere}
}

/* Keep the organisation bulk assignment label beside its selector on one line. */
.register-organisations .bulk-assignment-controls{align-items:center!important;flex-wrap:nowrap!important;gap:10px!important}
.register-organisations .bulk-assignment-owner{display:flex!important;flex:0 0 min(340px,32%)!important;align-items:center!important;gap:9px!important;min-width:0!important;white-space:nowrap!important}
.register-organisations .bulk-assignment-owner>span{flex:0 0 auto!important;white-space:nowrap!important}
.register-organisations .bulk-assignment-owner select{flex:1 1 auto!important;min-width:0!important}
@media(max-width:760px){.register-organisations .bulk-assignment-controls{flex-wrap:wrap!important}.register-organisations .bulk-assignment-owner{flex:1 1 220px!important}}


/* Project-wide plan scope and clear phase distribution. */
.project-plan-summary{align-items:flex-start!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:10px 18px!important}
.project-plan-summary>strong{color:#1f3551!important;white-space:nowrap}
.project-plan-summary>span{flex:1 1 260px!important;min-width:0}
.project-plan-phase-list{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:6px}
.project-plan-phase-list>span{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #dce4ee;border-radius:999px;background:#fff;color:#586a82;font-size:11px;font-weight:650}
.project-plan-phase-list>span.is-current{border-color:#9fc5ed;background:#edf6ff;color:#075fbd}
.project-plan-phase-list b{display:grid;min-width:19px;height:19px;place-items:center;border-radius:999px;background:#eef2f7;color:#45566d;font-size:10px}
@media(max-width:560px){.project-plan-summary>span{flex-basis:100%}.project-plan-phase-list{gap:5px}.project-plan-phase-list>span{font-size:10px}}


/* Project task scope and phase advancement controls. */
.project-task-scope{display:inline-flex;align-items:center;gap:4px;max-width:100%;margin:10px 0 8px;padding:4px;border:1px solid #dce4ee;border-radius:11px;background:#f5f8fc}
.project-task-scope button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#455a75;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.project-task-scope button[aria-pressed=true]{border-color:#c8dcf4;background:#fff;color:#075fbd;box-shadow:0 1px 3px rgba(17,52,91,.08)}
.project-task-scope button>span{display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;border-radius:999px;background:#e9eff7;color:#52647d;font-size:10px}
.project-task-scope button[aria-pressed=true]>span{background:#e9f3ff;color:#075fbd}
.delivery-phase-advance{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:13px 16px;border:1px solid #b8e4d9;border-radius:12px;background:#effaf6}
.delivery-phase-advance>div{display:grid;gap:3px;min-width:0}.delivery-phase-advance strong{color:#12644f;font-size:14px}.delivery-phase-advance span{color:#5c746e;font-size:12px}
.delivery-phase-advance button{flex:0 0 auto;white-space:nowrap}
.delivery-summary .delivery-progress-card{grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:7px 10px!important}
.delivery-summary .delivery-progress-card>strong{grid-column:1!important;grid-row:2!important;white-space:nowrap!important;overflow-wrap:normal!important}
.delivery-summary .delivery-progress-card>small{grid-column:2!important;grid-row:2!important;min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;text-align:right!important;font-size:11px!important}
@media(max-width:560px){.project-task-scope{display:flex;width:100%;overflow-x:auto}.project-task-scope button{flex:1 0 auto}.delivery-phase-advance{align-items:stretch;flex-direction:column}.delivery-phase-advance button{width:100%}}


/* Compact labeled selectors keep the project task workspace controls together. */
.project-work-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:10px 0 8px}
.project-work-select{display:grid;gap:5px;min-width:210px;color:#596c84;font-size:11px;font-weight:750}
.project-work-select select{width:100%;min-height:40px;padding:8px 34px 8px 11px;border:1px solid #cfd9e6;border-radius:9px;background:#fff;color:#263b56;font-size:13px;font-weight:650}
.project-work-select select:focus-visible{outline:3px solid rgba(22,131,232,.2);border-color:#1683e8}
@media(max-width:560px){.project-work-controls{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.project-work-select{min-width:0;width:100%}}


/* Keep the phase completion action visible as the final project step. */
.phase-completion-panel{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:22px!important;margin:18px 0 30px!important;padding:20px 22px!important;border:1px solid #b8e4d9!important;border-left:4px solid #159375!important;border-radius:14px!important;background:linear-gradient(110deg,#effaf6 0%,#fff 76%)!important}
.phase-completion-content{display:grid;gap:6px;min-width:0}
.phase-completion-content>.eyebrow{margin:0;color:#187760!important}
.phase-completion-content h2{margin:0!important;font-size:18px!important}
.phase-completion-content>p:not(.eyebrow){margin:0!important;color:#596c84!important;line-height:1.5}
.phase-completion-progress{display:flex;align-items:baseline;gap:8px;margin-top:3px;color:#617469;font-size:12px}
.phase-completion-progress strong{color:#176b55;font-size:14px}
.phase-completion-panel>button{flex:0 0 auto;min-height:44px;white-space:nowrap}
.phase-completion-panel>button:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}
@media(max-width:700px){.phase-completion-panel{align-items:stretch!important;flex-direction:column!important;padding:17px!important}.phase-completion-panel>button{width:100%;white-space:normal}}


/* Keep the phase action at the page end without repeating the phase summary. */
.phase-completion-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:16px 0 28px;padding:14px 0;border-top:1px solid #dfe6ee}
.phase-completion-actions>button{flex:0 0 auto;min-height:44px;min-width:190px;white-space:nowrap}
.phase-completion-actions>button:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}
.phase-completion-actions>p{margin:0;color:#66768c;font-size:12px;text-align:right}
@media(max-width:700px){.phase-completion-actions{align-items:stretch;flex-direction:column-reverse;gap:9px}.phase-completion-actions>button{width:100%;white-space:normal}.phase-completion-actions>p{text-align:left}}


/* Make compact project register cards scan as grouped records on narrow screens. */
@media(max-width:760px){
 .register-implementations .responsive-table{overflow:visible!important}
 .register-implementations .responsive-table tbody{display:grid!important;gap:10px!important}
 .register-implementations .responsive-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:6px 10px!important;border:1px solid #dce4ee!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 7px rgba(25,45,72,.06)!important}
 .register-implementations .responsive-table tbody td{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:center!important;gap:3px!important;min-width:0!important;padding:8px 9px!important;border-bottom:1px solid #edf1f6!important;overflow-wrap:anywhere!important;text-align:left!important}
 .register-implementations .responsive-table tbody td::before{display:block!important;color:#77859a!important;font-size:10px!important;font-weight:750!important;line-height:1.2!important;text-align:left!important}
 .register-implementations .responsive-table tbody td:nth-child(1),.register-implementations .responsive-table tbody td:nth-child(2),.register-implementations .responsive-table tbody td:nth-child(3),.register-implementations .responsive-table tbody td:nth-child(6){grid-column:1/-1!important}
 .register-implementations .responsive-table tbody td:nth-child(1){padding-top:10px!important}
 .register-implementations .responsive-table tbody td:nth-child(1) .link{font-size:14px!important;font-weight:800!important}
 .register-implementations .responsive-table tbody td:nth-child(4),.register-implementations .responsive-table tbody td:nth-child(5),.register-implementations .responsive-table tbody td:nth-child(7),.register-implementations .responsive-table tbody td:nth-child(8){grid-column:span 1!important}
 .register-implementations .responsive-table tbody td:last-child{border-bottom:0!important}
 .register-implementations .responsive-table tbody td.is-centered{justify-content:start!important}
 .register-implementations .responsive-table tbody td.is-centered::before{text-align:left!important}
}

/* Keep the phase helper text on its own line above the final action. */
.phase-completion-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:end!important;gap:8px!important}
.phase-completion-actions>p{max-width:100%!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere!important}
@media(max-width:700px){.phase-completion-actions{justify-items:stretch!important}.phase-completion-actions>p{text-align:left!important}}


/* Show only outstanding delivery actions; keep their controls clear at narrow widths. */
.delivery-owner{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:10px 16px!important}
.delivery-owner strong{min-width:0!important;overflow-wrap:anywhere}
.delivery-owner span{white-space:nowrap!important}
.delivery-owner button{min-height:38px!important;white-space:nowrap!important}
@media(max-width:700px){.delivery-owner{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}.delivery-owner span{white-space:normal!important}.delivery-owner button{justify-self:start}}

/* Keep document status cards and create action together, then let queue tabs wrap. */
#main[data-page="documentControl"]>.document-summary-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:stretch!important;gap:12px!important;margin-bottom:14px!important}
#main[data-page="documentControl"]>.document-summary-row>.numbers{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;gap:10px!important;min-width:0!important;width:100%!important}
#main[data-page="documentControl"]>.document-summary-row>.document-create-button{align-self:center!important;justify-self:end!important;grid-column:2!important;grid-row:1!important;margin:0!important}
#main[data-page="documentControl"]>.document-queue-toolbar{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important;margin:0 0 14px!important}
#main[data-page="documentControl"] .document-queue-toolbar>.service-queues{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;overflow:visible!important;margin:0!important}
#main[data-page="documentControl"] .document-queue-toolbar>.service-queues>button{flex:0 1 auto!important;max-width:100%!important;white-space:nowrap!important}
@media(max-width:720px){#main[data-page="documentControl"]>.document-summary-row{grid-template-columns:minmax(0,1fr)!important}#main[data-page="documentControl"]>.document-summary-row>.document-create-button{grid-column:1!important;grid-row:2!important;justify-self:end!important}#main[data-page="documentControl"]>.document-summary-row>.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){#main[data-page="documentControl"]>.document-summary-row>.numbers{grid-template-columns:repeat(2,minmax(0,1fr))!important}#main[data-page="documentControl"] .document-queue-toolbar>.service-queues>button{flex:1 1 calc(50% - 7px)!important;justify-content:center!important;white-space:normal!important}}

/* Align team search, status and actions as one compact toolbar. */
.register-members .member-directory-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,210px) auto;gap:10px!important}
.register-members .member-directory-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-width:max-content}
.register-members .member-directory-actions button{min-height:42px!important;padding-inline:12px!important;white-space:nowrap!important}
.register-members .member-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;align-items:stretch!important;gap:12px!important}
.register-members .member-card{min-height:0!important;padding:16px!important;gap:13px!important}
.register-members .member-card-details{gap:12px 14px!important}
.register-members .member-card-details dd{line-height:1.4!important}
@media(max-width:1000px){.register-members .member-directory-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,.75fr)!important}.register-members .member-directory-search{grid-column:1/-1!important}.register-members .member-directory-filter{grid-column:1!important}.register-members .member-directory-actions{grid-column:2!important;justify-content:flex-end!important}}
@media(max-width:560px){.register-members .member-directory-toolbar{grid-template-columns:minmax(0,1fr)!important}.register-members .member-directory-search,.register-members .member-directory-filter,.register-members .member-directory-actions{grid-column:1!important}.register-members .member-directory-actions{width:100%;justify-content:flex-end!important}.register-members .member-directory-actions button{flex:1 1 0!important;min-width:0!important;padding-inline:8px!important}}


/* Preview refinements from the latest screen review. */
.register-organisations .bulk-assignment-controls{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-width:0!important}
.register-organisations .bulk-assignment-selectors{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important;min-width:0!important}
.register-organisations .bulk-assignment-selectors>button{flex:0 0 auto!important;min-width:0!important;white-space:nowrap!important;padding-inline:12px!important}
.register-organisations .bulk-assignment-owner{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important}
.register-organisations .bulk-assignment-owner select{width:100%!important;min-width:0!important}
.register-organisations .bulk-assignment-controls>button{min-width:0!important;white-space:nowrap!important}
@media(max-width:680px){.register-organisations .bulk-assignment-controls{grid-template-columns:minmax(0,1fr) auto!important}.register-organisations .bulk-assignment-selectors{grid-column:1/-1!important}.register-organisations .bulk-assignment-owner{grid-column:1!important;grid-row:2!important}.register-organisations .bulk-assignment-controls>button{grid-column:2!important;grid-row:2!important}}
@media(max-width:430px){.register-organisations .bulk-assignment-selectors>button{flex:1 1 0!important;padding-inline:7px!important}.register-organisations .bulk-assignment-controls{gap:8px!important}.register-organisations .bulk-assignment-owner{grid-template-columns:1fr!important;gap:4px!important}}
@media(max-width:600px){.register-implementations .responsive-table tbody td{grid-template-columns:minmax(88px,32%) minmax(0,1fr)!important;gap:8px!important;padding:8px 10px!important;font-size:13px!important;line-height:1.35!important}.register-implementations .responsive-table tbody tr{border-radius:9px!important}.register-implementations .responsive-table tbody td::before{font-size:10px!important}}


/* Keep page action rows aligned on tablet and desktop widths. */
@media(min-width:601px) and (max-width:900px){
 #main>.bar.delivery-toolbar,#main>.record-detail-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important}
 #main>.bar.delivery-toolbar>#deliveryBack,#main>.record-detail-toolbar>#recordBack{flex:0 1 auto!important;white-space:nowrap!important;min-width:0!important}
 #main>.bar.delivery-toolbar>.tools,#main>.record-detail-toolbar>.tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:1 1 0!important;width:auto!important;min-width:0!important;flex-wrap:nowrap!important;gap:6px!important}
 #main>.bar.delivery-toolbar>.tools>button,#main>.record-detail-toolbar>.tools>button{flex:1 1 0!important;min-width:0!important;white-space:nowrap!important;padding-inline:clamp(6px,1.15vw,12px)!important;font-size:clamp(11px,1.55vw,14px)!important}
}
@media(max-width:600px){
 #main>.bar.delivery-toolbar,#main>.record-detail-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 #main>.bar.delivery-toolbar>.tools,#main>.record-detail-toolbar>.tools{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;width:100%!important;justify-content:stretch!important;gap:7px!important}
 #main>.bar.delivery-toolbar>.tools>button,#main>.record-detail-toolbar>.tools>button{width:100%!important;min-width:0!important;white-space:normal!important;padding-inline:8px!important}
}


/* On phone project cards, keep the centered desktop date cells aligned as key/value rows. */
@media(max-width:600px){
 .register-implementations .responsive-table tbody td.is-centered{ text-align:left!important; justify-items:stretch!important; }
 .register-implementations .responsive-table tbody td.is-centered::before{ text-align:left!important; }
}


/* Very narrow phones need a single-column project card so long values never get squeezed beside another field. */
@media(max-width:480px){
 .register-implementations .responsive-table tbody tr{grid-template-columns:minmax(0,1fr)!important}
 .register-implementations .responsive-table tbody td:nth-child(n){grid-column:1/-1!important;grid-template-columns:minmax(88px,32%) minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:9px 8px!important;text-align:left!important}
 .register-implementations .responsive-table tbody td::before{min-width:0!important;text-align:left!important}
 .register-implementations .responsive-table .register-reference-id{display:none!important}
}


/* Clear grouping for staff and client access management. */
.admin-page .accounts-list{min-width:0!important}
.admin-page .accounts-list>.user{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px 18px!important;padding:16px 0!important}
.admin-page .account-identity{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere;color:var(--ink)!important;font-size:13px}
.admin-page .account-identity>strong{font-size:14px!important;line-height:1.3}
.admin-page .account-meta{color:var(--muted)!important;font-size:12px;line-height:1.45}
.admin-page .account-state{width:max-content;max-width:100%;margin:2px 0 0}
.admin-page .accounts-list>.client-account-row{grid-template-columns:minmax(0,1fr) auto!important}
.admin-page .staff-account-row{grid-template-columns:minmax(0,1.15fr) minmax(210px,1fr) minmax(130px,.72fr) auto!important}
.admin-page .staff-account-row>.account-identity{grid-column:1;grid-row:1}
.admin-page .staff-account-row:has(>.staff-mfa-inline)>.account-identity{grid-row:1/span 2}
.admin-page .staff-account-row:not(:has(>.staff-mfa-inline)){grid-template-columns:minmax(0,1.15fr) minmax(210px,1fr) auto!important}
.admin-page .staff-account-row:not(:has(>.staff-mfa-inline))>.account-actions{grid-column:3;grid-row:1}
.admin-page .staff-account-row>.account-role-control{grid-column:2;grid-row:1;min-width:0}
.admin-page .staff-account-row>.staff-mfa-inline{display:flex;grid-column:3;grid-row:1;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.admin-page .staff-account-row>.account-actions{grid-column:4;grid-row:1;justify-self:end}
.admin-page .staff-mfa-state{display:inline-flex;align-items:center;gap:7px;color:#59697d;font-size:11px;font-weight:650;line-height:1.35}
.admin-page .staff-mfa-state::before{width:8px;height:8px;border-radius:50%;background:#d59b23;content:""}
.admin-page .staff-mfa-state.is-enrolled{color:#08784f}
.admin-page .staff-mfa-state.is-enrolled::before{background:#0d9b6c}
.admin-page .staff-mfa-inline button{min-height:34px!important;padding:6px 9px!important;font-size:11px!important;white-space:nowrap}
.admin-page .staff-mfa-management{margin:14px 0 8px;padding:14px 16px;border:1px solid #dfe5ed;border-radius:11px;background:#f7f9fc}
.admin-page .staff-mfa-management[hidden]{display:none!important}
.admin-page .staff-mfa-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-page .staff-mfa-heading h3{margin:0!important;color:var(--ink);font-size:14px}
.admin-page .staff-mfa-heading .help{margin:4px 0 0!important;font-size:12px!important;line-height:1.45}
.admin-page .staff-mfa-heading>button{flex:0 0 auto;min-height:36px;padding:7px 11px;font-size:12px;white-space:normal}
.admin-page .staff-mfa-policy{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:12px;margin:12px 0 0!important;padding:10px 0 0!important;border:0!important;border-top:1px solid #e3e8ef!important;box-shadow:none!important;width:100%;min-width:0}
.admin-page .staff-mfa-policy .check-option{display:flex!important;grid-column:1;align-items:center;gap:8px;width:100%;min-width:0;margin:0!important;color:#35465d!important;font-size:12px!important;line-height:1.45!important}
.admin-page .staff-mfa-policy .check-option input{display:inline-block!important;width:18px!important;height:18px!important;min-height:0!important;max-width:18px!important;margin:0!important;padding:0!important;flex:0 0 18px!important}
.admin-page .staff-mfa-policy>button{grid-column:2;flex:0 0 auto;min-height:36px;padding:7px 12px}.admin-page .staff-mfa-policy [role=status]:not(:empty){grid-column:1/-1}
.admin-page .staff-mfa-management [role=status]:not(:empty){margin:8px 0 0;padding:7px 9px;font-size:12px}
@media(max-width:900px){
 .admin-page .staff-account-row{grid-template-columns:minmax(0,1fr) minmax(190px,1fr) auto!important;align-items:center!important}
 .admin-page .staff-account-row>.account-identity{grid-column:1;grid-row:1}
 .admin-page .staff-account-row:has(>.staff-mfa-inline)>.account-identity{grid-row:1/span 2}
 .admin-page .staff-account-row:not(:has(>.staff-mfa-inline)){grid-template-columns:minmax(0,1fr) minmax(190px,1fr) auto!important}
 .admin-page .staff-account-row:not(:has(>.staff-mfa-inline))>.account-actions{grid-column:3;grid-row:1}
 .admin-page .staff-account-row>.account-role-control{grid-column:2;grid-row:1}
 .admin-page .staff-account-row>.staff-mfa-inline{grid-column:2;grid-row:2}
 .admin-page .staff-account-row>.account-actions{grid-column:3;grid-row:1/span 2}
}
@media(max-width:720px){
 .admin-page .staff-account-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
 .admin-page .staff-account-row>.account-identity{grid-column:1/-1!important;grid-row:1!important}
 .admin-page .staff-account-row>.account-role-control{grid-column:1!important;grid-row:2!important}
 .admin-page .staff-account-row>.staff-mfa-inline{grid-column:1!important;grid-row:3!important}
 .admin-page .staff-account-row>.account-actions{grid-column:2!important;grid-row:2/span 2!important;align-self:center}
}
@media(max-width:560px){
 .admin-page .accounts-list>.user,.admin-page .accounts-list>.staff-account-row{grid-template-columns:minmax(0,1fr)!important;gap:11px!important;padding:15px 0!important}
 .admin-page .staff-account-row>.account-identity,.admin-page .staff-account-row>.account-role-control,.admin-page .staff-account-row>.staff-mfa-inline,.admin-page .staff-account-row>.account-actions{grid-column:1!important;grid-row:auto!important}
 .admin-page .staff-account-row>.account-role-control{grid-template-columns:minmax(0,1fr) auto!important}
 .admin-page .staff-account-row>.account-actions,.admin-page .client-account-row>.account-actions{justify-self:stretch!important}
 .admin-page .staff-mfa-heading{align-items:flex-start;flex-direction:column}
 .admin-page .staff-mfa-heading>button{width:100%}
 .admin-page .staff-mfa-policy{align-items:stretch;flex-direction:column}
 .admin-page .staff-mfa-policy>button{width:100%}
}

.admin-page .staff-role-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:14px 0 0;padding:14px 0 0;border-top:1px solid #e3e8ef}
.admin-page .staff-role-actions[hidden]{display:none!important}
.admin-page .staff-role-actions [role=status]:not(:empty){margin:0 auto 0 0;padding:0;border:0;background:transparent;color:#52657d;font-size:12px}
.admin-page .staff-role-actions>button{min-width:130px}
@media(max-width:560px){.admin-page .staff-role-actions{align-items:stretch;flex-direction:column}.admin-page .staff-role-actions>button{width:100%}}


/* Consistent in-page back navigation and a clean sidebar edge. */
#nav{border-right:0!important;box-shadow:none!important}
@media(max-width:850px){#nav{border-right:0!important;box-shadow:none!important}}
.back-link,.back-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:38px!important;padding:8px 12px!important;margin:0 0 16px!important;border:1px solid #d0d4e4!important;border-radius:8px!important;background:#fff!important;color:#3f4252!important;font-size:13px!important;font-weight:650!important;line-height:1.2!important;text-decoration:none!important;box-shadow:none!important;white-space:nowrap!important}
.back-link::before,.back-button::before{content:'←'!important;width:auto!important;height:auto!important;border:0!important;transform:none!important;font-size:16px!important;line-height:1!important}
.back-link:hover,.back-button:hover{background:#f4f7fc!important;border-color:#aeb8c9!important;color:#0060b9!important;text-decoration:none!important}
.page-back-row{display:flex;align-items:center;min-height:38px;margin-bottom:18px}
.page-back-row .back-button{margin:0!important}
.account-shell>.mfa-status{display:flex;align-items:center;gap:9px;width:100%;margin:-8px 0 20px;padding:12px 14px;border:1px solid #e1e7ef;border-radius:9px;font-size:13px;line-height:1.45}
.account-shell>.mfa-status::before{content:"";width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:currentColor}
.account-shell>.mfa-status[data-state="off"]{background:#fff7e5;color:#76540d}
.account-shell>.mfa-status[data-state="enabled"]{background:#eaf8f3;color:#147757}
@media(max-width:640px){.back-link,.back-button{min-height:42px!important;margin-bottom:12px!important}.account-shell>.mfa-status{margin-top:-4px}}


/* Project plan dialog: keep close affordance in the header and make phase selectors interactive. */
.project-plan-header{position:relative!important;padding-right:54px!important}
.project-plan-header>[data-plan-close]{position:absolute!important;top:0!important;right:0!important;z-index:2!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border:1px solid #d5deeb!important;border-radius:10px!important;background:#fff!important;color:#51627a!important;font-size:20px!important;line-height:1!important}
.project-plan-header>[data-plan-close]:hover{background:#f1f6fd!important;color:#075fbd!important}
.project-plan-phase-list>button{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:30px!important;padding:4px 9px!important;border:1px solid #dce4ee!important;border-radius:999px!important;background:#fff!important;color:#586a82!important;font-size:11px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important}
.project-plan-phase-list>button:hover{border-color:#9fc5ed!important;background:#f5f9ff!important}
.project-plan-phase-list>button.is-selected{border-color:#7db4eb!important;background:#eaf4ff!important;color:#075fbd!important;box-shadow:0 0 0 1px rgba(0,115,234,.08)!important}
.project-plan-phase-list>button b{display:grid!important;min-width:19px!important;height:19px!important;place-items:center!important;border-radius:999px!important;background:#eef2f7!important;color:#45566d!important;font-size:10px!important}
.project-plan-phase-list>button.is-selected b{background:#d4e9ff!important;color:#075fbd!important}
.project-plan-phase-details{display:grid;flex:1 1 100%;gap:8px;min-width:0;padding-top:10px;border-top:1px solid #e1e7ef}
.project-plan-phase-details>strong{color:#253d5e;font-size:12px}
.project-plan-phase-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.project-plan-phase-task{display:grid;gap:3px;min-width:0;padding:9px 11px;border:1px solid #e0e7f0;border-radius:8px;background:#fff}
.project-plan-phase-task strong{overflow-wrap:anywhere;color:#263952;font-size:12px}
.project-plan-phase-task span,.project-plan-phase-task small{color:#68778c;font-size:11px}
.project-plan-phase-empty{margin:0;color:#728097;font-size:12px}
@media(max-width:560px){.project-plan-header{padding-right:48px!important}.project-plan-header>[data-plan-close]{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.project-plan-phase-cards{grid-template-columns:1fr}}

/* Keep project-plan tasks visible and make the editor resizable. */
.project-plan-dialog{width:min(1120px,calc(100vw - 32px));height:min(94dvh,960px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto!important;resize:none!important}
.project-plan-dialog form{display:flex!important;flex-direction:column!important;gap:12px!important;height:auto!important;min-height:100%!important}
.project-plan-header,.project-plan-summary,.project-plan-footer,.project-plan-note,.project-plan-error{flex:0 0 auto!important}
.project-plan-summary{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
.project-plan-phase-details{flex:1 1 100%!important;max-height:150px!important;overflow:auto!important}
.project-plan-phase-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.project-plan-rows{flex:1 0 240px!important;min-height:240px!important;overflow:auto!important}
.project-plan-row{min-width:0!important}
.project-plan-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.project-plan-fields label{min-width:0!important;overflow-wrap:anywhere!important}
.project-plan-fields input,.project-plan-fields select{min-width:0!important;max-width:100%!important}
.project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:span 2}
.project-plan-resize{position:sticky!important;float:right!important;bottom:2px!important;margin:-34px 0 0 auto!important;z-index:5!important;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;border:1px solid #cbd7e6!important;border-radius:7px 0 8px 0!important;background:#f7faff!important;color:#456180!important;cursor:nwse-resize!important;touch-action:none!important;font-size:16px!important;line-height:1!important}
.project-plan-resize:hover{background:#e7f2ff!important;color:#075fbd!important}
.delivery-progress.is-fancy{position:relative!important;height:14px!important;padding:2px!important;border:1px solid #d3e1ec!important;border-radius:999px!important;background:linear-gradient(180deg,#edf3f8,#e3ebf3)!important;box-shadow:inset 0 1px 2px rgba(27,50,79,.12),0 2px 5px rgba(30,71,109,.08)!important}
.delivery-progress.is-fancy>span{position:relative!important;z-index:1!important;min-width:0!important;border-radius:999px!important;background:linear-gradient(90deg,#12a77c,#20c39a 58%,#4ad7ae)!important;box-shadow:0 0 8px rgba(18,167,124,.3)!important}
.delivery-progress.is-fancy::after{content:""!important;position:absolute!important;inset:2px!important;z-index:2!important;border-radius:inherit!important;pointer-events:none!important;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),rgba(255,255,255,.9) calc(25% - 1px),rgba(255,255,255,.9) 25%)!important}
@media(max-width:760px){.project-plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:span 2}.project-plan-dialog{height:min(96dvh,960px)!important}.project-plan-rows{flex-basis:220px!important;min-height:220px!important}}
@media(max-width:560px){.project-plan-fields{grid-template-columns:1fr!important}.project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:auto}.project-plan-phase-cards{grid-template-columns:1fr!important}.project-plan-rows{flex-basis:200px!important;min-height:200px!important}}

.project-plan-dialog{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
.project-plan-dialog form{padding-bottom:34px!important}
.project-plan-resize{position:absolute!important;right:8px!important;bottom:8px!important;float:none!important;margin:0!important}

/* Ensure the project register switches fully to cards on phones, without inheriting desktop table width. */
@media(max-width:760px){
 .register-implementations .table-wrap{width:100%!important;max-width:100%!important;overflow-x:visible!important}
 .register-implementations .table-wrap table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
 .register-implementations .responsive-table tbody tr{min-width:0!important;width:100%!important}
 .register-implementations .responsive-table tbody td{min-width:0!important;word-break:normal!important;overflow-wrap:break-word!important}
 .register-implementations .responsive-table .register-reference-id{display:none!important}
}
@media(max-width:480px){
 .register-implementations .responsive-table tbody tr{grid-template-columns:minmax(0,1fr)!important}
 .register-implementations .responsive-table tbody td:nth-child(n){grid-column:1/-1!important;grid-template-columns:minmax(96px,34%) minmax(0,1fr)!important;align-items:center!important;gap:8px!important}
 .register-implementations .responsive-table tbody td::before{grid-column:1!important;min-width:0!important}
 .register-implementations .responsive-table tbody td .register-reference-id{display:none!important}
}

/* Keep the full Amlin wordmark visible at every viewport. */
.brand-logo-window{overflow:visible!important}
.brand-logo-window>img.brand-logo{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
.standalone-topbar-brand{overflow:visible!important}
.standalone-topbar-brand>img{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
@media(max-width:560px){.project-workspace-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;margin-left:0!important}.project-workspace-actions>button{min-width:0!important;white-space:normal!important;line-height:1.3!important}.project-workspace .project-task-view{margin-top:14px!important}}


/* Focused fixes from the current review. */
.brand-logo-window{position:relative!important;display:block!important;width:190px!important;height:42px!important;overflow:hidden!important;flex:0 0 auto!important}
.brand-logo-window>img.brand-logo{position:absolute!important;left:50%!important;top:50%!important;width:430px!important;max-width:none!important;height:auto!important;object-fit:initial!important;transform:translate(-50%,-50%)!important}
@media(max-width:850px){.brand-logo-window{width:126px!important;height:34px!important}.brand-logo-window>img.brand-logo{width:300px!important}}
@media(max-width:560px){.brand-logo-window{width:112px!important;height:34px!important}.brand-logo-window>img.brand-logo{width:272px!important}}
@media(max-width:370px){.brand-logo-window{width:96px!important;height:34px!important}.brand-logo-window>img.brand-logo{width:240px!important}}
.standalone-topbar-brand{position:relative!important;display:block!important;width:190px!important;height:42px!important;overflow:hidden!important;flex:0 0 auto!important}
.standalone-topbar-brand>img{position:absolute!important;left:50%!important;top:50%!important;width:430px!important;max-width:none!important;height:auto!important;object-fit:initial!important;transform:translate(-50%,-50%)!important}
@media(max-width:850px){.standalone-topbar-brand{width:126px!important;height:34px!important}.standalone-topbar-brand>img{width:300px!important}}
@media(max-width:560px){.standalone-topbar-brand{width:112px!important;height:34px!important}.standalone-topbar-brand>img{width:272px!important}}
@media(max-width:760px){
 #main[data-page="contacts"]{width:100%!important;max-width:100vw!important;min-width:0!important;margin-inline:0!important;padding-inline:14px!important;overflow-x:hidden!important}
 #main[data-page="contacts"]>.register-page.register-contacts{width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important}
 #main[data-page="contacts"] .register-contacts .responsive-table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:14px auto!important;box-sizing:border-box!important}
 #main[data-page="contacts"] .register-contacts .responsive-table>table{width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:auto!important;table-layout:fixed!important}
 #main[data-page="contacts"] .register-contacts .responsive-table>table>tbody{width:100%!important;max-width:100%!important;margin-inline:auto!important}
 #main[data-page="contacts"] .register-contacts .responsive-table>table>tbody>tr{width:100%!important;max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}
}
#main[data-page="documentControl"]>.document-queue-toolbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;overflow:visible!important}
#main[data-page="documentControl"]>.document-queue-toolbar>.service-queues{display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;align-items:center!important;min-width:0!important;width:auto!important;margin:0!important;overflow-x:auto!important}
#main[data-page="documentControl"]>.document-queue-toolbar>.document-create-button{display:inline-flex!important;flex:0 0 auto!important;align-self:center!important;justify-self:auto!important;margin:0!important}
@media(max-width:720px){
 #main[data-page="documentControl"]>.document-queue-toolbar{flex-wrap:wrap!important;align-items:flex-start!important}
 #main[data-page="documentControl"]>.document-queue-toolbar>.service-queues{flex:1 0 100%!important;flex-wrap:wrap!important;overflow:visible!important}
 #main[data-page="documentControl"]>.document-queue-toolbar>.document-create-button{margin:0 0 0 auto!important}
}
.admin-page .standalone-workspace-link{min-height:44px!important;padding:9px 15px!important;border-radius:10px!important;font-size:14px!important;font-weight:700!important;white-space:nowrap!important}
.admin-page .standalone-workspace-link:hover{background:#edf5ff!important;border-color:#9dbce0!important}
@media(max-width:560px){.admin-page .standalone-workspace-link{width:auto!important;min-width:136px!important;padding-inline:10px!important;justify-content:center!important}.admin-page .standalone-workspace-link span{display:inline!important}}


/* Final refinements from the document and phone project-plan review. */
#main[data-page="documentControl"]>.document-queue-toolbar>.document-create-button{margin:0 10px 0 0!important}
@media(max-width:720px){#main[data-page="documentControl"]>.document-queue-toolbar>.document-create-button{margin:0 0 0 auto!important}}
@media(max-width:560px){
 .project-plan-dialog{box-sizing:border-box!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;min-width:0!important;max-height:calc(100dvh - 16px)!important;padding:14px!important;overflow:auto!important}
 .project-plan-dialog form{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;gap:10px!important}
 .project-plan-header,.project-plan-summary,.project-plan-phase-details,.project-plan-phase-list,.project-plan-rows,.project-plan-row,.project-plan-fields{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 .project-plan-summary{align-items:stretch!important;gap:8px!important;padding:10px!important}
 .project-plan-summary>strong,.project-plan-summary>span{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important}
 .project-plan-phase-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 .project-plan-phase-list>button{width:100%!important;min-width:0!important;max-width:100%!important;justify-content:space-between!important;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere!important}
 .project-plan-phase-details{max-height:120px!important;overflow:auto!important}
 .project-plan-phase-cards{grid-template-columns:1fr!important}
 .project-plan-rows{flex:1 0 180px!important;min-height:180px!important;overflow:auto!important}
 .project-plan-row{padding:10px!important}
 .project-plan-fields{grid-template-columns:minmax(0,1fr)!important}
 .project-plan-fields label,.project-plan-fields input,.project-plan-fields select{width:100%!important;min-width:0!important;max-width:100%!important}
 .project-plan-fields .plan-field-name,.project-plan-fields .plan-field-dependency{grid-column:auto!important}
}


/* Authentication: keep credential text readable and regular-weight on staff and client sign-in. */
.box input[type="email"],.box input[type="password"],#authCard input[type="email"],#authCard input[type="password"]{font-weight:400!important}
