/* Approved Light Gateway V2: presentation only; record/status/chart colors remain authoritative. */
:root {
    --dg-ink: #163654;
    --dg-blue: #1768ad;
    --dg-copper: #b85522;
    --dg-copper-light: #efa650;
    --dg-green: #07865b;
    --dg-paper: #f8f5ef;
    --dg-muted: #40596e;
    --dg-radius: 3px;
    --ink: var(--dg-ink);
    --muted: var(--dg-muted);
    --brand: var(--dg-blue);
    --accent: var(--dg-blue);
    --accent-soft: #e8f1fa;
    --line: #cbd9e4;
    --text: var(--dg-ink);
    color-scheme: light;
}

body {
    color: var(--dg-ink);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background: radial-gradient(ellipse at 100% 0%, #bbd6f1 0%, transparent 54%),
        radial-gradient(ellipse at 0% 95%, #efd0a4 0%, transparent 55%),
        linear-gradient(135deg, #fcf8f0, #edf3f8 60%, #d8e7f2);
    background-attachment: fixed;
}

body [hidden] { display: none !important; }
body :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #1768ad;
    outline-offset: 3px;
}
body button, body input, body select, body textarea { font: inherit; }
body button, body .button { border-radius: var(--dg-radius); }
body button:disabled, body .button[aria-disabled="true"] { cursor: not-allowed; opacity: .65; }
body a { color: #14578f; text-underline-offset: 3px; }
body h1 { color: var(--dg-ink); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.7px; font-weight: 650; }
body h2 { color: var(--dg-ink); font-size: 18px; line-height: 1.3; letter-spacing: -.3px; }
body h3 { color: var(--dg-ink); font-size: 15px; }
body .muted { color: var(--dg-muted); }

body .topbar {
    min-height: 66px;
    padding: 12px 26px 0;
    flex-wrap: wrap;
    gap: 0 14px;
    background: #fffdf9f5;
    border-bottom: 1px solid #bed0e0;
    box-shadow: 0 3px 14px #1647790b;
    backdrop-filter: blur(14px);
}
body .brand { gap: 12px; color: #155a97; font-size: 18px; font-weight: 750; letter-spacing: .65px; }
body .brand-logo { width: 54px; height: 38px; object-fit: contain; border-radius: 3px; background: #fff; border-color: #e0e7eb; }
body .brand .dg-product-logo { display: block; width: 162px; height: auto; object-fit: contain; }
body .brand-logo + .dg-product-logo { padding-left: 13px; border-left: 1px solid #d3dbe1; width: 176px; }
body .brand > span { border-left: 1px solid #d3dbe1; padding-left: 13px; }
body .brand > span:first-child { border-left: 0; padding-left: 0; }
body .topbar-user { display: block; color: #3c5b75; font-size: 12px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
body .topbar-announcements, body .logout-form button {
    border: 1px solid #c5d3df;
    background: #fffefa;
    color: #174f80;
    border-radius: 3px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
}
body .topbar-announcements:hover, body .logout-form button:hover { background: #eaf2fa; border-color: #8daecb; }

/* Native details menus continue working if JavaScript is unavailable. */
body .dg-navigation {
    position: relative;
    z-index: 25;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 18px;
    background: linear-gradient(110deg, #113a69, #1d639c 68%, #164c7d);
    box-shadow: 0 5px 15px #124d7c25;
}
body .topbar > .dg-navigation { order: 20; flex: 0 0 calc(100% + 52px); margin: 12px -26px 0; }
body .topbar:not(:has(> .dg-navigation)) { padding-bottom: 12px; }
body .dg-menu { margin: 0; padding: 0; }
body .dg-menu > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 13px 15px;
    color: #fffdfa;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
body .dg-menu > summary::-webkit-details-marker { display: none; }
body .dg-menu > summary::after { content: "⌄"; color: #d5e5f4; margin-left: auto; font-size: 13px; }
body .dg-menu[open] > summary, body .dg-menu > summary:hover { background: #ffffff12; border-bottom-color: var(--dg-copper-light); }
body .dg-menu > summary:focus-visible { outline-color: #ffe0a9; outline-offset: -4px; }
body .dg-menu-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 100%;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: min(65vh, 580px);
    overflow-y: auto;
    padding: 17px;
    background: #fffdf9;
    border: 1px solid #c2d1df;
    border-top: 2px solid var(--dg-copper-light);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 20px 35px #16365426;
}
body .dg-menu:not([open]) > .dg-menu-panel { display: none; }
body .dg-menu-panel .nav-link {
    min-height: 40px;
    padding: 10px 12px;
    color: #254a69;
    background: #edf3f9;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
body .dg-menu-panel .nav-link:hover, body .dg-menu-panel .nav-link.active { background: #dcecfb; color: #164d7c; }

body #dg-workspace-tabs {
    display: flex;
    align-items: stretch;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 10px 136px 0 26px;
    /* scrollIntoView must treat the refresh overlay as outside the visible tab area. */
    scroll-padding-inline-start: 26px;
    scroll-padding-inline-end: 136px;
    min-height: 48px;
    background: #dce7f0;
    border-bottom: 1px solid #92a9bd;
}
/* Open screens must read as controls, not as text floating over the page. */
body .dg-workspace-tab-wrap { display: flex; flex: 0 0 auto; align-items: stretch; max-width: 300px; border-bottom: 2px solid #6b88a0; border-radius: 3px 3px 0 0; background: #f8fbfd; box-shadow: inset 0 0 0 1px #6b88a0; }
body .dg-workspace-tab-wrap:first-child { box-shadow: inset 0 0 0 2px #507594; }
body .dg-workspace-tab-wrap:first-child .dg-workspace-tab { font-weight: 700; }
body .dg-workspace-tab-wrap.is-active { background: #174f80; border-bottom-color: #efa650; box-shadow: inset 0 0 0 1px #174f80; }
body .dg-workspace-tab, body .dg-workspace-close {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #23496b;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    box-shadow: none;
}
body .dg-workspace-tab { padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; scroll-margin-inline-end: 44px; }
body .dg-workspace-tab[aria-selected="true"] { color: #ffffff; font-weight: 700; }
body .dg-workspace-close { padding: 7px 10px; min-width: 32px; }
body .dg-workspace-close:hover { color: #9d3024; background: #fbe9e3; }
body .dg-workspace-tab:hover { color: #163654; background: #e6eef5; }
body .dg-workspace-tab-wrap.is-active .dg-workspace-tab:hover { color: #ffffff; background: #103e67; }
body .dg-workspace-tab-wrap.is-active .dg-workspace-close { color: #ffffff; }
body .dg-workspace-tab-wrap.is-active .dg-workspace-close:hover { color: #78271b; background: #fbe9e3; }
body :is(.dg-workspace-tab, .dg-workspace-close):focus-visible { outline-offset: -4px; }
body .dg-workspace-tab-wrap.is-active :is(.dg-workspace-tab, .dg-workspace-close):focus-visible { outline-color: #ffdeab; outline-offset: -4px; }
body .dg-workspace-tab-wrap.is-dirty .dg-workspace-tab::after { content: " •"; color: #a64b1f; }
body .dg-workspace-tab-wrap.is-active.is-dirty .dg-workspace-tab::after { color: #ffcf91; }
body .dg-workspace-controls { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin-top: -39px; padding: 0 26px 7px; pointer-events: none; }
body .dg-workspace-refresh { margin: 0; min-height: 32px; padding: 6px 11px; border: 1px solid #b7cbdb; background: #fffdf9; color: #214f76; font-size: 11px; font-weight: 600; pointer-events: auto; }
body .dg-workspace-refresh:hover { background: #e7f0f8; border-color: #88a9c3; }
body dialog.dg-workspace-confirm {
    width: min(92vw, 480px);
    max-height: min(86vh, 680px);
    margin: auto;
    padding: 25px;
    overflow-y: auto;
    border: 1px solid #bfd0dd;
    border-top: 3px solid var(--dg-copper);
    border-radius: 3px;
    background: #fffdf9;
    color: var(--dg-ink);
    box-shadow: 0 24px 70px #102e4b4d;
}
body dialog.dg-workspace-confirm::backdrop { background: #113a6994; backdrop-filter: blur(3px); }
body .dg-confirm-title { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
body .dg-confirm-message { margin: 0; color: var(--dg-muted); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
body .dg-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 22px; }
body .dg-confirm-cancel, body .dg-confirm-accept { margin: 0; min-height: 42px; padding: 9px 15px; border: 1px solid #b6c9d8; font-weight: 600; }
body .dg-confirm-cancel { background: #f3f6f8; color: #274c6b; }
body .dg-confirm-cancel:hover { background: #e6eef5; border-color: #7a9dbb; }
body .dg-confirm-accept { background: var(--dg-blue); color: #fff; border-color: var(--dg-blue); }
body .dg-confirm-accept:hover { background: #12548e; border-color: #12548e; }
body .layout { display: block; min-height: calc(100vh - 162px); }
body #dg-workspace-pages, body .dg-workspace-panel { width: 100%; min-width: 0; }
body .content { padding: 24px 27px 32px; }
body main { max-width: 1680px; }
body .dg-workspace-frame { display: block; width: 100%; height: calc(100vh - 166px); height: calc(100dvh - 166px); min-height: 420px; border: 0; background: transparent; }

/* Keep native tables, forms and domain-specific statuses; only shared presentation is restyled. */
body .panel, body .dashboard-summary-card, body .dashboard-metric, body .dashboard-category {
    border-radius: var(--dg-radius);
    border: 1px solid #faffff;
    border-bottom-color: #b8cddd;
    border-right-color: #bdd0df;
    background: linear-gradient(130deg, #fffffffa, #ffffffd6);
    box-shadow: 0 7px 20px #16477910, 0 1px 0 #fff inset;
}
body .panel { padding: 17px 19px; margin-bottom: 16px; backdrop-filter: blur(12px); }
body .panel > h2:first-child { margin-top: 0; }
body input:not([type="checkbox"]):not([type="radio"]), body select, body textarea {
    border-color: #b8c9d8;
    border-radius: 3px;
    background-color: #fffefa;
    color: #163654;
}
body input[type="checkbox"], body input[type="radio"] { accent-color: var(--dg-blue); }
body label { font-size: 12px; color: #284a67; }
body th { color: #224e73; background: #e8f0f7; border-bottom-color: #bdcedd; font-size: 12px; }
body td { border-bottom-color: #e0e7ec; }
body .local-tabs a { border-radius: 3px; color: #315879; background: #fffdf8; font-size: 12px; }
body .local-tabs a.active { background: #e4eff9; border-color: #90b2cf; color: #154e7f; }
body .compact-form, body .check-card, body .dof-workflow, body .organization-logo-preview { border-radius: 3px; }

/* Deliberately outranks the existing dashboard's inline class rules. No metrics are removed. */
body .dashboard-heading { align-items: center; gap: 18px; margin: 0 0 22px; }
body .dashboard-heading h1 { margin: 0 0 7px; font-weight: 600; }
body .dashboard-heading p { font-size: 12px; }
body .dg-eyebrow { margin-bottom: 7px; color: #36546e; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
body .dashboard-summary-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-bottom: 18px; padding: 5px 0; background: #fffdf9b8; border: 1px solid #cedce6; border-radius: 3px; }
body .dashboard-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 16px; border: 0; border-right: 1px solid #d9e3eb; border-radius: 0; background: transparent; box-shadow: none; }
body .dashboard-summary-card:last-child { border-right: 0; }
body .dashboard-summary-card span { color: var(--dg-muted); font-size: 11px; }
body .dashboard-summary-card strong { color: var(--dg-ink); margin-top: 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
body .dashboard-module-grid { gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
body .dashboard-module { margin: 0; border-top: 2px solid #2b6da5; min-width: 0; }
body .dashboard-module header, body .dashboard-section-heading { gap: 12px; margin-bottom: 12px; }
body .dashboard-module h2, body .dashboard-section-heading h2 { font-size: 16px; font-weight: 650; }
body .dashboard-module header p, body .dashboard-section-heading p { font-size: 11px; line-height: 1.5; }
body .dashboard-module header .button { flex: 0 0 auto; white-space: nowrap; font-size: 11px; }
body .dashboard-module > p, body .dashboard-module > details { font-size: 11px; line-height: 1.6; }
body .dashboard-module > details { margin-top: 12px; }
body .dashboard-module > details > summary { color: #14578f; cursor: pointer; }
body .dashboard-module-meetings { grid-column: 1 / -1; border-top-color: var(--dg-copper); }
body .dashboard-module-meetings .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .dashboard-donut { margin: 14px 0; }
body .dashboard-donut figcaption { color: var(--dg-muted); font-size: 11px; margin-bottom: 9px; }
body .dashboard-donut-body { grid-template-columns: minmax(116px, .75fr) minmax(160px, 1.25fr); gap: 16px; }
body .dashboard-donut-visual { max-width: 168px; filter: drop-shadow(0 3px 3px #1647790c); }
body .dashboard-donut-total strong { color: var(--dg-ink); font-size: clamp(29px, 2.8vw, 38px); font-weight: 650; }
body .dashboard-donut-total span { font-size: 10px; margin-top: 3px; }
body .dashboard-donut-legend li { font-size: 11px; gap: 7px; padding: 6px 0; border-bottom-color: #e1e9ef; }
body .dashboard-donut-legend strong { color: var(--dg-ink); font-size: 15px; }
body .dashboard-donut-legend small { font-size: 10px; }
body .dashboard-donut-empty { font-size: 11px; }
body .dashboard-metrics { gap: 7px; }
body .dashboard-metric { padding: 9px 10px; background: #f5f8fbee; box-shadow: none; border-color: #d9e3ec; }
body .dashboard-metric span { color: var(--dg-muted); font-size: 10px; }
body .dashboard-metric strong { color: var(--dg-ink); font-size: 20px; font-variant-numeric: tabular-nums; }
body .dashboard-category-grid { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
body .dashboard-category { padding: 10px 12px; font-size: 12px; box-shadow: none; border-color: #d5e1eb; background: #f4f8fc; }
body .dashboard-category:hover { background: #e8f2fa; border-color: #88abc8; }
body .dashboard-empty { border-radius: 3px; font-size: 11px; background: #fffdf980; padding: 10px; }
body .dashboard-chart { margin: 15px 0 6px; }
body .dashboard-chart figcaption { font-size: 12px; }
body .dashboard-chart-row { font-size: 11px; gap: 8px; }
body .dashboard-chart-track { height: 9px; background: #e5edf4; border-radius: 2px; }
body .dashboard-chart-details { margin-top: 12px; padding-top: 10px; }
body .dashboard-chart-details summary { font-size: 11px; }
body .dashboard-record-meta { font-size: 11px; }

/* A framed page is a real authorized route, with only duplicate chrome suppressed. */
html.dg-workspace-child .topbar, html.dg-workspace-child .dg-navigation,
html.dg-workspace-child #dg-workspace-tabs, html.dg-workspace-child .dg-workspace-controls, html.dg-workspace-child #dg-opening,
html.dg-embedded .topbar, html.dg-embedded .dg-navigation,
html.dg-embedded #dg-workspace-tabs, html.dg-embedded .dg-workspace-controls, html.dg-embedded #dg-opening { display: none !important; }
html.dg-workspace-child body, html.dg-embedded body { background: transparent; }
html.dg-workspace-child .layout, html.dg-embedded .layout { min-height: 100vh; }
html.dg-workspace-child .content, html.dg-embedded .content { padding: 20px 26px; margin: 0; }

/* The enhanced outer shell owns the viewport; only the selected page scrolls.
   Native/embedded pages and print keep their natural document flow. */
@media screen {
    body.dg-workspace-ready:not(.dg-workspace-child) {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) > .app-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) > .app-shell > .topbar {
        position: relative;
        top: auto;
        flex: 0 0 auto;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) > .app-shell > #dg-workspace-tabs,
    body.dg-workspace-ready:not(.dg-workspace-child) > .app-shell > .dg-workspace-controls { flex: 0 0 auto; }
    body.dg-workspace-ready:not(.dg-workspace-child) > .app-shell > .layout {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) #dg-workspace-pages {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) #dg-initial-page.content {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
    body.dg-workspace-ready:not(.dg-workspace-child) .dg-workspace-frame {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }
}

/* Opening defaults to hidden; the enhancement never gates access to the application. */
#dg-opening {
    position: fixed;
    z-index: 1000;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 48% 25%, #fff9ed 0%, #e0ecf5 47%, #a7c9e1 100%);
}
#dg-opening .dg-architecture { position: absolute; inset: 0; background: linear-gradient(108deg, transparent 0 10%, #fff9 10.1% 10.3%, transparent 10.4% 90%, #7e969222 90.1%); pointer-events: none; }
#dg-opening .dg-roomleft, #dg-opening .dg-roomright { position: absolute; top: 0; bottom: 0; width: 26%; border-inline: 1px solid #ffffff70; }
#dg-opening .dg-roomleft { left: 0; clip-path: polygon(0 0, 100% 14%, 100% 77%, 0 100%); background: linear-gradient(100deg, #5789bd4f, #f9f5ec40); }
#dg-opening .dg-roomright { right: 0; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 77%); background: linear-gradient(100deg, #e6cdaa60, #6999bd49); }
#dg-opening .dg-floor { position: absolute; left: -20%; right: -20%; top: 72%; height: 70%; background: linear-gradient(180deg, #eef0e680, #cad9e4b5), repeating-linear-gradient(90deg, transparent 0 140px, #748e8c33 141px 142px); transform: perspective(380px) rotateX(58deg); transform-origin: top; border-top: 1px solid #ffffffa0; }
#dg-opening .dg-floorlight { position: absolute; top: 72%; left: 20%; width: 60%; height: 24%; background: radial-gradient(ellipse at 50% 0%, #edc695a3, transparent 66%); filter: blur(6px); }
#dg-opening .dg-portal { position: absolute; left: 50%; top: 42%; width: 37%; height: 54%; transform: translate(-50%, -50%); border: 2px solid #fae4bc; background: linear-gradient(135deg, #ffffff30, #bfdbdd2b); box-shadow: -9px 0 22px #50a4bd4d, 9px 0 30px #dba0685e, 0 0 0 9px #f4f4e587, 0 0 0 10px #8198944a; }
#dg-opening .dg-portal::before { content: ""; position: absolute; inset: -11px; border: 1px solid #ffffffba; }
#dg-opening .dg-portal::after { content: ""; position: absolute; inset: 10px; border: 1px solid #fff8; }
#dg-opening .dg-lightline { position: absolute; top: 8%; bottom: 27%; left: 50%; width: 2px; background: #fff9da; box-shadow: 0 0 14px 4px #ffdca6, 0 0 65px 13px #d89d5f55; }
#dg-opening .dg-introbrand { position: relative; z-index: 2; text-align: center; margin-top: -6vh; width: 90%; }
#dg-opening .dg-intro-logo { display: block; max-width: 128px; height: 58px; object-fit: contain; margin: 0 auto 17px; }
#dg-opening .dg-kicker { color: #284b66; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 15px; }
#dg-opening .dg-wordmark { font-size: clamp(37px, 6.2vw, 72px); font-weight: 650; letter-spacing: 6px; line-height: 1.15; color: #174e7d; text-shadow: 0 1px #fff, 0 9px 25px #254e5220; }
#dg-opening .dg-wordmark span { color: #9f471e; font-weight: 400; }
#dg-opening .dg-wordmark .dg-product-logo { display: block; width: min(560px, 82vw); height: auto; margin: 0 auto; object-fit: contain; }
#dg-opening .dg-introcaption { font-size: 11px; letter-spacing: 2px; color: #284b66; margin-top: 17px; }
#dg-opening .dg-introbase { position: absolute; bottom: 32px; left: 20px; right: 20px; text-align: center; font-size: 10px; letter-spacing: 2.4px; color: #284b66; }
#dg-opening .dg-skip { position: absolute; top: 22px; right: 25px; background: #fffdf9ed; border: 1px solid #93adc1; color: #16476d; padding: 9px 17px; margin: 0; font-size: 12px; z-index: 5; }
body.dg-entering { overflow: hidden; }
body.dg-entering > .app-shell { transform-origin: 50% 43%; animation: dg-arrive 4.4s cubic-bezier(.23,.5,.19,1) both; }
body.dg-entering #dg-opening { animation: dg-roomfade 4.4s ease both; }
body.dg-entering #dg-opening :is(.dg-architecture,.dg-roomleft,.dg-roomright,.dg-floor,.dg-floorlight) { animation: dg-environment 4.4s ease both; }
body.dg-entering #dg-opening .dg-portal { animation: dg-passthrough 4.4s cubic-bezier(.32,.02,.38,1) both; }
body.dg-entering #dg-opening .dg-introbrand { animation: dg-brandexit 4.4s ease both; }
body.dg-entering #dg-opening .dg-lightline { animation: dg-lightopen 4.4s ease both; }
@keyframes dg-roomfade { 0%,25% { opacity: 1; } 88%,100% { opacity: 0; } }
@keyframes dg-environment { 0%,28% { opacity: 1; } 65%,100% { opacity: 0; } }
@keyframes dg-arrive { 0%,22% { transform: scale(.26); opacity: .05; filter: blur(4px); } 40% { opacity: .55; filter: blur(1px); } 100% { transform: scale(1); opacity: 1; filter: blur(0); } }
@keyframes dg-passthrough { 0% { transform: translate(-50%,-50%) scaleX(.015); opacity: .6; box-shadow: 0 0 32px #dc9954; } 28% { transform: translate(-50%,-50%) scaleX(1); opacity: 1; box-shadow: 0 0 23px #dba36f, 0 0 0 2200px #e8eef4ec; } 48% { box-shadow: 0 0 32px #dba36f, 0 0 0 2200px #e8eef4e6; } 90%,100% { transform: translate(-50%,-50%) scale(5); opacity: 0; box-shadow: 0 0 32px #dba36f, 0 0 0 2200px #e8eef400; } }
@keyframes dg-brandexit { 0% { opacity: 0; transform: translateY(9px); } 18%,35% { opacity: 1; transform: translateY(0); } 57%,100% { opacity: 0; transform: translateY(-20px) scale(1.1); } }
@keyframes dg-lightopen { 0% { transform: scaleY(.08); opacity: 0; } 18% { transform: scaleY(1); opacity: 1; } 39%,100% { opacity: 0; } }

@media (min-width: 1440px) {
    body .dashboard-module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
    body .dashboard-module { padding: 15px 13px; }
    body .dashboard-module header { gap: 8px; }
    body .dashboard-module:not(.dashboard-module-meetings) > header { min-height: 53px; }
    body .dashboard-module h2 { font-size: 15px; }
    body .dashboard-module > .dashboard-donut { min-height: 208px; }
    body .dashboard-donut-body { grid-template-columns: minmax(98px, .72fr) minmax(136px, 1fr); gap: 10px; }
    body .dashboard-module > .dashboard-donut > .dashboard-donut-body { min-height: 174px; }
    body .dashboard-donut-visual { max-width: 136px; }
    body .dashboard-donut-legend li { font-size: 10px; gap: 5px; padding: 5px 0; }
    body .dashboard-donut-legend strong { font-size: 14px; }
    body .dashboard-donut-legend small { font-size: 9px; }
    body .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .dashboard-module-meetings .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body .dashboard-metric strong { font-size: 19px; }
}
@media (max-width: 900px) {
    body .topbar { padding: 10px 16px 0; gap: 0 10px; }
    body .topbar > .dg-navigation { flex-basis: calc(100% + 32px); margin: 10px -16px 0; }
    body .content { padding: 20px 16px; }
    body #dg-workspace-tabs { padding-left: 16px; padding-right: 118px; scroll-padding-inline-start: 16px; scroll-padding-inline-end: 118px; }
    body .dg-workspace-tab-wrap { max-width: min(300px, calc(100vw - 180px)); }
    body .dg-workspace-controls { padding-right: 16px; }
    body .dg-menu > summary { padding: 12px 10px; }
    body .dashboard-module-grid { grid-template-columns: 1fr; }
    body .dg-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #dg-opening .dg-portal { width: 56%; }
}
@media (max-width: 600px) {
    body .topbar { flex-wrap: wrap; }
    body .brand { font-size: 15px; }
    body .brand-logo { width: 46px; height: 34px; }
    body .brand .dg-product-logo { width: 132px; }
    body .brand-logo + .dg-product-logo { width: 146px; }
    body .topbar-user { max-width: 150px; font-size: 11px; }
    body .topbar-announcements, body .logout-form button { padding: 7px 8px; font-size: 11px; }
    body .dg-navigation { padding: 0 8px; }
    body .dg-menu > summary { padding: 11px 9px; font-size: 11px; }
    body .dg-menu-panel { left: 8px; right: 8px; padding: 10px; gap: 6px; }
    body .dg-menu-panel .nav-link { padding: 9px; font-size: 11px; }
    body .panel { padding: 14px 13px; }
    body .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    body .dashboard-summary-card { padding: 7px 11px; }
    body .dashboard-summary-card:nth-child(2n) { border-right: 0; }
    body .dashboard-heading, body .dashboard-module header, body .dashboard-section-heading { flex-wrap: wrap; display: flex; }
    body .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .dashboard-module-meetings .dashboard-metrics { grid-template-columns: 1fr; }
    body .dashboard-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .dg-workspace-frame { min-height: 380px; height: calc(100dvh - 212px); }
    html.dg-workspace-child .content, html.dg-embedded .content { padding: 16px 12px; }
    #dg-opening .dg-portal { width: 68%; height: 48%; }
    #dg-opening .dg-wordmark { letter-spacing: 3px; }
    #dg-opening .dg-introcaption { font-size: 10px; letter-spacing: 1.2px; }
}
@media (max-width: 380px) {
    body .dashboard-donut-body { grid-template-columns: 1fr; }
    body .dashboard-donut-visual { max-width: 150px; }
    body .dashboard-category-grid { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
    body .dg-menu > summary, body .dg-menu-panel .nav-link, body .dg-workspace-tab, body .dg-workspace-close, #dg-opening .dg-skip { min-height: 44px; }
    body .dg-workspace-close { min-width: 40px; }
    body .dg-workspace-controls { margin-top: -47px; }
    body .dg-workspace-refresh { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    body.dg-entering > .app-shell, #dg-opening, #dg-opening * { animation: none !important; transition: none !important; }
    #dg-opening { display: none !important; }
    body.dg-entering { overflow: auto; }
}
@media print {
    body .topbar, body .dg-navigation, body #dg-workspace-tabs, body .dg-workspace-controls, body dialog.dg-workspace-confirm, #dg-opening { display: none !important; }
    body, html.dg-workspace-child body { color: #111; background: #fff; }
    body .layout, body .content, body main { display: block; min-height: 0; max-width: none; padding: 0; margin: 0; }
    html.dg-workspace-child .layout, html.dg-workspace-child .content,
    html.dg-embedded .layout, html.dg-embedded .content { min-height: 0; padding: 0; margin: 0; }
    body .panel, body .dashboard-summary-card, body .dashboard-metric { background: #fff; box-shadow: none; backdrop-filter: none; border: 1px solid #bbb; }
    body.dg-entering > .app-shell { animation: none; transform: none; opacity: 1; filter: none; }
    body .dg-workspace-frame { height: var(--dg-workspace-print-height, auto) !important; min-height: 0; }
}
