.admin-shell,
body.admin-login-body {
    --admin-blue: #174f87;
    --admin-dark: #17324d;
    --admin-border: #dbe4ec;
    --admin-muted: #607284;
    --admin-bg: #f3f6f9;
}

body.admin-login-body,
.admin-shell {
    background: var(--admin-bg);
    color: var(--admin-dark);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-body { margin: 0; min-height: 100vh; }
.admin-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(420px, 100%); box-sizing: border-box; padding: 34px; background: white; border: 1px solid var(--admin-border); border-radius: 18px; box-shadow: 0 18px 45px rgb(23 50 77 / 12%); }
.admin-brand { font-size: 20px; font-weight: 750; margin-bottom: 30px; }
.admin-brand span { display: inline-grid; place-items: center; width: 44px; height: 32px; margin-right: 8px; border-radius: 7px; background: var(--admin-blue); color: white; font-size: 14px; }
.admin-eyebrow { margin: 0 0 6px; color: var(--admin-blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-login-card h1 { margin: 0 0 8px; font-size: 32px; }
.admin-login-card > p:not(.admin-eyebrow) { margin: 0 0 25px; color: var(--admin-muted); }
.admin-login-card form { display: grid; gap: 9px; }
.admin-login-card label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.admin-login-card input { box-sizing: border-box; width: 100%; padding: 12px 13px; border: 1px solid #b9c8d5; border-radius: 8px; font: inherit; }
.admin-login-card input:focus { outline: 3px solid rgb(23 79 135 / 16%); border-color: var(--admin-blue); }
.admin-login-card button, .admin-button { margin-top: 13px; padding: 11px 16px; border: 0; border-radius: 8px; background: var(--admin-blue); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.admin-login-card button:disabled { opacity: .45; cursor: not-allowed; }
.admin-alert { margin: 16px 0; padding: 12px 14px; border: 1px solid #e8b7b7; border-radius: 8px; background: #fff4f4; color: #7a2222; font-size: 13px; }

.admin-shell { min-height: 100vh; }
.admin-shell .deployment-page { width: 100%; padding: 0; }
html[data-theme] .admin-shell .deployment-heading h1,
body[data-theme] .admin-shell .deployment-heading h1 { color: var(--admin-dark); text-shadow: none; }
html[data-theme] .admin-shell .deployment-heading p,
body[data-theme] .admin-shell .deployment-heading p { color: var(--admin-muted); text-shadow: none; }
html[data-theme] .admin-shell .deployment-heading a,
body[data-theme] .admin-shell .deployment-heading a { color: var(--admin-blue); text-shadow: none; }
.admin-shell .deployment-heading .ec-btn { background: var(--admin-blue); }
.admin-header { display: flex; align-items: center; gap: 22px; padding: 0 26px; min-height: 64px; background: white; border-bottom: 1px solid var(--admin-border); }
.admin-header .admin-brand { margin: 0 18px 0 0; white-space: nowrap; }
.admin-nav { display: flex; align-self: stretch; gap: 4px; }
.admin-nav a { display: grid; place-items: center; padding: 0 13px; color: #40586e; text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; }
.admin-nav a.active { color: var(--admin-blue); border-bottom-color: var(--admin-blue); }
.admin-session { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--admin-muted); font-size: 13px; }
.admin-signout { padding: 7px 11px; border: 1px solid var(--admin-border); border-radius: 7px; background: white; color: var(--admin-dark); text-decoration: none; }
.admin-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.admin-page-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-page-heading h1 { margin: 0 0 7px; font-size: 30px; }
.admin-page-heading p { margin: 0; color: var(--admin-muted); }
.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.admin-card { display: block; padding: 22px; border: 1px solid var(--admin-border); border-radius: 12px; background: white; color: inherit; text-decoration: none; box-shadow: 0 4px 14px rgb(23 50 77 / 4%); }
.admin-card h2 { margin: 0 0 8px; font-size: 18px; }
.admin-card p { margin: 0; color: var(--admin-muted); line-height: 1.45; }
.admin-card:hover { border-color: #9db7cf; box-shadow: 0 8px 22px rgb(23 50 77 / 8%); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--admin-border); border-radius: 12px; background: white; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e8eef3; }
.admin-table th { color: #516a7f; background: #f8fafc; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #e8f2fb; color: var(--admin-blue); font-size: 11px; font-weight: 800; }
.admin-empty { padding: 28px; border: 1px dashed #b9c8d5; border-radius: 12px; color: var(--admin-muted); text-align: center; background: white; }
.admin-device-refresh { margin-top: 0; min-width: 96px; }
.admin-device-refresh:disabled { opacity: .58; cursor: wait; }
.admin-device-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 6px; }
.admin-device-search { display: grid; gap: 7px; width: min(480px, 100%); color: #40586e; font-size: 12px; font-weight: 750; }
.admin-device-search-control { position: relative; display: block; }
.admin-device-search-control svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: #6e8294; stroke-linecap: round; stroke-width: 1.8; pointer-events: none; }
.admin-device-search input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 14px 10px 41px; border: 1px solid #b9c8d5; border-radius: 9px; background: white; color: var(--admin-dark); font: inherit; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgb(23 50 77 / 3%); }
.admin-device-search input::placeholder { color: #7b8d9c; }
.admin-device-search input:focus { outline: 3px solid rgb(23 79 135 / 14%); border-color: var(--admin-blue); }
.admin-device-summary { display: flex; align-items: center; gap: 14px; min-height: 42px; color: var(--admin-muted); font-size: 12px; white-space: nowrap; }
.admin-live-indicator { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.admin-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #1b8758; box-shadow: 0 0 0 4px rgb(27 135 88 / 11%); }
.admin-device-change-slot { min-height: 30px; margin-bottom: 4px; }
.admin-device-change { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #eaf7f0; color: #166540; font-size: 12px; font-weight: 750; animation: admin-device-notice-in 280ms ease-out both; }
.admin-device-change > span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1b8758; color: white; font-size: 10px; }
.admin-device-table tbody tr { background: white; }
.admin-device-table { min-width: 1060px; }
.admin-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.admin-device-actions { width: 1%; white-space: nowrap; }
.admin-device-action { padding: 6px 9px; border: 1px solid #c9d5df; border-radius: 7px; background: white; color: #40586e; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.admin-device-action:hover { border-color: #8ea6b9; background: #f6f9fb; }
.admin-device-action:disabled { opacity: .55; cursor: wait; }
.admin-device-action-danger-outline { border-color: #e2bcbc; color: #9b3434; }
.admin-device-action-danger-outline:hover { border-color: #ce8f8f; background: #fff5f5; }
.admin-device-action-danger { border-color: #a83b3b; background: #a83b3b; color: white; }
.admin-device-action-danger:hover { border-color: #8f2f2f; background: #8f2f2f; }
.admin-device-logout-confirm { display: flex; align-items: center; gap: 6px; }
.admin-device-logout-confirm > span { color: #7f3030; font-size: 11px; font-weight: 800; }
.admin-device-no-results { display: grid; gap: 7px; }
.admin-device-no-results strong { color: var(--admin-dark); font-size: 15px; }
.admin-device-no-results button { justify-self: center; margin-top: 4px; padding: 6px 10px; border: 0; background: transparent; color: var(--admin-blue); font: inherit; font-weight: 750; cursor: pointer; }

@keyframes admin-device-row-added {
    0% { background: #dff4e9; box-shadow: inset 3px 0 #1b8758; }
    100% { background: white; box-shadow: inset 3px 0 transparent; }
}
@keyframes admin-device-row-updated {
    0% { background: #e3f0fb; box-shadow: inset 3px 0 #2874b2; }
    100% { background: white; box-shadow: inset 3px 0 transparent; }
}
@keyframes admin-device-row-removing {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes admin-device-notice-in {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .admin-device-row-added { animation: admin-device-row-added 1.8s ease-out both; }
    .admin-device-row-updated { animation: admin-device-row-updated 1.8s ease-out both; }
    .admin-device-row-removing { animation: admin-device-row-removing 420ms ease-in both; }
}
.admin-dashboard-heading { align-items: center; }
.admin-dashboard-title-row { display: flex; align-items: center; gap: 13px; }
.admin-dashboard-title-row h1 { margin-bottom: 7px; }
.admin-dashboard-overall { display: inline-flex; align-items: center; gap: 7px; margin-top: -5px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.admin-dashboard-overall > span,
.admin-dashboard-live > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.admin-dashboard-state-healthy { color: #13734a; }
.admin-dashboard-state-attention { color: #9a5b00; }
.admin-dashboard-state-critical { color: #a33232; }
.admin-dashboard-state-neutral { color: #607284; }
.admin-dashboard-overall.admin-dashboard-state-healthy { background: #e6f5ed; }
.admin-dashboard-overall.admin-dashboard-state-attention { background: #fff4dc; }
.admin-dashboard-overall.admin-dashboard-state-critical { background: #fdecec; }
.admin-dashboard-actions { display: flex; align-items: center; gap: 18px; }
.admin-dashboard-live { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-dashboard-live > span { color: #1b8758; box-shadow: 0 0 0 4px rgb(27 135 88 / 10%); }
.admin-dashboard-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 180px; border: 1px dashed #b9c8d5; border-radius: 12px; background: white; color: var(--admin-muted); }
.admin-dashboard-loading > span { width: 18px; height: 18px; border: 2px solid #d5e0e9; border-top-color: var(--admin-blue); border-radius: 50%; animation: admin-dashboard-spin 800ms linear infinite; }
.admin-dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-dashboard-kpi { position: relative; display: grid; gap: 4px; min-width: 0; padding: 18px 19px; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 12px; background: white; color: inherit; text-decoration: none; box-shadow: 0 3px 12px rgb(23 50 77 / 3%); }
.admin-dashboard-kpi::after { position: absolute; right: -24px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgb(23 79 135 / 5%); content: ""; }
.admin-dashboard-kpi[href]:hover { border-color: #9db7cf; box-shadow: 0 7px 20px rgb(23 50 77 / 8%); }
.admin-dashboard-kpi-label { color: #5d7285; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-dashboard-kpi strong { margin-top: 2px; color: var(--admin-dark); font-size: 31px; line-height: 1.1; letter-spacing: -.03em; }
.admin-dashboard-kpi small { overflow: hidden; color: var(--admin-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-dashboard-panel { min-width: 0; padding: 19px; border: 1px solid var(--admin-border); border-radius: 12px; background: white; box-shadow: 0 3px 12px rgb(23 50 77 / 3%); }
.admin-dashboard-health-panel { grid-row: span 2; }
.admin-dashboard-stack { display: grid; gap: 16px; }
.admin-dashboard-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.admin-dashboard-panel-heading h2 { margin: 0; font-size: 18px; }
.admin-dashboard-panel-heading > span { color: var(--admin-muted); font-size: 12px; }
.admin-dashboard-panel-heading > a { color: var(--admin-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-dashboard-section-label { margin: 0 0 4px; color: var(--admin-blue); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.admin-dashboard-health-list { display: grid; }
.admin-dashboard-health-row { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 11px 0; border-top: 1px solid #edf1f5; }
.admin-dashboard-health-row:first-child { padding-top: 0; border-top: 0; }
.admin-dashboard-health-row:last-child { padding-bottom: 0; }
.admin-dashboard-health-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.admin-dashboard-health-copy { min-width: 0; }
.admin-dashboard-health-title { display: flex; align-items: center; gap: 5px; }
.admin-dashboard-health-row strong { display: block; font-size: 13px; }
.admin-dashboard-health-row small { display: block; margin-top: 2px; color: var(--admin-muted); font-size: 11px; line-height: 1.35; }
.admin-dashboard-health-status { align-self: center; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 9%, white); font-size: 10px; font-weight: 800; white-space: nowrap; }
.admin-readiness-help-trigger { display: grid; flex: 0 0 auto; width: 24px; height: 24px; margin: -4px 0; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #607b92; cursor: help; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.admin-readiness-help-trigger:hover,
.admin-readiness-help-trigger:focus-visible,
.admin-readiness-help-trigger[aria-expanded="true"] { background: #e7f0f8; color: var(--admin-blue); }
.admin-readiness-help-trigger:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgb(32 101 161 / 20%); }
.admin-readiness-help-trigger svg { width: 17px; height: 17px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.admin-readiness-help-panel { position: absolute; z-index: 30; top: calc(100% - 3px); right: 0; left: 0; visibility: hidden; padding: 12px 13px; border: 1px solid #c5d5e2; border-radius: 9px; background: #fff; color: var(--admin-dark); box-shadow: 0 10px 28px rgb(20 48 73 / 16%); opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms; }
.admin-readiness-help-panel strong { color: var(--admin-blue); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.admin-readiness-help-panel p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.admin-readiness-help-panel > span { display: block; margin-top: 7px; color: var(--admin-muted); font-size: 10px; }
.admin-readiness-help-panel-open,
.admin-dashboard-health-row:has(.admin-readiness-help-trigger:focus-visible) .admin-readiness-help-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
    .admin-dashboard-health-row:has(.admin-readiness-help-trigger:hover) .admin-readiness-help-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
}
.admin-dashboard-facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 9px; background: var(--admin-border); }
.admin-dashboard-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-dashboard-facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-dashboard-session-platforms { margin-top: 10px; }
.admin-dashboard-facts > div { display: grid; gap: 3px; padding: 11px 12px; background: #fbfcfd; }
.admin-dashboard-facts strong { overflow: hidden; color: var(--admin-dark); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.admin-dashboard-facts span { color: var(--admin-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.admin-dashboard-progress-label { display: flex; justify-content: space-between; gap: 15px; margin: 15px 0 6px; color: var(--admin-muted); font-size: 11px; }
.admin-dashboard-progress-label strong { color: var(--admin-dark); }
.admin-dashboard-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e7edf2; }
.admin-dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1b8758, #2fb579); transition: width 300ms ease; }
.admin-dashboard-panel-foot,
.admin-dashboard-muted { margin: 10px 0 0; color: var(--admin-muted); font-size: 11px; }
.admin-dashboard-platform-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 15px; }
.admin-dashboard-platform-row > div > span { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.admin-dashboard-platform-row b { color: var(--admin-muted); }
.admin-dashboard-estate-note { margin: -4px 0 14px; color: var(--admin-muted); font-size: 10px; line-height: 1.45; }
.admin-dashboard-mini-bar { height: 5px; overflow: hidden; border-radius: 999px; background: #e7edf2; }
.admin-dashboard-mini-bar span { display: block; height: 100%; border-radius: inherit; background: #57a65a; }
.admin-dashboard-mini-bar-apple span { background: #697b8c; }
.admin-dashboard-mini-bar-windows span { background: #2874b2; }
.admin-dashboard-mini-bar-web span { background: #8b63a9; }
.admin-dashboard-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--admin-border); border-radius: 9px; background: var(--admin-border); }
.admin-dashboard-definition-grid > div { min-width: 0; padding: 10px 12px; background: #fbfcfd; }
.admin-dashboard-definition-grid dt { color: var(--admin-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.admin-dashboard-definition-grid dd { overflow: hidden; margin: 3px 0 0; color: var(--admin-dark); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.admin-dashboard-definition-wide { grid-column: 1 / -1; }
.admin-dashboard-activity-panel { grid-column: 1 / -1; }
.admin-dashboard-activity-list { display: grid; }
.admin-dashboard-activity-list > div { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 9px 0; border-top: 1px solid #edf1f5; }
.admin-dashboard-activity-list > div:first-child { padding-top: 0; border-top: 0; }
.admin-dashboard-activity-list p { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; min-width: 0; margin: 0; color: #40586e; font-size: 11px; line-height: 1.4; }
.admin-dashboard-activity-list p strong { overflow: hidden; color: var(--admin-dark); text-overflow: ellipsis; white-space: nowrap; }
.admin-dashboard-activity-list time { color: var(--admin-muted); font-size: 11px; white-space: nowrap; }
.admin-dashboard-log-level { align-self: start; padding: 3px 6px; border-radius: 999px; background: #edf3f8; color: #486174; font-size: 9px; font-weight: 850; text-align: center; text-transform: uppercase; }
.admin-dashboard-log-warning { background: #fff3d8; color: #8a5700; }
.admin-dashboard-log-error,
.admin-dashboard-log-critical { background: #fde9e9; color: #9b2f2f; }
.admin-dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 4px 2px; color: var(--admin-muted); font-size: 11px; }
.admin-dashboard-footer nav { display: flex; gap: 14px; }
.admin-dashboard-footer a { color: var(--admin-blue); font-weight: 700; text-decoration: none; }
@keyframes admin-dashboard-spin { to { transform: rotate(360deg); } }
.admin-api-section { margin-bottom: 18px; }
.admin-api-section { scroll-margin-top: 18px; }
.admin-api-section h2 { margin-bottom: 12px; font-size: 22px; }
.admin-api-section h3 { margin: 24px 0 9px; font-size: 16px; }
.admin-api-section p + p { margin-top: 12px; }
.admin-api-section p, .admin-api-section li, .admin-api-section dd { line-height: 1.6; }
.admin-api-section ul, .admin-api-section ol { margin: 12px 0 0; padding-left: 22px; color: var(--admin-muted); }
.admin-api-section li + li { margin-top: 7px; }
.admin-api-section pre { overflow-x: auto; margin: 13px 0 18px; padding: 16px; border-radius: 9px; background: #142739; color: #eef7ff; line-height: 1.5; }
.admin-api-section code { font-size: .91em; }
.admin-api-section p code, .admin-api-section li code, .admin-api-section td code, .admin-api-section dd code { padding: 2px 5px; border-radius: 4px; background: #edf3f8; color: #234b70; }
.admin-guide-heading { align-items: center; }
.admin-guide-top-link { margin: 0; text-decoration: none; white-space: nowrap; }
.admin-guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-guide-toc { position: sticky; top: 18px; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--admin-border); border-radius: 12px; background: white; font-size: 13px; }
.admin-guide-toc strong { margin: 0 8px 8px; color: var(--admin-dark); }
.admin-guide-toc a { padding: 7px 8px; border-radius: 6px; color: #4a647a; text-decoration: none; }
.admin-guide-toc a:hover { background: #edf4fa; color: var(--admin-blue); }
.admin-guide { min-width: 0; }
.admin-guide-section-label { margin-bottom: 5px !important; color: var(--admin-blue) !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-guide-flow { display: flex; align-items: center; justify-content: center; gap: 10px; overflow-x: auto; margin: 18px 0; padding: 16px; border: 1px solid #cfe0ee; border-radius: 10px; background: #f5faff; white-space: nowrap; }
.admin-guide-flow span { padding: 8px 11px; border-radius: 7px; background: white; box-shadow: 0 2px 8px rgb(23 50 77 / 8%); font-size: 13px; font-weight: 750; }
.admin-guide-flow b { color: var(--admin-blue); }
.admin-guide-note { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--admin-blue); border-radius: 6px; background: #edf6fd; color: #36566f; line-height: 1.55; }
.admin-guide-note strong { display: block; margin-bottom: 3px; color: var(--admin-dark); }
.admin-guide-note-warning { border-left-color: #b56b00; background: #fff7e8; }
.admin-guide-steps li::marker { color: var(--admin-blue); font-weight: 800; }
.admin-guide-definitions { display: grid; gap: 1px; margin: 15px 0 0; border: 1px solid var(--admin-border); border-radius: 9px; overflow: hidden; background: var(--admin-border); }
.admin-guide-definitions div { display: grid; grid-template-columns: 145px 1fr; gap: 14px; padding: 11px 13px; background: white; }
.admin-guide-definitions dt { font-weight: 750; }
.admin-guide-definitions dd { margin: 0; color: var(--admin-muted); }
.admin-guide-wide-table { min-width: 820px; }
.admin-guide-checklist { list-style: none; padding-left: 0 !important; }
.admin-guide-checklist li { position: relative; padding-left: 28px; }
.admin-guide-checklist li::before { position: absolute; left: 0; top: 2px; content: "✓"; color: #16734a; font-weight: 900; }

.admin-log-heading { align-items: center; }
.admin-log-live-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--admin-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-log-live-status > span { width: 8px; height: 8px; border-radius: 50%; background: #1b8758; box-shadow: 0 0 0 4px rgb(27 135 88 / 11%); }
.admin-log-live-status > .admin-log-live-dot-paused { background: #bd7a12; box-shadow: 0 0 0 4px rgb(189 122 18 / 12%); }
.admin-log-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--admin-border); border-radius: 11px; background: #eaf0f5; }
.admin-log-tab { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; color: #4b6378; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-log-tab:hover { color: var(--admin-blue); }
.admin-log-tab:focus-visible { outline: 3px solid rgb(23 79 135 / 17%); }
.admin-log-tab.is-active { background: white; color: var(--admin-blue); box-shadow: 0 2px 8px rgb(23 50 77 / 9%); }
.admin-log-tab > span { min-width: 23px; padding: 2px 7px; border-radius: 999px; background: #dae6f0; color: #506a80; font-size: 10px; }
.admin-log-tab.is-active > span { background: #e5f0fa; color: var(--admin-blue); }
.admin-log-panel { min-width: 0; padding: 18px; border: 1px solid var(--admin-border); border-radius: 12px; background: white; box-shadow: 0 4px 14px rgb(23 50 77 / 4%); }
.admin-log-toolbar { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(145px, .45fr) minmax(230px, .8fr); gap: 12px; align-items: end; }
.admin-log-search,
.admin-log-filter { display: grid; gap: 6px; min-width: 0; color: #50687d; font-size: 11px; font-weight: 800; }
.admin-log-search-control { position: relative; display: block; }
.admin-log-search-control svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; fill: none; stroke: #718698; stroke-linecap: round; stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.admin-log-search input,
.admin-log-filter select { box-sizing: border-box; width: 100%; min-height: 40px; border: 1px solid #bdccd8; border-radius: 8px; background: white; color: var(--admin-dark); font: inherit; font-size: 13px; font-weight: 500; }
.admin-log-search input { padding: 9px 12px 9px 38px; }
.admin-log-filter select { padding: 9px 34px 9px 11px; }
.admin-log-search input:focus,
.admin-log-filter select:focus { outline: 3px solid rgb(23 79 135 / 14%); border-color: var(--admin-blue); }
.admin-log-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 9px; }
.admin-log-actions-primary,
.admin-log-actions-export { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.admin-log-actions-export { justify-content: flex-end; }
.admin-log-button { min-height: 34px; padding: 7px 10px; border: 1px solid #c7d4df; border-radius: 7px; background: #fff; color: #40586e; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-log-button:hover:not(:disabled) { border-color: #90a8bb; background: #f4f8fb; color: var(--admin-blue); }
.admin-log-button:focus-visible { outline: 3px solid rgb(23 79 135 / 15%); }
.admin-log-button:disabled { opacity: .46; cursor: default; }
.admin-log-button-danger { color: #963c3c; }
.admin-log-button-danger.is-confirming { border-color: #a83b3b; background: #a83b3b; color: white; }
.admin-log-summary { display: flex; align-items: center; gap: 15px; min-height: 25px; margin-bottom: 9px; color: var(--admin-muted); font-size: 11px; }
.admin-log-summary > span:last-child { margin-left: auto; }
.admin-log-summary strong { color: var(--admin-dark); }
.admin-log-copy-status { color: #16734a; font-weight: 800; }
.admin-log-table-wrap { border-radius: 9px; }
.admin-log-table { min-width: 900px; table-layout: fixed; }
.admin-log-table th:nth-child(1) { width: 145px; }
.admin-log-table th:nth-child(2) { width: 90px; }
.admin-log-table th:nth-child(3) { width: 235px; }
.admin-log-table th:nth-child(5) { width: 72px; }
.admin-log-table td { vertical-align: top; line-height: 1.4; }
.admin-log-table time { color: #526a7f; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-log-level { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #edf3f8; color: #486174; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.admin-log-level-information { background: #e8f2fb; color: #256492; }
.admin-log-level-warning { background: #fff3d8; color: #8a5700; }
.admin-log-level-error,
.admin-log-level-critical { background: #fde9e9; color: #9b2f2f; }
.admin-log-source { display: block; overflow: hidden; color: #36536c; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.admin-log-message { color: var(--admin-dark); overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-log-exception { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 5px; background: #fff0f0; color: #953737; font-size: 10px; font-weight: 750; }
.admin-log-row-action { text-align: right !important; }
.admin-log-row-action button { padding: 5px 8px; border: 1px solid #cad7e1; border-radius: 6px; background: white; color: #47647c; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-log-row-action button:hover { border-color: #90a8bb; background: #f4f8fb; color: var(--admin-blue); }
.admin-log-no-results { display: grid; gap: 6px; }
.admin-log-no-results strong { color: var(--admin-dark); font-size: 15px; }
.admin-log-no-results button { justify-self: center; margin-top: 3px; border: 0; background: transparent; color: var(--admin-blue); font: inherit; font-weight: 800; cursor: pointer; }
.admin-log-context-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid #cfe0ed; border-radius: 9px; background: #f3f9fd; }
.admin-log-context-note > div { display: grid; gap: 3px; }
.admin-log-context-note strong { color: var(--admin-dark); font-size: 13px; }
.admin-log-context-note span { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.admin-log-context-note a { flex: 0 0 auto; color: var(--admin-blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.admin-log-context-note a:hover { text-decoration: underline; }
.admin-client-log-context { margin-bottom: 14px; }
.admin-client-log-monitor { display: inline-flex !important; align-items: center; grid-template-columns: none !important; gap: 8px !important; flex: 0 0 auto; color: #49677e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-client-log-monitor > span { width: 8px; height: 8px; border-radius: 50%; background: #1b8758; box-shadow: 0 0 0 4px rgb(27 135 88 / 11%); }
.admin-client-log-monitor > span.is-paused { background: #bd7a12; box-shadow: 0 0 0 4px rgb(189 122 18 / 12%); }
.admin-client-log-filters { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(145px, .7fr)); gap: 12px; align-items: end; }
.admin-client-log-session-filter { grid-column: span 2; }
.admin-client-log-actions { margin-top: 14px; }
.admin-client-log-new { border-color: #79a9cf; background: #eaf5fd; color: #165c91; box-shadow: 0 0 0 3px rgb(58 132 188 / 8%); }
.admin-client-log-dropped { color: #9a5e00; font-weight: 800; }
.admin-client-log-table { min-width: 1180px; }
.admin-client-log-table th:nth-child(1) { width: 165px; }
.admin-client-log-table th:nth-child(2) { width: 90px; }
.admin-client-log-table th:nth-child(3) { width: 185px; }
.admin-client-log-table th:nth-child(4) { width: 170px; }
.admin-client-log-table th:nth-child(6) { width: 125px; }
.admin-client-log-table strong { display: block; color: var(--admin-dark); font-size: 12px; }
.admin-client-log-secondary { display: block; margin-top: 3px; overflow: hidden; color: var(--admin-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-client-log-table .admin-log-row-action { display: flex; justify-content: flex-end; gap: 5px; }
.admin-client-log-data { max-height: 260px; margin: 8px 0 0; padding: 10px; overflow: auto; border: 1px solid #d7e1e9; border-radius: 7px; background: #f7fafc; color: #294359; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-client-logs {
    --ec-panel: #ffffff;
    --ec-panel-alt: #f4f7fa;
    --ec-text: var(--admin-dark);
    --ec-muted: var(--admin-muted);
    --ec-border: var(--admin-border);
    --ec-brand: var(--admin-blue);
    --ec-brand-700: var(--admin-blue);
    color: var(--admin-dark);
}
.admin-shell .admin-client-logs .logs-toolbar { margin-bottom: 14px; }
.admin-shell .admin-client-logs .logs-search,
.admin-shell .admin-client-logs .logs-count { color: var(--admin-muted); text-shadow: none; }
.admin-shell .admin-client-logs .logs-search .input { box-sizing: border-box; min-height: 38px; padding: 8px 10px; border: 1px solid #bdccd8; border-radius: 8px; background: white; color: var(--admin-dark); }
.admin-shell .admin-client-logs .btn { min-height: 34px; padding: 7px 10px; border: 1px solid #c7d4df; border-radius: 7px; background: white; color: #40586e; font-size: 11px; font-weight: 800; box-shadow: none; }
.admin-shell .admin-client-logs .btn:hover:not(:disabled) { border-color: #90a8bb; background: #f4f8fb; color: var(--admin-blue); }
.admin-shell .admin-client-logs .logs-section { border-color: var(--admin-border); background: white; color: var(--admin-dark); box-shadow: none; }
.admin-shell .admin-client-logs .logs-entry { background: #f4f7fa; color: var(--admin-dark); }
.admin-shell .admin-client-logs .logs-entry__data { background: #e9eff4; color: #40586e; }
.admin-shell .admin-client-logs .logs-entry__help { background: #edf6fd; color: var(--admin-dark); }
.admin-shell .admin-client-logs .logs-empty { background: white; color: var(--admin-muted); }

@media (max-width: 760px) {
    .admin-header { align-items: flex-start; flex-wrap: wrap; padding: 14px 18px 0; }
    .admin-nav { order: 3; width: 100%; gap: 0; justify-content: space-between; overflow-x: auto; }
    .admin-nav a { min-height: 44px; padding: 0 6px; font-size: 12px; white-space: nowrap; }
    .admin-session span { display: none; }
    .admin-content { width: min(100% - 24px, 1180px); padding-top: 24px; }
    .admin-guide-heading { align-items: flex-start; }
    .admin-guide-top-link { display: none; }
    .admin-guide-layout { grid-template-columns: 1fr; }
    .admin-guide-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-guide-toc strong { grid-column: 1 / -1; }
    .admin-guide-flow { justify-content: flex-start; }
    .admin-guide-definitions div { grid-template-columns: 1fr; gap: 3px; }
    .admin-device-heading { align-items: flex-start; }
    .admin-device-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .admin-device-search { width: 100%; }
    .admin-device-summary { justify-content: space-between; min-height: 30px; }
    .admin-device-table { display: block; }
    .admin-device-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .admin-device-table tbody { display: grid; gap: 12px; padding: 12px; }
    .admin-device-table tbody tr,
    .admin-device-table tbody tr:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #e0e8ef; border-radius: 10px; background: white; overflow: hidden; }
    .admin-device-table tbody td { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 12px; border: 0; overflow-wrap: anywhere; }
    .admin-device-table tbody td::before { content: attr(data-label); color: #6b8092; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .admin-device-table { min-width: 0; }
    .admin-device-table tbody td:nth-child(1),
    .admin-device-table tbody td:nth-child(8) { grid-column: 1 / -1; }
    .admin-device-table tbody td:nth-child(n+2) { border-top: 1px solid #edf1f5; }
    .admin-device-table tbody td:nth-child(3),
    .admin-device-table tbody td:nth-child(5),
    .admin-device-table tbody td:nth-child(7) { border-left: 1px solid #edf1f5; }
    .admin-device-actions { width: auto; white-space: normal; }
    .admin-device-action-danger-outline { width: 100%; min-height: 34px; }
    .admin-device-logout-confirm { justify-content: flex-end; }
    .admin-device-logout-confirm > span { margin-right: auto; }
    .admin-dashboard-heading { align-items: flex-start; }
    .admin-dashboard-actions { align-items: flex-end; flex-direction: column-reverse; gap: 9px; }
    .admin-dashboard-live { font-size: 10px; }
    .admin-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-kpi { padding: 15px; }
    .admin-dashboard-kpi strong { font-size: 27px; }
    .admin-dashboard-kpi small { white-space: normal; }
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-dashboard-health-panel { grid-row: auto; }
    .admin-dashboard-activity-panel { grid-column: auto; }
    .admin-dashboard-activity-list > div { grid-template-columns: 58px minmax(0, 1fr); }
    .admin-dashboard-activity-list p { grid-template-columns: 1fr; gap: 2px; }
    .admin-dashboard-activity-list time { grid-column: 2; }
    .admin-dashboard-footer { align-items: flex-start; flex-direction: column; }
    .admin-dashboard-footer nav { flex-wrap: wrap; }
    .admin-log-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .admin-log-live-status { margin-top: 4px; font-size: 10px; }
    .admin-log-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-log-search { grid-column: 1 / -1; }
    .admin-log-actions { align-items: stretch; flex-direction: column; }
    .admin-log-actions-primary,
    .admin-log-actions-export { justify-content: flex-start; }
    .admin-log-summary { align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
    .admin-log-summary > span:last-child { margin-left: 0; }
    .admin-log-table { display: block; min-width: 0; }
    .admin-log-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .admin-log-table tbody { display: grid; gap: 10px; padding: 10px; }
    .admin-log-table tbody tr,
    .admin-log-table tbody tr:last-child { display: grid; grid-template-columns: minmax(115px, .6fr) minmax(0, 1fr); border: 1px solid #e0e8ef; border-radius: 9px; overflow: hidden; }
    .admin-log-table tbody td { display: grid; gap: 4px; min-width: 0; padding: 9px 11px; border: 0; }
    .admin-log-table tbody td::before { content: attr(data-label); color: #6b8092; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
    .admin-log-table tbody td:nth-child(3),
    .admin-log-table tbody td:nth-child(4),
    .admin-log-table tbody td:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid #edf1f5; }
    .admin-log-table tbody td:nth-child(2) { border-left: 1px solid #edf1f5; }
    .admin-log-source { white-space: normal; }
    .admin-log-row-action { text-align: left !important; }
    .admin-log-row-action button { justify-self: start; }
    .admin-log-context-note { align-items: flex-start; flex-direction: column; }
    .admin-client-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-client-log-search { grid-column: 1 / -1; }
    .admin-client-log-session-filter { grid-column: span 2; }
    .admin-client-log-table { min-width: 0; }
    .admin-client-log-table .admin-log-row-action { justify-content: flex-start; }
    .admin-shell .admin-client-logs .logs-search { align-items: stretch; flex-direction: column; width: 100%; margin-left: 0; }
    .admin-shell .admin-client-logs .logs-search .input { width: 100%; min-width: 0; }
}

@media (max-width: 440px) {
    .admin-dashboard-title-row { align-items: flex-start; flex-direction: column; gap: 3px; }
    .admin-dashboard-overall { margin: 0 0 7px; }
    .admin-dashboard-actions { flex-shrink: 0; }
    .admin-dashboard-live { display: none; }
    .admin-dashboard-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-dashboard-facts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-session-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-dashboard-health-row { grid-template-columns: 9px minmax(0, 1fr); }
    .admin-dashboard-health-status { grid-column: 2; justify-self: start; }
    .admin-readiness-help-panel { position: static; display: none; grid-column: 2; width: auto; margin-top: 0; transform: none; }
    .admin-readiness-help-panel-open,
    .admin-dashboard-health-row:has(.admin-readiness-help-trigger:focus-visible) .admin-readiness-help-panel { display: block; }
    .admin-log-tabs { align-items: stretch; flex-direction: column; }
    .admin-log-tab { justify-content: space-between; }
    .admin-log-panel { padding: 12px; }
    .admin-log-toolbar { grid-template-columns: 1fr; }
    .admin-log-search { grid-column: auto; }
    .admin-log-actions-primary,
    .admin-log-actions-export { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-log-button { width: 100%; }
    .admin-log-summary { display: grid; }
    .admin-log-table tbody tr,
    .admin-log-table tbody tr:last-child { grid-template-columns: 1fr; }
    .admin-log-table tbody td:nth-child(n) { grid-column: auto; border-left: 0; border-top: 1px solid #edf1f5; }
    .admin-log-table tbody td:first-child { border-top: 0; }
    .admin-client-log-filters { grid-template-columns: 1fr; }
    .admin-client-log-search,
    .admin-client-log-session-filter { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-device-change { animation: none; }
    .admin-dashboard-loading > span { animation: none; }
    .admin-dashboard-progress span { transition: none; }
    .admin-readiness-help-trigger,
    .admin-readiness-help-panel { transition: none; }
}
