/* DEO workspace: opaque surfaces and static gradients keep long tables cheap to scroll. */
@media screen {
    .deo-workspace { --deo-ink: #16354a; --deo-muted: #637b8c; --deo-line: #dfe9ee; min-width: 0; color: var(--deo-ink); }
    .deo-workspace-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--deo-line); }
    .deo-workspace-brand { display: inline-flex; align-items: center; gap: 8px; color: #0f766e; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
    .deo-workspace-links { display: flex; flex-wrap: wrap; gap: 6px; }
    .deo-workspace-links a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border-radius: 10px; color: #526b7c; font-size: .8rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
    .deo-workspace-links a:hover { background: #f0f7f8; color: #0f766e; }
    .deo-workspace-links a.active { background: #e7f5f2; color: #0c6d62; border-color: #c5e7de; }
    .deo-workspace a:focus-visible, .deo-workspace button:focus-visible { outline: 3px solid #20a7a0; outline-offset: 3px; }
    .deo-page-header { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 30px; border-radius: 20px; background: linear-gradient(115deg, #122f45 0%, #124c60 58%, #117a73 100%); color: white; border: 1px solid #174a5e; box-shadow: 0 8px 22px #16354a12; }
    .deo-page-header.deo-hero-blue { background: linear-gradient(115deg, #172f51, #24547d 65%, #30768c); border-color: #254e73; }
    .deo-page-header.deo-hero-amber { background: linear-gradient(115deg, #27374b, #635546 70%, #8a6744); border-color: #5d5146; }
    .deo-hero-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: #ffffff13; border: 1px solid #ffffff30; flex-shrink: 0; }
    .deo-hero-icon svg { width: 32px; height: 32px; }
    .deo-hero-copy { flex: 1; min-width: 200px; }
    .deo-eyebrow { display: block; color: #b8e3df; font-size: .65rem; font-weight: 750; letter-spacing: .17em; margin-bottom: 7px; }
    .deo-hero-copy h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
    .deo-hero-copy p { margin: 0; color: #deedf1; font-size: .86rem; line-height: 1.65; max-width: 720px; }
    .deo-workspace .deo-hero-actions .mud-button-root { color: #fff; border-color: #ffffff60; background-color: #ffffff0d; white-space: nowrap; }
    .deo-workspace .deo-hero-actions .mud-button-root:hover { background: #ffffff20; }
    .deo-workspace .mud-button-root { background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 10px; text-transform: none; font-weight: 650; box-shadow: none; }
    .deo-workspace .mud-button-root:not(.mud-icon-button):not(:disabled):not(.mud-disabled):hover { transform: none; box-shadow: none; }
    .deo-workspace .mud-button-filled-primary:not(:disabled):not(.mud-disabled) { background-color: #0f766e; }
    .deo-workspace .mud-button-filled-primary:not(:disabled):not(.mud-disabled):hover { background-color: #0b625c; }
    .deo-workspace .mud-button-filled-success:not(:disabled):not(.mud-disabled) { background-color: #13794f; }
    .deo-workspace .admin-form-panel, .deo-workspace .admin-panel, .deo-workspace .admin-stat-card, .deo-special-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--deo-line); border-radius: 17px; box-shadow: 0 4px 16px #16354a06; min-width: 0; }
    .deo-workspace .admin-form-panel { padding: 26px; }
    .deo-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid #e7eef2; }
    .deo-section-icon { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; background: #e9f5f2; color: #0f766e; border-radius: 12px; }
    .deo-section-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #16354a; }
    .deo-section-heading p { margin: 5px 0 0; font-size: .78rem; color: #637b8c; }
    .deo-form-subheading { display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin-top: 10px; background: #f0f7f8; color: #226572; font-size: .75rem; font-weight: 750; border-radius: 9px; }
    .deo-list-toolbar { padding: 18px; background: #f6f9fb; border: 1px solid #e0eaf0; border-radius: 15px; }
    .deo-directory-table td:nth-child(2) { font-weight: 650; color: #20475e; }
    .deo-required-note { margin-left: auto; font-size: .7rem; font-weight: 600; color: #7b6a58; background: #fff6e9; padding: 6px 10px; border-radius: 7px; }
    .deo-workspace .mud-input-outlined { border-radius: 10px; background: #fff; }
    .deo-workspace .mud-input-label { font-size: .86rem; }
    .deo-workspace .mud-input-control { min-width: 0; }
    .deo-upload-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #0e6e68; margin: 12px 0; }
    .deo-upload-heading span { font-size: .73rem; color: #637b8c; margin-left: auto; }
    .deo-workspace input[type="file"] { max-width: 100%; padding: 13px; border: 1px dashed #b8d4d5; border-radius: 12px; background: #f3f9f9; font: inherit; font-size: .82rem; }
    .deo-workspace input[type="file"]::file-selector-button { border: 0; background: #e0eeec; color: #145d58; border-radius: 7px; padding: 8px 12px; margin-right: 12px; font-weight: 650; cursor: pointer; }
    .deo-workspace .admin-stat-card { position: relative; padding: 22px; border-top: 3px solid #2c6f9e; }
    .deo-workspace .admin-stat-card > .mud-icon-root { position: absolute; top: 20px; right: 20px; padding: 8px; box-sizing: content-box; border-radius: 11px; background: #e3edf8; color: #2c6f9e; width: 23px; height: 23px; }
    .deo-workspace .admin-stat-card > span { display: block; color: #526c80; font-size: .73rem; font-weight: 700; padding-right: 48px; }
    .deo-workspace .admin-stat-card > strong { display: block; font-size: 2rem; font-weight: 800; color: #193f5c; margin-top: 10px; }
    .deo-workspace .deo-stat-total { background: linear-gradient(120deg, #fff, #f2f7fd); }
    .deo-workspace .deo-stat-editable { border-top-color: #129180; background: linear-gradient(120deg, #fff, #edf9f5); }
    .deo-workspace .deo-stat-editable > .mud-icon-root { background: #dff5ec; color: #16816c; }
    .deo-workspace .deo-stat-issued { border-top-color: #8b6a30; background: linear-gradient(120deg, #fff, #fff8eb); }
    .deo-workspace .deo-stat-issued > .mud-icon-root { background: #f9edcf; color: #8b6a30; }
    .deo-workspace .mud-table { min-width: 0; max-width: 100%; border: 1px solid #dfe9ee; border-radius: 13px; background: white; box-shadow: none; overflow: hidden; }
    .deo-workspace .mud-table-container { max-width: 100%; background: #fff; }
    .deo-workspace .mud-table th { background: #edf4f8; color: #264b62; font-size: .74rem; font-weight: 750; border-color: #dfe9ee; }
    .deo-workspace .mud-table td { font-size: .79rem; border-color: #e6edf2; }
    .deo-workspace .mud-table-row:hover td { background-color: #f1f8f8; }
    .deo-workspace .mud-table-pagination-toolbar { background: #f8fbfc; }
    .deo-workspace .mud-expand-panel { border: 1px solid #dfe9ee; border-radius: 12px !important; box-shadow: none; }
    .deo-workspace .mud-expand-panel-header { background: #f5f9fb; color: #31556d; font-weight: 650; }
    .deo-workspace .mud-alert { border-radius: 12px; }
    .deo-special-card { padding: 26px; }
    .deo-special-card > .mud-stack { max-width: 900px; }
    .deo-special-card img, .deo-entry-card img { border-radius: 12px; border: 1px solid #dce7ec; padding: 5px; background: #f8fbfc; }
    .deo-workspace .deo-password-page { padding-top: 26px; }
    .deo-workspace .deo-password-card { padding: 30px; border-top: 4px solid #168278; }
    .deo-workspace .summary-page .summary-hero { background: linear-gradient(115deg, #122f45, #164f66 65%, #16847b); border-radius: 20px; box-shadow: 0 8px 22px #16354a12; }
    .deo-workspace .summary-page .summary-hero .eyebrow { color: #b8e3df; }
    .deo-workspace .summary-section { border-color: #dfe9ee; box-shadow: 0 4px 16px #16354a06; }
    .deo-workspace .summary-section h2 { color: #193f5c; }
    .deo-workspace .summary-page .district-table thead th, .deo-workspace .summary-page .district-table tfoot { background: #edf4f8; color: #264b62; }
    .deo-workspace .summary-page .district-table .total-cell { background: #eaf6f2; color: #125b51; }
}
@media screen and (max-width: 700px) {
    .deo-workspace-nav { gap: 12px; }
    .deo-workspace-links { width: 100%; gap: 4px; }
    .deo-workspace-links a { flex: 1; padding: 9px 6px; font-size: .7rem; }
    .deo-workspace-links svg { width: 17px; height: 17px; }
    .deo-page-header { padding: 22px; gap: 15px; }
    .deo-hero-icon { width: 48px; height: 48px; border-radius: 13px; }
    .deo-hero-icon svg { width: 25px; height: 25px; }
    .deo-hero-copy { min-width: 160px; }
    .deo-hero-actions { width: 100%; }
    .deo-hero-actions .mud-button-root { width: 100%; }
    .deo-workspace .admin-form-panel, .deo-workspace .deo-special-card, .deo-workspace .deo-password-card { padding: 18px; }
    .deo-required-note { margin-left: 0; }
}
@media print {
    .deo-workspace-nav, .deo-page-header { display: none !important; }
}

/* DEO landing dashboard */
.deo-dashboard { display:grid; gap:24px; padding-bottom:24px; }
.deo-dash-account { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:#637b8c; font-size:.8rem; }
.deo-dash-account > span:first-child { display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
.deo-dash-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.deo-dash-stat { position:relative; display:flex; flex-direction:column; gap:9px; padding:24px; background:linear-gradient(140deg,#fff,#eff8f7); border:1px solid #dcebe8; border-radius:18px; }
.deo-dash-stat:nth-child(2) { background:linear-gradient(140deg,#fff,#edf4fc); }
.deo-dash-stat:nth-child(3) { background:linear-gradient(140deg,#fff,#f4f1fc); }
.deo-dash-stat:nth-child(4) { background:linear-gradient(140deg,#fff,#fff6e8); }
.deo-dash-stat > span:not(.deo-dash-stat-icon) { padding-right:38px; font-size:.8rem; font-weight:650; color:#526b7c; }
.deo-dash-stat strong { font-size:2.3rem; line-height:1.2; letter-spacing:-.04em; color:#183f50; }
.deo-dash-stat small,.deo-dash-muted { color:#637b8c; font-size:.76rem; }
.deo-dash-stat-icon { position:absolute; right:18px; top:18px; padding:9px; border-radius:12px; background:#ffffffc9; color:#147c73; display:flex; }
.deo-dash-columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:22px; align-items:start; }
.deo-dash-panel { padding:26px; border:1px solid #dfe9ee; background:#fff; border-radius:18px; box-shadow:0 5px 20px #16354a05; min-width:0; }
.deo-dash-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:22px; color:#278379; }
.deo-dash-heading h2 { margin:4px 0 0; font-size:1.15rem; font-weight:750; color:#16354a; }
.deo-dash-kicker { display:block; color:#6d8792; font-size:.64rem; letter-spacing:.12em; font-weight:750; }
.deo-dash-side { display:grid; gap:16px; }
.deo-dash-event { display:flex; gap:14px; padding:18px 0; border-top:1px solid #edf1f4; }
.deo-dash-event-dot,.deo-dash-test-icon { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:38px; height:38px; border-radius:12px; background:#eaf6f2; color:#147c73; }
.deo-dash-event strong { display:block; font-size:.85rem; font-weight:650; overflow-wrap:anywhere; }
.deo-dash-event small,.deo-dash-test small { display:block; margin-top:5px; color:#748793; font-size:.73rem; }
.deo-dash-login { background:linear-gradient(140deg,#f0faf7,#fff); }
.deo-dash-login > strong { display:block; font-size:1.08rem; margin:10px 0 5px; color:#165f59; }
.deo-dash-login > small { color:#748793; }
.deo-dash-login-detail { display:grid; gap:6px; padding:15px 0; border-top:1px solid #deebe7; margin-top:14px; font-size:.75rem; }
.deo-dash-login-detail span { color:#637b8c; }
.deo-dash-login-detail b { font-weight:600; overflow-wrap:anywhere; }
.deo-dash-shortcut { display:flex; align-items:center; gap:14px; padding:20px; background:#fff; border:1px solid #dfe9ee; border-radius:15px; text-decoration:none; color:#16786f; transition:background .2s; }
.deo-dash-shortcut div { flex:1; }
.deo-dash-shortcut strong { display:block; color:#16354a; font-size:.85rem; }
.deo-dash-shortcut span { display:block; color:#637b8c; font-size:.74rem; margin-top:4px; }
.deo-dash-shortcut:hover,.deo-dash-test:hover { background:#f1f9f7; }
.deo-dash-test { display:flex; align-items:center; gap:16px; padding:18px 4px; border-top:1px solid #edf1f4; text-decoration:none; color:#16354a; }
.deo-dash-test > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.deo-dash-test strong { font-size:.87rem; }
.deo-dash-test > b { text-align:right; font-size:1.15rem; }
.deo-dash-test > b small { font-weight:400; }
.deo-dash-empty { text-align:center; padding:44px 16px; color:#637b8c; }
.deo-dash-empty > svg { color:#229885; width:42px; height:42px; margin-bottom:12px; }
.deo-dash-empty h3 { color:#16354a; margin-bottom:8px; }
.deo-dash-empty p { font-size:.84rem; }
@media(max-width:1100px) { .deo-dash-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:750px) { .deo-dash-columns { grid-template-columns:1fr; } .deo-dash-panel { padding:20px; } .deo-dash-stats { gap:12px; } .deo-dash-stat { padding:18px; } .deo-dash-stat-icon { position:static; align-self:flex-start; } .deo-dash-stat > span:not(.deo-dash-stat-icon) { padding:0; } .deo-dash-heading { flex-wrap:wrap; } .deo-workspace-links { flex-wrap:wrap; } .deo-workspace-links a { flex:1 0 auto; } }

/* Color and motion for the dashboard, scoped to the landing page. */
.deo-dashboard { background:radial-gradient(ellipse at 0 10%,#ccfbf133,transparent 48%),radial-gradient(ellipse at 100% 55%,#e9d5ff33,transparent 48%); }
.deo-dashboard .deo-page-header { position:relative; isolation:isolate; overflow:hidden; background:linear-gradient(115deg,#153c66 0%,#176d87 48%,#138477 100%); border-color:#247c8b; box-shadow:0 12px 30px #16677a20; animation:deo-dash-reveal .65s ease-out both; }
.deo-dashboard .deo-page-header::after { content:""; position:absolute; z-index:-1; pointer-events:none; width:240px; height:240px; border-radius:50%; right:-65px; top:-130px; background:radial-gradient(circle,#99f6e455,#ffffff08 70%); border:1px solid #ffffff20; }
.deo-dashboard .deo-hero-icon { background:linear-gradient(145deg,#ffffff30,#ffffff0a); box-shadow:inset 0 1px 0 #ffffff35; }
.deo-dash-stat { --dash-accent:#0f766e; --dash-tint:#d0f5ea; border-color:var(--dash-tint); border-top:3px solid var(--dash-accent); background:linear-gradient(135deg,#fff 15%,#e1faf1); box-shadow:0 6px 20px #16354a08; animation:deo-dash-reveal .55s ease-out both; transition:transform .22s ease,box-shadow .22s ease; }
.deo-dash-stat:nth-child(2) { --dash-accent:#2563b8; --dash-tint:#d5e6ff; background:linear-gradient(135deg,#fff 15%,#e3eeff); animation-delay:70ms; }
.deo-dash-stat:nth-child(3) { --dash-accent:#7c3fba; --dash-tint:#ead7fa; background:linear-gradient(135deg,#fff 15%,#f0e4ff); animation-delay:140ms; }
.deo-dash-stat:nth-child(4) { --dash-accent:#a65a12; --dash-tint:#f8e2b4; background:linear-gradient(135deg,#fff 15%,#fff0d0); animation-delay:210ms; }
.deo-dash-stat strong { color:var(--dash-accent); }
.deo-dash-stat-icon { color:var(--dash-accent); background:var(--dash-tint); transition:transform .25s ease; }
.deo-dash-columns > .deo-dash-panel { border-top:3px solid #6388d5; animation:deo-dash-reveal .65s .12s ease-out both; }
.deo-dash-login { background:linear-gradient(135deg,#ecfcf7,#eef5ff); border-color:#cce7e7; border-top:3px solid #209f96; animation:deo-dash-reveal .65s .18s ease-out both; }
.deo-dashboard > .deo-dash-panel { border-top:3px solid #9b74cc; animation:deo-dash-reveal .65s .24s ease-out both; }
.deo-dash-shortcut { background:linear-gradient(115deg,#f5f0ff,#fff); border-color:#e7dcf7; color:#8050b6; transition:transform .22s ease,box-shadow .22s ease,background .22s ease; }
.deo-dash-shortcut:last-child { background:linear-gradient(115deg,#fff5e2,#fff); border-color:#f0dfbf; color:#a66b22; }
.deo-dash-shortcut > svg:last-child { transition:transform .22s ease; }
.deo-dash-event:nth-of-type(3n) .deo-dash-event-dot { background:#eee5fc; color:#8050b6; }
.deo-dash-event:nth-of-type(3n + 1) .deo-dash-event-dot { background:#e4eeff; color:#326cbb; }
.deo-dash-test-icon { background:#eee8fa; color:#8050b6; }
.deo-dash-test { border-radius:10px; transition:background .2s ease; }
.deo-dash-test > b { color:#7951a6; }
@keyframes deo-dash-reveal { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
    .deo-dash-stat:hover { transform:translateY(-5px); box-shadow:0 14px 26px #16354a14; }
    .deo-dash-stat:hover .deo-dash-stat-icon { transform:rotate(-7deg) scale(1.06); }
    .deo-dash-shortcut:hover { transform:translateY(-3px); box-shadow:0 9px 20px #16354a10; }
    .deo-dash-shortcut:hover > svg:last-child { transform:translateX(4px); }
}
@media(prefers-reduced-motion:reduce) {
    .deo-dashboard,.deo-dashboard *,.deo-dashboard *::before,.deo-dashboard *::after { animation:none !important; transition:none !important; }
}
@media print {
    .deo-dashboard,.deo-dashboard * { animation:none !important; box-shadow:none !important; }
}
