.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}}
