.crm{--ink:#16294a;--ink-hover:#2e4c7f;--blue:#c8ddf2;--mist:#f1f6fb;--yellow:#f4d56a;--white:#fff;--bg:#f1f6fb;--surface:#fff;--surface-2:#f1f6fb;--fg:#16294a;--muted:#4a6290;--line:#16294a17;--line-2:#16294a33;--accent:#16294a;--accent-fg:#fff;--band:#16294a;--band-fg:#fff;--band-muted:#c8ddf2;--ok:#14633d;--ok-bg:#ddf1e6;--warn:#6b5200;--warn-bg:#fbefc4;--bad:#9a1c12;--bad-bg:#fbe1de;--neutral:#4a6290;--neutral-bg:#e8eef6;--error:#b42318;--success:#1f7a4d;--f-display:"Newsreader",Georgia,serif;--f-body:"Manrope",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--r:22px;--r-in:12px;background:var(--bg);min-height:100vh;color:var(--fg);font-family:var(--f-body);padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));text-align:left;margin:0;padding-block:0 40px;font-size:17px;line-height:1.6;display:flow-root}.crm,.crm *{box-sizing:border-box}.crm p{margin-block:1em}.crm button,.crm input,.crm select,.crm textarea{font:inherit;color:inherit}.crm :focus-visible{outline:3px solid var(--ink);outline-offset:3px}.crm .rec-head :focus-visible{outline-color:var(--yellow)}.crm h1,.crm h2,.crm h3{font-family:var(--f-display);font-optical-sizing:auto;color:var(--ink);font-weight:400}.crm .wrap{max-width:1360px;margin:0 auto}.crm .top{flex-wrap:wrap;align-items:center;gap:12px 20px;padding-block:22px 18px;display:flex}.crm .brand{align-items:center;gap:16px;margin-right:auto;padding:6px 0;display:flex}.crm .brand svg{width:190px;height:auto;display:block}@media (width<=640px){.crm .brand svg{width:150px}}.crm .label-caps,.crm .brand span{font-family:var(--f-body);letter-spacing:.2em;text-transform:uppercase;color:var(--muted);font-size:14px;font-weight:700}.crm .nav{background:var(--surface);border:1px solid var(--line);border-radius:999px;gap:4px;padding:4px;display:flex}.crm .nav button{cursor:pointer;color:var(--ink);background:0 0;border:0;border-radius:999px;padding:7px 18px;font-size:15px;font-weight:700}.crm .nav button:hover{color:var(--ink-hover)}.crm .nav button[aria-current=page]{background:var(--ink);color:#fff}.crm .btn{border:1px solid var(--ink);background:var(--surface);color:var(--ink);cursor:pointer;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:8px 18px;font-size:15px;font-weight:700;display:inline-flex}.crm .btn:hover{border-color:var(--ink-hover);color:var(--ink-hover)}.crm .btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}.crm .btn.primary:hover{background:var(--ink-hover);border-color:var(--ink-hover);color:#fff}.crm .btn.secondary{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}.crm .btn.secondary:hover{color:var(--ink);border-color:var(--yellow)}.crm .btn.danger{color:var(--bad);border-color:var(--bad)}.crm .btn.small{padding:4px 14px;font-size:14px}.crm .btn.block{width:100%}.crm .btn[disabled]{opacity:.5;cursor:not-allowed}.crm .link{color:var(--ink);cursor:pointer;text-underline-offset:4px;background:0 0;border:0;padding:0;font-size:15px;font-weight:700;text-decoration:underline}.crm .link:hover{color:var(--ink-hover)}.crm .status-line{color:var(--muted);font-size:15px}.crm .chips{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-bottom:16px;display:grid}.crm .chip{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);text-align:left;cursor:pointer;flex-direction:column;gap:2px;padding:14px 18px;display:flex}.crm .chip:hover{border-color:var(--ink-hover)}.crm .chip[aria-pressed=true]{border-color:var(--ink);background:var(--blue)}.crm .chip b{font-family:var(--f-display);font-variant-numeric:tabular-nums;font-size:30px;font-weight:400;line-height:1.1}.crm .chip span{color:var(--muted);font-size:15px}.crm .chip.warn b{color:var(--warn)}.crm .chip.bad b{color:var(--bad)}.crm .filters{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;display:flex}.crm .filters input[type=search]{flex:240px;min-width:0}.crm .field-input{border:1px solid var(--line-2);background:var(--surface);border-radius:var(--r-in);width:100%;min-height:40px;padding:8px 12px;font-size:16px}.crm .filters select{flex:0 auto;width:auto;max-width:100%}.crm textarea.field-input{resize:vertical;min-height:80px}.crm .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}.crm .table-wrap{overflow-x:auto}.crm table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.5}.crm th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2);padding:12px 14px;font-size:14px;font-weight:700;position:sticky;top:0}.crm th:first-child{border-top-left-radius:var(--r)}.crm th:last-child{border-top-right-radius:var(--r)}.crm th button{all:unset;cursor:pointer}.crm th button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}.crm td{border-bottom:1px solid var(--line);vertical-align:top;padding:10px 14px}.crm tr.row{cursor:pointer}.crm tr.row:hover td{background:var(--surface-2)}.crm td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.crm .name-cell{color:var(--ink);font-weight:700}.crm .sub,.crm .notset{color:var(--muted);font-size:14px}.crm .pill{white-space:nowrap;background:var(--neutral-bg);color:var(--neutral);border-radius:999px;padding:2px 12px;font-size:14px;font-weight:700;display:inline-block}.crm .pill.ok{background:var(--ok-bg);color:var(--ok)}.crm .pill.warn{background:var(--warn-bg);color:var(--warn)}.crm .pill.bad{background:var(--bad-bg);color:var(--bad)}.crm .pill.info{background:var(--blue);color:var(--ink)}.crm .empty{text-align:left;color:var(--muted);padding:40px 20px}.crm .empty h3{margin:0 0 6px;font-size:24px}.crm .rec-head{background:var(--band);color:var(--band-fg);border-radius:var(--r) var(--r) 0 0;flex-wrap:wrap;align-items:flex-start;gap:14px 24px;padding:20px 24px;display:flex}.crm .rec-head .who{min-width:0;margin-right:auto}.crm .rec-head .kicker{letter-spacing:.2em;text-transform:uppercase;color:var(--band-muted);font-size:14px;font-weight:700}.crm .rec-head h2{overflow-wrap:anywhere;color:var(--band-fg);margin:2px 0 0;font-size:32px;font-weight:400;line-height:1.15}.crm .rec-head .facts{flex-wrap:wrap;gap:10px 32px;width:100%;margin-top:4px;display:flex}.crm .rec-head .facts div{flex-direction:column;min-width:0;font-size:15px;display:flex}.crm .rec-head .facts span{color:var(--band-muted)}.crm .rec-head .facts b{overflow-wrap:anywhere;font-weight:700}.crm .rec-head .btn{color:var(--band-fg);background:0 0;border-color:#c8ddf299}.crm .rec-head .btn.secondary{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}.crm .back{color:var(--ink);cursor:pointer;background:0 0;border:0;margin-bottom:12px;padding:0;font-size:15px;font-weight:700}.crm .back:hover{color:var(--ink-hover)}.crm .tabs{border-bottom:1px solid var(--line);border-left:1px solid var(--line);border-right:1px solid var(--line);background:var(--surface);gap:2px;padding:0 12px;display:flex;overflow-x:auto}.crm .tabs button{color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;padding:12px 14px;font-size:15px;font-weight:700}.crm .tabs button:hover{color:var(--ink-hover)}.crm .tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}.crm .tabs .count{background:var(--blue);color:var(--ink);border-radius:999px;margin-left:6px;padding:0 8px;font-size:14px;display:inline-block}.crm .rec-body{background:var(--surface);border:1px solid var(--line);border-radius:0 0 var(--r) var(--r);border-top:0;padding:8px 24px 24px}.crm .section{margin-top:16px}.crm .section h3{background:var(--surface-2);border-radius:var(--r-in);justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px;padding:8px 14px;font-size:19px;font-weight:500;display:flex}.crm .grid{grid-template-columns:1fr 1fr;column-gap:32px;display:grid}@media (width<=760px){.crm .grid{grid-template-columns:1fr}}.crm .f{border-bottom:1px solid var(--line);grid-template-columns:minmax(120px,40%) 1fr auto;align-items:start;gap:10px;min-width:0;padding:8px 4px;display:grid}.crm .f.wide{grid-column:1/-1;grid-template-columns:minmax(120px,20%) 1fr auto}@media (width<=760px){.crm .f.wide{grid-template-columns:minmax(120px,40%) 1fr auto}}.crm .f label,.crm .f .lbl{color:var(--muted);padding-top:2px;font-size:15px}.crm .f .val{overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}.crm .f .val.blank{color:var(--muted);font-size:15px}.crm .pen{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:8px;padding:2px 6px;font-size:16px}.crm .pen:hover{color:var(--ink)}.crm .editing .f{grid-template-columns:minmax(120px,40%) 1fr}.crm .editing .f.wide{grid-template-columns:minmax(120px,20%) 1fr}.crm .savebar{z-index:5;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);margin-top:16px;margin-bottom:env(safe-area-inset-bottom,0px);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;padding:12px 16px;display:flex;position:sticky;bottom:0}.crm .savebar .msg{color:var(--muted);margin-right:auto;font-size:15px}.crm .meta{color:var(--muted);margin-top:16px;font-size:14px}.crm .cards{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;margin-top:16px;display:grid}.crm .card{border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2);flex-direction:column;gap:4px;min-width:0;padding:16px 18px;display:flex}.crm .card .role{letter-spacing:.2em;text-transform:uppercase;color:var(--muted);font-size:14px;font-weight:700}.crm .card .nm{overflow-wrap:anywhere;font-size:17px;font-weight:700}.crm .card .ln{overflow-wrap:anywhere;font-size:15px}.crm .card .acts{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.crm .form-grid{border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface-2);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px;padding:16px;display:grid}.crm .form-grid .full{grid-column:1/-1}.crm .form-grid label{color:var(--muted);flex-direction:column;gap:4px;font-size:15px;display:flex}.crm .form-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end;gap:8px;display:flex}.crm .missing{color:var(--warn);background:var(--warn-bg);border-radius:var(--r-in);margin-top:12px;padding:8px 14px;font-size:15px}.crm .log{flex-direction:column;margin:16px 0 0;padding:0;list-style:none;display:flex}.crm .log li{border-bottom:1px solid var(--line);grid-template-columns:150px 1fr;gap:12px;padding:12px 0;display:grid}@media (width<=560px){.crm .log li{grid-template-columns:1fr}}.crm .log .when{color:var(--muted);font-size:14px}.crm .log .what{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.crm .log .del{float:right}.crm .confirm{color:var(--bad);flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;display:flex}.crm .form-error,.crm .form-ok{align-items:flex-start;gap:8px;font-size:15px;font-weight:500;display:flex}.crm .form-error{color:var(--error)}.crm .form-ok{color:var(--success)}.crm .toast{left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));background:var(--ink);color:#fff;z-index:20;border-radius:999px;max-width:calc(100% - 32px);padding:10px 20px;font-size:15px;font-weight:700;position:fixed;transform:translate(-50%)}.crm .notice{background:var(--blue);color:var(--ink);border-radius:var(--r-in);margin-bottom:12px;padding:10px 14px;font-size:15px}.crm .sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.crm .sensitive{color:var(--muted);margin:12px 0 0;font-size:15px}.crm .centre-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);max-width:440px;margin:8vh auto 0;padding:32px}.crm .centre-card .brand{margin:0 0 8px}.crm .centre-card h1{margin:16px 0 8px;font-size:28px}.crm.compact-shell{--rail-width:204px;--top-height:64px;--row-compact:36px;padding:0}.crm .shell-top{height:var(--top-height);z-index:12;background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:20px;padding:0 24px;display:flex;position:sticky;top:0}.crm .shell-top .brand{flex-shrink:0;gap:12px;margin:0}.crm .shell-top .brand svg{width:164px}.crm .shell-top .brand span{letter-spacing:0;text-transform:none;white-space:nowrap;border-left:1px solid var(--line-2);padding-left:12px;font-size:14px}.crm .global-search{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-in);min-width:120px;max-width:480px;color:var(--muted);flex:1;align-items:center;gap:10px;margin-left:auto;padding:7px 12px;display:flex}.crm .global-search input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:none;font-size:14px;line-height:24px}.crm .global-search:focus-within{outline:3px solid var(--ink);outline-offset:3px}.crm .global-search input:focus-visible{outline:none}.crm .global-search input::placeholder{color:var(--muted)}.crm .staff-initials{background:var(--blue);width:34px;height:34px;color:var(--ink);border-radius:50%;flex-shrink:0;place-items:center;font-size:14px;font-weight:700;display:grid}.crm .shell-signout{height:36px;color:var(--muted);background:0 0;gap:7px;padding:6px 0;font-size:14px;font-weight:700}.crm .shell-signout:hover{color:var(--ink);background:0 0}.crm .shell-body{grid-template-columns:var(--rail-width) minmax(0,1fr);min-height:calc(100dvh - var(--top-height));display:grid}.crm .shell-rail{top:var(--top-height);height:calc(100dvh - var(--top-height));border-right:1px solid var(--line);background:var(--surface);flex-direction:column;padding:22px 12px 16px;display:flex;position:sticky;overflow-y:auto}.crm .shell-rail nav{flex-direction:column;gap:4px;display:flex}.crm .rail-link{width:100%;height:auto;min-height:40px;color:var(--muted);white-space:normal;text-align:left;background:0 0;border-radius:8px;justify-content:flex-start;align-items:center;gap:10px;padding:8px 12px;font-size:14px;font-weight:500;line-height:22px;display:flex}.crm .rail-link svg{flex-shrink:0}.crm .rail-link:hover{background:var(--surface-2);color:var(--ink)}.crm .rail-link[aria-current=page]{background:var(--ink);color:var(--accent-fg);font-weight:700}.crm .rail-link[disabled]{opacity:.55;color:var(--muted);cursor:default}.crm .rail-link small{font-size:14px;font-weight:400;line-height:20px;display:block}.crm .rail-heading{font-family:var(--f-body);color:var(--muted);letter-spacing:0;margin:28px 12px 10px;font-size:14px;font-weight:700}.crm .rail-footer{color:var(--muted);margin-top:auto;padding:28px 12px 0;font-size:14px}.crm .rail-message{color:var(--muted);padding:0 12px;font-size:14px}.crm .shell-content{width:100%;min-width:0;max-width:1440px;margin-inline:auto;padding:22px 24px 40px}.crm .view-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.crm .view-toolbar h1{margin:0;font-size:30px;line-height:36px}.crm .view-actions{flex-wrap:wrap;gap:8px;display:flex}.crm .view-actions .btn{height:34px;box-shadow:none}.crm .shell-coming-soon{border-top:1px solid var(--line);padding:36px 0}.crm .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.crm .dashboard-kpi{text-align:left;border:1px solid var(--line);background:var(--surface);height:auto;min-height:150px;color:var(--ink);white-space:normal;box-shadow:none;border-radius:8px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:12px;padding:16px 18px;font-size:14px;line-height:22px;display:flex}.crm .dashboard-kpi:hover{background:var(--blue);border-color:var(--ink)}.crm .dashboard-kpi b{font-family:var(--f-display);font-size:34px;font-weight:500;line-height:1.1}.crm .dashboard-kpi.bad b{color:var(--bad)}.crm .dashboard-kpi.warn b{color:var(--warn)}.crm .kpi-top{color:var(--muted);justify-content:space-between;display:flex}.crm .dashboard-future{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 28px;display:grid}.crm .dashboard-future>div{border-bottom:1px solid var(--line-2);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;font-size:14px;display:flex}.crm .work-heading{justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;display:flex}.crm .work-heading h2{margin:0;font-size:26px}.crm .my-work{border-top:1px solid var(--line-2);padding-top:22px}.crm .my-work-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;display:grid}.crm .my-work-columns>section{min-width:0}.crm .my-work-columns h3{margin:0;font-size:20px}.crm .my-work-columns p{margin:6px 0 12px}.crm .work-items{max-height:440px;margin:0;padding:0;list-style:none;overflow:auto}.crm .work-item{text-align:left;white-space:normal;border-bottom:1px solid var(--line);overflow-wrap:anywhere;width:100%;height:auto;color:var(--ink);background:0 0;border-radius:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:6px;padding:14px 0;font-size:14px;line-height:22px;display:flex}.crm .work-item:hover{background:var(--surface)}.crm .work-item-name{font-weight:700}.crm .work-empty{color:var(--muted);padding-block:16px;font-size:14px}.crm .work-table{border-radius:8px;max-height:70dvh;overflow:auto}.crm .work-table td{vertical-align:middle;font-size:14px}.crm .work-table th{z-index:1}.crm .work-table td.work-action{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;max-width:420px}.crm .work-record-link{white-space:normal;text-align:left;height:auto;color:var(--ink);justify-content:flex-start;min-width:120px;padding:0;font-size:14px;line-height:22px}.crm .work-list-filter{justify-content:space-between;align-items:flex-end;margin-bottom:16px}.crm .work-list-filter label{flex-direction:column;gap:6px;font-size:14px;display:flex}.crm.workload-dialog{background:var(--surface);border-radius:var(--r);width:min(640px,100vw - 32px);max-width:none;min-height:0;max-height:90dvh;box-shadow:none;padding:24px;overflow:auto}.crm.workload-dialog h2{letter-spacing:0;margin:0;padding-right:24px;font-size:24px}.crm .work-selection{max-height:340px;overflow:auto}.crm .work-selection label{border-bottom:1px solid var(--line);flex-direction:row;gap:12px;padding:12px 0;font-size:14px;line-height:22px;display:flex}.crm .work-selection input{accent-color:var(--ink);flex-shrink:0;width:18px;height:18px;margin-top:3px}.crm .work-selection label>span{overflow-wrap:anywhere;flex-direction:column;gap:4px;min-width:0;display:flex}.crm .work-selection small{color:var(--muted);font-size:14px}@media (width<=1000px){.crm .my-work-columns{grid-template-columns:1fr;gap:24px}.crm .work-items{max-height:300px}}@media (width<=760px){.crm .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm .dashboard-kpi{min-height:148px;padding:12px}.crm .dashboard-future{grid-template-columns:1fr;gap:0}.crm.workload-dialog{padding:20px}}.crm.compact-shell .chips{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:16px}.crm.compact-shell .chip{border-radius:8px;justify-content:space-between;min-height:82px;padding:10px 12px}.crm.compact-shell .chip b{font-size:27px}.crm.compact-shell .chip span{font-size:14px;line-height:20px}.crm .list-meta{justify-content:space-between;align-items:center;gap:10px;margin-block:12px;display:flex}.crm .list-meta p{margin:0}.crm .resident-view-controls{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;margin-left:auto;display:flex}.crm .resident-view-controls .btn{height:32px;box-shadow:none}.crm.resident-view-menu{border:1px solid var(--line-2);background:var(--surface);width:260px;max-width:calc(100vw - 24px);min-height:0;box-shadow:none;overflow-wrap:anywhere;border-radius:8px;padding:4px;font-size:14px;line-height:22px}.crm.resident-view-menu [role^=menuitem]{white-space:normal;cursor:pointer;letter-spacing:0;min-height:34px;font-size:14px}.crm.resident-view-menu [role^=menuitem][data-highlighted]{background:var(--blue);color:var(--ink)}.crm.resident-view-menu [data-disabled]{cursor:default}.crm.resident-view-dialog{border-radius:var(--r);background:var(--surface);width:min(440px,100vw - 32px);min-height:0;box-shadow:none;padding:24px}.crm.resident-view-dialog h2{letter-spacing:0;margin:0;padding-right:24px;font-size:24px}.crm.resident-view-dialog .view-share{flex-direction:row;align-items:center;gap:10px;font-size:15px}.crm .view-share input{accent-color:var(--ink);flex-shrink:0;width:18px;height:18px}@media (width<=760px){.crm .resident-view-controls{flex:100%;margin-left:0}}.crm .density-switch{border:1px solid var(--line-2);background:var(--surface);border-radius:999px;padding:2px;display:flex}.crm .density-switch button{height:28px;color:var(--muted);background:0 0;border-radius:999px;padding:4px 12px;font-size:14px;line-height:20px}.crm .density-switch button[aria-pressed=true]{background:var(--neutral-bg);color:var(--ink);font-weight:700}.crm .resident-table{scrollbar-gutter:stable;border-radius:8px;min-height:180px;max-height:calc(100dvh - 330px);overflow:auto}.crm .resident-table table{font-size:14px;line-height:22px}.crm .resident-table th{z-index:2;border-radius:0;padding:9px 12px}.crm .resident-table td{white-space:nowrap;vertical-align:middle;height:var(--row-compact);padding:4px 12px}.crm .resident-table .pill{border-radius:999px;align-items:center;height:24px;padding:2px 9px;line-height:20px;display:inline-flex}.crm .resident-table.compact .name-cell,.crm .resident-table.compact .sub{display:inline}.crm .resident-table.compact .sub{margin-left:7px}.crm .resident-table.comfortable td{height:56px;padding:10px 12px}.crm .row-edit{width:26px;min-width:26px;height:26px;color:var(--muted);background:0 0;border-radius:6px;padding:3px}.crm .row-edit:hover{background:var(--blue);color:var(--ink)}.crm .mobile-menu,.crm .rail-backdrop{display:none}@media (width<=1100px){.crm .shell-top .brand span{display:none}.crm.compact-shell .chips{grid-template-columns:repeat(3,minmax(0,1fr))}.crm .resident-table{max-height:calc(100dvh - 410px)}}@media (width<=760px){.crm.compact-shell{--top-height:112px}.crm .shell-top{height:var(--top-height);grid-template-columns:32px minmax(0,1fr) 34px 28px;gap:8px 12px;padding:10px 16px;display:grid}.crm .shell-top .brand svg{width:150px}.crm .global-search{grid-area:2/1/auto/-1;width:100%;max-width:none;margin:0}.crm .mobile-menu{width:32px;height:32px;color:var(--ink);background:0 0;border-radius:6px;padding:4px;display:inline-flex}.crm .shell-signout{width:28px;min-width:28px;padding:4px}.crm .shell-signout span{display:none}.crm .shell-body{display:block}.crm .shell-rail{z-index:15;left:0;top:var(--top-height);width:240px;height:calc(100dvh - var(--top-height));display:none;position:fixed}.crm .shell-rail.is-open{display:flex}.crm .rail-backdrop{inset:var(--top-height) 0 0;z-index:14;background:color-mix(in srgb,var(--ink) 20%,transparent);border-radius:0;width:100%;height:auto;display:block;position:fixed}.crm .rail-backdrop:hover{background:color-mix(in srgb,var(--ink) 20%,transparent)}.crm .shell-content{padding:18px 16px 32px}.crm .view-toolbar h1{font-size:28px}.crm.compact-shell .chips{grid-template-columns:repeat(2,minmax(0,1fr))}.crm .resident-table{min-height:180px;max-height:65dvh}.crm .list-meta{flex-wrap:wrap}}.crm .stack{flex-direction:column;gap:14px;display:flex}.crm .resident-drawer{z-index:18;background:var(--surface);border-left:1px solid var(--line-2);width:min(560px,100%);height:100dvh;color:var(--ink);outline:none;flex-direction:column;display:flex;position:fixed;inset:0 0 0 auto}.crm .drawer-toolbar{border-bottom:1px solid var(--line);background:var(--surface);flex-shrink:0;align-items:center;gap:6px;min-height:60px;padding:12px 16px;display:flex}.crm .drawer-icon{width:32px;height:32px;color:var(--muted);background:0 0;border-radius:6px;flex-shrink:0;padding:6px}.crm .drawer-icon:hover{background:var(--surface-2);color:var(--ink)}.crm .drawer-full{height:34px;box-shadow:none;margin-left:auto}.crm .drawer-content{overscroll-behavior:contain;flex:1;min-height:0;overflow:auto}.crm .resident-drawer .rec-head{border-radius:0;gap:10px;padding:20px;display:flex}.crm .resident-drawer .rec-head .who{width:100%}.crm .resident-drawer .rec-head h2{font-size:28px}.crm .resident-drawer .facts{grid-template-columns:1fr 1fr;gap:12px 20px;display:grid}.crm .resident-drawer .facts .drawer-next-action{order:2;grid-column:1/-1}.crm .resident-drawer .rec-body{border:0;border-radius:0;padding:8px 20px 24px}.crm .resident-drawer .tabs{z-index:3;border-inline:0;padding:0 8px;position:sticky;top:0}.crm .resident-drawer .tabs button{padding:10px;font-size:14px}.crm .resident-drawer .grid{grid-template-columns:1fr}.crm .resident-drawer .f.wide,.crm .resident-drawer .editing .f.wide{grid-template-columns:minmax(120px,40%) 1fr}.crm .resident-drawer .f.wide:not(.editing .f.wide){grid-template-columns:minmax(120px,40%) 1fr auto}.crm .resident-drawer .log li{grid-template-columns:1fr;gap:4px}.crm .resident-drawer .form-grid{grid-template-columns:1fr;padding:12px}.crm .resident-table .selected-row td{background:var(--blue)}@media (width<=760px){.crm .resident-drawer{border-left:0;width:100%}.crm .drawer-toolbar{padding-top:max(12px,env(safe-area-inset-top))}.crm .drawer-content{padding-bottom:env(safe-area-inset-bottom)}}.crm .stack label{flex-direction:column;gap:6px;display:flex}@media (prefers-reduced-motion:no-preference){.crm .chip,.crm .btn,.crm tr.row td{transition:border-color .15s,background .15s,color .15s}}.crm .timeline-filter{margin-block:12px}.crm .timeline-filter .btn[aria-pressed=true]{background:var(--blue);border-color:var(--ink)}.crm.correspondence-dialog{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);width:min(960px,100% - 32px);max-width:none;min-height:0;max-height:90dvh;box-shadow:none;padding:28px;display:block;overflow-y:auto}.crm.correspondence-dialog h2{letter-spacing:0;overflow-wrap:anywhere;padding-right:24px;font-size:24px;line-height:1.3}.crm .correspondence-controls{margin-block:16px}.crm .correspondence-controls label{flex-direction:column;gap:4px;display:flex}.crm .correspondence-entry{border-top:1px solid var(--line);overflow-wrap:anywhere;padding-block:16px}.crm .correspondence-entry h3{margin:0 0 12px;font-size:19px}.crm .correspondence-entry dl{grid-template-columns:120px minmax(0,1fr);gap:6px 16px;margin:0;display:grid}.crm .correspondence-entry dt{color:var(--muted);font-size:14px;font-weight:700}.crm .correspondence-entry dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}@media (width<=560px){.crm.correspondence-dialog{padding:20px}.crm .correspondence-entry dl{grid-template-columns:1fr;gap:4px}.crm .correspondence-entry dd{margin-bottom:8px}.crm .correspondence-controls .btn{white-space:normal;height:auto}}@media print{@page correspondence{size:A4;margin:15mm}body:has(#correspondence-record){height:auto!important;overflow:visible!important}body:has(#correspondence-record)>:not(#correspondence-record):not(:has(#correspondence-record)){display:none!important}.crm.correspondence-dialog{page:correspondence;opacity:1!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;animation:none!important;display:block!important;position:static!important;inset:auto!important;overflow:visible!important;transform:translate(0)scale(1)!important}#correspondence-record .correspondence-controls,#correspondence-record>button{display:none!important}#correspondence-record .correspondence-entry{break-inside:avoid}}.crm .my-work-columns{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.crm .plan-detail,.crm .plan-new{gap:12px;padding:16px;display:grid}.crm .plan-detail-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.crm .plan-detail-head h3{min-width:0;margin:0}.crm .plan-steps{gap:8px;margin:0;padding:0;list-style:none;display:grid}.crm .plan-steps>li{border:1px solid var(--line);background:var(--surface,#fff);border-radius:12px;padding:10px}.crm .plan-steps>li.is-closed{opacity:.7}.crm .plan-step-row{grid-template-columns:auto minmax(0,1fr) 180px 150px 190px;align-items:center;gap:8px;display:grid}.crm .plan-new .plan-step-row{grid-template-columns:minmax(0,1fr) 180px 150px auto auto}.crm .plan-step-title{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.crm .plan-move{gap:4px;display:flex}.crm .plan-approval{margin-top:8px}.crm .plan-add-step{grid-template-columns:minmax(0,1fr) 160px auto auto;align-items:center;gap:8px;display:grid}.crm .plan-overdue{margin-left:6px}.crm .linkish{color:var(--ink,#16294a);cursor:pointer;text-align:left;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}.crm .plan-new .check,.crm .plan-add-step .check,.crm .work-list-filter .check{align-items:center;gap:6px;display:flex}@media (width<=760px){.crm .plan-step-row,.crm .plan-new .plan-step-row,.crm .plan-add-step{grid-template-columns:1fr}}.crm .req-btn{border:1px solid var(--line-2);color:var(--muted);cursor:pointer;background:0 0;border-radius:999px;margin-left:8px;padding:1px 9px;font-size:12px}.crm .req-btn:hover{color:inherit;border-color:currentColor}.crm .req-pill{margin-left:8px;font-size:11px}.crm .dashboard-request{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0;display:flex}.crm .info-requests ul{gap:10px;margin:0;padding:0;list-style:none;display:grid}.crm .info-request{border:1px solid var(--line-2);border-radius:14px;padding:12px 14px}.crm .info-request-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.crm .info-answer,.crm .info-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.crm .info-answer .field-input{flex:180px;min-width:0}.crm .notify{flex-shrink:0;position:relative}.crm .notify-bell{width:36px;height:36px;color:var(--ink);padding:0;position:relative}.crm .notify-count{background:var(--ink);color:#fff;text-align:center;border-radius:9px;min-width:17px;height:17px;padding:0 4px;font-size:11px;font-weight:700;line-height:17px;position:absolute;top:2px;right:0}.crm .notify-panel{z-index:60;border:1px solid var(--line);background:#fff;border-radius:14px;width:min(360px,100vw - 24px);max-height:70vh;position:absolute;top:44px;right:0;overflow:auto;box-shadow:0 12px 32px #16294a29}.crm .notify-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.crm .notify-empty{color:var(--muted);padding:16px 14px;font-size:14px}.crm .notify-panel ul{margin:0;padding:0;list-style:none}.crm .notify-panel li{border-bottom:1px solid var(--line);align-items:flex-start;gap:6px;display:flex}.crm .notify-panel li>button:first-child{text-align:left;cursor:pointer;min-width:0;color:var(--ink);background:0 0;border:0;flex-direction:column;flex:1;gap:2px;padding:10px 14px;font-size:14px;display:flex}.crm .notify-panel li.unread{background:var(--mist,#f1f6fb)}.crm .notify-panel li.unread>button:first-child span{font-weight:700}.crm .notify-panel small{color:var(--muted);font-size:12px}.crm .notify-mark{color:var(--muted);cursor:pointer;background:0 0;border:0;flex-shrink:0;margin:10px 10px 0 0;padding:2px 6px;font-size:12px;text-decoration:underline}.crm .mention-list{border:1px solid var(--line);background:#fff;border-radius:10px;max-width:320px;margin:4px 0 0;padding:4px;list-style:none;box-shadow:0 8px 20px #16294a1f}.crm .mention-list button{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;width:100%;padding:6px 10px;font-size:14px;display:block}.crm .mention-list button:hover{background:var(--blue)}.crm .mention-field{flex-direction:column;gap:4px;display:flex}.crm .arrears-now{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:6px;display:flex}.crm .arrears-now b{font-family:var(--f-display);color:var(--ink);font-size:24px}.crm .arrears-history{border-collapse:collapse;width:100%;margin-top:10px;font-size:14px}.crm .arrears-history th,.crm .arrears-history td{text-align:left;border-bottom:1px solid var(--line);vertical-align:top;padding:6px 8px}.crm .arrears-history td .btn{margin-left:6px}.crm .arrears-buckets{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.crm .arrears-buckets .work-item{flex-direction:column;align-items:flex-start;height:auto;padding:10px 12px;display:flex}.crm .arrears-scroll{overflow-x:auto}.crm .sda-group-head{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px;display:flex}.crm .sda-group-head h3{margin:0}.crm .sda-view{flex-direction:column;gap:12px;display:flex}.crm .handover-groups{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:12px 0;display:grid}.crm .handover-group{border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:6px;max-height:280px;padding:10px 12px;display:flex;overflow:auto}.crm .handover-group label{align-items:flex-start;gap:8px;font-size:14px;display:flex}.crm .handover-note{flex-direction:column;gap:4px;display:flex}.crm .handover-preview{color:var(--ink);font-weight:700}.crm .stripe-pair{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:16px;display:grid}.crm .stripe-snap+.stripe-snap{border-top:1px solid var(--line,#dfe7f1);margin-top:8px;padding-top:8px}.crm .module-sub{padding-left:28px}.crm .bank-feed .tbl{width:100%;margin-top:8px}.crm .bank-confirmed ul{margin:4px 0;padding-left:18px}.crm .doc-links{margin:4px 0 8px;padding:0;list-style:none}.crm .doc-links li{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0;display:flex}@media print{body:has(#report-print) *{visibility:hidden}:is(body:has(#report-print) #report-print,body:has(#report-print) #report-print *){visibility:visible}#report-print{width:100%;position:absolute;inset:0 auto auto 0}#report-print .report-controls{display:none!important}}.crm .profile-menu{position:relative}.crm .profile-pop{z-index:40;background:#fff;border:1px solid #dfe7f1;border-radius:14px;min-width:220px;padding:12px 14px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #16294a1f}.crm .profile-pop p{margin:0 0 8px}.crm .quick-log{flex-wrap:wrap;gap:8px;display:flex}.crm .quick-log .btn[aria-pressed=true]{background:var(--blue);border-color:var(--ink)}@media (width<=760px){.crm .resident-table [data-col]:not([data-col=name],[data-col=site],[data-col=owner],[data-col=status]){display:none}.crm .resident-table td[data-col=name]{white-space:normal;min-width:0}.crm .resident-table table{width:100%}.crm .shell-content,.crm .panel{min-width:0;max-width:100%}.crm .shell-content{overflow-x:hidden}.crm .view-toolbar,.crm .list-meta,.crm .filters{flex-wrap:wrap}.crm .quick-log .btn{flex:1 1 0;min-height:44px}}
