@charset "UTF-8";
:root {
    color-scheme: dark;
    --bg: #101210;
    --sidebar: #151815;
    --panel: #191c19;
    --border: #2b302b;
    --muted: #939c92;
    --text: #edf0e9;
    --accent: #c6f484;
    --danger: #ffb1a7;
    font: 14px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, textarea { background: #121512; color: var(--text); border: 1px solid #353d34; border-radius: 8px; padding: 10px 12px; min-width: 0; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { display: block; width: 100%; resize: vertical; }
input[type="date"] { padding: 7px 8px; max-width: 150px; }
input[type="search"] { width: 290px; }
button { color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 2.45vw, 36px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
p { line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.accent { color: var(--accent); }
.eyebrow { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1.7px; font-weight: 600; margin-bottom: 12px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; background: #222722; border: 1px solid #373e35; border-radius: 8px; padding: 10px 16px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button:hover:not(:disabled) { background: #30382c; border-color: #687659; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #233015; }
.button.primary:hover:not(:disabled) { background: #d7ffa2; }
.button.compact { padding: 7px 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--sidebar); border-right: 1px solid var(--border); padding: 34px 22px 24px; display: flex; flex-direction: column; z-index: 3; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -1px; margin-bottom: 56px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; justify-content: center; align-items: center; background: var(--accent); font-size: 33px; line-height: 1; font-weight: 800; letter-spacing: -2px; color: #1d2b13; padding-bottom: 6px; flex-shrink: 0; }
.brand-light { font-weight: 350; }
.brand small { display: block; font-size: 7px; letter-spacing: 2px; color: var(--muted); margin-top: 1px; }
.nav-label { font-size: 9px; letter-spacing: 1.8px; color: #788172; margin: 0 12px 14px; }
.nav-link { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #abb2a5; border-radius: 8px; padding: 12px; margin-bottom: 5px; }
.nav-link > span:first-child { font-size: 18px; width: 18px; }
.nav-link:hover { background: #21271f; }
.nav-link.active { background: #283222; color: var(--accent); }
.nav-dot, .status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; }
.sidebar-bottom { margin-top: auto; }
.site-card { border: 1px solid var(--border); border-radius: 9px; padding: 12px 10px; display: flex; gap: 9px; align-items: flex-start; font-size: 10px; }
.site-card .status-dot { margin-top: 5px; }
.site-card small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.logout { background: none; border: 0; color: #a7afa0; padding: 18px 6px; font-size: 12px; }
.logout:hover { color: var(--accent); }
.sidebar-caption { display: block; color: #687162; font-size: 9px; padding-left: 6px; }
.main { margin-left: 236px; padding: 0 40px; max-width: 1920px; }
.topbar { height: 78px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.topbar strong { font-weight: 400; color: var(--text); }
.separator { color: #51594a; margin: 0 12px; }
.private-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }
.heading-row { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 34px 0 26px; }
.heading-row .muted { margin-top: 10px; font-size: 12px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 6px; flex-wrap: wrap; }
.range-presets { display: flex; gap: 3px; background: #191d18; padding: 4px; border-radius: 9px; border: 1px solid var(--border); }
.range-presets button { border: 0; background: none; font-size: 11px; padding: 7px 13px; border-radius: 5px; color: #a7b09f; }
.range-presets button.selected { background: #34422a; color: var(--accent); }
.range-presets button:hover { color: var(--accent); }
.date-fields { display: flex; gap: 10px; align-items: center; }
.date-fields label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.load-status { font-size: 10px; color: var(--muted); min-height: 30px; padding: 3px 0 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px 21px 17px; }
.stat-card.featured { background: linear-gradient(125deg, #273220, #1d2419); border-color: #445334; }
.stat-heading { display: flex; justify-content: space-between; align-items: center; color: #b0b8a8; font-size: 11px; gap: 8px; }
.stat-heading > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #252c21; color: #b4c39f; font-size: 17px; }
.stat-card.featured .stat-heading > span { color: var(--accent); background: #35452a; }
.stat-card > strong { display: block; font-size: 36px; line-height: 1.2; margin: 13px 0; font-weight: 550; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.stat-card.featured > strong { color: var(--accent); }
.stat-foot { font-size: 9px; color: var(--muted); }
.featured .stat-foot { color: #b5cd9f; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
.panel-heading p { margin-top: 4px; font-size: 10px; }
.trend-heading { flex-wrap: wrap; }
.trend-heading .range-presets button { font-size: 10px; padding: 6px 10px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr); gap: 22px; margin-bottom: 22px; }
.legend { color: #b4bda9; font-size: 10px; display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill { font-size: 8px; letter-spacing: 1px; border: 1px solid #394332; border-radius: 5px; padding: 4px 7px; color: #a8b69b; white-space: nowrap; }
.trend-chart { min-height: 220px; display: flex; align-items: center; }
.trend-chart svg { width: 100%; overflow: visible; }
.grid-line { stroke: #30362c; stroke-dasharray: 4 5; stroke-width: 1; }
.axis-label { fill: #8d9783; font: 11px "Segoe UI", sans-serif; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart-area { fill: var(--accent); opacity: .055; }
.chart-point { fill: #798971; }
.chart-point.has-value { fill: var(--accent); }
.chart-point:hover { r: 6px; fill: #fff; }
.chart-foot { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.rank-item { display: flex; gap: 11px; align-items: center; margin-bottom: 17px; min-width: 0; }
.rank-item:last-child { margin-bottom: 0; }
.rank-number { font-size: 10px; color: #7a866f; font-variant-numeric: tabular-nums; align-self: flex-start; padding-top: 2px; }
.rank-content { flex: 1; min-width: 0; }
.rank-title { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-bottom: 7px; min-width: 0; }
.rank-title > span, .rank-title > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-title strong { font-size: 11px; font-weight: 500; flex-shrink: 0; }
.rank-title small { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 6px; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 5px; overflow: hidden; background: #2b3325; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #2b3325; border-radius: 5px; }
progress::-webkit-progress-value { background: #b4d88b; border-radius: 5px; }
progress::-moz-progress-bar { background: #b4d88b; border-radius: 5px; }
.pages-panel { margin-bottom: 22px; }
.page-ranking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 38px; }
.page-ranking .rank-item { margin-bottom: 0; }
.page-ranking a:hover { color: var(--accent); }
.conversions-panel { padding: 23px 0 0; margin-bottom: 22px; scroll-margin-top: 20px; }
.conversions-panel > .panel-heading { padding: 0 23px; }
.count-badge { background: #2d3727; color: #c5d5b3; font-size: 10px; padding: 3px 7px; border-radius: 5px; vertical-align: middle; margin-left: 7px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 720px; }
thead { background: #20251f; }
th { padding: 12px 15px; font-weight: 450; color: #9faa95; font-size: 10px; white-space: nowrap; }
td { padding: 15px; border-bottom: 1px solid #292f26; font-size: 11px; max-width: 260px; }
th:first-child, td:first-child { padding-left: 23px; }
td:last-child { padding-right: 23px; text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #1e241c; }
.date-cell { white-space: nowrap; color: #abb4a2; font-size: 10px; }
.button-name { display: inline-block; background: #293323; border: 1px solid #3b4731; color: #c9dcb6; padding: 3px 7px; border-radius: 5px; overflow-wrap: anywhere; }
.url-cell, .note-preview { display: block; max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-cell { color: #abb3a2; }
.url-cell:hover { color: var(--accent); text-decoration: underline; }
.note-preview { max-width: 190px; }
.note-button { background: transparent; border: 1px solid #37412f; color: #b7c8a4; padding: 5px 8px; font-size: 10px; border-radius: 5px; white-space: nowrap; }
.note-button:hover { border-color: var(--accent); color: var(--accent); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 23px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.pagination > div { display: flex; gap: 7px; }
.empty { text-align: center; color: var(--muted); padding: 35px 20px; font-size: 11px; }
.empty-icon { display: block; font-size: 30px; color: #6a7a5a; margin-bottom: 10px; }
.integration-panel { scroll-margin-top: 20px; }
.integration-panel .eyebrow { font-size: 8px; margin-bottom: 7px; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.integration-grid p { font-size: 11px; margin-bottom: 14px; }
code, pre, #snippet { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
code { color: #cee3b6; }
pre { background: #121512; border: 1px solid var(--border); border-radius: 7px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
#snippet { line-height: 1.8; margin-bottom: 10px; min-height: 135px; }
.integration-note { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; color: #8f9e81; font-size: 10px; }
.integration-note .status-dot { width: 5px; height: 5px; margin-right: 6px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0 28px; color: #75816b; font-size: 9px; }
.footer strong { font-weight: 600; color: #a1ae95; }
.notice { border: 1px solid #625533; border-radius: 8px; padding: 12px 15px; font-size: 12px; margin: 12px 0; background: #2d271a; }
.notice.error { border-color: #654139; background: #2b211e; color: var(--danger); }
.notice[hidden], [hidden] { display: none !important; }
.setup { margin-top: 50px; max-width: 700px; }
.setup p { margin: 18px 0; }
dialog { color: var(--text); border: 1px solid #45523a; border-radius: 14px; background: var(--panel); padding: 26px; width: min(560px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; }
dialog::backdrop { background: rgb(0 0 0 / 75%); backdrop-filter: blur(4px); }
dialog .panel-heading { margin-bottom: 14px; }
dialog label { display: block; font-size: 12px; margin: 16px 0 9px; }
dialog p { overflow-wrap: anywhere; }
dialog .small { margin-top: 8px; }
.icon-button { background: none; border: none; font-size: 25px; color: #b1bda6; padding: 0 5px; }
.dialog-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }
.login-layout { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(ellipse at 50% 20%, #26301e 0%, #101210 60%); }
.login-card { width: 100%; max-width: 430px; background: #191d18; border: 1px solid #35402e; border-radius: 20px; padding: 40px; box-shadow: 0 30px 100px #0005; }
.login-card .brand-mark { margin-bottom: 30px; width: 46px; height: 46px; }
.login-card .eyebrow { font-size: 9px; }
.login-card h1 { font-size: 38px; line-height: 1.2; }
.login-card p.muted { font-size: 12px; margin-top: 18px; }
.login-form { display: flex; flex-direction: column; margin-top: 28px; gap: 10px; }
.login-form label { font-size: 11px; color: #b4bea9; }
.login-form input { padding: 12px; }
.login-form .button { margin-top: 8px; padding: 12px; justify-content: space-between; }
.login-foot { color: #78856b; font-size: 10px; margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1700px) { .main { padding-left: 55px; padding-right: 55px; } .trend-chart { min-height: 290px; } }
@media (max-width: 1250px) {
    .sidebar { width: 205px; padding: 28px 16px; }
    .main { margin-left: 205px; padding: 0 26px; }
    .brand { font-size: 22px; }
    .stat-card { padding: 16px; }
    .stat-heading { font-size: 10px; }
    .stat-foot { font-size: 8px; }
    .chart-grid { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 16px; }
    .panel { padding: 19px; }
    .conversions-panel { padding: 19px 0 0; }
    .date-fields { gap: 7px; }
    .date-fields label { gap: 5px; }
    .filter-bar { align-items: flex-start; }
}
@media (max-width: 1050px) {
    .sidebar { width: 180px; padding: 24px 12px; }
    .main { margin-left: 180px; padding: 0 22px; }
    .brand { font-size: 21px; gap: 8px; }
    .brand-mark { width: 34px; height: 34px; font-size: 29px; }
    .brand small { font-size: 6px; letter-spacing: 1.2px; }
    .nav-link { font-size: 10px; gap: 7px; padding: 10px 8px; }
    .stat-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chart-grid { grid-template-columns: 1fr; }
    .ranking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 25px; }
    .ranking .rank-item { margin: 0; }
    .integration-grid { gap: 20px; }
    .conversions-panel > .panel-heading { align-items: flex-start; flex-direction: column; }
    input[type="search"] { width: min(350px, 100%); }
    .search-label { width: 100%; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; gap: 15px; align-items: center; flex-wrap: wrap; }
    .brand { margin: 0 auto 0 0; font-size: 22px; }
    .nav-label, .sidebar-caption, .site-card { display: none; }
    .sidebar nav { display: flex; gap: 6px; order: 3; width: 100%; }
    .nav-link { padding: 7px 10px; margin: 0; font-size: 11px; }
    .nav-link > span:first-child { font-size: 16px; }
    .nav-dot { display: none; }
    .sidebar-bottom { margin: 0; }
    .logout { padding: 4px; font-size: 11px; }
    .main { margin-left: 0; padding: 0 20px; }
    .topbar { height: 52px; }
    .heading-row { padding-top: 25px; gap: 12px; align-items: flex-start; }
    .heading-row h1 { font-size: 27px; }
    .heading-row .eyebrow { font-size: 8px; }
    .heading-row .button { font-size: 10px; padding: 8px 10px; }
    .heading-row p.muted { font-size: 11px; max-width: 250px; }
    .date-fields { flex-wrap: wrap; gap: 9px; }
    .date-fields label { font-size: 9px; }
    input[type="date"] { max-width: 135px; font-size: 11px; }
    .stat-card { padding: 16px; }
    .stat-card > strong { font-size: 32px; }
    .panel { padding: 18px; }
    .panel-heading { gap: 10px; }
    .legend { font-size: 8px; }
    .panel-heading h2 { font-size: 15px; }
    .page-ranking, .integration-grid { grid-template-columns: 1fr; }
    .conversions-panel { padding: 18px 0 0; }
    .conversions-panel > .panel-heading { padding: 0 18px; }
    .pagination { padding: 14px; }
    .pagination .button { font-size: 10px; padding: 6px 9px; }
    .chart-foot { font-size: 8px; }
    .footer { font-size: 8px; }
    .integration-note { line-height: 1.9; }
    .login-card { padding: 32px; }
}
@media (max-width: 400px) {
    .main { padding: 0 12px; }
    .sidebar { padding: 14px 12px; }
    .nav-link { padding: 7px; font-size: 10px; }
    .heading-row { flex-direction: column; }
    .stat-card { padding: 13px; }
    .ranking { grid-template-columns: 1fr; }
    .range-presets button { padding: 7px 11px; }
    .date-fields .muted { display: none; }
    .date-fields label { flex-direction: column; align-items: flex-start; }
    .date-fields { align-items: flex-end; }
    .private-badge { font-size: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
    .button, .nav-link, .note-button { transition: background .15s, border-color .15s; }
}
