/* ESGR Hub — Canvas-style portal (GovSource Academy layout) in ESGR colors */
html:has(body.esgr-body) { margin-top: 0 !important; }
.esgr-body { margin: 0; background: #F2F4F8; }
.esgr-body #wpadminbar { display: none !important; }
html:has(body.esgr-body), body.esgr-body { overflow-x: hidden; }

.esgr, .esgr *, .esgr-gate, .esgr-gate * { box-sizing: border-box; }
.esgr, .esgr-gate {
	--navy: #0B2A5B; --navy-2: #1B4F9C; --navy-3: #2A5DA8; --flag: #B22234; --accent: #1F6FD1; --sky: #E7EEF9;
	--bg: #F2F4F8; --card: #fff; --ink: #121D2B; --muted: #566577; --line: #DCE2EA; --soft: #F6F8FB;
	--red: #B42318; --red-bg: #FDECEA; --green: #1E6B3A; --green-bg: #E3F3E8; --blue: #1B4F9C; --blue-bg: #E7EEF9; --gray: #4A5563; --gray-bg: #EDF0F3; --amber: #8A5A00; --amber-bg: #FFF4D6;
	--r: 12px; --shadow: 0 1px 2px rgba(10,25,50,.06), 0 2px 10px rgba(10,25,50,.05);
	--rail: 92px;
	font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
.esgr a { color: var(--blue); }
.esgr a:hover { color: var(--navy); }
.esgr h1, .esgr h2, .esgr h3 { margin: 0; line-height: 1.25; color: var(--ink); }
.esgr h1 { font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
.esgr h2 { font-size: 16px; font-weight: 700; }
.esgr h3 { font-size: 14px; font-weight: 700; }
.esgr p { margin: 0 0 10px; }
.esgr button { font: inherit; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; line-height: 1.2; }
.esgr input, .esgr select, .esgr textarea { font: inherit; color: var(--ink); max-width: 100%; box-shadow: none; }
.esgr img { max-width: 100%; }
.esgr :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.esgr .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esgr .muted { color: var(--muted); }
.esgr .small { font-size: 13px; }
.esgr .pad { padding: 16px 20px; }
.esgr .i { width: 20px; height: 20px; flex: none; }
.esgr .i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.esgr .skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.esgr .skip:focus { left: 8px; }

/* Buttons */
.esgr .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid #C6D0DC; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.esgr .btn:hover { border-color: var(--navy-2); color: var(--navy); }
.esgr .btn .i { width: 18px; height: 18px; }
.esgr .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.esgr .btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.esgr .btn-flag { background: var(--flag); border-color: var(--flag); color: #fff; }
.esgr .btn-flag:hover { background: #941b2b; color: #fff; }
.esgr .btn-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.esgr .btn-lg { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.esgr .btn.danger { color: var(--red); border-color: #F0C4BF; }
.esgr .btn:disabled { opacity: .55; cursor: default; }
.esgr .icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-decoration: none; flex: none; }
.esgr .icon-btn:hover { background: var(--gray-bg); color: var(--ink); }
.esgr .icon-btn.sm { width: 30px; height: 30px; }
.esgr .icon-btn.sm .i { width: 16px; height: 16px; }
.esgr .link-btn { border: 0; background: none; padding: 4px 0; color: var(--blue); font-weight: 600; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }
.esgr .row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.esgr .back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.esgr .back .i { width: 16px; height: 16px; }

.esgr .seg { display: inline-flex; border: 1px solid #C6D0DC; border-radius: 9px; overflow: hidden; background: #fff; flex: none; }
.esgr .seg > button, .esgr .seg > a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); }
.esgr .seg > * + * { border-left: 1px solid #C6D0DC !important; }
.esgr .seg [aria-pressed="true"] { background: var(--navy); color: #fff; }

.esgr .pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; line-height: 1.6; background: var(--gray-bg); color: var(--gray); }
.esgr .pill .i { width: 13px; height: 13px; stroke-width: 2.4; }
.esgr .pill.green { background: var(--green-bg); color: var(--green); }
.esgr .pill.red { background: var(--red-bg); color: var(--red); }
.esgr .pill.blue { background: var(--blue-bg); color: var(--blue); }
.esgr .pill.amber { background: var(--amber-bg); color: var(--amber); }
.esgr .badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--flag); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.esgr .badge[hidden] { display: none; }
.esgr .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; display: inline-block; background: var(--c, var(--navy-2)); }
.esgr .avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 750; font-size: 13px; flex: none; letter-spacing: .02em; }
.esgr .avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.esgr .avatar.xl { width: 76px; height: 76px; font-size: 24px; border: 2px solid var(--navy); background: #fff; }

/* Layout */
.esgr .layout { display: flex; min-height: 100vh; overflow-x: clip; }
.esgr .rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy); color: #fff; display: flex; flex-direction: column; z-index: 40; padding-bottom: 8px; overflow-y: auto; scrollbar-width: none; border-right: 4px solid var(--flag); }
.esgr .rail::-webkit-scrollbar { display: none; }
.esgr .rail-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.esgr .rail-logo { width: 72px; height: auto; background: #fff; border-radius: 8px; padding: 6px 7px; }
.esgr .rail-brand span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.2; color: #C9D6EC; }
.esgr .rail ul { list-style: none; margin: 4px 0 0; padding: 0; }
.esgr .rail-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 9px 4px; border: 0; background: transparent; color: #fff; text-decoration: none; font-size: 11.5px; font-weight: 500; }
.esgr .rail-link .i { width: 25px; height: 25px; stroke-width: 1.6; }
.esgr .rail-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.esgr .rail-link.on { background: #fff; color: var(--navy); }
.esgr .rail-link .badge { position: absolute; top: 5px; left: calc(50% + 6px); }
.esgr .rail-av { width: 30px; height: 30px; font-size: 11px; background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.esgr .rail-link.on .rail-av { background: var(--sky); color: var(--navy); border-color: var(--navy); }
.esgr .main { flex: 1; min-width: 0; margin-left: var(--rail); outline: none; }
.esgr .page { max-width: 1680px; padding: 26px 32px 64px; }
.esgr .page.narrow { max-width: 980px; }
.esgr .page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.esgr .page-head p { margin: 4px 0 0; }
.esgr .tabbar { display: none; }
.esgr .loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--muted); }
.esgr .spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--flag); border-radius: 50%; animation: esgrspin .8s linear infinite; }
@keyframes esgrspin { to { transform: rotate(360deg); } }
.esgr-loading { padding: 80px; text-align: center; color: #566577; font-family: 'Public Sans', system-ui, sans-serif; }

/* Panels */
.esgr .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 18px; }
.esgr .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.esgr .panel-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.esgr .panel-head h2 .i { color: var(--navy-2); width: 19px; height: 19px; }
.esgr .panel-head a { font-weight: 600; text-decoration: none; font-size: 13.5px; }
.esgr .panel-body { padding: 16px 18px; }
.esgr .empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; color: var(--muted); }
.esgr .empty .i { width: 34px; height: 34px; color: #9AAAB8; }
.esgr .empty strong { color: var(--ink); font-size: 15px; }
.esgr .empty p { margin: 0; font-size: 13px; max-width: 340px; }
.esgr .info { display: flex; gap: 12px; align-items: flex-start; background: var(--blue-bg); border: 1px solid #C2D3EE; color: #12305F; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.esgr .info p { margin: 0; }
.esgr .info .i { color: var(--blue); margin-top: 1px; }
.esgr .info.warn { background: var(--amber-bg); border-color: #F1D58A; color: #5A3B00; }
.esgr .info.warn .i { color: var(--amber); }
.esgr .info.red { background: var(--red-bg); border-color: #F3C3BD; color: #7A1A12; }
.esgr .info.red .i { color: var(--red); }

/* Tables */
.esgr .tbl-wrap { overflow-x: auto; }
.esgr .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.esgr .tbl th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.esgr .tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.esgr .tbl tr:last-child td { border-bottom: 0; }
.esgr .tbl .r { text-align: right; }
.esgr .tbl tr.click { cursor: pointer; }
.esgr .tbl tr.click:hover td { background: var(--soft); }
.esgr .tbl small { display: block; color: var(--muted); font-size: 12.5px; }
.esgr .row-link { font-weight: 650; text-decoration: none; color: var(--ink); }
.esgr .row-link:hover { color: var(--navy-2); text-decoration: underline; }

/* Forms */
.esgr .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.esgr .field > span { font-weight: 650; font-size: 14px; }
.esgr .field small { color: var(--muted); font-size: 12.5px; }
.esgr input[type=text], .esgr input[type=email], .esgr input[type=tel], .esgr input[type=url], .esgr input[type=number], .esgr input[type=search], .esgr input[type=date], .esgr input[type=datetime-local], .esgr input[type=color], .esgr select, .esgr textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #B6C2D0; border-radius: 8px; background: #fff; }
.esgr input[type=color] { padding: 4px; width: 70px; }
.esgr textarea { resize: vertical; line-height: 1.5; }
.esgr input:focus, .esgr select:focus, .esgr textarea:focus { border-color: var(--accent); outline: 3px solid rgba(31,111,209,.22); outline-offset: 0; }
.esgr .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.esgr .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.esgr .checkline { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin: 0 0 14px; cursor: pointer; }
.esgr .checkline input { width: 18px; height: 18px; accent-color: var(--navy); }
.esgr .fsec { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--flag); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.esgr .fsec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.esgr .search-inline { display: flex; align-items: center; gap: 8px; border: 1px solid #B6C2D0; border-radius: 8px; background: #fff; padding: 0 12px; min-height: 40px; }
.esgr .search-inline input { border: 0 !important; outline: 0 !important; min-height: 38px; padding: 0; width: 220px; background: transparent; }
.esgr .search-inline .i { color: var(--muted); width: 17px; height: 17px; }
.esgr .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.esgr .filters select { width: auto; min-width: 150px; min-height: 40px; }
.esgr .people-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.esgr .people-pick label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.esgr .people-pick input { accent-color: var(--navy); }

/* Dashboard */
.esgr .dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.esgr .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--flag); }
.esgr .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.esgr .stat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.esgr .stat .i { width: 17px; height: 17px; color: var(--navy-2); }
.esgr .stat:hover { border-color: var(--navy-2); color: var(--navy); }
.esgr .stat.red { background: var(--red-bg); border-color: #F3C3BD; color: var(--red); }
.esgr .stat.red .i { color: var(--red); }
.esgr .stat.amber { background: var(--amber-bg); border-color: #F1D58A; color: var(--amber); }
.esgr .stat.amber .i { color: var(--amber); }
.esgr .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.esgr .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.esgr .sec-h h2 { font-size: 18px; }
.esgr .sec-h a { font-weight: 600; text-decoration: none; font-size: 13.5px; }

/* Goals */
.esgr .goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 28px; padding: 16px 18px 10px; }
.esgr .goal { padding: 6px 0 12px; }
.esgr .goal-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13.5px; margin-bottom: 7px; }
.esgr .goal-top span { font-weight: 600; color: var(--ink); }
.esgr .goal-top b { font-size: 15px; color: var(--ink); white-space: nowrap; }
.esgr .goal-top b small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.esgr .meter { position: relative; height: 8px; border-radius: 99px; background: var(--gray-bg); }
.esgr .meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--navy-2); }
.esgr .meter > i { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; opacity: .55; }
.esgr .goal-note { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.esgr .goal-note .pill { font-size: 11px; padding: 0 7px; }
.esgr .legend-line { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 18px 14px; }
.esgr .legend-line i { display: inline-block; width: 2px; height: 12px; background: var(--ink); opacity: .55; margin-right: 6px; vertical-align: -2px; }

/* Pipeline strip */
.esgr .pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.esgr .pipe a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); position: relative; }
.esgr .pipe a:last-child { border-right: 0; }
.esgr .pipe a:hover { background: var(--soft); }
.esgr .pipe b { font-size: 26px; font-weight: 750; color: var(--navy); line-height: 1.1; }
.esgr .pipe small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.esgr .pipe a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sc, var(--navy-2)); }

/* Monthly bars */
.esgr .bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; padding: 14px 18px 0; }
.esgr .bars .b { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; position: relative; }
.esgr .bars .b span { width: 100%; max-width: 26px; background: var(--navy-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.esgr .bars .b small { font-size: 11px; font-weight: 650; color: var(--ink); }
.esgr .bars .b.future span { background: var(--gray-bg); }
.esgr .bars .b:hover span { background: var(--navy); }
.esgr .bars-x { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 6px 18px 14px; border-top: 1px solid var(--line); margin: 0 18px; padding-left: 0; padding-right: 0; }
.esgr .bars-x span { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }

/* Area cards (Canvas course cards) */
.esgr .region-h { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.esgr .region-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.esgr .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 8px; }
.esgr .cc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.esgr .cc:hover { box-shadow: 0 6px 22px rgba(10,25,50,.12); transform: translateY(-2px); }
.esgr .cc-band { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 84px; padding: 10px 14px; color: #fff; text-decoration: none;
	background: linear-gradient(135deg, rgba(255,255,255,.14) 0 12%, transparent 12% 100%), radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), transparent 55%), var(--cc); }
.esgr .cc-band::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); }
.esgr .cc-code { position: relative; z-index: 1; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.2); padding: 3px 9px; border-radius: 6px; }
.esgr .cc-term { position: relative; z-index: 1; font-size: 12px; font-weight: 600; }
.esgr .cc-body { padding: 12px 16px 8px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.esgr .cc-body h2 { font-size: 17px; }
.esgr .cc-body h2 a { color: var(--ink); text-decoration: none; }
.esgr .cc-body h2 a:hover { color: var(--navy-2); text-decoration: underline; }
.esgr .cc-sub { margin: -2px 0 0; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esgr .cc-role { margin: 0; font-size: 13px; font-weight: 650; color: var(--navy-2); }
.esgr .cc-role.open { color: var(--amber); }
.esgr .cc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 2px; }
.esgr .cc-nums div { display: flex; flex-direction: column; background: var(--soft); border-radius: 8px; padding: 6px 4px; text-align: center; }
.esgr .cc-nums b { font-size: 16px; }
.esgr .cc-nums small { font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.esgr .cc-foot { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 4px 6px; }
.esgr .cc-act { position: relative; display: grid; place-items: center; width: 46px; height: 40px; color: var(--muted); border-radius: 8px; border: 0; background: none; }
.esgr .cc-act:hover { background: var(--soft); color: var(--navy); }
.esgr .cc-act .badge { position: absolute; top: 2px; right: 2px; }

/* To Do / lists */
.esgr .todo-group { display: flex; align-items: center; gap: 6px; padding: 12px 18px 4px; font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.esgr .todo-group span { background: var(--gray-bg); border-radius: 99px; padding: 0 7px; font-size: 11px; letter-spacing: 0; }
.esgr .todo-group.red { color: var(--red); }
.esgr .todo-group.red span { background: var(--red-bg); }
.esgr .todo { list-style: none; margin: 0; padding: 0 0 6px; }
.esgr .todo-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px 10px 18px; }
.esgr .todo-item + .todo-item { border-top: 1px solid #EEF1F4; }
.esgr .t-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--navy-2); flex: none; }
.esgr .t-ic.red { background: var(--red-bg); color: var(--red); }
.esgr .t-ic .i { width: 19px; height: 19px; }
.esgr .t-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.esgr .t-body > a, .esgr .t-body > button { font-weight: 650; text-decoration: none; color: var(--ink); line-height: 1.3; border: 0; background: none; padding: 0; text-align: left; }
.esgr .t-body > a:hover, .esgr .t-body > button:hover { color: var(--navy-2); text-decoration: underline; }
.esgr .t-body small { color: var(--muted); font-size: 12.5px; }
.esgr .t-body small.red { color: var(--red); font-weight: 600; }
.esgr .ann, .esgr .feed, .esgr .coming { list-style: none; margin: 0; padding: 0; }
.esgr .ann li { padding: 13px 18px; }
.esgr .ann li + li, .esgr .feed li + li, .esgr .coming li + li { border-top: 1px solid #EEF1F4; }
.esgr .ann strong { display: flex; gap: 6px; align-items: center; }
.esgr .ann p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.esgr .ann time { font-size: 12px; color: var(--muted); }
.esgr .feed li { display: flex; gap: 10px; padding: 10px 18px; font-size: 13.5px; align-items: flex-start; }
.esgr .feed small { color: var(--muted); display: block; font-size: 12px; }
.esgr .coming li { display: flex; gap: 12px; padding: 11px 18px; align-items: flex-start; }
.esgr .coming div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.esgr .coming a, .esgr .coming button.lk { font-weight: 650; text-decoration: none; color: var(--ink); border: 0; background: none; padding: 0; text-align: left; }
.esgr .coming a:hover, .esgr .coming button.lk:hover { color: var(--navy-2); text-decoration: underline; }
.esgr .coming small { font-size: 12.5px; color: var(--muted); }
.esgr .date-tile { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 9px; background: var(--sky); color: var(--navy); flex: none; line-height: 1.05; border-top: 4px solid var(--ec, var(--navy-2)); }
.esgr .date-tile b { font-size: 17px; }
.esgr .date-tile small { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: var(--navy); }

/* Awards board */
.esgr .board { display: grid; grid-template-columns: repeat(6, minmax(185px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.esgr .col { background: #E8ECF2; border-radius: var(--r); padding: 10px; min-height: 120px; }
.esgr .col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 13px; font-weight: 750; }
.esgr .col-h span { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.esgr .col-h small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.esgr .acard { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cc, var(--navy-2)); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; text-align: left; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.esgr .acard:hover { border-color: var(--navy-2); }
.esgr .acard strong { display: block; font-size: 14px; line-height: 1.3; }
.esgr .acard small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.esgr .acard .pill { margin-top: 6px; white-space: normal; }
.esgr .acard .meta { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Award detail */
.esgr .banner { position: relative; border-radius: var(--r); padding: 22px 26px; color: #fff; overflow: hidden; margin-bottom: 18px;
	background: linear-gradient(135deg, rgba(255,255,255,.12) 0 10%, transparent 10% 100%), radial-gradient(100% 160% at 100% 0%, rgba(255,255,255,.16), transparent 55%), var(--cc, var(--navy)); }
.esgr .banner::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.esgr .banner > * { position: relative; z-index: 1; }
.esgr .banner h1 { color: #fff; font-size: 26px; }
.esgr .banner p { margin: 4px 0 0; color: rgba(255,255,255,.9); }
.esgr .banner .cc-code { display: inline-block; margin-bottom: 10px; }
.esgr .banner .row-btns { margin-top: 14px; }
.esgr .banner .btn { background: rgba(255,255,255,.95); border-color: transparent; }
.esgr .steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.esgr .steps li { position: relative; padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; border-right: 1px solid var(--line); }
.esgr .steps li:last-child { border-right: 0; }
.esgr .steps li b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.esgr .steps li b::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gray-bg); color: var(--muted); font-size: 12px; flex: none; }
.esgr .steps li.done b::before { content: "✓"; background: var(--green); color: #fff; }
.esgr .steps li.now { background: var(--sky); }
.esgr .steps li.now b::before { background: var(--navy); color: #fff; }
.esgr .steps li small { color: var(--muted); }
.esgr .steps li small.red { color: var(--red); font-weight: 650; }
.esgr .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; align-items: start; }
.esgr .kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; padding: 14px 18px; font-size: 14px; margin: 0; }
.esgr .kv dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.esgr .kv dd { margin: 0; overflow-wrap: anywhere; }
.esgr .check-sec { border-top: 1px solid var(--line); }
.esgr .check-sec summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; }
.esgr .check-sec summary::-webkit-details-marker { display: none; }
.esgr .check-sec summary .i { transition: transform .15s; color: var(--muted); width: 16px; height: 16px; }
.esgr .check-sec[open] summary .i { transform: rotate(90deg); }
.esgr .check-sec summary span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 650; }
.esgr .check-sec summary span.full { color: var(--green); }
.esgr .check-sec ul { list-style: none; margin: 0; padding: 0 18px 10px 44px; }
.esgr .check-sec label { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; cursor: pointer; }
.esgr .check-sec input { width: 18px; height: 18px; accent-color: var(--green); flex: none; margin-top: 1px; }
.esgr .check-sec input:checked + span { color: var(--muted); text-decoration: line-through; }
.esgr .prog { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; color: var(--muted); }
.esgr .prog .meter { flex: 1; }
.esgr .prog .meter > span { background: var(--green); }
.esgr .names { list-style: none; margin: 0; padding: 4px 18px 14px; }
.esgr .names li { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.esgr .names li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.esgr .names b { font-size: 12.5px; }
.esgr .names code { background: var(--soft); padding: 5px 8px; border-radius: 6px; font-size: 11.5px; overflow-wrap: anywhere; white-space: normal; }

/* Trays, modal, toast */
.esgr .tray { position: fixed; top: 0; bottom: 0; left: var(--rail); width: 360px; max-width: calc(100vw - var(--rail)); background: #fff; z-index: 35; box-shadow: 8px 0 30px rgba(10,25,50,.18); padding: 24px 22px 30px; overflow-y: auto; }
.esgr .tray h2 { font-size: 21px; margin: 4px 50px 14px 0; }
.esgr .tray-close { position: absolute; top: 14px; right: 14px; border: 1px solid var(--line) !important; }
.esgr .scrim { position: fixed; inset: 0; background: rgba(6,20,40,.28); z-index: 30; }
.esgr .acct-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 16px; border-bottom: 1px solid var(--line); gap: 6px; }
.esgr .acct-head h2 { margin: 6px 0 0; font-size: 20px; }
.esgr .acct-head p { margin: 0; }
.esgr .tray-links { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.esgr .tray-links a, .esgr .tray-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: 0; background: none; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 550; text-align: left; }
.esgr .tray-links a:hover, .esgr .tray-links button:hover { background: var(--soft); color: var(--navy); }
.esgr .tray-links .i { color: var(--navy-2); }
.esgr .modal-wrap { position: fixed; inset: 0; background: rgba(6,20,40,.45); z-index: 60; display: grid; place-items: center; padding: 16px; }
.esgr .modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.esgr .modal.wide { max-width: 820px; }
.esgr .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; border-top: 5px solid var(--ec, var(--navy)); }
.esgr .modal-head h2 { font-size: 18px; }
.esgr .modal-body { padding: 18px 20px 4px; }
.esgr .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.esgr .modal-foot .left { margin-right: auto; }
.esgr .toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 80; max-width: calc(100vw - 32px); }
.esgr .toast.show { opacity: 1; transform: translate(-50%, 0); }
.esgr .toast.bad { background: var(--red); }

/* Calendar */
.esgr .cal-page { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
.esgr .cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.esgr .cal-bar h1 { font-size: 22px; margin-right: auto; }
.esgr .month { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.esgr .dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--soft); border-bottom: 1px solid var(--line); }
.esgr .dow span { padding: 9px 10px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.esgr .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.esgr .wk + .wk { border-top: 1px solid var(--line); }
.esgr .day { min-height: 118px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.esgr .day + .day { border-left: 1px solid var(--line); }
.esgr .day.other { background: #FAFBFC; }
.esgr .day.other .dnum { color: #A5B1BC; }
.esgr .day.today { background: #F1F6FD; }
.esgr .dnum { align-self: flex-end; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 99px; font-size: 13px; font-weight: 650; color: var(--ink); border: 0; background: none; }
.esgr .day.today .dnum { background: var(--flag); color: #fff; }
.esgr .ev { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 3px 6px; border: 0; border-left: 3px solid var(--ec); border-radius: 4px; background: color-mix(in srgb, var(--ec) 11%, #fff); font-size: 12px; text-align: left; color: var(--ink); line-height: 1.3; }
.esgr .ev:hover { background: color-mix(in srgb, var(--ec) 22%, #fff); }
.esgr .ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esgr .ev b { font-weight: 700; }
.esgr .ev.done span { color: var(--muted); }
.esgr .ev.req { border-left-style: dashed; background: #fff; outline: 1px dashed color-mix(in srgb, var(--ec) 50%, #fff); }
.esgr .ev.cx span { text-decoration: line-through; color: var(--muted); }
.esgr .agenda section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.esgr .agenda h3 { padding: 10px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.esgr .agenda h3.today { background: #E9F1FC; }
.esgr .agenda ul { list-style: none; margin: 0; padding: 0; }
.esgr .agenda li + li { border-top: 1px solid #EEF1F4; }
.esgr .ag { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: #fff; text-align: left; border-left: 4px solid var(--ec); }
.esgr .ag:hover { background: var(--soft); }
.esgr .ag-time { width: 70px; font-size: 13px; font-weight: 650; color: var(--muted); flex: none; }
.esgr .ag-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.esgr .ag-body small { color: var(--muted); font-size: 12.5px; }
.esgr .cal-side { display: flex; flex-direction: column; gap: 16px; }
.esgr .cal-list label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.esgr .cal-list input { accent-color: var(--navy); width: 16px; height: 16px; }

/* Inbox */
.esgr .inbox { display: flex; flex-direction: column; height: 100vh; }
.esgr .inbox-bar { display: flex; gap: 10px; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.esgr .inbox-bar h1 { font-size: 20px; margin-right: auto; }
.esgr .inbox-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); flex: 1; min-height: 0; }
.esgr .convos { list-style: none; margin: 0; padding: 0; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.esgr .convos li { border-bottom: 1px solid var(--line); }
.esgr .convos li > a { display: flex; flex-direction: column; gap: 3px; padding: 13px 18px; text-decoration: none; color: var(--ink); }
.esgr .convos li > a:hover { background: var(--soft); }
.esgr .convos li.on > a { background: var(--sky); box-shadow: inset 4px 0 var(--flag); }
.esgr .cv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.esgr .cv-top time { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.esgr .cv-people { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esgr .unread .cv-people, .esgr .unread .cv-subj { font-weight: 800; }
.esgr .unread .cv-top time { color: var(--flag); }
.esgr .cv-subj { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esgr .cv-prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esgr .convo { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.esgr .convo-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); padding: 30px; text-align: center; }
.esgr .convo-empty .i { width: 90px; height: 90px; stroke-width: 1; color: #8A9AA8; }
.esgr .convo-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.esgr .convo-head > div { flex: 1; min-width: 0; }
.esgr .convo-head h1 { font-size: 20px; }
.esgr .convo-head p { margin: 4px 0 0; font-size: 13px; }
.esgr .msgs { list-style: none; margin: 0; padding: 18px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.esgr .msg { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.esgr .msg > div { flex: 1; min-width: 0; }
.esgr .msg.mine { background: #F4F8FE; border-color: #CCDAF0; }
.esgr .msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.esgr .msg-head time { font-size: 12.5px; color: var(--muted); }
.esgr .msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.esgr .reply-bar { display: flex; gap: 10px; align-items: flex-end; padding: 12px 22px; background: #fff; border-top: 1px solid var(--line); }
.esgr .reply-bar textarea { flex: 1; min-height: 52px; }

/* Map */
.esgr .map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.esgr .map-panel { overflow: hidden; }
.esgr .vmap { height: min(72vh, 640px); min-height: 380px; background: #E8EDF2; }
.esgr .vmap, .esgr .leaflet-container { position: relative; z-index: 0; isolation: isolate; }
.esgr .map-list { max-height: min(72vh, 640px); overflow-y: auto; }
.esgr .map-town { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left; border-bottom: 1px solid #EEF1F4; }
.esgr .map-town:hover:not(:disabled) { background: var(--soft); }
.esgr .map-town > span { flex: 1; min-width: 0; }
.esgr .map-town strong { display: block; font-size: 13.5px; }
.esgr .map-town small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esgr .map-town b { flex: none; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-size: 12.5px; }
.esgr .map-pin, .esgr .map-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(11,42,91,.92); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); color: #fff; font: 700 12.5px/1 'Public Sans', Arial, sans-serif; cursor: pointer; }
.esgr .map-cluster { background: rgba(178,34,52,.92); font-size: 14px; }
.esgr .leaflet-popup-content { font: 13.5px/1.45 'Public Sans', Arial, sans-serif; margin: 12px 16px; }
.esgr .leaflet-popup-content ul { margin: 6px 0 0; padding-left: 16px; }

/* Misc */
.esgr .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.esgr .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.esgr .kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); }
.esgr .kpi b { display: block; font-size: 24px; color: var(--navy); }
.esgr .kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.esgr .links-list { list-style: none; margin: 0; padding: 0; }
.esgr .links-list li { display: flex; align-items: center; gap: 10px; padding: 11px 18px; }
.esgr .links-list li + li { border-top: 1px solid #EEF1F4; }
.esgr .links-list a { font-weight: 650; text-decoration: none; flex: 1; }
.esgr .foot-note { font-size: 12px; color: var(--muted); padding: 18px 32px 28px; max-width: 980px; }
.esgr .train { display: flex; flex-wrap: wrap; gap: 4px; }

/* Sign-in gate */
.esgr-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 80% at 50% 0%, #1B4F9C 0%, #0B2A5B 62%); }
.esgr-gate .gate-card { background: #fff; border-radius: 16px; padding: 32px 30px; max-width: 480px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); border-top: 6px solid #B22234; }
.esgr-gate .gate-logos { display: flex; align-items: center; justify-content: center; gap: 14px; }
.esgr-gate .gate-logo { width: 240px; height: auto; }
.esgr-gate h1 { font-size: 24px; margin: 14px 0 8px; color: #0B2A5B; }
.esgr-gate p { color: #566577; }
.esgr-gate .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 8px; background: #0B2A5B; color: #fff; font-weight: 700; text-decoration: none; }
.esgr-gate .btn:hover { background: #1B4F9C; color: #fff; }
.esgr-gate .small { font-size: 13px; }
.esgr-gate .gate-foot { font-size: 11.5px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #E3E8EF; }
.esgr .gate-card { background: #fff; border-radius: 16px; padding: 32px 30px; max-width: 520px; margin: 8vh auto; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 6px solid var(--flag); }

/* Responsive */
@media (max-width: 1180px) {
	.esgr .dash-grid { grid-template-columns: minmax(0, 1fr) 310px; }
	.esgr .detail-grid { grid-template-columns: 1fr; }
	.esgr .cal-page { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.esgr .dash-grid { grid-template-columns: 1fr; }
	.esgr .inbox-grid { grid-template-columns: 300px minmax(0, 1fr); }
	.esgr .pipe { grid-template-columns: repeat(4, 1fr); }
	.esgr .pipe a:nth-child(3) { border-right: 0; }
	.esgr .pipe a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
	.esgr .steps { grid-template-columns: repeat(3, 1fr); }
	.esgr .steps li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
	.esgr .map-wrap { grid-template-columns: 1fr; }
	.esgr .map-list { max-height: none; }
	.esgr .vmap { height: 420px; min-height: 0; }
}
@media (max-width: 760px) {
	.esgr .rail { display: none; }
	.esgr .main { margin-left: 0; padding-bottom: 72px; }
	.esgr .tabbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 45; background: var(--navy); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 3px solid var(--flag); }
	.esgr .tabbar a, .esgr .tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: #DCE6F5; text-decoration: none; font-size: 11px; border: 0; background: none; border-radius: 8px; }
	.esgr .tabbar .i { width: 24px; height: 24px; }
	.esgr .tabbar .on { background: #fff; color: var(--navy); }
	.esgr .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 4px); }
	.esgr .tray { left: 0; right: 0; width: auto; max-width: none; bottom: 64px; }
	.esgr .page { padding: 18px 16px 40px; }
	.esgr h1 { font-size: 22px; }
	.esgr .stats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; }
	.esgr .stat { flex: none; }
	.esgr .cards { grid-template-columns: 1fr; }
	.esgr .row2, .esgr .row3 { grid-template-columns: 1fr; }
	.esgr .kv { grid-template-columns: 1fr; gap: 2px; }
	.esgr .kv dd { margin-bottom: 8px; }
	.esgr .banner { padding: 18px; }
	.esgr .banner h1 { font-size: 21px; }
	.esgr .steps { grid-template-columns: repeat(2, 1fr); }
	.esgr .steps li { border-bottom: 1px solid var(--line); }
	.esgr .tbl th, .esgr .tbl td { padding: 9px 10px; }
	.esgr .tbl .hide-sm { display: none; }
	.esgr .search-inline input { width: 130px; }
	.esgr .day { min-height: 66px; padding: 3px; }
	.esgr .day .ev span { display: none; }
	.esgr .day .ev { justify-content: center; padding: 3px 0; border-left-width: 0; border-top: 3px solid var(--ec); min-height: 8px; }
	.esgr .dow span { padding: 6px 2px; font-size: 10.5px; }
	.esgr .inbox { height: calc(100vh - 64px); }
	.esgr .inbox-bar { padding: 10px 12px; }
	.esgr .inbox-grid { grid-template-columns: 1fr; }
	.esgr .inbox.has-open .convos { display: none; }
	.esgr .inbox:not(.has-open) .convo { display: none; }
	.esgr .msgs { padding: 12px; }
	.esgr .reply-bar { padding: 10px 12px; }
	.esgr .bars { padding: 10px 10px 0; gap: 3px; }
	.esgr .bars .b small { font-size: 10px; }
	.esgr .bars-x { margin: 0 10px; gap: 3px; }
	.esgr .bars-x span { font-size: 9.5px; }
	.esgr .foot-note { padding: 14px 16px 24px; }
	.esgr .modal-wrap { padding: 0; align-items: end; }
	.esgr .modal { border-radius: 14px 14px 0 0; max-height: 94vh; }
}
@media (prefers-reduced-motion: reduce) { .esgr * { transition: none !important; animation: none !important; } }

/* Night mode */
html[data-theme=dark] .esgr { color-scheme: dark; --navy: #c9dbf5; --navy-2: #8fb6ee; --navy-3: #7aa7e8; --accent: #6ea8ff; --sky: #172742; --bg: #0e1520; --card: #141d2b; --ink: #e3e9f1; --muted: #9eabbb; --line: #263345; --soft: #18222f; --red: #ff8b7c; --red-bg: rgba(255,139,124,.13); --green: #5fd39a; --green-bg: rgba(95,211,154,.13); --blue: #8fb6ee; --blue-bg: rgba(143,182,238,.12); --gray: #b5c0ca; --gray-bg: #1f2a38; --amber: #f0c050; --amber-bg: rgba(240,192,80,.12); --shadow: none; }
html[data-theme=dark] .esgr-body { background: #0e1520; }
html[data-theme=dark] .esgr .rail, html[data-theme=dark] .esgr .tabbar { background: #0a1a36; }
html[data-theme=dark] .esgr .rail-link.on, html[data-theme=dark] .esgr .tabbar .on { background: #1d3561; color: #fff; }
html[data-theme=dark] .esgr .panel, html[data-theme=dark] .esgr .cc, html[data-theme=dark] .esgr .stat, html[data-theme=dark] .esgr .modal, html[data-theme=dark] .esgr .modal-head, html[data-theme=dark] .esgr .modal-foot, html[data-theme=dark] .esgr .tray, html[data-theme=dark] .esgr .month, html[data-theme=dark] .esgr .acard, html[data-theme=dark] .esgr .convos, html[data-theme=dark] .esgr .inbox-bar, html[data-theme=dark] .esgr .convo-head, html[data-theme=dark] .esgr .reply-bar, html[data-theme=dark] .esgr .msg, html[data-theme=dark] .esgr .agenda section, html[data-theme=dark] .esgr .ag, html[data-theme=dark] .esgr .steps, html[data-theme=dark] .esgr .kpi, html[data-theme=dark] .esgr .gate-card, html[data-theme=dark] .esgr .col-h span, html[data-theme=dark] .esgr .seg { background: var(--card); }
html[data-theme=dark] .esgr .col { background: #101926; }
html[data-theme=dark] .esgr .msg.mine { background: #15233a; border-color: #2a3f60; }
html[data-theme=dark] .esgr .day.other { background: #111a26; }
html[data-theme=dark] .esgr .day.today, html[data-theme=dark] .esgr .agenda h3.today { background: #15233a; }
html[data-theme=dark] .esgr .ev { background: color-mix(in srgb, var(--ec) 22%, #141d2b); }
html[data-theme=dark] .esgr .btn { background: #141d2b; border-color: #2b3a4e; color: var(--ink); }
html[data-theme=dark] .esgr .btn-primary { background: #1d4a8f; border-color: #3b6bb5; color: #fff; }
html[data-theme=dark] .esgr .btn-flag { background: #9c2232; border-color: #c03447; color: #fff; }
html[data-theme=dark] .esgr .banner .btn { background: rgba(255,255,255,.92); color: #0B2A5B; }
html[data-theme=dark] .esgr input, html[data-theme=dark] .esgr select, html[data-theme=dark] .esgr textarea { background: #0e1520; color: var(--ink); border-color: #33445a; }
html[data-theme=dark] .esgr .info { color: var(--ink); border-color: var(--line); }
html[data-theme=dark] .esgr .meter > i { background: #fff; }
html[data-theme=dark] .esgr .bars .b span { background: #5f8fd6; }
html[data-theme=dark] .esgr .toast { background: #e3e9f1; color: #0e1520; }

/* Sign-in page (no WordPress screens) */
.esgr-gate .gate-card { width: 100%; max-width: 440px; text-align: left; }
.esgr-gate .gate-logos { justify-content: center; margin-bottom: 4px; }
.esgr-gate h1 { text-align: center; }
.esgr-gate .gsub { text-align: center; margin: 0 0 18px; font-size: 14.5px; }
.esgr-gate .gform[hidden] { display: none; }
.esgr-gate .gfield { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 650; font-size: 14px; color: #121D2B; }
.esgr-gate .gfield small { font-weight: 400; color: #566577; font-size: 12.5px; }
.esgr-gate .gfield input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #B6C2D0; border-radius: 8px; font: inherit; font-weight: 400; font-size: 16px; background: #fff; color: #121D2B; box-sizing: border-box; }
.esgr-gate .gfield input:focus { border-color: #1F6FD1; outline: 3px solid rgba(31,111,209,.22); }
.esgr-gate .pw-wrap { position: relative; display: block; }
.esgr-gate .pw-wrap input { padding-right: 64px; }
.esgr-gate .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #1B4F9C; font: 600 13px/1 'Public Sans', sans-serif; padding: 8px; cursor: pointer; }
.esgr-gate .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esgr-gate .grow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 16px; font-size: 13.5px; flex-wrap: wrap; }
.esgr-gate .gcheck { display: flex; align-items: center; gap: 8px; color: #121D2B; cursor: pointer; }
.esgr-gate .gcheck input { width: 17px; height: 17px; accent-color: #0B2A5B; }
.esgr-gate a { color: #1B4F9C; font-weight: 600; }
.esgr-gate .gbtn { display: flex; width: 100%; gap: 10px; border: 1px solid #0B2A5B; font-size: 16px; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.esgr-gate .gbtn:disabled { opacity: .6; cursor: default; }
.esgr-gate .galt { background: #fff; color: #0B2A5B; margin-top: 10px; }
.esgr-gate .galt:hover { background: #F2F4F8; color: #0B2A5B; }
.esgr-gate .gswitch { text-align: center; font-size: 14px; margin: 16px 0 0; }
.esgr-gate .gnote { font-size: 13px; text-align: center; margin: 16px 0 0; }
.esgr-gate .gmsg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.esgr-gate .gmsg.bad { background: #FDECEA; color: #8A1C12; border: 1px solid #F3C3BD; }
.esgr-gate .gmsg.good { background: #E3F3E8; color: #1E6B3A; border: 1px solid #B9DFC4; }
.esgr-gate .gmsg[hidden] { display: none; }
.esgr-gate .ghp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.esgr-gate .gate-foot { text-align: center; }
@media (max-width: 480px) { .esgr-gate { padding: 12px; } .esgr-gate .gate-card { padding: 24px 18px; } .esgr-gate .g2 { grid-template-columns: 1fr; } .esgr-gate .gate-logo { width: 200px; } }

/* Clock in / clock out */
.esgr .clockbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 32px; background: #E3F3E8; border-bottom: 1px solid #B9DFC4; color: #14401F; }
.esgr .clock-dot { width: 10px; height: 10px; border-radius: 50%; background: #1E6B3A; flex: none; box-shadow: 0 0 0 0 rgba(30,107,58,.5); animation: esgrpulse 2s infinite; }
@keyframes esgrpulse { 70% { box-shadow: 0 0 0 9px rgba(30,107,58,0); } 100% { box-shadow: 0 0 0 0 rgba(30,107,58,0); } }
.esgr .clock-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.esgr .clock-txt b { font-size: 14px; }
.esgr .clock-txt small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2A5A36; }
html[data-theme=dark] .esgr .clockbar { background: #12301E; border-color: #1f4a2e; color: #cfeedd; }
html[data-theme=dark] .esgr .clock-txt small { color: #a6d8b8; }
@media (max-width: 760px) { .esgr .clockbar { padding: 8px 16px; } }

/* Courses */
.esgr .tray-courses { list-style: none; margin: 0; padding: 0; }
.esgr .tray-courses li a { display: flex; gap: 12px; padding: 10px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.esgr .tray-courses li a:hover { background: var(--soft); }
.esgr .tray-courses i { width: 6px; border-radius: 3px; flex: none; }
.esgr .tray-courses span { display: flex; flex-direction: column; gap: 2px; }
.esgr .tray-courses strong { color: var(--navy-2); font-size: 15.5px; }
.esgr .tray-courses small { font-size: 12.5px; color: var(--muted); }
.esgr .tray hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 6px; }
.esgr .strong-link { font-weight: 650; text-decoration: none; }
.esgr .loading-sm { color: var(--muted); padding: 10px 0; }
.esgr .course-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 420px; }
.esgr .course-prog .meter { flex: 1; background: rgba(255,255,255,.3); }
.esgr .course-prog b { color: #fff; font-size: 13.5px; white-space: nowrap; }
.esgr .course-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.esgr .course-nav { position: sticky; top: 12px; padding-bottom: 8px; max-height: calc(100vh - 24px); overflow-y: auto; }
.esgr .course-nav ul { list-style: none; margin: 0; padding: 0 8px; }
.esgr .cnav-l { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35; }
.esgr .cnav-l:hover { background: var(--soft); color: var(--ink); }
.esgr .cnav-l.on { background: var(--sky); box-shadow: inset 3px 0 var(--flag); font-weight: 650; }
.esgr .cnav-l small { color: var(--muted); font-weight: 400; }
.esgr .cnav-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gray-bg); color: var(--muted); flex: none; }
.esgr .cnav-ic .i { width: 13px; height: 13px; }
.esgr .cnav-l.done .cnav-ic { background: var(--green); color: #fff; }
.esgr .lesson-body { padding: 18px 22px 8px; font-size: 15.5px; line-height: 1.6; max-width: 820px; }
.esgr .lesson-body h3 { font-size: 16px; margin: 18px 0 6px; }
.esgr .lesson-body ul { margin: 0 0 12px; padding-left: 22px; }
.esgr .lesson-body li { margin: 3px 0; }
.esgr .embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.esgr .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.esgr .lesson-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .esgr .course-grid { grid-template-columns: 1fr; } .esgr .course-nav { position: static; max-height: none; } }

/* Map key and area overlay */
.esgr .map-key .key-reg { padding: 6px 16px 10px; border-bottom: 1px solid var(--line); }
.esgr .map-key .key-reg:last-child { border-bottom: 0; }
.esgr .key-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.esgr .key-h span { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.esgr .map-key ul { list-style: none; margin: 0; padding: 0; }
.esgr .key-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 5px 6px; border: 0; background: none; border-radius: 7px; text-align: left; font-size: 13.5px; }
.esgr .key-row:hover { background: var(--soft); }
.esgr .key-row > i { width: 16px; height: 16px; border-radius: 4px; flex: none; margin-top: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.esgr .key-row > b { width: 22px; flex: none; text-align: right; }
.esgr .key-row > span { display: flex; flex-direction: column; min-width: 0; }
.esgr .key-row small { color: var(--muted); font-size: 11.5px; }
.esgr .open { color: var(--red); font-style: italic; font-weight: 600; }
.esgr .map-wrap > aside { display: flex; flex-direction: column; gap: 0; }
.esgr .map-wrap > aside .map-list { max-height: 360px; }
.esgr .area-num span { display: grid; place-items: center; width: 26px; height: 26px; opacity: .85; border-radius: 50%; background: rgba(255,255,255,.88); color: #0B2A5B; font: 800 14px/1 'Public Sans', Arial, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.esgr .leaflet-tooltip { font: 13px/1.4 'Public Sans', Arial, sans-serif; }

/* Demo account banner and reviewer sign-in */
.esgr .demobar { display: flex; align-items: center; gap: 10px; padding: 9px 32px; background: #FFF4D6; border-bottom: 1px solid #F1D58A; color: #5A3B00; font-size: 13.5px; }
.esgr .demobar .i { color: #8A5A00; }
.esgr-gate .gdemo { margin-top: 14px; border-top: 1px solid #E3E8EF; padding-top: 10px; }
.esgr-gate .gdemo summary { cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; color: #566577; list-style: none; }
.esgr-gate .gdemo summary::-webkit-details-marker { display: none; }
.esgr-gate .gdemo[open] summary { margin-bottom: 12px; }
@media (max-width: 760px) { .esgr .demobar { padding: 8px 16px; } }

/* "Where you are" map */
.esgr .map-wrap > div { min-width: 0; }
.esgr .me-map { margin-top: 0; }
.esgr .me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.esgr .vmap.small { height: 360px; min-height: 0; border-bottom-left-radius: var(--r); }
.esgr .me-info { padding: 14px 18px; border-left: 1px solid var(--line); }
.esgr .me-info h3 { font-size: 18px; margin: 0 0 2px; }
.esgr .me-info .eyebrow { margin-bottom: 2px; }
.esgr .kv.tight { grid-template-columns: 90px minmax(0, 1fr); padding: 10px 0 0; gap: 6px 10px; font-size: 13.5px; }
.esgr .me-star { display: flex !important; flex-direction: column; align-items: center; }
.esgr .me-star span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #B22234; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); color: #fff; }
.esgr .me-star span .i { width: 18px; height: 18px; fill: #fff; stroke: #fff; }
.esgr .me-star b { margin-top: 2px; background: #fff; color: #B22234; font: 800 11px/1 'Public Sans', Arial, sans-serif; padding: 2px 6px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.3); white-space: nowrap; }
.esgr .map-reset { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 8px; background: #fff; color: #0B2A5B; font: 650 13px/1 'Public Sans', Arial, sans-serif; box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
@media (max-width: 760px) { .esgr .me-grid { grid-template-columns: 1fr; } .esgr .me-info { border-left: 0; border-top: 1px solid var(--line); } }

/* Map toggle and volunteer pins */
.esgr .map-toggle button { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.esgr .map-toggle .i { width: 17px; height: 17px; }
.esgr .vpin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pc, #0B2A5B); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); color: #fff; font: 800 10.5px/1 'Public Sans', Arial, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.esgr .vpin span { transform: none; border-radius: 50%; position: relative; }
.esgr .vpin span::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid #fff; border-bottom: 0; }
.esgr .vpin.me { display: flex !important; flex-direction: column; align-items: center; }
.esgr .vpin.me span { width: 36px; height: 36px; background: #B22234; }
.esgr .vpin.me span .i { width: 18px; height: 18px; fill: #fff; stroke: #fff; }
.esgr .vpin.me b { margin-top: 9px; background: #B22234; color: #fff; font: 800 11px/1 'Public Sans', Arial, sans-serif; padding: 3px 8px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.esgr .you-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.esgr .you-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.esgr .you-card small { color: var(--muted); font-size: 12.5px; }
.esgr .you-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #B22234; color: #fff; flex: none; }
.esgr .you-dot .i { width: 18px; height: 18px; fill: #fff; stroke: #fff; }
.esgr .vol-list { padding-bottom: 6px; }
.esgr .vol-town ul { list-style: none; margin: 0; padding: 0 16px 8px 16px; }
.esgr .vol-town li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; font-size: 13.5px; }
.esgr .vol-town li > i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.esgr .vol-town li small { width: 100%; padding-left: 18px; color: var(--muted); font-size: 12px; }
.esgr .vol-town .map-town { border-bottom: 0; padding-bottom: 4px; }
.esgr .vol-town + .vol-town { border-top: 1px solid var(--line); }
.esgr .key-row.mine { background: var(--sky); }
.esgr .you-tag { color: var(--flag) !important; font-weight: 700; }
.esgr .map-wrap > aside .map-list { max-height: min(72vh, 640px); }

/* Military units map */
.esgr #u-body.bare { background: none; border: 0; box-shadow: none; }
.esgr .bdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; }
.esgr .br-key { list-style: none; margin: 0; padding: 6px 10px 10px; }
.esgr .br-key .key-row > b { min-width: 46px; text-align: left; font-size: 12px; }
.esgr .br-key .key-row em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.esgr .upin span { display: grid; place-items: center; border-radius: 50%; background: var(--pc); border: 2.5px solid #fff; box-shadow: 0 2px 7px rgba(0,0,0,.35); color: #fff; font: 800 12px/1 'Public Sans', Arial, sans-serif; cursor: pointer; transform: translate(-50%, -50%); margin: 50% 0 0 50%; }
.esgr .upop strong { display: block; font-size: 14px; }
.esgr .upop > small { color: #566577; }
.esgr .upop p { margin: 8px 0 2px; font-size: 12.5px; }
.esgr .upop ul { margin: 0; padding-left: 16px; }
.esgr .upop li { margin: 2px 0; }
.esgr .upop li small { color: #566577; }
.esgr .units-map .vmap { height: min(74vh, 680px); }
@media (max-width: 700px) { .esgr .units-map .vmap { height: 420px; } }

/* ===== Calendar 1.5: month, week, day, agenda ===== */
.esgr .cal-main { min-width: 0; }
.esgr .cal-bar { gap: 10px 12px; }
.esgr .cal-bar h1 { margin-right: 0; min-width: 0; font-size: 22px; }
.esgr .cal-nav { display: inline-flex; align-items: center; gap: 4px; }
.esgr .icon-btn.bordered { border: 1px solid var(--line); width: 36px; height: 36px; background: var(--card); }
.esgr .icon-btn.bordered:hover { background: var(--soft); color: var(--ink); }
.esgr .cal-jump { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--card); margin-right: auto; cursor: pointer; }
.esgr .cal-jump input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.esgr .cal-jump input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.esgr .cal-jump:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Month */
.esgr .cal-month .day { min-height: 124px; position: relative; transition: background .12s; }
.esgr .cal-month .day.wkend:not(.other):not(.today) { background: color-mix(in srgb, var(--soft) 70%, var(--card)); }
.esgr .cal-month .day.past:not(.today) .dnum { color: #8795A6; }
.esgr .cal-month .day.past:not(.today) .ev { opacity: .78; }
.esgr .cal-month .day.today { background: color-mix(in srgb, var(--flag) 5%, var(--card)); box-shadow: inset 0 0 0 2px var(--flag); }
.esgr .day-top { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.esgr .cal-month .dnum { align-self: auto; cursor: pointer; }
.esgr .cal-month .dnum:hover { background: var(--soft); }
.esgr .cal-month .day.today .dnum:hover { background: var(--flag); }
.esgr .today-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--flag); }
.esgr .day-add { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); opacity: 0; transition: opacity .12s; }
.esgr .day-add svg { width: 16px; height: 16px; }
.esgr .day:hover .day-add, .esgr .day-add:focus-visible { opacity: 1; }
.esgr .day-add:hover { background: var(--soft); color: var(--navy); }
@media (hover: none) { .esgr .day-add { display: none; } }
.esgr .more-btn { border: 0; background: none; padding: 1px 6px; text-align: left; font-size: 12px; font-weight: 700; color: var(--navy-2); border-radius: 4px; }
.esgr .more-btn:hover { background: var(--soft); }
.esgr .ev.multi { border-left-width: 0; background: var(--ec); color: #fff; }
.esgr .ev.multi span { color: #fff; }
.esgr .ev[data-drag] { cursor: grab; }
.esgr [data-drop].is-drop, .esgr .tg-col.is-drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.esgr .dragging { opacity: .35; }
.esgr .drag-ghost { position: fixed !important; z-index: 1000; pointer-events: none; opacity: .92; box-shadow: 0 10px 28px rgba(10,25,50,.28); margin: 0 !important; }

/* Week and day time grid */
.esgr .tg-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.esgr .tg-scroll { max-height: min(72vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.esgr .tg { display: grid; grid-template-columns: 58px repeat(var(--cols, 7), minmax(0, 1fr)); }
.esgr .tg-head { position: sticky; top: 0; z-index: 3; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.esgr .tg-corner { border-bottom: 1px solid var(--line); }
.esgr .tg-dh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 8px; border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--muted); font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.esgr .tg-dh b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; color: var(--ink); letter-spacing: 0; }
.esgr .tg-dh:not([disabled]):hover b { background: var(--soft); }
.esgr .tg-dh.today { color: var(--flag); }
.esgr .tg-dh.today b { background: var(--flag); color: #fff; }
.esgr .tg-dh.past b { color: #8795A6; }
.esgr .tg-dh[disabled] { cursor: default; opacity: 1; }
.esgr .tg-lab { font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.esgr .tg-all { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 3px; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 30px; }
.esgr .tg-hours { position: relative; }
.esgr .tg-hour { height: 46px; text-align: right; padding-right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-7px); white-space: nowrap; }
.esgr .tg-col { position: relative; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.esgr .tg-col.wkend { background: color-mix(in srgb, var(--soft) 60%, var(--card)); }
.esgr .tg-col.today { background: color-mix(in srgb, var(--flag) 3.5%, var(--card)); }
.esgr .tg-slot { all: unset; box-sizing: border-box; height: 46px; border-top: 1px solid #EDF1F5; cursor: pointer; }
.esgr .tg-slot:nth-child(odd) { border-top-color: var(--line); }
.esgr .tg-slot:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.esgr .tg-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.esgr .tg-ev { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 7px; border: 0; border-left: 4px solid var(--ec); border-radius: 6px; background: color-mix(in srgb, var(--ec) 16%, var(--card)); color: var(--ink); font-size: 12px; line-height: 1.25; text-align: left; overflow: hidden; box-shadow: 0 1px 2px rgba(10,25,50,.12); z-index: 1; }
.esgr .tg-ev:hover { background: color-mix(in srgb, var(--ec) 26%, var(--card)); z-index: 2; }
.esgr .tg-ev[data-drag] { cursor: grab; }
.esgr .tg-ev.short { flex-direction: row; gap: 6px; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; }
.esgr .tg-time { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--ec) 70%, var(--ink)); white-space: nowrap; }
.esgr .tg-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.esgr .tg-ev:not(.short) .tg-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.esgr .tg-meta { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.esgr .tg-ev.req { background: var(--card); outline: 1.5px dashed color-mix(in srgb, var(--ec) 60%, #fff); border-left-style: dashed; }
.esgr .tg-ev.done { opacity: .7; }
.esgr .tg-ev.cx .tg-title { text-decoration: line-through; color: var(--muted); }
.esgr .tg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--flag); pointer-events: none; z-index: 2; }
.esgr .tg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--flag); }
.esgr .tg-day .tg-ev { font-size: 13px; padding: 5px 10px; }

/* Agenda */
.esgr .cal-agenda section.is-today { box-shadow: inset 0 0 0 2px var(--flag), var(--shadow); }
.esgr .cal-agenda section.is-today h3 { background: color-mix(in srgb, var(--flag) 7%, var(--card)); color: var(--flag); }
.esgr .ag2 { display: flex; align-items: stretch; }
.esgr .ag2-bar { width: 5px; flex: none; background: var(--ec); }
.esgr .ag2-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 0; background: none; text-align: left; color: inherit; }
.esgr .ag2-main:hover { background: var(--soft); }
.esgr .ag2-time { width: 84px; flex: none; font-size: 13.5px; font-weight: 750; color: var(--ink); display: flex; flex-direction: column; }
.esgr .ag2-time small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.esgr .ag2-dir { display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; font-size: 12.5px; font-weight: 650; color: var(--navy-2); text-decoration: none; border-left: 1px solid #EEF1F4; }
.esgr .ag2-dir:hover { background: var(--soft); }
.esgr .ag2-dir svg { width: 16px; height: 16px; }
.esgr .more-ahead { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }

/* Sidebar */
.esgr .mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.esgr .icon-btn.sm { width: 30px; height: 30px; }
.esgr .mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.esgr .mini-dow { font-size: 10.5px; font-weight: 750; color: var(--muted); padding: 2px 0 4px; }
.esgr .mini-d { position: relative; display: grid; place-items: center; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 0; }
.esgr .mini-d:hover { background: var(--soft); }
.esgr .mini-d.other { color: #A5B1BC; }
.esgr .mini-d.range { background: var(--sky); border-radius: 6px; }
.esgr .mini-d.sel { box-shadow: inset 0 0 0 2px var(--navy-2); }
.esgr .mini-d.today { background: var(--flag); color: #fff; }
.esgr .mini-d i { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--navy-2); }
.esgr .mini-d.today i { background: #fff; }
.esgr .side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.esgr .side-h h3 { margin: 0; }
.esgr .type-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.esgr .tpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.esgr .tpill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.esgr .tpill small { font-size: 11px; font-weight: 750; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 0 6px; }
.esgr .tpill[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 9%, var(--card)); }
.esgr .tpill[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.esgr .tpill[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }

@media (max-width: 960px) {
	.esgr .cal-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
	.esgr .cal-bar h1 { order: -1; flex-basis: 100%; font-size: 20px; }
	.esgr .cal-bar .seg { order: 3; }
	.esgr .cal-bar .btn-primary { order: 4; }
	.esgr .cal-month .day { min-height: 64px; }
	.esgr .cal-month .day-top { min-height: 22px; }
	.esgr .today-tag, .esgr .more-btn { font-size: 10px; padding: 0 2px; }
	.esgr .today-tag { display: none; }
	.esgr .day .ev.multi { border-top-color: var(--ec); }
	.esgr .tg { grid-template-columns: 40px repeat(var(--cols, 7), minmax(0, 1fr)); }
	.esgr .tg-hour { font-size: 9.5px; padding-right: 4px; }
	.esgr .tg-dh { font-size: 10px; padding: 6px 0; }
	.esgr .tg-dh b { width: 28px; height: 28px; font-size: 14px; }
	.esgr .tg-wrap:not(.tg-day) .tg-ev { padding: 2px 3px; font-size: 10.5px; border-left-width: 3px; }
	.esgr .tg-wrap:not(.tg-day) .tg-time, .esgr .tg-wrap:not(.tg-day) .tg-meta { display: none; }
	.esgr .ag2-time { width: 62px; font-size: 12.5px; }
	.esgr .ag2-dir span { display: none; }
	.esgr .ag2-dir { padding: 0 12px; }
}
html[data-theme=dark] .esgr .tg-slot { border-top-color: #1c2635; }
html[data-theme=dark] .esgr .tg-slot:nth-child(odd) { border-top-color: var(--line); }
html[data-theme=dark] .esgr .ag2-dir { border-left-color: var(--line); }
html[data-theme=dark] .esgr .mini-d.other { color: #5b6878; }
.esgr .cal-side .panel { margin-bottom: 0; }
.esgr .tg-ev.one .tg-title { display: block; white-space: nowrap; }

/* Command: announcements across the top, activity across the bottom */
.esgr .ann-wide { margin-bottom: 18px; }
.esgr .ann-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.esgr .ann-row.n1 { grid-template-columns: 1fr; }
.esgr .ann-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esgr .ann-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 14px; min-width: 0; }
.esgr .ann-card + .ann-card { border-left: 1px solid var(--line); }
.esgr .ann-card.pinned { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.esgr .ann-card header { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.esgr .ann-card h3 { font-size: 16px; line-height: 1.3; margin: 0; }
.esgr .ann-card time { font-size: 12.5px; color: var(--muted); }
.esgr .ann-text { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: var(--ink); max-height: 6em; overflow: hidden; position: relative; }
.esgr .ann-row.n1 .ann-text { max-height: 4.5em; }
.esgr .ann-card:not(.open) .ann-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(transparent, var(--card)); }
.esgr .ann-card.pinned:not(.open) .ann-text::after { background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 4%, var(--card))); }
.esgr .ann-card.open .ann-text { max-height: none; }
.esgr .ann-more { align-self: flex-start; font-size: 13px; font-weight: 700; }
.esgr .ann-more[hidden] { display: none; }
.esgr .act-wide { margin-top: 6px; }
.esgr .feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esgr .feed-grid > li { border-top: 1px solid #EEF1F4; }
@media (max-width: 1180px) { .esgr .ann-row, .esgr .ann-row.n2 { grid-template-columns: 1fr; } .esgr .ann-card + .ann-card { border-left: 0; border-top: 1px solid var(--line); } .esgr .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .esgr .feed-grid { grid-template-columns: 1fr; } }
html[data-theme=dark] .esgr .feed-grid > li { border-top-color: var(--line); }
.esgr .seg > a svg { width: 16px; height: 16px; }

/* Award: where it is and who is close */
.esgr .nb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.esgr .nb-head .seg > button { min-height: 30px; padding: 4px 11px; }
.esgr .nb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.esgr .nb-map { height: 400px; background: #E8EDF2; position: relative; z-index: 0; isolation: isolate; }
.esgr .nb-side { border-left: 1px solid var(--line); max-height: 400px; overflow-y: auto; }
.esgr .nb-count { margin: 0; padding: 10px 16px; font-size: 12.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.esgr .nb-list { list-style: none; margin: 0; padding: 0; }
.esgr .nb-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.esgr .nb-row + .nb-row { border-top: 1px solid #EEF1F4; }
.esgr .nb-row.cur { background: var(--green-bg); }
.esgr .nb-mi { width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.esgr .nb-mi b { font-size: 17px; color: var(--navy); }
.esgr .nb-mi small { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.esgr .nb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.esgr .nb-body .lk { font-weight: 700; text-align: left; }
.esgr .nb-body small { font-size: 12.5px; color: var(--muted); }
.esgr .nb-body .pill { font-size: 10.5px; padding: 1px 6px; }
.esgr .amber-t { color: var(--amber); font-weight: 600; }
.esgr .aw-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #B22234; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.esgr .aw-pin svg { transform: rotate(45deg); width: 18px; height: 18px; color: #fff; stroke: #fff; }
@media (max-width: 960px) { .esgr .nb-grid { grid-template-columns: 1fr; } .esgr .nb-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; } .esgr .nb-map { height: 320px; } }
html[data-theme=dark] .esgr .nb-row + .nb-row { border-top-color: var(--line); }
.esgr .nb-body .lk { border: 0; background: none; padding: 0; color: var(--navy); font-size: 14.5px; cursor: pointer; }
.esgr .nb-body .lk:hover { color: var(--navy-2); text-decoration: underline; }
.esgr .sib-list { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px; }
.esgr .sib-list .checkline { margin: 0; }

/* Files on announcements */
.esgr .nf { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.esgr .nf-imgs { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esgr .nf-imgs.n1 { grid-template-columns: minmax(0, 420px); }
.esgr .nf-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esgr .nf-img { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; cursor: zoom-in; }
.esgr .nf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.esgr .nf-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,20,40,.55); color: #fff; font-size: 20px; font-weight: 800; }
.esgr .nf-video { width: 100%; max-width: 640px; border-radius: 8px; background: #000; }
.esgr .nf-embed { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.esgr .nf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.esgr .nf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.esgr .nf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--navy-2); text-decoration: none; max-width: 100%; }
.esgr .nf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.esgr .nf-chip small { color: var(--muted); font-weight: 500; }
.esgr .nf-chip svg { width: 15px; height: 15px; flex: none; }
.esgr .nf-chip:hover { background: var(--soft); }
.esgr .nf-light { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
.esgr .nf-light img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.esgr .nf-light .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); }
.esgr .nf-up { border: 1.5px dashed #B9C6D6; border-radius: 10px; padding: 12px; background: var(--soft); }
.esgr .nf-up.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.esgr .nf-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px; text-align: center; cursor: pointer; color: var(--navy); }
.esgr .nf-drop small { color: var(--muted); font-size: 12.5px; }
.esgr .nf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.esgr .nf-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.esgr .nf-list:empty { display: none; }
.esgr .nf-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.esgr .nf-item img, .esgr .nf-ic { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--navy-2); }
.esgr .nf-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esgr .nf-name small { display: block; font-weight: 500; color: var(--muted); }
.esgr .nf-linkrow { display: flex; gap: 8px; margin-top: 10px; }
.esgr .nf-linkrow input { flex: 1; min-width: 0; }
.esgr .ann-card .nf { margin-top: 2px; }
.esgr .ann-card.fits .ann-text::after { display: none; }

/* Inbox 2: mailboxes, stars, replies to a message, reactions, attachments */
.esgr .inbox-bar select { width: auto; min-width: 120px; }
.esgr .ib-search { flex: 0 1 280px; margin: 0; }
.esgr .convos li { position: relative; }
.esgr .convos li > a { padding-right: 46px; }
.esgr .cv-top { display: flex; align-items: center; gap: 8px; }
.esgr .cv-top .cv-people { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esgr .cv-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.esgr .count-chip { font-size: 11px; font-weight: 800; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; color: var(--muted); }
.esgr .unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flag); margin-right: 6px; vertical-align: middle; }
.esgr .convos .unread .cv-people, .esgr .convos .unread .cv-subj { font-weight: 800; }
.esgr .cv-prev { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esgr .cv-star { position: absolute; right: 8px; bottom: 10px; color: #B8C3CF; }
.esgr .cv-star.on, .esgr .ch-acts .icon-btn.on { color: #D99A00; }
.esgr .cv-star.on svg, .esgr .ch-acts .icon-btn.on svg { fill: #F2B705; }
.esgr .cv-empty { border: 0 !important; padding: 20px; }
.esgr .convo-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.esgr .ch-title { flex: 1; min-width: 0; }
.esgr .ch-title h1 { font-size: 17px; margin: 0; }
.esgr .ch-title p { margin: 2px 0 0; font-size: 13px; }
.esgr .ch-acts { display: flex; gap: 2px; }
.esgr .ch-acts .danger-on { color: var(--red); background: var(--red-bg); }
.esgr .only-mobile { display: none; }
.esgr .msg.mine { background: #F5FAFD; border-color: #CFE5F2; }
.esgr .msg.gone { opacity: .7; }
.esgr .msg.flash { box-shadow: 0 0 0 3px rgba(31,111,209,.45); transition: box-shadow .3s; }
.esgr .msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.esgr .msg-head time { font-size: 12px; color: var(--muted); }
.esgr .msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.esgr .msg-quote, .esgr .rb-to { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 6px 0 2px; padding: 6px 10px; border: 0; border-left: 3px solid var(--navy-2); background: #F2F6F9; border-radius: 6px; text-align: left; font-size: 13px; color: var(--ink); }
.esgr .msg-quote b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--navy-2); }
.esgr .msg-quote b svg { width: 12px; height: 12px; }
.esgr .msg-quote span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.esgr .msg-quote:hover { background: #E7EEF5; }
.esgr .rb-to { flex-direction: row; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.esgr .rb-to span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esgr .msg-files { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.esgr .msg-files .nf-imgs.n1 { grid-template-columns: minmax(0, 320px); }
.esgr .msg-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.esgr .react-row { display: flex; gap: 5px; flex-wrap: wrap; }
.esgr .react-row:empty { display: none; }
.esgr .react-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; }
.esgr .react-chip b { font-size: 12px; color: var(--muted); }
.esgr .react-chip.on { border-color: var(--accent); background: #EAF2FC; }
.esgr .react-chip.on b { color: var(--accent); }
.esgr .msg-acts { position: relative; margin-left: auto; display: flex; gap: 2px; align-items: center; }
.esgr .msg-act { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.esgr .msg-act:hover { background: var(--soft); color: var(--ink); }
.esgr .msg-act.on { color: var(--accent); }
.esgr .msg-act svg { width: 14px; height: 14px; }
.esgr .react-pick { position: absolute; right: 0; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 22px rgba(11,37,64,.16); z-index: 5; }
.esgr .react-pick[hidden] { display: none; }
.esgr .react-pick button { border: 0; background: none; font-size: 22px; width: 38px; height: 38px; border-radius: 50%; transition: transform .12s; }
.esgr .react-pick button:hover { transform: scale(1.25); background: var(--soft); }
.esgr .reply-bar { flex-direction: column; align-items: stretch; gap: 0; }
.esgr .reply-bar.drag-over, .esgr form.drag-over .att-btn { outline: 2px dashed var(--accent); outline-offset: -4px; }
.esgr .rb-row { display: flex; gap: 10px; align-items: flex-end; }
.esgr .rb-row textarea { flex: 1; min-height: 52px; }
.esgr .rb-btns { display: flex; gap: 6px; align-items: center; }
.esgr .att-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 650; color: var(--navy); cursor: pointer; }
.esgr .att-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.esgr .att-btn svg { width: 16px; height: 16px; }
.esgr .att-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.esgr .att-chips:empty { display: none; }
.esgr .att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); font-size: 12.5px; max-width: 100%; }
.esgr .att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.esgr .att-chip small { color: var(--muted); }
.esgr .att-chip button { border: 0; background: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.esgr .att-chip svg { width: 13px; height: 13px; }
@media (max-width: 760px) {
	.esgr .only-mobile { display: inline-grid; }
	.esgr .inbox-bar .btn span { display: none; }
	.esgr .ib-search { order: 5; flex: 1 1 100%; }
	.esgr .react-pick { left: 0; right: auto; flex-wrap: wrap; border-radius: 16px; width: 220px; }
	.esgr .rb-btns .att-btn span, .esgr .rb-btns .btn span { display: none; }
}
html[data-theme=dark] .esgr .msg.mine { background: #16263b; border-color: #23405f; }
html[data-theme=dark] .esgr .msg-quote, html[data-theme=dark] .esgr .rb-to { background: #1b2735; }
html[data-theme=dark] .esgr .react-chip.on { background: #17304f; }
.esgr .rb-to[hidden] { display: none; }
.esgr .msg, .esgr .msg > div, .esgr .msg-files, .esgr .msg-foot { min-width: 0; max-width: 100%; }
.esgr .msg-quote, .esgr .rb-to { box-sizing: border-box; }
@media (max-width: 760px) {
	.esgr .msg { padding: 10px 12px; gap: 8px; }
	.esgr .msg > .avatar, .esgr .msg > [class*="av"] { display: none; }
	.esgr .msg-foot { gap: 4px; }
	.esgr .msg-acts { margin-left: 0; flex-wrap: wrap; }
	.esgr .convo-head { flex-wrap: wrap; padding: 10px 12px; }
	.esgr .ch-acts { margin-left: auto; }
	.esgr .rb-row { gap: 6px; }
	.esgr .rb-row textarea { min-height: 44px; }
}
.esgr .convo, .esgr .convos { min-width: 0; }
@media (max-width: 760px) { .esgr .inbox-grid { grid-template-columns: minmax(0, 1fr); } }

/* Courses 2 (GovSource Academy structure): modules, item rows, viewer, knowledge checks, uploads, discussions */
.esgr .course-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.esgr .course-cols > aside { display: flex; flex-direction: column; gap: 0; }
.esgr details.module { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.esgr details.module > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; background: var(--soft); font-weight: 750; }
.esgr details.module > summary::-webkit-details-marker { display: none; }
.esgr details.module > summary svg { width: 16px; height: 16px; transition: transform .15s; color: var(--muted); }
.esgr details.module[open] > summary svg { transform: rotate(90deg); }
.esgr details.module[open] > summary { border-bottom: 1px solid var(--line); }
.esgr .mod-name { flex: 1; min-width: 0; }
.esgr .mod-prog { font-size: 12px; font-weight: 750; padding: 2px 9px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.esgr .mod-prog.all { background: var(--green-bg); border-color: transparent; color: var(--green); }
.esgr .irows { list-style: none; margin: 0; padding: 0; }
.esgr .irow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-left: 3px solid transparent; }
.esgr .irow + .irow { border-top: 1px solid #EEF1F4; }
.esgr .irow.on { background: var(--sky); border-left-color: var(--navy-2); }
.esgr .irow.missing { border-left-color: var(--red); }
.esgr .irow .t-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--navy-2); flex: none; }
.esgr .irow .t-ic svg { width: 17px; height: 17px; }
.esgr .irow.done .t-ic { background: var(--green-bg); color: var(--green); }
.esgr .irow.locked .t-ic { color: var(--muted); }
.esgr .irow.locked .t-body a { color: var(--muted); }
.esgr .irow .t-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.esgr .irow .t-body a { font-weight: 650; text-decoration: none; color: var(--ink); }
.esgr .irow .t-body a:hover { text-decoration: underline; }
.esgr .irow .t-body small { font-size: 12.5px; color: var(--muted); }
.esgr .irow-end { display: flex; align-items: center; gap: 6px; flex: none; }
.esgr .irow-end .icon-btn.sm { width: 26px; height: 26px; }
.esgr .irow-end [data-mv$=":up"] svg { transform: rotate(90deg); }
.esgr .irow-end [data-mv$=":down"] svg { transform: rotate(90deg); }
.esgr .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; }
.esgr .tick svg { width: 14px; height: 14px; }
.esgr .next-up { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; text-decoration: none; color: var(--ink); border-left: 5px solid var(--flag); }
.esgr .next-up:hover { background: var(--soft); }
.esgr .next-up .t-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--navy); flex: none; }
.esgr .next-up > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.esgr .next-up small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--flag); }
.esgr .next-up strong { font-size: 17px; }
.esgr .next-up em { font-style: normal; font-size: 13px; color: var(--muted); }
.esgr .mods-nav { padding: 0; background: transparent; border: 0; box-shadow: none; }
.esgr .mods-nav details.module { margin-bottom: 8px; }
.esgr .mods-nav .irow { padding: 8px 10px; gap: 8px; }
.esgr .mods-nav .irow .t-ic { width: 26px; height: 26px; }
.esgr .mods-nav .irow .t-body small, .esgr .mods-nav .irow-end .icon-btn, .esgr .mods-nav .irow-end .pill, .esgr .mods-nav .irow-end .small { display: none; }
.esgr .item-head { padding: 18px 20px 0; }
.esgr .ih-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.esgr .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-2); }
.esgr .tag svg { width: 15px; height: 15px; }
.esgr .item-head h2 { font-size: 22px; margin: 6px 0 0; }
.esgr .facts { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.esgr .facts div { display: flex; flex-direction: column; }
.esgr .facts small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.esgr .facts strong { font-size: 14px; }
.esgr .work { padding: 6px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.esgr .quiz-result { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--amber-bg); }
.esgr .quiz-result.ok { background: var(--green-bg); }
.esgr .quiz-result > b { font-size: 26px; color: var(--amber); display: grid; place-items: center; min-width: 64px; }
.esgr .quiz-result.ok > b { color: var(--green); }
.esgr .quiz-result div { display: flex; flex-direction: column; }
.esgr .quiz-result small { color: var(--muted); }
.esgr .quiz-review { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.esgr .quiz-review li { padding: 8px 12px; border-radius: 8px; border-left: 4px solid var(--green); background: var(--soft); }
.esgr .quiz-review li.no { border-left-color: var(--red); }
.esgr .quiz-review p { margin: 2px 0; font-size: 14px; }
.esgr .quiz-review .qq { font-weight: 700; }
.esgr .quiz-review svg { width: 14px; height: 14px; color: var(--green); vertical-align: -2px; }
.esgr .qz { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 0 0 12px; }
.esgr .qz legend { font-weight: 700; padding: 0 6px; }
.esgr .qz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.esgr .qz-opt:hover { background: var(--soft); }
.esgr .qz-opt input { margin-top: 3px; accent-color: var(--navy); }
.esgr .pn { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.esgr .pn .btn { max-width: 48%; height: auto; padding: 8px 12px; }
.esgr .pn .btn span { display: flex; flex-direction: column; text-align: left; overflow: hidden; }
.esgr .pn .pn-next span { text-align: right; }
.esgr .pn small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.esgr .pn .btn span { white-space: nowrap; text-overflow: ellipsis; }
.esgr .cert-card b { display: inline-flex; gap: 6px; align-items: center; color: var(--green); }
.esgr .posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.esgr .post { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.esgr .post > div { flex: 1; min-width: 0; }
.esgr .post.mine { background: #F5FAFD; }
.esgr .kids { padding-left: 34px; }
.esgr .post-acts { margin-left: 0; margin-top: 4px; }
.esgr .post-form { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.esgr .post-form .field { width: 100%; margin: 0; }
.esgr .reply-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.esgr .reply-form textarea { flex: 1; }
.esgr .mcq-b { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.esgr .mcq-q { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.esgr .mcq-q legend { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 0 4px; }
.esgr .mcq-opts { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.esgr .mcq-opt { display: flex; align-items: center; gap: 8px; }
.esgr .mcq-opt input[type=text] { flex: 1; }
.esgr .mcq-opt input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); }
@media (max-width: 960px) { .esgr .course-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .esgr .irow { padding: 9px 12px; } .esgr .facts { gap: 6px 16px; } .esgr .kids { padding-left: 14px; } }
html[data-theme=dark] .esgr .irow + .irow { border-top-color: var(--line); }
html[data-theme=dark] .esgr .post.mine { background: #16263b; }
.esgr .mods-nav .irows { padding: 0; }
