.lesc-portal-app{min-height:calc(100vh - 110px)}
.lesc-app-loading{padding:28px;background:rgba(255,255,255,.92);border:1px solid var(--lesc-line);border-radius:24px;box-shadow:var(--lesc-shadow-soft);font-weight:900;color:var(--lesc-primary);display:flex;align-items:center;gap:12px}.lesc-app-loading:before{content:"";width:12px;height:12px;border-radius:50%;background:var(--lesc-primary-2);box-shadow:0 0 0 7px rgba(20,118,201,.12)}
.lesc-app{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}
.lesc-sidebar{position:sticky;top:92px;color:#fff;border-radius:30px;padding:20px;min-height:calc(100vh - 136px);background:linear-gradient(180deg,#102a4c 0%,#0a223e 52%,#071b32 100%);box-shadow:0 30px 65px rgba(7,27,50,.24);overflow:hidden}
.lesc-sidebar:before{content:"";position:absolute;inset:-120px -140px auto auto;width:270px;height:270px;border-radius:999px;background:radial-gradient(circle,rgba(110,168,254,.28),transparent 70%);pointer-events:none}.lesc-sidebar:after{content:"";position:absolute;left:-80px;bottom:-100px;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(18,148,71,.20),transparent 70%);pointer-events:none}
.lesc-sidebar>*{position:relative;z-index:1}
.lesc-side-logo{display:flex;align-items:center;gap:13px;padding:8px 8px 22px;border-bottom:1px solid rgba(255,255,255,.13);margin-bottom:18px}.lesc-side-mark{width:50px;height:50px;border-radius:18px;background:#fff;color:var(--lesc-primary);display:grid;place-items:center;font-weight:950;letter-spacing:-.04em;box-shadow:0 14px 26px rgba(0,0,0,.16)}.lesc-side-logo strong{display:block;font-size:17px;line-height:1.12}.lesc-side-logo span{display:block;color:#c6d5e6;font-size:12px;margin-top:5px;font-weight:800}
.lesc-nav{display:grid;gap:8px}.lesc-nav button{appearance:none;border:1px solid transparent;background:transparent;color:#d6e2ef;text-align:left;border-radius:17px;padding:14px 13px;font-weight:900;cursor:pointer;display:flex;align-items:center;gap:11px;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.lesc-nav button:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(1px)}.lesc-nav button.active{background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.10));border-color:rgba(255,255,255,.18);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}.lesc-nav button .dot{width:10px;height:10px;border-radius:50%;background:#7bb3ff;display:inline-block;box-shadow:0 0 0 5px rgba(123,179,255,.13)}.lesc-nav button.active .dot{background:#fff}
.lesc-side-footer{margin-top:20px;border-top:1px solid rgba(255,255,255,.13);padding-top:18px;color:#cbd8e7;font-size:12px;line-height:1.55}.lesc-side-footer strong{display:block;color:#fff;margin-bottom:8px}.lesc-mini-legend{display:grid;gap:8px}.lesc-mini-legend span{display:flex;align-items:center;gap:8px}.lesc-mini-legend i{width:9px;height:9px;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.lesc-main{min-width:0;display:grid;gap:20px}.lesc-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:rgba(255,255,255,.92);border:1px solid rgba(215,228,242,.9);border-radius:30px;padding:24px 26px;box-shadow:var(--lesc-shadow-soft);overflow:hidden;position:relative}.lesc-topbar:after{content:"";position:absolute;right:-55px;top:-70px;width:190px;height:190px;border-radius:999px;background:radial-gradient(circle,rgba(20,118,201,.10),transparent 70%);pointer-events:none}.lesc-topbar>*{position:relative;z-index:1}.lesc-topbar h1{font-size:clamp(26px,3vw,36px);line-height:1.05;margin:0;color:var(--lesc-heading);letter-spacing:-.05em}.lesc-topbar p{margin:8px 0 0;color:var(--lesc-muted);line-height:1.5;font-size:15px;max-width:850px}
.lesc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.lesc-kpi{background:rgba(255,255,255,.94);border:1px solid rgba(215,228,242,.92);border-radius:24px;padding:20px;box-shadow:var(--lesc-shadow-soft);position:relative;overflow:hidden;min-height:150px}.lesc-kpi:before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,var(--lesc-primary),var(--lesc-primary-2))}.lesc-kpi:nth-child(2):before{background:linear-gradient(90deg,#4169e1,#7da0ff)}.lesc-kpi:nth-child(3):before{background:linear-gradient(90deg,#f47b20,#ffba6a)}.lesc-kpi:nth-child(4):before{background:linear-gradient(90deg,#129447,#59c784)}.lesc-kpi span{display:block;color:var(--lesc-muted);font-size:12px;font-weight:950;margin-bottom:10px;text-transform:uppercase;letter-spacing:.055em}.lesc-kpi strong{display:block;font-size:42px;line-height:.95;color:var(--lesc-heading);letter-spacing:-.065em}.lesc-kpi small{display:block;color:var(--lesc-muted);margin-top:12px;line-height:1.42;font-weight:650}
.lesc-card,.lesc-calendar{background:rgba(255,255,255,.94);border:1px solid rgba(215,228,242,.9);border-radius:28px;box-shadow:var(--lesc-shadow-soft);overflow:hidden}.lesc-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 24px;border-bottom:1px solid var(--lesc-line-2);background:linear-gradient(180deg,#fff,#f8fbff)}.lesc-card-head h2{font-size:21px;margin:0;color:var(--lesc-heading);letter-spacing:-.025em}.lesc-card-head p{margin:6px 0 0;color:var(--lesc-muted);font-size:14px;line-height:1.45}.lesc-card-body{padding:22px 24px}.lesc-split{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:20px}
.lesc-list{display:grid;gap:14px}.lesc-item{border:1px solid var(--lesc-line-2);border-radius:22px;padding:17px;background:linear-gradient(180deg,#fff,#f9fcff);display:grid;gap:12px;box-shadow:0 10px 26px rgba(12,36,64,.045);position:relative}.lesc-item:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:4px;border-radius:0 999px 999px 0;background:#d6e4f4}.lesc-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.lesc-item h3{margin:0;font-size:17px;color:var(--lesc-heading);letter-spacing:-.018em}.lesc-item p{margin:0;color:var(--lesc-muted);font-size:14px;line-height:1.52}.lesc-item strong{color:#263a53}.lesc-item .lesc-btn{padding:10px 12px;border-radius:12px;font-size:13px}
.lesc-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;background:#eef6ff;color:var(--lesc-primary);font-size:12px;font-weight:950;white-space:nowrap;border:1px solid rgba(207,227,248,.8)}.lesc-badge.warn{background:#fff7ed;color:var(--lesc-warn);border-color:#fed7aa}.lesc-badge.good{background:#ecfdf3;color:var(--lesc-good);border-color:#bbf7d0}.lesc-badge.danger{background:#fff1f2;color:var(--lesc-danger);border-color:#fecdd3}.lesc-badge.gray{background:#f3f6fa;color:#50647d;border-color:#e2e8f0}
.lesc-house-chip{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#fff;border:1px solid var(--lesc-line);padding:7px 11px;font-size:12px;font-weight:950;color:#32465f;box-shadow:0 4px 12px rgba(12,36,64,.04)}.lesc-house-dot{width:10px;height:10px;border-radius:999px;display:inline-block;box-shadow:0 0 0 4px rgba(15,23,42,.055)}.lesc-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.lesc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.lesc-form-grid.full{grid-template-columns:1fr}.lesc-field{display:grid;gap:7px}.lesc-field label{font-size:12px;color:#334155;font-weight:950;text-transform:uppercase;letter-spacing:.055em}.lesc-field input,.lesc-field select,.lesc-field textarea{width:100%;border:1px solid var(--lesc-line);border-radius:15px;background:#f8fbff;padding:13px 14px;color:var(--lesc-ink);outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.lesc-field textarea{min-height:124px;resize:vertical;line-height:1.5}.lesc-field input[type=file]{background:#fff;border-style:dashed}.lesc-field input:focus,.lesc-field select:focus,.lesc-field textarea:focus{border-color:#94c6f4;box-shadow:0 0 0 4px rgba(20,118,201,.12);background:#fff}.lesc-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.lesc-calendar-wrap{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:20px}.lesc-cal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--lesc-line-2);background:linear-gradient(180deg,#fff,#f8fbff)}.lesc-cal-head h2{margin:0;font-size:22px;color:var(--lesc-heading);letter-spacing:-.025em}.lesc-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#e4edf8;gap:1px}.lesc-cal-dayname{background:#f8fbff;padding:12px 8px;text-align:center;font-weight:950;font-size:12px;color:var(--lesc-muted);text-transform:uppercase;letter-spacing:.075em}.lesc-day{min-height:146px;background:#fff;padding:10px;display:grid;align-content:start;gap:7px;position:relative}.lesc-day.muted{background:#f6f9fd;color:#9aaabe}.lesc-day.today{box-shadow:inset 0 0 0 2px var(--lesc-primary)}.lesc-day-num{font-size:12px;font-weight:950;color:#334155;display:flex;justify-content:space-between;align-items:center}.lesc-day-num small{background:#eaf3ff;color:var(--lesc-primary);border-radius:999px;padding:2px 7px}.lesc-event{appearance:none;border:0;border-radius:12px;color:#fff;padding:8px;font-size:12px;font-weight:950;text-align:left;cursor:pointer;line-height:1.22;box-shadow:0 10px 18px rgba(15,23,42,.16);transition:transform .14s ease,filter .14s ease}.lesc-event:hover{transform:translateY(-1px);filter:saturate(1.08)}.lesc-event span{display:block;font-weight:750;opacity:.92;margin-top:3px}.lesc-agenda{display:grid;gap:11px;max-height:780px;overflow:auto;padding-right:3px}.lesc-house-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.lesc-table{width:100%;border-collapse:separate;border-spacing:0 10px}.lesc-table th{text-align:left;color:var(--lesc-muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em;padding:0 11px;font-weight:950}.lesc-table td{background:#fbfdff;border-top:1px solid var(--lesc-line-2);border-bottom:1px solid var(--lesc-line-2);padding:13px 11px;font-size:14px;vertical-align:middle}.lesc-table td:first-child{border-left:1px solid var(--lesc-line-2);border-radius:16px 0 0 16px}.lesc-table td:last-child{border-right:1px solid var(--lesc-line-2);border-radius:0 16px 16px 0}.lesc-table tr:hover td{background:#f5faff}
.lesc-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.lesc-tabs button{appearance:none;border:1px solid var(--lesc-line);background:#fff;color:#334155;border-radius:999px;padding:10px 14px;font-weight:950;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.lesc-tabs button.active{background:linear-gradient(135deg,var(--lesc-primary),var(--lesc-primary-2));color:#fff;border-color:transparent;box-shadow:0 12px 22px rgba(14,79,143,.18)}.lesc-empty{border:1px dashed #c2d3e7;border-radius:22px;padding:30px;text-align:center;background:linear-gradient(180deg,#fff,#f8fbff);color:var(--lesc-muted);font-weight:800;line-height:1.55}.lesc-empty:before{content:"✓";display:grid;place-items:center;width:38px;height:38px;margin:0 auto 10px;border-radius:50%;background:#edf7ff;color:var(--lesc-primary);font-weight:950}
.lesc-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(4,18,35,.62);backdrop-filter:blur(10px);z-index:9999}.lesc-modal.open{display:flex}.lesc-modal-card{width:min(880px,100%);max-height:91vh;overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.65);border-radius:28px;box-shadow:0 34px 90px rgba(0,0,0,.30)}.lesc-modal-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:20px 24px;border-bottom:1px solid var(--lesc-line-2);background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}.lesc-modal-head h2{margin:0;color:var(--lesc-heading);font-size:22px;letter-spacing:-.025em}.lesc-modal-body{padding:22px 24px}.lesc-x{appearance:none;border:1px solid var(--lesc-line);background:#f4f7fb;border-radius:13px;width:40px;height:40px;font-size:22px;line-height:1;cursor:pointer;color:#334155}.lesc-x:hover{background:#eaf1f9}
.lesc-docs{display:grid;gap:9px;margin-top:10px}.lesc-doc{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--lesc-line-2);border-radius:16px;padding:11px;background:#fff}.lesc-doc small{color:var(--lesc-muted)}.lesc-doc a{color:var(--lesc-primary);font-weight:950;text-decoration:none;background:#edf5ff;border:1px solid #cfe3f8;border-radius:999px;padding:7px 10px}.lesc-toast{position:fixed;right:20px;bottom:20px;z-index:10000;background:#10233f;color:#fff;border-radius:18px;padding:15px 17px;box-shadow:0 18px 42px rgba(2,8,23,.28);display:none;font-weight:900;max-width:min(420px,calc(100vw - 40px))}.lesc-toast.show{display:block;animation:lescToast .2s ease-out}@keyframes lescToast{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.lesc-notification-grid{display:grid;gap:11px}.lesc-notification{display:grid;grid-template-columns:120px 120px 1fr 140px;gap:12px;align-items:start;border:1px solid var(--lesc-line-2);border-radius:18px;background:#fbfdff;padding:13px}.lesc-notification strong{color:var(--lesc-heading)}.lesc-notification small{color:var(--lesc-muted);font-weight:750}.lesc-pill{border-radius:999px;padding:6px 10px;background:#eef6ff;color:var(--lesc-primary);font-size:12px;font-weight:950;display:inline-flex;width:max-content}.lesc-pill.sent{background:#ecfdf3;color:var(--lesc-good)}.lesc-pill.error{background:#fff1f2;color:var(--lesc-danger)}.lesc-pill.skipped{background:#f3f6fa;color:#64748b}.lesc-pill.queued{background:#fff7ed;color:var(--lesc-warn)}
@media (max-width:1240px){.lesc-app{grid-template-columns:1fr}.lesc-sidebar{position:relative;top:auto;min-height:auto;border-radius:24px}.lesc-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.lesc-side-footer{display:none}.lesc-calendar-wrap,.lesc-split{grid-template-columns:1fr}.lesc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-calendar-wrap{gap:18px}}
@media (max-width:780px){.lesc-page{width:min(100% - 14px,1480px)}.lesc-topbar{flex-direction:column;border-radius:22px;padding:20px}.lesc-kpi-grid,.lesc-form-grid,.lesc-house-legend{grid-template-columns:1fr}.lesc-nav{grid-template-columns:1fr 1fr}.lesc-card-head{flex-direction:column}.lesc-day{min-height:116px;padding:7px}.lesc-event{font-size:11px;padding:6px}.lesc-cal-dayname{font-size:10px;padding:10px 4px}.lesc-sidebar{padding:13px}.lesc-card,.lesc-calendar{border-radius:22px}.lesc-card-body,.lesc-card-head,.lesc-modal-body,.lesc-modal-head{padding:17px}.lesc-table{display:block;overflow:auto;white-space:nowrap}.lesc-form-actions{justify-content:stretch;flex-direction:column}.lesc-btn{width:100%}.lesc-item-top{flex-direction:column}.lesc-notification{grid-template-columns:1fr}.lesc-modal{padding:10px}.lesc-modal-card{border-radius:22px}}
@media (max-width:520px){.lesc-nav{grid-template-columns:1fr}.lesc-kpi strong{font-size:36px}.lesc-calendar{margin-left:-4px;margin-right:-4px}.lesc-cal-head{flex-wrap:wrap}.lesc-cal-head h2{order:-1;width:100%;text-align:center}.lesc-day{min-height:96px}.lesc-event{white-space:normal}.lesc-topbar h1{font-size:28px}}

/* v1.2 operational workflow additions */
.lesc-searchbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:18px 20px;border:1px solid rgba(186,207,231,.9);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(239,247,255,.88));box-shadow:0 16px 38px rgba(19,64,112,.09)}
.lesc-searchbar strong{display:block;color:var(--lesc-heading);font-size:17px;font-weight:950;letter-spacing:-.02em}.lesc-searchbar span{display:block;color:var(--lesc-muted);font-weight:800;font-size:13px;margin-top:4px}.lesc-searchbar input{width:min(560px,48vw);border:1px solid #c9dbef;background:#fff;border-radius:999px;padding:14px 18px;font-weight:850;color:#0b2f57;box-shadow:inset 0 1px 0 rgba(15,23,42,.03)}.lesc-searchbar input:focus{outline:none;border-color:#7eb6f3;box-shadow:0 0 0 4px rgba(20,118,201,.12)}
.lesc-side-tip{margin-top:18px;padding:14px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.07)}.lesc-side-tip strong{display:block;color:#fff;margin-bottom:5px}.lesc-side-tip span{display:block;color:#c8d8e9;font-size:12px;line-height:1.45;font-weight:750}
.lesc-workflow-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0 0 22px}.lesc-workflow-strip div{position:relative;min-height:72px;border:1px solid #d5e5f6;border-radius:20px;background:rgba(255,255,255,.86);padding:13px 12px;box-shadow:0 14px 30px rgba(14,79,143,.07)}.lesc-workflow-strip b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--lesc-primary),var(--lesc-primary-2));color:#fff;font-size:13px;margin-bottom:8px}.lesc-workflow-strip span{display:block;font-weight:950;color:#17395d;font-size:12px;line-height:1.25}
.lesc-calendar-tools{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;margin:0 0 16px}.lesc-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lesc-filter-grid select{width:100%;border:1px solid var(--lesc-line);border-radius:999px;background:#fff;padding:11px 13px;font-weight:900;color:#26415f}.lesc-actions.wrap{flex-wrap:wrap}.lesc-actions.mini{gap:6px;margin-top:8px}.lesc-actions.mini button{border:1px solid #cfe0f3;border-radius:999px;background:#fff;color:#0f4e8f;font-weight:900;padding:6px 9px;font-size:11px;cursor:pointer}
.lesc-agenda.big{padding:18px;display:grid;gap:10px}.lesc-agenda-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #dce9f7;border-radius:18px;background:#fff;padding:13px}.lesc-agenda-row strong{display:block;color:#082c52}.lesc-agenda-row span{display:block;color:#5f7189;font-weight:800;margin-top:3px}
.lesc-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.lesc-profile-card{border:1px solid #d7e6f6;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:22px;padding:18px;box-shadow:0 18px 42px rgba(15,65,112,.07)}.lesc-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.lesc-profile-head h3{margin:0;color:#082c52;font-size:20px;letter-spacing:-.02em}.lesc-profile-head p{margin:5px 0 0;color:#667a93;font-weight:800}.lesc-profile-meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.lesc-profile-meta span{font-size:12px;font-weight:950;border-radius:999px;background:#eff6ff;color:#0f4e8f;border:1px solid #d4e7fb;padding:6px 9px}.lesc-profile-card p{color:#42556f;font-weight:760}.lesc-profile-detail{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px}.lesc-profile-main{border:1px solid #d9e8f7;border-radius:22px;background:#f8fbff;padding:18px;align-self:start}.lesc-profile-main h3{margin-top:0;color:#082c52}.lesc-profile-main p{border-bottom:1px solid #e4edf7;padding-bottom:10px;color:#334155;line-height:1.45}.lesc-profile-main p:last-child{border-bottom:0}
.lesc-house-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.lesc-house-column{border:1px solid #d9e8f7;border-radius:22px;padding:14px;background:linear-gradient(180deg,#fff,#f9fcff);min-width:0}.lesc-house-column h3{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;color:#082c52}.lesc-house-column h3 span:not(.lesc-house-chip){font-size:13px;border-radius:999px;background:#edf6ff;color:#0f4e8f;padding:5px 9px}.lesc-empty.small{padding:18px;font-size:13px}.lesc-briefing-message{border:1px solid #d6e7f9;border-radius:22px;background:#f7fbff;padding:18px;margin-bottom:18px}.lesc-briefing-message h3{margin:0 0 10px;color:#082c52}.lesc-briefing-message pre{white-space:pre-wrap;margin:0;background:#fff;border:1px dashed #bed4ec;border-radius:16px;padding:14px;color:#0f2d4f;font-family:inherit;font-weight:850;line-height:1.45}
.lesc-update-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.lesc-update-grid p{margin:0;border:1px solid #e1ecf7;border-radius:16px;background:#fff;padding:12px;color:#34465e}.lesc-update-grid p.wide{grid-column:1/-1}.lesc-item.update-card{border-left:5px solid #6ea8fe}.lesc-item.task{border-left:5px solid #f59e0b}.lesc-item.appointment{border-left:5px solid #1476c9}.lesc-item.compact{padding:14px}.lesc-doc-card{border:1px solid #dce9f7;background:#fff;border-radius:18px;padding:13px;margin-bottom:10px}.lesc-doc-card strong{display:block;color:#082c52}.lesc-doc-card span{display:block;color:#66768c;font-size:12px;font-weight:850;margin-top:3px}.lesc-doc-card p{margin:9px 0;color:#334155}.lesc-doc-card a{display:inline-flex;border-radius:999px;background:#edf6ff;border:1px solid #cfe3f8;color:#0f4e8f;text-decoration:none;font-weight:950;padding:8px 11px;font-size:13px}.lesc-line{border:0;border-top:1px solid #e0ebf7;margin:18px 0}.lesc-field.wide{grid-column:1/-1}.lesc-field textarea{min-height:112px}.lesc-notification.read{opacity:.78}.lesc-notification.resolved{opacity:.58}.lesc-pill.unread{background:#eef6ff;color:#0f4e8f}.lesc-pill.read{background:#f1f5f9;color:#475569}.lesc-pill.resolved{background:#ecfdf3;color:#129447}.lesc-badge.blue{background:#eaf3ff;color:#0f4e8f;border-color:#cbe2fb}
@media (max-width:1240px){.lesc-workflow-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.lesc-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-house-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-calendar-tools{grid-template-columns:1fr}.lesc-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-profile-detail{grid-template-columns:1fr}}
@media (max-width:780px){.lesc-searchbar{flex-direction:column;align-items:stretch}.lesc-searchbar input{width:100%}.lesc-workflow-strip{grid-template-columns:1fr 1fr}.lesc-profile-grid,.lesc-house-columns,.lesc-update-grid{grid-template-columns:1fr}.lesc-filter-grid{grid-template-columns:1fr}.lesc-agenda-row{grid-template-columns:1fr}.lesc-calendar-tools .lesc-tabs{overflow:auto;white-space:nowrap}.lesc-field.wide{grid-column:auto}.lesc-profile-detail{display:block}}
@media (max-width:520px){.lesc-workflow-strip{grid-template-columns:1fr}.lesc-profile-card{padding:14px}.lesc-house-column{padding:12px}.lesc-briefing-message{padding:14px}}

/* v1.6 admin command-center additions */
.lesc-sidebar{max-height:calc(100vh - 44px);overflow:auto;scrollbar-width:thin}.lesc-sidebar::-webkit-scrollbar{width:8px}.lesc-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.lesc-split.wide-left{grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr)}
.command-kpis .lesc-kpi{border-top:4px solid #1476c9}.command-house .lesc-item{box-shadow:none;border-radius:18px}.command-appt{background:linear-gradient(180deg,#fff,#f8fbff)}.issue-card{border-left:5px solid #f59e0b;background:#fffdfa}
.lesc-kanban{display:grid;grid-template-columns:repeat(7,minmax(220px,1fr));gap:14px;overflow:auto;padding-bottom:6px}.lesc-kanban-col{min-width:220px;border:1px solid #d8e7f7;border-radius:22px;background:linear-gradient(180deg,#f8fbff,#fff);padding:13px}.lesc-kanban-col h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;color:#082c52;font-size:16px}.lesc-kanban-col h3 span{background:#eaf3ff;color:#0f4e8f;border-radius:999px;padding:4px 8px;font-size:12px}.lesc-kanban-card{display:grid;gap:7px;border:1px solid #e0ebf7;border-radius:18px;background:#fff;padding:12px;margin-bottom:10px;box-shadow:0 10px 22px rgba(14,79,143,.055)}.lesc-kanban-card strong{color:#082c52}.lesc-kanban-card span,.lesc-kanban-card small{color:#64748b;font-weight:800}
.provider-card{border-top:4px solid #1476c9}.provider-card .lesc-profile-meta span{background:#f7fbff}
.overdue{border-left-color:#bb1e2d!important;background:linear-gradient(180deg,#fff,#fff8f9)}.medication{border-left-color:#bb1e2d!important}.followup{border-left-color:#f47b20!important}.family-release{border-left-color:#129447!important}
.lesc-health-row{display:grid;grid-template-columns:1fr minmax(180px,.4fr) auto;gap:14px;align-items:center;border:1px solid #dce9f7;border-radius:18px;background:#fff;padding:14px;margin-bottom:10px}.lesc-health-row strong{display:block;color:#082c52}.lesc-health-row span{display:block;color:#5f7189;font-weight:800;margin-top:3px}.lesc-health-row p{margin:0;color:#334155;font-weight:850}.lesc-health-row.danger{border-color:#fecdd3;background:#fff8f9}.lesc-health-row.warn{border-color:#fed7aa;background:#fffaf2}.lesc-health-row.gray{border-color:#e2e8f0;background:#fbfdff}
.lesc-pill.danger,.lesc-badge.danger{background:#fff1f2;color:#bb1e2d;border-color:#fecdd3}.lesc-pill.warn,.lesc-badge.warn{background:#fff7ed;color:#b85b00;border-color:#fed7aa}.lesc-pill.good,.lesc-badge.good{background:#ecfdf3;color:#16803d;border-color:#bbf7d0}.lesc-pill.gray,.lesc-badge.gray{background:#f1f5f9;color:#475569;border-color:#e2e8f0}
@media (max-width:1240px){.lesc-split.wide-left{grid-template-columns:1fr}.lesc-kanban{grid-template-columns:repeat(3,minmax(220px,1fr))}}
@media (max-width:780px){.lesc-kanban{grid-template-columns:1fr;overflow:visible}.lesc-health-row{grid-template-columns:1fr}.lesc-sidebar{max-height:none}.lesc-nav{max-height:360px;overflow:auto}}


/* v1.7 simplified connected admin workflow */
.lesc-nav{gap:6px}.lesc-nav-group{margin:13px 8px 5px;color:#8fb8e8;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.15em}.lesc-nav-group:first-child{margin-top:2px}.lesc-connected-hub{background:rgba(255,255,255,.95);border:1px solid rgba(215,228,242,.92);border-radius:28px;box-shadow:var(--lesc-shadow-soft);overflow:hidden}.lesc-connected-hub .lesc-card-body{display:grid;gap:16px}.lesc-quick-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.lesc-quick-steps button,.lesc-setup-grid button,.lesc-alert-row button{appearance:none;border:1px solid #d7e6f7;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:20px;padding:15px;text-align:left;cursor:pointer;box-shadow:0 14px 30px rgba(14,79,143,.06);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.lesc-quick-steps button:hover,.lesc-setup-grid button:hover,.lesc-alert-row button:hover{transform:translateY(-1px);border-color:#9dcaef;box-shadow:0 18px 36px rgba(14,79,143,.11)}.lesc-quick-steps button{display:flex;gap:11px;align-items:flex-start}.lesc-quick-steps b{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--lesc-primary),var(--lesc-primary-2));color:#fff}.lesc-quick-steps strong{display:block;color:var(--lesc-heading);font-size:14px}.lesc-quick-steps small{display:block;color:var(--lesc-muted);font-weight:750;line-height:1.35;margin-top:5px}.lesc-setup-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.lesc-setup-grid button{min-height:116px}.lesc-setup-grid button strong{display:block;font-size:30px;color:var(--lesc-heading);letter-spacing:-.05em}.lesc-setup-grid button span{display:block;font-weight:950;color:#0f4e8f;margin-top:5px}.lesc-setup-grid button small{display:block;color:var(--lesc-muted);font-weight:750;line-height:1.35;margin-top:7px}.lesc-setup-grid button.needs{background:linear-gradient(180deg,#fff9f2,#fff)}.lesc-setup-grid button.needs strong{color:#b85b00}.lesc-setup-grid button.ready{background:linear-gradient(180deg,#f3fff7,#fff)}.lesc-alert-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.lesc-alert-row button{display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:12px 14px}.lesc-alert-row strong{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf6ff;color:#0f4e8f}.lesc-alert-row span{font-weight:950;color:#213b57;font-size:13px}.lesc-alert-row .hot{background:linear-gradient(180deg,#fff3f3,#fff);border-color:#f3c2c7}.lesc-alert-row .hot strong{background:#ffe4e6;color:#bb1e2d}.lesc-field-help{display:block;margin-top:7px;color:var(--lesc-muted);font-size:12px;font-weight:750;line-height:1.35}.lesc-resident-summary{border:1px solid #d6e7f9;border-radius:22px;background:linear-gradient(135deg,#f8fbff,#fff);padding:16px;margin-bottom:16px}.lesc-resident-summary p{margin:10px 0 0;color:var(--lesc-muted);font-weight:760;line-height:1.45}.lesc-record-tabs>h3{margin:20px 0 10px;color:#082c52;border-top:1px solid #e0ebf7;padding-top:16px}.lesc-record-tabs>h3:first-child{margin-top:0;border-top:0;padding-top:0}
@media (max-width:1240px){.lesc-quick-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-setup-grid,.lesc-alert-row{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-nav-group{grid-column:1/-1}}
@media (max-width:780px){.lesc-quick-steps,.lesc-setup-grid,.lesc-alert-row{grid-template-columns:1fr}.lesc-alert-row button{width:100%}}

/* v1.8 foundation/admin frontend polish */
.setup-wizard .lesc-card-head{align-items:center}.lesc-setup-score{display:grid;place-items:center;border:1px solid #d6e7f9;background:#fff;border-radius:22px;padding:12px 18px;min-width:112px}.lesc-setup-score strong{font-size:28px;color:#082c52;letter-spacing:-.05em}.lesc-setup-score span{font-size:12px;font-weight:950;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.lesc-setup-timeline{display:grid;gap:12px}.lesc-setup-timeline button{appearance:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;width:100%;border:1px solid #dbe9f8;border-radius:20px;background:#fff;padding:14px;text-align:left;cursor:pointer;box-shadow:0 12px 26px rgba(14,79,143,.055)}.lesc-setup-timeline button:hover{border-color:#9bc8ef;box-shadow:0 16px 34px rgba(14,79,143,.1);transform:translateY(-1px)}.lesc-setup-timeline button.done{background:linear-gradient(180deg,#f4fff8,#fff)}.lesc-setup-timeline button.todo{background:linear-gradient(180deg,#fffaf2,#fff)}.lesc-setup-timeline b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf6ff;color:#0f4e8f;font-weight:950}.lesc-setup-timeline button.done b{background:#dcfce7;color:#16803d}.lesc-setup-timeline strong{display:block;color:#082c52}.lesc-setup-timeline small{display:block;color:#64748b;font-weight:800;margin-top:3px;line-height:1.35}.lesc-house-form{display:grid;gap:14px}.lesc-house-row{display:grid;grid-template-columns:1.2fr 100px 1.4fr .8fr 1fr auto;gap:10px;align-items:end;border:1px solid #dce9f7;border-radius:22px;background:linear-gradient(180deg,#fff,#f9fcff);padding:14px}.lesc-house-row input[type=color]{height:43px;padding:4px}.lesc-checkline{display:flex;align-items:center;gap:7px;font-weight:950;color:#334155;padding:12px 8px}.lesc-house-dot.big{width:42px;height:42px;border-radius:50%;box-shadow:0 0 0 6px rgba(15,78,143,.08)}.lesc-permission-grid,.lesc-export-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.lesc-export-card{appearance:none;border:1px solid #d7e6f6;background:linear-gradient(180deg,#fff,#f8fbff);border-radius:22px;padding:18px;text-align:left;cursor:pointer;box-shadow:0 14px 30px rgba(14,79,143,.065)}.lesc-export-card:hover{border-color:#9bc8ef;transform:translateY(-1px)}.lesc-export-card strong{display:block;color:#082c52;font-size:17px}.lesc-export-card span{display:block;margin-top:5px;color:#0f4e8f;font-weight:950}.lesc-muted{color:#64748b;font-weight:800;line-height:1.45}.report-actions{margin:0 0 18px}.lesc-doc-preview{max-width:100%;border:1px solid #dce9f7;border-radius:18px;margin:12px 0;box-shadow:0 18px 42px rgba(14,79,143,.08)}.lesc-doc-frame{width:100%;height:520px;border:1px solid #dce9f7;border-radius:18px;background:#fff;margin:12px 0}.lesc-doc-detail h3{margin:0 0 8px;color:#082c52}.lesc-app button:focus-visible,.lesc-app input:focus-visible,.lesc-app select:focus-visible,.lesc-app textarea:focus-visible{outline:3px solid rgba(20,118,201,.25);outline-offset:2px}.lesc-form-grid.full textarea[name=csv],form[data-bulk-import] textarea{width:100%;min-height:170px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45}.lesc-profile-card .lesc-actions{margin-top:12px}.lesc-nav button{position:relative}.lesc-nav button.active:after{content:"";position:absolute;right:10px;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:#fff}
@media print{body{background:#fff!important}.lesc-sidebar,.lesc-topbar .lesc-actions,.lesc-searchbar,.lesc-actions button,.lesc-actions a,.lesc-modal,.lesc-nav,.lesc-side-footer{display:none!important}.lesc-app{display:block!important}.lesc-main{padding:0!important}.lesc-card,.lesc-kpi,.lesc-profile-card,.lesc-item,.lesc-house-column{box-shadow:none!important;break-inside:avoid;border-color:#cbd5e1!important}.lesc-card{margin-bottom:14px}.lesc-card-body{padding:14px!important}.lesc-table th,.lesc-table td{font-size:11px!important;padding:6px!important}.lesc-house-columns,.lesc-split,.lesc-kpi-grid{grid-template-columns:1fr!important}.lesc-app:before{content:"Leading Edge Senior Care Medical Communication Portal";display:block;font-size:18px;font-weight:900;margin-bottom:12px;color:#111827}}
@media (max-width:1240px){.lesc-house-row{grid-template-columns:1fr 90px 1fr 1fr}.lesc-permission-grid,.lesc-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:780px){.lesc-house-row{grid-template-columns:1fr}.lesc-permission-grid,.lesc-export-grid{grid-template-columns:1fr}.lesc-setup-timeline button{grid-template-columns:auto 1fr}.lesc-setup-timeline .lesc-badge{grid-column:2}.lesc-doc-frame{height:360px}}

/* v1.9 caregiver portal polish */
.caregiver-topbar{background:linear-gradient(135deg,#0f172a,#1e40af);color:#fff;border:0;box-shadow:0 18px 40px rgba(15,23,42,.20)}
.caregiver-topbar h1,.caregiver-topbar p{color:#fff}.caregiver-topbar .lesc-btn.secondary{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.25)}.caregiver-topbar [data-open-caregiver-note],.lesc-caregiver-callbar [data-open-caregiver-note]{background:linear-gradient(135deg,#0e4f8f,#1476c9)!important;color:#fff!important;border:0!important;box-shadow:0 14px 26px rgba(14,79,143,.22)!important}.caregiver-topbar [data-open-caregiver-note]:hover,.lesc-caregiver-callbar [data-open-caregiver-note]:hover{background:linear-gradient(135deg,#0e4f8f,#1476c9)!important;color:#fff!important;box-shadow:0 18px 32px rgba(14,79,143,.28)!important}
.lesc-caregiver-callbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 18px;padding:14px;border:1px solid #dbeafe;background:#eff6ff;border-radius:18px}
.lesc-caregiver-nextaction{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:22px;margin:0 0 18px;box-shadow:0 14px 35px rgba(15,23,42,.06)}
.lesc-caregiver-nextaction h2{margin:0;color:#0f172a}.lesc-caregiver-nextaction p{margin:6px 0 0;color:#64748b}.lesc-next-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:520px}.lesc-next-steps span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px;font-weight:800;color:#334155;text-align:center;font-size:12px}
.caregiver-kpis .lesc-kpi{border-top:4px solid #2563eb}.caregiver-appt{border-left:5px solid #2563eb}.due-card{border-left:5px solid #dc2626}.correction-card{border-left:5px solid #f97316;background:#fff7ed}.correction-card .lesc-badge.danger{background:#fee2e2;color:#991b1b}
.lesc-progress-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0;padding:12px;border:1px solid #dbeafe;background:#f8fbff;border-radius:18px}.lesc-progress-actions .lesc-btn{white-space:normal;min-height:48px}.lesc-caregiver-appt-detail .lesc-profile-main{border-top:5px solid #2563eb}.lesc-quick-info{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.lesc-quick-info p{margin:8px 0}.lesc-guided-update .lesc-form-grid{align-items:start}.lesc-closeout-header{background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #dbeafe;border-radius:18px;padding:16px;margin:0 0 16px}.lesc-closeout-header h3{margin:0 0 6px;color:#0f172a}.lesc-checklist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;margin-bottom:16px}.lesc-checklist strong{grid-column:1/-1;color:#0f172a}.lesc-checklist label{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px;font-size:12px;font-weight:800;color:#334155}.lesc-alert.danger{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;border-radius:14px;padding:10px;margin-top:10px}.lesc-help-text{color:#64748b;font-size:13px}.caregiver-notices .lesc-notification{grid-template-columns:1fr;gap:8px}.lesc-caregiver-update-sections h3{margin:22px 0 10px;color:#0f172a}.lesc-profile-card.caregiver-resident{border-left:5px solid #16a34a}
@media (max-width:900px){.lesc-caregiver-nextaction{display:block}.lesc-next-steps{min-width:0;grid-template-columns:1fr;margin-top:12px}.lesc-progress-actions{grid-template-columns:1fr}.lesc-checklist{grid-template-columns:1fr}.lesc-caregiver-callbar .lesc-btn,.lesc-caregiver-callbar a{flex:1;justify-content:center}.lesc-nav button{min-height:44px}.lesc-item.appointment .lesc-actions,.lesc-guided-update .lesc-form-actions{position:sticky;bottom:0;background:#fff;padding:10px;border-top:1px solid #e2e8f0;z-index:5}.lesc-guided-update input,.lesc-guided-update textarea,.lesc-guided-update select{font-size:16px}}

/* v2.0 Data Core & Integrity */
.lesc-data-core-form{display:grid;gap:18px}.lesc-form-section{padding:20px;border:1px solid #d7e4f4;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff)}.lesc-form-section>h3{margin:0 0 4px;color:#0a315c;font-size:18px}.lesc-form-section>p{margin:0 0 16px;color:#64748b}.lesc-form-section.wide{grid-column:1/-1}.lesc-form-actions.sticky{position:sticky;bottom:-1px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);padding:14px 0 4px;z-index:3;border-top:1px solid #e3edf8}.lesc-record-id{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-radius:16px;background:#eaf5ff;border:1px solid #c7e1fb;color:#275b8b}.lesc-record-id span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.lesc-record-id strong,.lesc-record-id code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#082f5b;word-break:break-all}
.lesc-intake-list{display:grid;gap:12px}.lesc-intake-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(160px,280px) 60px auto;gap:16px;align-items:center;padding:16px;border:1px solid #dce8f5;border-radius:18px;background:#fff}.lesc-intake-row>div:first-child{display:grid;gap:5px}.lesc-intake-row small{color:#76869a}.lesc-progress{height:10px;background:#e9f0f8;border-radius:999px;overflow:hidden}.lesc-progress i{display:block;height:100%;background:linear-gradient(90deg,#1269b4,#1d96e8);border-radius:inherit}.lesc-intake-row>b{font-size:20px;color:#0a315c}
.lesc-link-button{border:0;background:transparent;color:#1269b4;font-weight:800;cursor:pointer;padding:0;text-align:left}.lesc-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #dce8f5;border-radius:14px;background:#f8fbff}.lesc-check-grid label{display:flex;gap:8px;align-items:center;color:#294866;font-weight:700}
.lesc-work-queue{display:grid;gap:12px}.lesc-work-item{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 18px;border-radius:18px;border:1px solid #dce8f5;background:#fff;border-left-width:6px}.lesc-work-item.urgent{border-left-color:#dc2626;background:#fff8f8}.lesc-work-item.high{border-left-color:#f59e0b;background:#fffdf5}.lesc-work-item.normal{border-left-color:#2f79c3}.lesc-work-item>div:first-child span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#6a7f96}.lesc-work-item h3{margin:4px 0;color:#082f5b}.lesc-work-item p{margin:0;color:#5b7088}.lesc-work-item>div:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.lesc-doc-rule-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lesc-doc-rule-picker label{padding:12px 14px;border:1px solid #d6e4f3;border-radius:14px;background:#fff;display:flex;gap:8px;align-items:center}.lesc-doc-rule-picker label b{margin-left:auto;font-size:10px;text-transform:uppercase;color:#b45309}.lesc-doc-rule-picker .is-hidden{display:none}.lesc-count-bubble{min-width:42px;height:42px;padding:0 12px;border-radius:999px;background:#eaf5ff;color:#0a5aa5;display:grid;place-items:center;font-size:20px}
.lesc-config-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e6eef7}.lesc-config-row:last-child{border-bottom:0}.lesc-config-row>div{display:grid;gap:3px}.lesc-config-row small{color:#72849a}.lesc-duplicate-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:24px;padding:20px;margin-bottom:16px;border:1px solid #f2c8c8;border-radius:20px;background:#fffafa}.lesc-duplicate-group h3{margin-top:0;color:#8f1f1f}.lesc-duplicate-group form{display:grid;gap:10px;padding:15px;background:#fff;border:1px solid #eadada;border-radius:16px}.lesc-duplicate-group small{display:block;color:#7d8ca0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.lesc-version-detail{display:grid;gap:12px}.lesc-version-detail>div{padding:14px;border:1px solid #dce8f5;border-radius:14px;background:#f9fbfe}.lesc-version-detail p{margin:5px 0;word-break:break-word}.lesc-version-detail span{font-weight:800;color:#667f98}.lesc-version-mini{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #e6eef7}.lesc-version-mini button{border:0;background:#eaf5ff;color:#0a5aa5;padding:7px 11px;border-radius:10px;font-weight:800;cursor:pointer}
.lesc-filter-grid.advanced{grid-template-columns:minmax(220px,2fr) repeat(4,minmax(130px,1fr)) auto}.lesc-search-results{display:grid;gap:10px}.lesc-search-result{display:grid;grid-template-columns:100px 1fr;gap:3px 16px;text-align:left;padding:15px 17px;border:1px solid #dce8f5;border-radius:16px;background:#fff;cursor:pointer}.lesc-search-result:hover{border-color:#7bb8eb;box-shadow:0 8px 24px rgba(16,74,128,.08)}.lesc-search-result span{grid-row:1/3;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#1671be}.lesc-search-result strong{color:#082f5b}.lesc-search-result small{color:#718398}
.lesc-backup-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.lesc-backup-status>div{padding:16px;border:1px solid #dce8f5;border-radius:16px;background:#f8fbff;display:grid;gap:5px}.lesc-backup-status span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6d8095;font-weight:800}.lesc-backup-status strong{color:#082f5b;font-size:17px}
.lesc-permission-matrix{display:grid;min-width:760px;border:1px solid #dce8f5;border-radius:18px;overflow:hidden;margin-bottom:18px}.lesc-permission-matrix>div{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,150px);align-items:center;border-bottom:1px solid #e6eef7}.lesc-permission-matrix>div:last-child{border-bottom:0}.lesc-permission-matrix>div>*{padding:11px 14px;border-right:1px solid #e6eef7}.lesc-permission-matrix>div>*:last-child{border-right:0}.lesc-permission-matrix .head{background:#0b315a;color:#fff;font-weight:800}.lesc-permission-matrix label{text-align:center}.lesc-permission-matrix input{width:18px;height:18px}
.lesc-timeline{position:relative;display:grid;gap:0;padding:8px}.lesc-timeline-event{display:grid;grid-template-columns:28px 1fr;gap:12px;position:relative;padding-bottom:20px}.lesc-timeline-event:before{content:"";position:absolute;left:8px;top:16px;bottom:0;width:2px;background:#d6e6f5}.lesc-timeline-event:last-child:before{display:none}.lesc-timeline-event>i{width:18px;height:18px;border-radius:50%;background:#1682d4;border:4px solid #e4f3ff;z-index:1}.lesc-timeline-event>div{padding:0 0 4px}.lesc-timeline-event span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#1770b5;font-weight:900}.lesc-timeline-event h3{margin:3px 0;color:#082f5b}.lesc-timeline-event p{margin:0;color:#5f738a}.lesc-timeline-event small{color:#8391a3}
.lesc-master-record{display:grid;gap:18px}.lesc-master-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px;border-radius:20px;background:linear-gradient(135deg,#092b50,#105d9e);color:#fff}.lesc-master-head h2{color:#fff;margin:8px 0}.lesc-master-head>div>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;opacity:.8}.lesc-master-head code{display:block;color:#bfe3ff;word-break:break-all}.lesc-record-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesc-record-summary-grid>div{padding:14px;border:1px solid #dce8f5;border-radius:15px;background:#fff;display:grid;gap:4px}.lesc-record-summary-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#75869a;font-weight:800}.lesc-record-summary-grid strong{color:#092f59}.lesc-record-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lesc-record-sections section{padding:18px;border:1px solid #dce8f5;border-radius:18px;background:#f9fbfe}.lesc-record-sections h3{margin-top:0;color:#0a315c}
@media(max-width:1000px){.lesc-intake-row{grid-template-columns:1fr}.lesc-duplicate-group,.lesc-record-sections{grid-template-columns:1fr}.lesc-filter-grid.advanced{grid-template-columns:1fr 1fr}.lesc-backup-status,.lesc-record-summary-grid{grid-template-columns:1fr 1fr}.lesc-permission-matrix{overflow:auto}.lesc-doc-rule-picker{grid-template-columns:1fr}}
@media(max-width:640px){.lesc-form-section{padding:15px}.lesc-check-grid,.lesc-doc-rule-picker,.lesc-backup-status,.lesc-record-summary-grid,.lesc-filter-grid.advanced{grid-template-columns:1fr}.lesc-work-item,.lesc-master-head{align-items:flex-start;flex-direction:column}.lesc-work-item>div:last-child{justify-content:flex-start}.lesc-search-result{grid-template-columns:1fr}.lesc-search-result span{grid-row:auto}.lesc-version-mini{grid-template-columns:1fr}.lesc-data-core-form .lesc-form-actions.sticky{bottom:68px}}

/* v2.1 Caregiver Time Clock + Live Location Tracking */
.lesc-shift-clock-card{position:relative;overflow:hidden;margin-bottom:22px;padding:24px;border:1px solid #c9dff5;border-radius:26px;background:linear-gradient(145deg,#fff 0%,#f4faff 62%,#e8f5ff 100%);box-shadow:0 18px 42px rgba(14,74,126,.11)}
.lesc-shift-clock-card:before{content:"";position:absolute;right:-90px;top:-110px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(22,130,212,.18),transparent 68%);pointer-events:none}
.lesc-shift-clock-card.active{border-color:#80d8ac;background:linear-gradient(145deg,#fff 0%,#f3fff8 58%,#e4f8ee 100%)}
.lesc-shift-clock-card.loading{display:flex;gap:16px;align-items:center}.lesc-shift-clock-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#eaf5ff;font-size:26px}
.lesc-shift-clock-head{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:20px}.lesc-shift-clock-head h2{margin:7px 0 5px;color:#082f5b;font-size:27px}.lesc-shift-clock-head p{margin:0;color:#5e7288;max-width:700px}
.lesc-live-pulse,.lesc-shift-ready{display:inline-flex;align-items:center;gap:8px;font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.13em;font-weight:900;color:#117044}.lesc-live-pulse i{width:9px;height:9px;border-radius:50%;background:#18a35b;box-shadow:0 0 0 0 rgba(24,163,91,.45);animation:lescPulse 1.8s infinite}.lesc-shift-ready{color:#1472bd}.lesc-shift-ready:before{content:"";width:9px;height:9px;border-radius:50%;background:#1682d4;box-shadow:0 0 0 4px rgba(22,130,212,.12)}
@keyframes lescPulse{0%{box-shadow:0 0 0 0 rgba(24,163,91,.45)}70%{box-shadow:0 0 0 9px rgba(24,163,91,0)}100%{box-shadow:0 0 0 0 rgba(24,163,91,0)}}
.lesc-shift-elapsed,.lesc-az-time{min-width:180px;padding:15px 18px;border:1px solid #d2e5f7;border-radius:18px;background:rgba(255,255,255,.86);display:grid;gap:2px;text-align:right}.lesc-shift-elapsed span,.lesc-az-time span{font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:#70849a}.lesc-shift-elapsed strong{font-size:30px;line-height:1.1;color:#087b43}.lesc-az-time strong{font-size:20px;color:#0a5fa8}.lesc-shift-elapsed small,.lesc-az-time small{color:#75879a}
.lesc-shift-facts{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.lesc-shift-facts>div{padding:14px 15px;border:1px solid #d9e8f5;border-radius:16px;background:rgba(255,255,255,.83);display:grid;gap:4px}.lesc-shift-facts span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:#72859b}.lesc-shift-facts strong{color:#0a315c}.lesc-shift-facts small{color:#667a90;line-height:1.35}
.lesc-tracking-notice,.lesc-tracking-privacy{padding:13px 15px;border:1px solid #c8e1f8;border-radius:14px;background:#eef8ff;color:#3d607f;font-size:13px;line-height:1.5}.lesc-tracking-notice b,.lesc-tracking-privacy strong{color:#0a5797}.lesc-tracking-privacy p{margin:5px 0 0}
.lesc-shift-clock-actions{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:17px}.lesc-shift-clock-actions .lesc-btn.large{min-width:180px;min-height:52px;font-size:17px}.lesc-gps-readiness{margin-right:auto;color:#60778e;font-size:13px}
.lesc-clockin-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.lesc-clockin-grid .wide{grid-column:1/-1}.lesc-clockin-grid [data-unscheduled-clock-fields].disabled{opacity:.45;pointer-events:none}
.lesc-location-consent{position:relative;z-index:1;display:flex;align-items:flex-start;gap:12px;margin-top:17px;padding:15px;border:1px solid #bcdaf5;border-radius:16px;background:#f6fbff;cursor:pointer}.lesc-location-consent input{width:20px;height:20px;margin-top:2px}.lesc-location-consent span{display:grid;gap:3px}.lesc-location-consent strong{color:#0a315c}.lesc-location-consent small{color:#5f748b;line-height:1.4}
.lesc-clock-steps{display:grid;gap:11px}.lesc-clock-steps>div{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:center;padding:12px;border:1px solid #dce9f5;border-radius:15px;background:#f9fcff}.lesc-clock-steps b{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#1581d1;color:#fff}.lesc-clock-steps span{display:grid;gap:2px}.lesc-clock-steps strong{color:#0a315c}.lesc-clock-steps small{color:#647990}
.lesc-device-status{display:grid;gap:0}.lesc-device-status p{display:flex;justify-content:space-between;gap:18px;margin:0;padding:13px 0;border-bottom:1px solid #e5edf6}.lesc-device-status p:last-child{border-bottom:0}.lesc-device-status span{color:#657a91}.lesc-device-status strong{text-align:right;color:#0a315c}
.lesc-table-wrap{width:100%;overflow:auto}.shift-table{min-width:860px}.shift-table small{color:#76889a}.shift-table .lesc-badge{white-space:nowrap}
.lesc-admin-live-strip{margin-bottom:18px}.lesc-admin-live-strip button{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;text-align:left;padding:15px 18px;border:1px solid #b9daf4;border-radius:18px;background:linear-gradient(110deg,#edf8ff,#f8fcff);cursor:pointer}.lesc-admin-live-strip strong{color:#082f5b;font-size:17px}.lesc-admin-live-strip small{color:#5f7388}.lesc-admin-live-strip:hover{border-color:#6eb5e9;box-shadow:0 10px 26px rgba(11,88,151,.1)}
.shift-kpis .lesc-kpi:nth-child(1){border-top-color:#18a35b}.shift-kpis .lesc-kpi:nth-child(2){border-top-color:#1682d4}.shift-kpis .lesc-kpi:nth-child(3){border-top-color:#f59e0b}.shift-kpis .lesc-kpi:nth-child(4){border-top-color:#7c3aed}
.lesc-tracking-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;padding:16px 18px;border:1px solid #d5e5f4;border-radius:18px;background:#fff}.lesc-tracking-toolbar>div:first-child{display:grid;gap:4px}.lesc-tracking-toolbar strong{font-size:18px;color:#082f5b}.lesc-tracking-toolbar span{color:#63788e}.lesc-tracking-toolbar .lesc-filter-grid{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.lesc-tracking-toolbar input,.lesc-tracking-toolbar select{min-height:42px;border:1px solid #cddff0;border-radius:12px;background:#fff;padding:0 12px}
.lesc-live-map-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,.8fr);gap:18px;margin-bottom:18px}.map-card,.live-roster{min-width:0}.map-body{padding:0!important;position:relative}.lesc-live-map{height:560px;min-height:420px;border-radius:0 0 21px 21px;background:#e9f1f7;z-index:1}.lesc-map-time{font-size:12px;font-weight:800;color:#246799}.lesc-map-legend{position:absolute;z-index:500;left:14px;bottom:14px;display:flex;gap:12px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(8,47,91,.15);font-size:11px;font-weight:800;color:#47627b}.lesc-map-legend span{display:flex;align-items:center;gap:5px}.lesc-map-legend i{width:9px;height:9px;border-radius:50%}.lesc-map-legend i.live{background:#18a35b}.lesc-map-legend i.stale{background:#f59e0b}.lesc-map-legend i.offline{background:#dc2626}
.lesc-map-unavailable{height:100%;display:grid;place-content:center;text-align:center;gap:7px;color:#64748b}.lesc-map-unavailable strong{color:#0a315c}.lesc-map-popup{display:grid;gap:5px;min-width:210px}.lesc-map-popup strong{font-size:15px;color:#082f5b}.lesc-map-popup span{color:#536b82}
.lesc-live-roster .lesc-card-body{max-height:560px;overflow:auto}.lesc-live-roster-list{display:grid;gap:12px}.lesc-live-caregiver{padding:15px;border:1px solid #d8e6f3;border-radius:17px;background:#fff;border-left-width:6px}.lesc-live-caregiver.live{border-left-color:#18a35b}.lesc-live-caregiver.stale{border-left-color:#f59e0b}.lesc-live-caregiver.offline,.lesc-live-caregiver.none{border-left-color:#dc2626}.lesc-live-caregiver-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.lesc-live-caregiver h3{margin:0;color:#082f5b}.lesc-live-caregiver p{margin:3px 0 0;color:#657a90}.lesc-live-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.lesc-live-meta span{display:grid;gap:2px;padding:8px 9px;border-radius:10px;background:#f5f9fc;color:#526a81;font-size:11px}.lesc-live-meta b{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#7a8ca0}.lesc-live-caregiver .lesc-actions button{font-size:11px}
.lesc-route-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;padding:18px 20px;border-radius:19px;background:linear-gradient(120deg,#0b3c69,#117bc0);color:#fff}.lesc-route-summary span{font-size:10px;letter-spacing:.12em;font-weight:900;color:#a9ddff}.lesc-route-summary h2{margin:5px 0;color:#fff}.lesc-route-summary p{margin:0;color:#d8efff}.lesc-route-summary .lesc-btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}
.lesc-tracking-privacy{margin-top:16px}.lesc-checkline>span{display:grid;gap:3px}.lesc-checkline small{color:#687c91}
@media(max-width:1200px){.lesc-shift-facts{grid-template-columns:1fr 1fr}.lesc-live-map-layout{grid-template-columns:1fr}.lesc-live-roster .lesc-card-body{max-height:none}.lesc-tracking-toolbar{align-items:flex-start;flex-direction:column}.lesc-tracking-toolbar .lesc-filter-grid{justify-content:flex-start}}
@media(max-width:760px){.lesc-shift-clock-card{padding:17px;border-radius:21px}.lesc-shift-clock-head{flex-direction:column}.lesc-shift-elapsed,.lesc-az-time{width:100%;text-align:left}.lesc-shift-facts,.lesc-clockin-grid{grid-template-columns:1fr}.lesc-clockin-grid .wide{grid-column:auto}.lesc-shift-clock-actions{align-items:stretch;flex-direction:column}.lesc-shift-clock-actions .lesc-btn.large{width:100%}.lesc-gps-readiness{margin:0}.lesc-admin-live-strip button{grid-template-columns:1fr}.lesc-live-map{height:430px}.lesc-map-legend{right:10px;left:10px;justify-content:center;flex-wrap:wrap}.lesc-route-summary{align-items:flex-start;flex-direction:column}.lesc-tracking-toolbar .lesc-filter-grid{display:grid;width:100%;grid-template-columns:1fr}.lesc-tracking-toolbar input,.lesc-tracking-toolbar select,.lesc-tracking-toolbar button{width:100%}.lesc-live-meta{grid-template-columns:1fr}.lesc-device-status p{align-items:flex-start;flex-direction:column;gap:3px}.lesc-device-status strong{text-align:left}}

/* ================================================================
   v2.2 Workflow + Interface Polish
   One design system across admin, caregiver, map, records, and forms.
   ================================================================ */
:root{
  --lesc-primary:#1769d2;--lesc-primary-strong:#0d4fae;--lesc-primary-soft:#eaf3ff;
  --lesc-success:#16845b;--lesc-success-soft:#e8f7f1;--lesc-warning:#c46a08;--lesc-warning-soft:#fff3df;
  --lesc-danger:#c9363e;--lesc-danger-soft:#fff0f1;--lesc-purple:#7257c7;--lesc-purple-soft:#f1edff;
  --lesc-ink:#122033;--lesc-muted:#64748b;--lesc-line:#dce5ef;--lesc-surface:#fff;--lesc-canvas:#f4f7fb;
  --lesc-radius:18px;--lesc-radius-sm:12px;--lesc-shadow:0 12px 32px rgba(31,55,82,.09);
}
.lesc-main{background:var(--lesc-canvas)}
.lesc-card,.lesc-connected-hub,.lesc-calendar,.lesc-searchbar,.lesc-tracking-toolbar{border-color:var(--lesc-line);border-radius:var(--lesc-radius);box-shadow:var(--lesc-shadow)}
.lesc-btn,.lesc-actions button,.v22-pager button{min-height:42px;border-radius:11px;font-weight:750;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.lesc-btn:hover,.lesc-actions button:hover,.v22-pager button:hover{transform:translateY(-1px)}
.lesc-btn:not(.secondary):not(.ghost):not(.danger){background:linear-gradient(135deg,var(--lesc-primary),var(--lesc-primary-strong));box-shadow:0 8px 18px rgba(23,105,210,.2)}
.lesc-badge.blue{background:var(--lesc-primary-soft);color:var(--lesc-primary-strong)}
.lesc-badge.good{background:var(--lesc-success-soft);color:var(--lesc-success)}
.lesc-badge.warn{background:var(--lesc-warning-soft);color:var(--lesc-warning)}
.lesc-badge.danger{background:var(--lesc-danger-soft);color:var(--lesc-danger)}
.lesc-badge.purple{background:var(--lesc-purple-soft);color:var(--lesc-purple)}

.lesc-topbar.v22{align-items:center;background:linear-gradient(135deg,#fff,#f5f9ff);border-bottom:1px solid var(--lesc-line)}
.lesc-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 18px;padding:20px 22px;background:#fff;border:1px solid var(--lesc-line);border-radius:var(--lesc-radius);box-shadow:var(--lesc-shadow)}
.lesc-page-heading h2{font-size:28px;line-height:1.15;margin:3px 0 7px;color:var(--lesc-ink)}
.lesc-page-heading p{margin:0;color:var(--lesc-muted);max-width:780px}
.lesc-eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--lesc-primary)}

.v22-command-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;margin-bottom:16px;border-radius:22px;background:linear-gradient(135deg,#0e315c,#1769d2);color:#fff;box-shadow:0 18px 42px rgba(19,65,114,.2)}
.v22-command-hero span{font-size:11px;font-weight:900;letter-spacing:.16em;opacity:.78}.v22-command-hero h2{margin:6px 0 4px;font-size:30px}.v22-command-hero p{margin:0;opacity:.85}
.v22-action-kpis .lesc-kpi{position:relative;text-align:left;cursor:pointer;border:1px solid var(--lesc-line);background:#fff}
.v22-action-kpis .lesc-kpi em{font-style:normal;font-weight:800;color:var(--lesc-primary);font-size:12px}.v22-action-kpis .lesc-kpi.danger{border-left:5px solid var(--lesc-danger)}.v22-action-kpis .lesc-kpi.warn{border-left:5px solid var(--lesc-warning)}.v22-action-kpis .lesc-kpi.blue{border-left:5px solid var(--lesc-primary)}.v22-action-kpis .lesc-kpi.purple{border-left:5px solid var(--lesc-purple)}

.v22-action-list{display:grid;gap:10px}.v22-action-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:18px;padding:15px 16px;border:1px solid var(--lesc-line);border-left:5px solid var(--lesc-primary);border-radius:14px;background:#fff}.v22-action-row.warn{border-left-color:var(--lesc-warning)}.v22-action-row.danger{border-left-color:var(--lesc-danger)}.v22-action-row h3{margin:0 0 4px;font-size:15px}.v22-action-row p,.v22-action-row small{display:block;margin:0;color:var(--lesc-muted)}
.v22-priority{display:flex;justify-content:flex-start}.v22-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.v22-pager button{border:1px solid var(--lesc-line);background:#fff;padding:8px 14px}.v22-pager button:disabled{opacity:.4}

.v22-timesheets td{vertical-align:top}.v22-timesheets .lesc-badge{margin:2px 2px 2px 0;white-space:normal}.v22-exception-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.v22-exception{padding:16px;border:1px solid var(--lesc-line);border-top:5px solid var(--lesc-warning);border-radius:15px;background:#fff}.v22-exception.critical{border-top-color:var(--lesc-danger);background:linear-gradient(180deg,#fff7f7,#fff)}.v22-exception.warning{border-top-color:var(--lesc-warning)}.v22-exception>div:first-child{display:flex;justify-content:space-between;gap:8px}.v22-exception h3{margin:12px 0 6px}.v22-exception p{color:var(--lesc-muted)}

.v22-shift-banner{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:24px;margin-bottom:16px;border-radius:20px;background:linear-gradient(135deg,#092b53,#0f5dbd);color:#fff;box-shadow:0 16px 34px rgba(10,58,111,.25)}.v22-shift-banner h2{margin:8px 0 4px;font-size:28px}.v22-shift-banner p,.v22-shift-banner small{display:block;margin:0;opacity:.84}.v22-shift-banner>div:last-child{text-align:right;padding:12px 15px;border-radius:13px;background:rgba(255,255,255,.12)}
.lesc-shift-mode-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:16px}.v22-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v22-info-grid p{display:flex;flex-direction:column;gap:5px;padding:13px;margin:0;border:1px solid var(--lesc-line);border-radius:12px;background:#f8fbff}.v22-info-grid p.wide{grid-column:1/-1}.v22-info-grid strong{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--lesc-muted)}.v22-next-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v22-next-actions button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:15px;border:1px solid var(--lesc-line);border-radius:13px;background:#fff;text-align:left}.v22-next-actions b{font-size:24px;color:var(--lesc-primary)}
.v22-correction{padding:18px;border:1px solid #ffd2d5;border-left:5px solid var(--lesc-danger);border-radius:15px;background:#fff}.v22-correction>div:first-child{display:flex;justify-content:space-between}.v22-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v22-upload-grid>button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:17px;border:1px solid var(--lesc-line);border-radius:14px;background:#fff;text-align:left}.v22-upload-grid>button:hover{border-color:#9bc2f3;box-shadow:0 10px 22px rgba(23,105,210,.1)}.v22-upload-grid em{font-style:normal;font-weight:800;color:var(--lesc-primary)}

.v22-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.v22-check-grid label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid var(--lesc-line);border-radius:12px;background:#f8fafc}.lesc-closeout-intro{display:flex;justify-content:space-between;gap:12px;padding:14px;margin-bottom:14px;border-radius:13px;background:var(--lesc-primary-soft);color:var(--lesc-primary-strong)}
.v22-save-state{position:sticky;top:0;z-index:2;margin:-4px -4px 14px;padding:9px 12px;border-radius:10px;background:#edf7f2;color:var(--lesc-success);font-size:12px;font-weight:800;text-align:right}

.v22-resident-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:4px 0 14px}.v22-resident-head h2{margin:7px 0 2px}.v22-record-tabs{display:flex;gap:6px;overflow-x:auto;padding:8px 0 12px;border-bottom:1px solid var(--lesc-line)}.v22-record-tabs button{white-space:nowrap;padding:9px 12px;border:0;border-radius:10px;background:#eef3f8;text-transform:capitalize}.v22-record-tabs button.active{background:var(--lesc-primary);color:#fff}.v22-record-panel{padding-top:16px}.v22-timeline{position:relative;display:grid;gap:0}.v22-timeline article{position:relative;display:grid;grid-template-columns:18px 1fr;gap:13px;padding:0 0 18px}.v22-timeline article:before{content:"";position:absolute;left:7px;top:15px;bottom:0;width:2px;background:var(--lesc-line)}.v22-timeline i{width:16px;height:16px;border:4px solid #d8e9ff;border-radius:50%;background:var(--lesc-primary);z-index:1}.v22-timeline h3{margin:2px 0 4px;font-size:14px}.v22-timeline p,.v22-timeline small{margin:0;color:var(--lesc-muted)}
.lesc-modal.v22-drawer{justify-content:flex-end;align-items:stretch;padding:0}.lesc-modal.v22-drawer .lesc-modal-card{height:100%;max-height:none;width:min(850px,96vw);max-width:none;border-radius:20px 0 0 20px;animation:v22Drawer .2s ease-out}.lesc-modal.v22-drawer .lesc-modal-body{max-height:calc(100vh - 72px);overflow:auto}@keyframes v22Drawer{from{transform:translateX(30px);opacity:.4}to{transform:none;opacity:1}}

.lesc-search-results{position:relative;margin:-8px 0 16px;padding:14px;border:1px solid var(--lesc-line);border-radius:0 0 18px 18px;background:#fff;box-shadow:var(--lesc-shadow);z-index:10}.lesc-search-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesc-search-result-grid section{padding:10px;border:1px solid var(--lesc-line);border-radius:12px;background:#f9fbfd}.lesc-search-result-grid h3{display:flex;justify-content:space-between;margin:0 0 8px;font-size:13px}.lesc-search-result-grid button{display:flex;width:100%;flex-direction:column;align-items:flex-start;padding:9px;border:0;border-radius:9px;background:transparent;text-align:left}.lesc-search-result-grid button:hover{background:#fff}.lesc-search-result-grid span{font-size:12px;color:var(--lesc-muted)}

.v22-help-steps{padding-left:22px;color:var(--lesc-muted)}.v22-help-steps li{margin:9px 0}.lesc-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lesc-help-grid details{padding:16px;border:1px solid var(--lesc-line);border-radius:14px;background:#fff;box-shadow:0 6px 16px rgba(31,55,82,.05)}.lesc-help-grid summary{cursor:pointer;font-weight:800;color:var(--lesc-ink)}.lesc-help-grid p{color:var(--lesc-muted);line-height:1.6}.lesc-empty-state{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;border:1px dashed #c7d4e3;border-radius:15px;background:#f9fbfd}.lesc-empty-state h3{margin:8px 0 5px}.lesc-empty-state p{max-width:520px;margin:0;color:var(--lesc-muted)}.lesc-empty-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--lesc-primary-soft);color:var(--lesc-primary);font-weight:900}

.v22-quick-add{position:fixed;right:24px;bottom:24px;z-index:80}.v22-quick-main{display:grid;place-items:center;width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(135deg,var(--lesc-primary),var(--lesc-primary-strong));color:#fff;font-size:30px;box-shadow:0 14px 30px rgba(23,105,210,.35)}.v22-quick-menu{position:absolute;right:0;bottom:68px;display:none;min-width:190px;padding:9px;border:1px solid var(--lesc-line);border-radius:14px;background:#fff;box-shadow:var(--lesc-shadow)}.v22-quick-add.open .v22-quick-menu{display:grid}.v22-quick-menu button{padding:10px 12px;border:0;border-radius:9px;background:#fff;text-align:left;font-weight:700}.v22-quick-menu button:hover{background:var(--lesc-primary-soft);color:var(--lesc-primary-strong)}
.v22-mobile-nav{display:none}.v22-map-status-panel{display:grid;gap:8px}

@media(max-width:1100px){.v22-exception-grid,.v22-upload-grid,.lesc-search-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesc-shift-mode-grid{grid-template-columns:1fr}.v22-action-row{grid-template-columns:90px 1fr}.v22-action-row>.lesc-actions{grid-column:2}}
@media(max-width:760px){
  .lesc-main{padding-bottom:82px}.lesc-page-heading,.v22-command-hero,.v22-shift-banner,.v22-resident-head{align-items:stretch;flex-direction:column}.lesc-page-heading h2{font-size:23px}.v22-shift-banner>div:last-child{text-align:left}
  .v22-action-row{grid-template-columns:1fr}.v22-action-row>.lesc-actions{grid-column:auto}.v22-priority{order:-1}.v22-exception-grid,.v22-upload-grid,.lesc-search-result-grid,.lesc-help-grid,.v22-info-grid,.v22-check-grid{grid-template-columns:1fr}.v22-next-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.lesc-table{min-width:760px}.lesc-modal.v22-drawer .lesc-modal-card{width:100vw;border-radius:0}.v22-quick-add{right:16px;bottom:82px}
  .v22-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:75;display:grid;grid-template-columns:repeat(5,1fr);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid var(--lesc-line);background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(31,55,82,.1);backdrop-filter:blur(12px)}.v22-mobile-nav button{min-height:48px;border:0;border-radius:10px;background:transparent;color:var(--lesc-muted);font-size:11px;font-weight:800}.v22-mobile-nav button.active{background:var(--lesc-primary-soft);color:var(--lesc-primary-strong)}
}
@media print{.lesc-sidebar,.lesc-topbar,.lesc-searchbar,.v22-quick-add,.v22-mobile-nav,.lesc-actions,.lesc-nav{display:none!important}.lesc-main{padding:0!important;background:#fff}.lesc-card{box-shadow:none;break-inside:avoid}}
.v22-calendar-alerts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:1px solid var(--lesc-line);border-radius:14px;background:#fff}.v22-calendar-alerts button{border:0;background:transparent;font-weight:700}.v22-calendar-alerts small{color:var(--lesc-muted)}
.lesc-day.v22-drop-ready{outline:3px dashed var(--lesc-primary);outline-offset:-4px;background:var(--lesc-primary-soft)!important}.lesc-event[draggable="true"]{cursor:grab}.lesc-event[draggable="true"]:active{cursor:grabbing}
.v22-connection-banner{position:fixed;left:50%;bottom:88px;z-index:120;transform:translate(-50%,20px);max-width:min(520px,90vw);padding:11px 15px;border-radius:12px;background:#17253a;color:#fff;box-shadow:0 12px 28px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:.2s}.v22-connection-banner.show{opacity:1;transform:translate(-50%,0)}.v22-connection-banner.online{background:var(--lesc-success)}
@media(max-width:760px){.v22-calendar-alerts{align-items:stretch;flex-direction:column}.v22-calendar-alerts button{text-align:left}.lesc-day{min-height:110px}}
