@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    color-scheme: dark;
    --bg: #0b1018;
    --sidebar: #0d131c;
    --panel: #121a25;
    --panel-2: #17212d;
    --border: #263241;
    --border-soft: #202b39;
    --text: #edf4fa;
    --muted: #8899a9;
    --dim: #627386;
    --accent: #4fdfb5;
    --accent-2: #45a4ff;
    --orange: #ffb16c;
    --purple: #aa9cff;
    --red: #f17d8d;
    --radius: 13px;
    --shadow: 0 12px 45px rgba(0, 0, 0, .11);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
button:active { transform: translateY(1px); }
input, select, textarea { width: 100%; background: #0c131d; color: var(--text); border: 1px solid #354153; border-radius: 8px; padding: 11px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,223,181,.09); }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; }
label { display: block; color: #b2bdc9; font-weight: 600; margin-bottom: 16px; }
label input, label select, label textarea { margin-top: 7px; }
label small { font-weight: 400; color: var(--muted); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 30px; letter-spacing: -.95px; line-height: 1.12; font-weight: 750; margin: 5px 0 9px; }
h2 { font-size: 14px; letter-spacing: -.18px; font-weight: 700; margin: 0; }
h3 { font-size: 13px; }
p { color: var(--muted); }
code, pre { font-family: 'JetBrains Mono', Consolas, monospace; }
code { font-size: 11px; color: #9ed6d5; }
.muted, .subtle { color: var(--muted); }
.micro { font-size: 11px; }
.eyebrow, .workspace-label { color: var(--dim); font-size: 10px; letter-spacing: 1.45px; font-weight: 800; }
.eyebrow { color: var(--accent); }
.period-accent { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 15px; font-weight: 750; letter-spacing: .4px; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark { font-size: 29px; color: var(--accent); line-height: 1; margin-right: 5px; text-shadow: 0 0 30px rgba(79,223,181,.12); }
.primary, .secondary, .ghost, .text-button, .icon-button, .button-link { border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); padding: 10px 15px; font-weight: 650; }
.primary { background: var(--accent); border-color: var(--accent); color: #081c1a; font-weight: 800; }
.primary:hover { background: #78edc9; }
.secondary { border-color: #2d615a; background: #15352f; color: #a7f4d8; }
.secondary:hover { background: #1b4c43; }
.ghost { color: #c7d6e2; background: #151d28; }
.ghost:hover, .icon-button:hover { background: #233040; }
.small { padding: 7px 10px; font-size: 11px; }
.text-button { padding: 2px; color: var(--accent); border: 0; background: none; font-weight: 700; }
.text-button:hover { color: #abffe3; }
.icon-button { border: 0; padding: 7px; font-size: 18px; line-height: 1; }
.alert { padding: 12px 13px; border: 1px solid #71343d; border-radius: 9px; background: #331a23; color: #ffb0b7; margin: 15px 0; }
.auth-body { display: grid; place-items: center; padding: 30px 16px; min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #18382f 0, transparent 47%), var(--bg); }
.auth-card { width: min(460px, 100%); border: 1px solid var(--border); border-radius: 18px; background: #121a25; padding: 38px; box-shadow: 0 30px 130px #0008; }
.auth-card .brand { margin-bottom: 24px; }
.auth-card h1 { font-size: 32px; }
.auth-card .primary { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.auth-card .micro { margin: 24px 0 0; text-align: center; }
.auth-orb { width: 76px; height: 76px; display: grid; place-items: center; font-size: 53px; color: var(--accent); margin: 8px 0 23px; border: 1px solid #2f725f; background: radial-gradient(circle, #173d35, #12281f); border-radius: 18px; }
.button-link { display: inline-block; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--border-soft); padding: 23px 14px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 30; }
.sidebar .brand { margin: 0 9px 34px; }
.sidebar .brand-mark { font-size: 25px; }
.sidebar .brand span:not(.brand-mark) { font-size: 13px; }
.workspace-label { margin: 0 11px 11px; }
.nav-label { margin-top: 29px; }
.site-picker { position: relative; margin: 0 5px; display: flex; align-items: center; border: 1px solid #304151; background: #161e2a; border-radius: 9px; }
.site-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: absolute; left: 13px; }
.site-picker select { appearance: none; padding: 12px 32px 12px 31px; background: transparent; border: 0; font-weight: 700; font-size: 12px; box-shadow: none; }
.picker-arrow { position: absolute; right: 11px; pointer-events: none; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; padding: 11px 12px; gap: 11px; border-radius: 8px; color: #97a8b8; font-weight: 650; font-size: 12px; }
.sidebar nav a:hover { background: #192531; color: #e8f1f8; }
.sidebar nav a.active { color: #bff8e4; background: #17332f; }
.nav-icon { display: inline-grid; place-items: center; width: 18px; font-size: 19px; line-height: 1; font-weight: 500; }
.nav-pulse { margin-left: auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #4fdfb520; width: 6px; height: 6px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.sidebar-health { padding: 10px 10px 16px; color: #bfeada; font-size: 12px; font-weight: 650; }
.sidebar-health small, .username small { display: block; color: var(--muted); font-weight: 450; font-size: 10px; padding-left: 17px; }
.status-dot { display: inline-block; background: var(--accent); width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; box-shadow: 0 0 9px #4fdfb55c; }
.userbox { border: 1px solid var(--border-soft); background: #141c27; border-radius: 9px; padding: 8px 9px; display: flex; align-items: center; gap: 9px; }
.avatar { background: #335e53; color: #bcf6e2; width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; }
.username { flex: 1; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.username small { padding: 0; }
.userbox .icon-button { color: var(--muted); }
.main { min-width: 0; }
.topbar { background: rgba(12, 18, 27, .95); position: sticky; top: 0; z-index: 20; height: 69px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; padding: 0 31px; gap: 18px; backdrop-filter: blur(12px); }
.breadcrumbs { white-space: nowrap; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: #dfe9f1; }
.chevron { color: #425469; padding: 0 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live-chip { padding: 7px 10px; border: 1px solid #285a4c; background: #15352c; color: #a3efd6; font-size: 10px; font-weight: 800; border-radius: 7px; letter-spacing: .5px; margin-right: 7px; }
.date-wrap { margin: 0; display: flex; align-items: center; gap: 8px; border: 1px solid #2c3b4b; background: #151e29; border-radius: 7px; padding: 0 9px; color: var(--dim); font-size: 9px; font-weight: 800; }
.date-wrap input { border: 0; background: none; font-size: 11px; color: #d9e5f0; padding: 9px 0; margin: 0; width: 112px; box-shadow: none; }
.mobile-menu { display: none; }
.content { max-width: 1850px; margin: 0 auto; padding: 29px 32px 75px; }
.view { display: none; }
.view.active { display: block; animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-title { margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title h1 { margin-bottom: 7px; }
.page-title p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.page-title .eyebrow { margin-bottom: 10px; }
.live-eyebrow { display: flex; align-items: center; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card, .panel { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi-card { padding: 20px 20px 16px; min-height: 132px; position: relative; overflow: hidden; }
.kpi-card:before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--kpi-color, var(--accent)), transparent 70%); opacity: .5; }
.kpi-title { font-size: 11px; color: var(--muted); font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-symbol { color: var(--kpi-color, var(--accent)); display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid color-mix(in srgb, var(--kpi-color, var(--accent)) 22%, transparent); background: color-mix(in srgb, var(--kpi-color, var(--accent)) 8%, transparent); border-radius: 8px; font-size: 16px; }
.kpi-value { font-weight: 800; font-size: clamp(25px, 2.5vw, 35px); line-height: 1.22; margin: 9px 0 5px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.kpi-caption { font-size: 10px; color: var(--dim); }
.panel { padding: 20px; min-width: 0; margin-bottom: 16px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel-heading p { font-size: 11px; color: var(--dim); margin: 3px 0 0; }
.panel-heading .subtle { font-size: 10px; }
.grid-two, .grid-three, .grid-live, .grid-embed { display: grid; gap: 16px; }
.grid-two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-live { grid-template-columns: 340px minmax(0,1fr); align-items: stretch; }
.grid-embed { grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: start; }
.chart-row { grid-template-columns: minmax(0,1.7fr) minmax(0,.8fr); }
.chart-large { height: 270px; position: relative; }
.chart-medium { height: 270px; }
.chart-doughnut { height: 216px; max-width: 300px; margin: 5px auto; }
.legend-text { color: var(--muted); font-size: 10px; white-space: nowrap; }
.mini-legend { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 15px 0 0; }
.legend-item { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px; align-items: center; }
.bar-label { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; min-width: 0; color: #c6d4e0; font-weight: 600; font-size: 11px; }
.bar-value { color: #e0eaf2; font-variant-numeric: tabular-nums; font-weight: 750; font-size: 11px; }
.bar-track { grid-column: 1/-1; background: #25303d; border-radius: 5px; overflow: hidden; height: 5px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #35aa94, var(--accent)); border-radius: 5px; min-width: 1px; }
.empty { color: var(--dim); padding: 40px 15px; text-align: center; border: 1px dashed #334356; border-radius: 10px; background: #111924; font-size: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 11px; }
.data-table th { text-align: left; padding: 11px 10px; border-bottom: 1px solid #2f3c4a; color: var(--dim); text-transform: uppercase; font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid #222d3b; color: #ccd9e3; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #1a2634; }
.data-table tr.clickable { cursor: pointer; }
.path-cell { color: #86e5cb !important; max-width: 420px; text-overflow: ellipsis; overflow: hidden; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.event-pill { display: inline-block; background: #25394b; color: #91d9ed; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.event-pill.pageview { background: #1a4439; color: #8ff0c7; }
.event-pill.error, .event-pill.promise_error { background: #4a2632; color: #ff9caa; }
.event-pill.click { background: #343052; color: #bdb2ff; }
.live-time { border: 1px solid #275346; border-radius: 7px; background: #153027; color: #a9efcf; padding: 9px 12px; font-size: 11px; }
.online-tag { color: var(--accent); font-weight: 800; font-size: 10px; letter-spacing: 1px; }
.visitor-list { max-height: 585px; overflow-y: auto; margin: -5px -6px; }
.visitor-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 11px; margin: 2px 0; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.visitor-item:hover { background: #1b2835; }
.visitor-item.active { background: #1a332f; border-color: #2b6859; }
.visitor-icon { width: 33px; height: 33px; border-radius: 9px; background: #28374a; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.visitor-title { display: flex; gap: 10px; color: #ebf3f9; font-weight: 700; align-items: center; }
.visitor-desc { color: var(--muted); font-size: 10px; margin: 4px 0 3px; max-width: 244px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitor-meta { color: var(--dim); font-size: 10px; }
.visitor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.viewport-panel { min-height: 500px; }
.viewport-topline { padding: 9px 12px; background: #0c131b; border-radius: 8px 8px 0 0; border: 1px solid #2a3948; display: flex; justify-content: space-between; gap: 10px; color: #a6b8c9; font-size: 10px; }
.viewport-topline span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewport-stage { border: 1px solid #2a3948; border-top: 0; height: 430px; background: #101923; display: flex; flex-direction: column; overflow: hidden; }
.browser-mock { padding: 10px 13px; background: #1b2632; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #334153; }
.browser-mock > span { width: 6px; height: 6px; border-radius: 100%; background: #5b6f7f; }
.browser-mock > span:first-child { background: #ef818f; }
.browser-mock > span:nth-child(2) { background: #e3b66c; }
.browser-mock > span:nth-child(3) { background: #4fcd9c; }
.browser-address { text-align: center; border-radius: 4px; color: #8da1b2; background: #111b27; margin: -3px 45px -3px 20px; font-size: 9px; padding: 3px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.viewport-surface { position: relative; flex: 1; overflow: hidden; background: linear-gradient(180deg,#151f2c,#121a24); padding: 25px; }
.mock-nav { background: #2a3c4f; width: 94%; height: 11px; border-radius: 4px; margin-bottom: 39px; opacity: .7; }
.mock-title { background: #334e5e; border-radius: 6px; width: 56%; height: 23px; margin-bottom: 15px; }
.mock-description { background: #263b4a; border-radius: 4px; width: 72%; height: 9px; margin-bottom: 37px; }
.mock-feature { height: 55px; background: #273e43; border-radius: 7px; margin-bottom: 25px; opacity: .7; }
.mock-cols { display: flex; gap: 13px; }
.mock-cols i { background: #223447; border-radius: 6px; height: 67px; flex: 1; }
#pointer-canvas { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.cursor-live { position: absolute; top: -20px; left: -20px; color: #fff; z-index: 2; font-size: 16px; text-shadow: 0 0 6px #000; pointer-events: none; display: none; transform: rotate(-28deg); }
.viewport-footer { display: flex; justify-content: space-between; padding-top: 12px; font-size: 10px; color: var(--muted); }
.mini-dot { background: var(--accent); width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.event-feed { max-height: 430px; overflow-y: auto; }
.feed-item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #253240; font-size: 11px; }
.feed-item:last-child { border-bottom: 0; }
.feed-time { color: #71879a; font-family: 'JetBrains Mono', monospace; font-size: 10px; flex: 0 0 77px; }
.feed-message { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.feed-label { color: #e3edf4; font-weight: 700; margin-right: 9px; }
.feed-path { color: var(--accent); }
.feed-country { color: var(--muted); }
.heatmap-panel { margin-bottom: 16px; }
.inline-fields { display: flex; gap: 9px; align-items: center; }
.inline-fields select { min-width: 150px; max-width: 310px; }
.heatmap-layout { display: grid; grid-template-columns: minmax(0,1fr) 205px; gap: 24px; }
.heatmap-canvas-wrap { border-radius: 9px; overflow: hidden; background: #f4f6fb; border: 1px solid #4c5a6d; position: relative; }
.heatmap-browser { color: #8592a3; background: #e3e9f0; border-bottom: 1px solid #d0d7e0; padding: 8px 12px; font-size: 10px; display: flex; justify-content: space-between; }
#heatmap-canvas { display: block; width: 100%; height: 470px; }
.heatmap-overlay-caption { background: #101923e8; color: #aabccc; padding: 8px 10px; font-size: 10px; position: absolute; bottom: 0; left: 0; right: 0; }
.heatmap-side { padding: 15px 5px; }
.heatmap-gradient { background: linear-gradient(90deg,#335bc9,#37c8ed,#56ec9f,#eedf4f,#f25c65); height: 13px; border-radius: 5px; margin-top: 15px; }
.heatmap-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin: 7px 0 29px; }
.heatmap-side h3 { font-size: 28px; color: var(--text); margin-bottom: 3px; }
.heatmap-side .micro { margin-top: 27px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-row label { min-width: 0; }
.feature-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 7px 0 14px; }
.feature-header h3 { margin: 0; font-size: 12px; }
.separator { padding: 0 6px; color: var(--dim); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-bottom: 20px; }
.feature-option { margin: 0; padding: 12px; border: 1px solid #2c3b4a; border-radius: 8px; background: #151f29; display: flex; align-items: center; gap: 9px; cursor: pointer; color: #c4d3e0; font-size: 11px; }
.feature-option:has(input:checked) { border-color: #336c5e; background: #1a302c; color: #c5f4e3; }
.feature-option input { margin: 0; flex-shrink: 0; }
.panel-divider { border-top: 1px solid var(--border); margin: 27px 0; }
.codebox { border: 1px solid #344356; background: #0a111a; white-space: pre-wrap; word-break: break-all; font-size: 11px; line-height: 1.8; color: #a4e4d2; border-radius: 9px; padding: 18px; overflow: auto; margin-bottom: 13px; }
.code-badge { color: #86ceb7; border: 1px solid #315b54; padding: 5px 7px; background: #18352f; font-size: 9px; border-radius: 5px; letter-spacing: .8px; }
.tip { margin-top: 17px; padding: 14px 16px; background: #162630; border-left: 2px solid #4fdfb5; border-radius: 5px; }
.tip strong { color: #dbeee8; }
.tip p { margin: 6px 0 0; font-size: 11px; line-height: 1.7; }
.profile-row, .site-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.profile-row:last-child, .site-row:last-child { border: 0; }
.profile-row strong, .site-row strong { display: block; font-size: 12px; }
.profile-row small, .site-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; word-break: break-all; }
.row-buttons { display: flex; gap: 5px; }
.badge-archived { color: #ffbe81; font-size: 10px; font-weight: 750; }
.settings-line { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border-soft); color: var(--muted); gap: 12px; }
.settings-line b { color: #c6d9e3; }
.privacy-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.privacy-item { min-width: 0; }
.privacy-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 12px; border-radius: 9px; color: var(--accent); border: 1px solid #396a5d; background: #1a352e; font-size: 21px; }
.privacy-item strong { font-size: 12px; }
.privacy-item p { font-size: 11px; margin-top: 6px; }
.toast { position: fixed; right: 24px; bottom: 24px; border: 1px solid #326c5b; background: #18352e; color: #b5f6df; padding: 13px 17px; border-radius: 9px; box-shadow: 0 15px 40px #0009; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s,transform .2s; z-index: 150; font-size: 12px; max-width: 380px; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #3e222b; color: #ffc3cb; border-color: #8b4755; }
dialog { background: #121a25; color: var(--text); border: 1px solid #3e4f60; border-radius: 13px; padding: 21px; max-width: min(850px, 95vw); width: 100%; box-shadow: 0 0 0 500vmax #0009; }
dialog::backdrop { background: #0008; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
dialog pre { background: #090e15; padding: 20px; overflow: auto; max-height: 70vh; border-radius: 8px; color: #a0e6d6; font-size: 11px; line-height: 1.7; }
@media (max-width: 1500px) { .grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid-three .panel:last-child { grid-column: 1/-1; } .grid-live { grid-template-columns: 310px minmax(0,1fr); } }
@media (max-width: 1200px) { .sidebar { width: 215px; } .app-shell { grid-template-columns: 215px minmax(0,1fr); } .brand { font-size: 12px; } .grid-live, .grid-embed { grid-template-columns: 1fr; } .chart-row { grid-template-columns: 1fr; } .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .privacy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .visitor-list { max-height: 260px; } }
@media (max-width: 900px) { .app-shell { display: block; } .sidebar { position: fixed; width: 255px; transform: translateX(-102%); transition: transform .2s; box-shadow: 10px 0 30px #0009; } .sidebar.open { transform: none; } .mobile-menu { display: inline-flex; } .content { padding: 22px 17px; } .topbar { padding: 0 17px; height: auto; min-height: 62px; } .top-actions { gap: 5px; } .date-wrap { display: none; } .breadcrumbs { flex: 1; } .grid-three, .grid-two { grid-template-columns: 1fr; } .grid-three .panel:last-child { grid-column: auto; } .heatmap-layout { grid-template-columns: 1fr; } .heatmap-side { display: none; } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; } .kpi-card { min-height: 108px; padding: 13px; } .kpi-value { font-size: 23px; } .kpi-title { font-size: 10px; } .panel { padding: 15px; } .page-title h1 { font-size: 26px; } .feature-grid, .form-row, .privacy-grid { grid-template-columns: 1fr; } .topbar .live-chip { display: none; } .content { padding: 20px 12px; } .viewport-stage { height: 320px; } .heatmap-panel .panel-heading { display: block; } .inline-fields { margin-top: 12px; } .auth-card { padding: 25px; } }

.session-detail-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 20px; }
.session-detail-meta > div { background: #17222e; border: 1px solid #2b3b4b; padding: 13px; border-radius: 8px; min-width: 0; }
.session-detail-meta span { color: var(--dim); font-size: 10px; display: block; margin-bottom: 6px; }
.session-detail-meta strong { display: block; color: #dbeaf3; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .session-detail-meta { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .session-detail-meta { grid-template-columns: 1fr; } }


/* Account-saved light appearance. Explicit overrides cover the flat surfaces
   that use fixed colors in the original dark-only visual system. */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f6fa;
    --sidebar: #ffffff;
    --panel: #ffffff;
    --panel-2: #f5f8fb;
    --border: #d6e1eb;
    --border-soft: #e1e8f0;
    --text: #1a2a3b;
    --muted: #5e7184;
    --dim: #7a8da1;
    --accent: #0c9670;
    --accent-2: #167fc6;
    --orange: #d78438;
    --purple: #6759bd;
    --red: #be465b;
    --shadow: 0 5px 22px rgba(29, 52, 77, .055);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .panel,
html[data-theme="light"] .kpi-card { background: var(--panel); border-color: var(--border-soft); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .sidebar { border-right-color: #e3eaf1; }
html[data-theme="light"] .brand { color: #132839; }
html[data-theme="light"] .breadcrumbs strong { color: #243c51; }
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .topbar label,
html[data-theme="light"] .workspace-label { color: #718497; }
html[data-theme="light"] .sidebar nav a { color: #566f80; }
html[data-theme="light"] .sidebar nav a:hover { color: #17374b; background: #ecf3f7; }
html[data-theme="light"] .sidebar nav a.active { color: #087756; background: #e1f4ee; }
html[data-theme="light"] .site-picker,
html[data-theme="light"] .date-wrap,
html[data-theme="light"] .ghost,
html[data-theme="light"] .userbox { color: #2c4458; background: #f4f8fb; border-color: #d6e3eb; }
html[data-theme="light"] .site-picker select,
html[data-theme="light"] .date-wrap input { color: #294359; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { color: #20364b; background: #f7fafc; border-color: #cddae5; color-scheme: light; }
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus { background: #fff; border-color: #249d80; }
html[data-theme="light"] label { color: #476074; }
html[data-theme="light"] .sidebar-health,
html[data-theme="light"] .username { color: #2b6254; }
html[data-theme="light"] .userbox { background: #f7fafc; }
html[data-theme="light"] .avatar { background: #d5f2e7; color: #17694f; }
html[data-theme="light"] .kpi-title,
html[data-theme="light"] .kpi-caption,
html[data-theme="light"] .panel-heading p { color: #687e91; }
html[data-theme="light"] .bar-label,
html[data-theme="light"] .bar-value { color: #314b61; }
html[data-theme="light"] .bar-track { background: #e6edf3; }
html[data-theme="light"] .data-table th { color: #687d8e; border-bottom-color: #d7e1e9; }
html[data-theme="light"] .data-table td { color: #364f63; border-bottom-color: #e5ebf2; }
html[data-theme="light"] .data-table tbody tr:hover td { background: #eef7f5; }
html[data-theme="light"] .path-cell { color: #098569 !important; }
html[data-theme="light"] .empty { color: #7c8fa1; background: #f6f9fc; border-color: #d7e4ed; }
html[data-theme="light"] .primary { color: white; background: #138e6d; border-color: #138e6d; }
html[data-theme="light"] .primary:hover { background: #0b7658; }
html[data-theme="light"] .secondary { background: #e1f4ed; color: #077252; border-color: #c1e5d6; }
html[data-theme="light"] .secondary:hover { background: #c9eadc; }
html[data-theme="light"] .ghost:hover,
html[data-theme="light"] .icon-button:hover { background: #eaf2f6; }
html[data-theme="light"] .live-chip,
html[data-theme="light"] .live-time,
html[data-theme="light"] .online-tag { color: #0b7655; background: #e1f6ed; border-color: #b5e6d0; }
html[data-theme="light"] .visitor-item:hover { background: #f0f6f8; }
html[data-theme="light"] .visitor-item.active { background: #e3f4ee; border-color: #a7daca; }
html[data-theme="light"] .visitor-icon { background: #dfeaf2; }
html[data-theme="light"] .visitor-title { color: #253c4d; }
html[data-theme="light"] .event-pill { background: #dbeef7; color: #215c80; }
html[data-theme="light"] .event-pill.pageview { background: #d8f3e7; color: #0d7a5c; }
html[data-theme="light"] .event-pill.error,
html[data-theme="light"] .event-pill.promise_error { background: #f9dfe5; color: #a9344c; }
html[data-theme="light"] .event-pill.click { background: #e7e3fb; color: #6957ae; }
html[data-theme="light"] .event-feed .feed-item,
html[data-theme="light"] .settings-line { border-bottom-color: #e5edf4; }
html[data-theme="light"] .feed-label,
html[data-theme="light"] .settings-line b { color: #2a4558; }
html[data-theme="light"] .feed-path { color: #087e64; }
html[data-theme="light"] .feature-option { color: #405a6d; background: #f7fafc; border-color: #d6e2eb; }
html[data-theme="light"] .feature-option:has(input:checked) { color: #096d53; background: #e4f4ec; border-color: #b0dbc7; }
html[data-theme="light"] .tip { color: #425b6a; background: #eff7f3; border-color: #15906e; }
html[data-theme="light"] .tip strong { color: #176e56; }
html[data-theme="light"] .panel-divider,
html[data-theme="light"] .profile-row,
html[data-theme="light"] .site-row { border-color: #e0eaf1; }
html[data-theme="light"] .codebox,
html[data-theme="light"] dialog pre { background: #132334; color: #a5f4d7; border-color: #2b4258; }
html[data-theme="light"] dialog { background: #fff; color: #203548; }
html[data-theme="light"] .session-detail-meta > div { background: #f5f9fc; border-color: #d8e5ed; }
html[data-theme="light"] .session-detail-meta strong { color: #28495b; }
html[data-theme="light"] .privacy-icon { background: #dcf5ec; border-color: #a8e0cb; }
html[data-theme="light"] .viewport-topline { background: #e9f0f5; color: #42586a; border-color: #d4e1ea; }
html[data-theme="light"] .viewport-stage { border-color: #d4e1ea; }
html[data-theme="light"] .browser-mock { background: #dce7ef; border-bottom-color: #c8d6e1; }
html[data-theme="light"] .browser-address { background: #eff5f8; color: #597083; }
html[data-theme="light"] .viewport-surface { background: #f5f9fd; }
html[data-theme="light"] .mock-nav,
html[data-theme="light"] .mock-title,
html[data-theme="light"] .mock-description,
html[data-theme="light"] .mock-feature,
html[data-theme="light"] .mock-cols i { background: #dbe7f0; }
html[data-theme="light"] .viewport-footer { color: #72889a; }
.theme-selector { width: 112px; padding: 8px 9px; font-size: 11px; font-weight: 700; }
.panel-subtitle { font-weight: 750; margin: 14px 0; }
.site-identity-row { align-items: flex-start; flex-wrap: wrap; }
.site-identity-info { flex: 1; min-width: 190px; }
.site-identity-row .identity-actions { flex-wrap: wrap; max-width: 210px; }
.site-identity-row .identity-group-label { margin: 13px 0 0; font-size: 11px; }
.site-identity-row .identity-group-label input { margin-top: 5px; }
@media(max-width: 930px) { .theme-selector { width: 92px; } }
@media(max-width: 560px) { .top-actions .theme-selector { width: 79px; font-size: 10px; } }
