:root {
  color-scheme: light;
  --ink: #19182b;
  --muted: #6b697e;
  --accent: #6846e9;
  --accent-dark: #5635d1;
  --line: #eae8f0;
  --bg: #f7f7fb;
  --white: #fff;
  --sidebar: #191829;
  --heading: "Manrope", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .35; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { flex: none; display: inline-block; vertical-align: middle; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #9f83ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
::selection { color: #2e1777; background: #e5d9ff; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px; background: white; }

.sidebar { width: 222px; height: 100dvh; position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; padding: 25px 15px 16px; background: var(--sidebar); color: #d6d3e4; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 27px 8px; width: max-content; color: #fff; text-decoration: none; font-family: var(--heading); font-size: 26px; letter-spacing: -1.35px; font-weight: 800; line-height: 1; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #9a73ff, #6941e7); box-shadow: inset 0 1px 0 #ffffff45, 0 3px 10px #110a28; }
.brand-dot { color: #b49aff; }
.channel-wrap { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #ffffff13; border-radius: 10px; margin-bottom: 22px; background: #ffffff08; }
.channel-avatar { flex: none; position: relative; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #ae8cff70; border-radius: 8px; color: #f4ecff; font: 800 17px var(--heading); background: linear-gradient(155deg, #b68bfc, #6244a9 58%, #3b246b); }
.channel-wrap strong, .channel-wrap div:not(.channel-avatar) > span { display: block; white-space: nowrap; }
.channel-wrap strong { color: #f7f5ff; font-size: 12px; margin-bottom: 2px; }
.channel-wrap div:not(.channel-avatar) { min-width: 0; }
.channel-wrap strong { overflow: hidden; text-overflow: ellipsis; }
.channel-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.channel-wrap div:not(.channel-avatar) > span { color: #aaa6bf; font-size: 10px; }
.nav { display: grid; gap: 5px; }
.nav a, .sidebar-action { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; text-align: left; text-decoration: none; border-radius: 8px; font-size: 13px; font-weight: 650; color: #bbb6d0; }
.nav a:where(:hover, [aria-current]), .sidebar-action:hover { color: #fff; background: #ffffff0e; }
.nav a[aria-current] { background: #383057; color: #f5efff; box-shadow: inset 0 0 0 1px #a382ff29; }
.nav a[aria-current] svg { color: #ba9bff; }
.sidebar-bottom { margin-top: auto; }
.sidebar-action { border: 0; background: transparent; width: 100%; }
.sidebar-foot { color: #a39eb6; font-size: 11px; padding: 15px 11px 3px; margin-top: 10px; border-top: 1px solid #ffffff16; display: flex; align-items: center; gap: 8px; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #a98af5; }

.workspace { margin-left: 222px; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 62px; padding: 0 29px; border-bottom: 1px solid var(--line); background: var(--white); }
.crumb, .top-controls { display: flex; align-items: center; gap: 10px; }
.crumb { color: var(--muted); font-size: 12px; }
.crumb strong { color: var(--ink); font-weight: 750; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; color: #6645ac; font-size: 11px; font-weight: 750; white-space: nowrap; border: 1px solid #ede4fd; background: #f6f0ff; border-radius: 100px; padding: 5px 9px; }
.demo-pill span { width: 5px; height: 5px; border-radius: 50%; background: #9969ed; }
.live-pill { color: #226a4c; background: #edf9f2; border-color: #d0eddd; }
.live-pill span { background: #328660; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; min-height: 34px; border: 1px solid var(--line); background: var(--white); color: #444056; border-radius: 8px; font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.button:hover { border-color: #d8cef5; background: #f9f5ff; color: var(--accent-dark); }
.button-connect { border-color: #e5dcfe; color: #6041c2; background: #fcfaff; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.button.icon-button { width: 34px; padding: 0; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.text-button:hover { color: #38209c; text-decoration: underline; text-underline-offset: 3px; }

.main { max-width: 1550px; min-width: 0; margin: 0 auto; padding: 24px 29px 38px; }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 20px; }
.profile-bar > span { font-size: 11px; font-weight: 750; color: #575268; }
.profile-options { display: inline-flex; align-items: stretch; max-width: 100%; gap: 2px; padding: 3px; border: 1px solid #e9e4f3; border-radius: 10px; background: #f0edf7; }
.profile-options button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 4px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #5e5872; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.profile-options button:hover { color: var(--accent-dark); background: #f8f4ff; }
.profile-options button[aria-pressed="true"] { border-color: #e4d8fa; background: white; color: #5835c4; box-shadow: 0 1px 4px #442c7c16; }
.page-heading { margin-bottom: 19px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 37px); line-height: 1.08; letter-spacing: -.057em; font-weight: 800; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.period-select { display: flex; align-items: center; gap: 7px; position: relative; padding: 0 11px; height: 39px; border: 1px solid #e5e3ed; border-radius: 9px; background: #fff; color: #59546b; white-space: nowrap; }
.period-select select { position: relative; z-index: 1; appearance: none; border: 0; margin: 0 -29px; padding: 0 31px; height: 100%; outline-offset: -1px; color: var(--ink); font-size: 12px; font-weight: 700; background: transparent; border-radius: inherit; }
.period-select > svg:last-child { margin-left: 2px; }

.goal-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(208px, .78fr) minmax(0, 2fr); align-items: center; gap: 22px; min-height: 146px; border: 1px solid #3d2b69; border-radius: 15px; padding: 17px 19px; background: linear-gradient(106deg, #251b41 0%, #302052 57%, #271c49 100%); color: #fff; }
.goal-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 31% 130%, #7d55d337, transparent 57%), radial-gradient(circle at 99% 0%, #ad80ff30, transparent 48%); }
.goal-hero::after { content: ""; position: absolute; z-index: -1; right: -85px; top: -132px; width: 338px; height: 338px; border: 1px solid #d9c5ff17; outline: 1px solid #d9c5ff10; outline-offset: 18px; border-radius: 50%; box-shadow: 0 0 0 36px #d9c5ff11, 0 0 0 55px #d9c5ff0d; }
.goal-intro { min-width: 0; }
.goal-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #d0b7ff; text-transform: uppercase; letter-spacing: .095em; font-size: 9px; font-weight: 800; margin-bottom: 7px; }
.goal-eyebrow svg { width: 14px; height: 14px; }
.goal-intro h2 { font-size: clamp(18px, 2vw, 25px); letter-spacing: -.045em; line-height: 1.15; }
.goal-intro p { color: #d2c4e8; font-size: 11.5px; line-height: 1.45; margin-top: 6px; }
.goal-cta { margin-top: 9px; border: 0; padding: 0; background: transparent; color: #e0ccff; display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: 11.5px; }
.goal-cta:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.goal-cta svg { width: 14px; height: 14px; }
.goal-hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.goal-hero-metrics-specialized { grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr)); }
.hero-goal { min-width: 0; padding: 10px; border: 1px solid #d5b7ff28; border-radius: 10px; background: #f0e2ff0a; }
.hero-goal-label { min-height: 17px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: #e3d7f4; font-size: 11px; font-weight: 700; }
.goal-status-met { color: #bdf4d4; background: #5ac28b27; border-radius: 20px; padding: 2px 5px; font-size: 8px; }
.hero-goal-value { display: flex; flex-wrap: wrap; gap: 2px 4px; white-space: nowrap; align-items: baseline; font-variant-numeric: tabular-nums; margin: 5px 0 8px; }
.hero-goal-value strong { font: 800 clamp(14px, 1.65vw, 22px)/1.05 var(--heading); letter-spacing: -.055em; }
.hero-goal-target { font-size: 10px; color: #d1bee9; }
.goal-hero .goal-progress { height: 5px; background: #9577bd38; border-radius: 9px; overflow: hidden; }
.goal-hero .goal-progress span { display: block; height: 100%; border-radius: inherit; background: #b497ff; }
.hero-goal-caption { display: block; color: #d4c5e9; font-size: 10px; line-height: 1.25; margin-top: 7px; }

.metrics { margin-top: 19px; }
.section-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-heading h2, .panel h2 { font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.24; }
.section-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.workspace-footer { margin-top: 20px; color: var(--muted); font-size: 11px; }
.data-status { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-bottom: 11px; color: var(--muted); font-size: 11px; }
.data-status details { display: inline; }
.data-status summary { cursor: pointer; }
.data-loading { margin-top: 13px; padding: 22px; }
.data-loading p { margin-top: 7px; color: var(--muted); }
.data-loading button { margin: 11px 7px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.metric-card { text-align: left; position: relative; isolation: isolate; min-width: 0; min-height: 106px; padding: 12px 13px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 2px 7px #24183d04; }
.metric-card:hover { border-color: #c5b3f5; }
.metric-card.metric-selected { border-color: #d6c7fa; background: linear-gradient(145deg, #fff, #fbf8ff); }
.metric-label { display: flex; align-items: center; gap: 7px; color: #605c72; font-size: 11.5px; font-weight: 700; }
.metric-icon { display: inline-grid; place-items: center; flex: none; height: 25px; width: 25px; border-radius: 7px; color: color-mix(in srgb, var(--metric-color), #2d184e 12%); background: color-mix(in srgb, var(--metric-color) 13%, white); }
.metric-card > strong { display: block; font: 800 clamp(20px, 2.1vw, 29px)/1.12 var(--heading); letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.metric-delta { display: flex; align-items: center; gap: 4px; color: #267251; font-size: 10px; font-weight: 800; white-space: nowrap; }
.metric-delta.negative { color: #a34868; }
.metric-delta span { color: #706d81; font-weight: 600; }
.sparkline { color: var(--metric-color); position: absolute; z-index: -1; width: clamp(39px, 5vw, 82px); height: auto; right: 10px; bottom: 27px; opacity: .82; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(242px, 1fr); gap: 13px; margin: 14px 0; align-items: stretch; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 7px #24183d04; min-width: 0; }
.graph-panel { display: flex; flex-direction: column; }
.panel-heading { padding: 16px 16px 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.panel-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.compare { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #625f76; font-size: 10.5px; font-weight: 650; white-space: nowrap; padding-top: 2px; }
.compare input { position: absolute; opacity: 0; }
.switch { display: inline-block; background: #b3aec4; border-radius: 10px; width: 24px; height: 14px; position: relative; }
.switch::after { content: ""; display: block; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 2px; left: 2px; background: #fff; transition: transform .15s; }
.compare input:checked + .switch { background: #7b53eb; }
.compare input:checked + .switch::after { transform: translateX(10px); }
.compare input:focus-visible + .switch { outline: 2px solid #9f83ff; outline-offset: 3px; }
.chart { position: relative; min-width: 0; margin: auto 9px 0; touch-action: pan-y; border-radius: 7px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg text { font: 10.5px var(--body); fill: #706c83; }
.chart-gridline { stroke: #eceaf3; stroke-width: 1; }
.chart-current { fill: none; stroke: #7950eb; stroke-width: 2.5; stroke-linecap: round; }
.chart-previous { fill: none; stroke: #b9a8e7; stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linecap: round; }
#chart-cursor { stroke: #b69cee; stroke-dasharray: 3 3; }
#chart-marker { fill: #794ce9; stroke: #fff; stroke-width: 2; }
.chart-tooltip { pointer-events: none; display: grid; gap: 3px; position: absolute; transform: translateX(-50%); z-index: 2; background: #251840; color: #fff; border-radius: 8px; font-size: 11px; padding: 8px 12px; box-shadow: 0 4px 12px #20163a32; white-space: nowrap; }
.chart-tooltip small { color: #daccf0; }
.chart-legend { display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 10.5px; padding: 0 10px 13px; margin-bottom: auto; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 11px; height: 3px; border-radius: 2px; background: #7950eb; }
.chart-legend .legend-previous { height: 0; border-top: 2px dashed #aa98d2; border-radius: 0; background: none; }
.traffic-panel .icon-button { min-height: 30px; width: 30px; }
.traffic-body { display: grid; justify-items: center; gap: 11px; padding: 0 16px 14px; }
.donut { width: min(103px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 11px; display: grid; place-items: stretch; }
.donut div { display: grid; place-content: center; text-align: center; background: #fff; border-radius: 50%; }
.donut strong { font: 800 15px/1.12 var(--heading); letter-spacing: -.055em; }
.donut span { font-size: 9px; color: var(--muted); margin-top: 2px; }
.source-list { padding: 0; margin: 0; list-style: none; width: 100%; }
.source-list li { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 7px; padding: 4px 0; font-size: 11px; color: #5c5970; }
.source-list strong { color: var(--ink); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.source-dot { width: 7px; height: 7px; border-radius: 50%; }
.traffic-expanded { max-width: 730px; }
.traffic-expanded .traffic-body { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); align-items: center; gap: 28px; padding: 15px 23px 27px; }
.traffic-expanded .donut { width: min(160px, 100%); padding: 17px; }
.traffic-expanded .donut strong { font-size: 24px; }
.traffic-expanded .donut span { font-size: 11px; }
.traffic-expanded .source-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.traffic-expanded .source-list li:last-child { border: 0; }

.formats-panel { margin-bottom: 14px; }
.formats-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 15px 14px; }
.format-summary { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; --metric-color: #8759ee; }
.format-summary:nth-child(2) { --metric-color: #5785ee; }
.format-summary strong { display: block; font-size: 12px; }
.format-summary small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.format-values { margin-left: auto; text-align: right; }

.video-panel .panel-heading { align-items: center; }
.table-scroll { overflow: auto; }
table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 8px 13px; border-top: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 16px; }
th { background: #faf9fd; color: #6d697e; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
.video-title { display: flex; gap: 8px; align-items: center; padding: 0; text-align: left; border: 0; color: var(--ink); background: none; }
.video-title:hover strong { color: var(--accent-dark); }
.video-title strong { display: block; margin-bottom: 2px; font-size: 12px; }
.video-title small { color: var(--muted); }
.thumbnail { display: block; position: relative; flex: none; width: 58px; aspect-ratio: 16/9; border-radius: 5px; background-color: #3e2b66; background-image: url(video-thumbnails.png); background-size: 200% 200%; }
.thumb-0 { background-position: 0 0; }
.thumb-1 { background-position: 100% 0; }
.thumb-2 { background-position: 0 100%; }
.thumb-3 { background-position: 100% 100%; }
.thumbnail > span { position: absolute; bottom: 2px; right: 2px; color: #fff; background: #101012d9; border-radius: 2px; padding: 1px 2px; font-size: 7.5px; font-weight: 700; }
.thumb-real { background-image: none; background-color: #ece8f6; }
.thumb-real img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.format-tag { display: inline-flex; align-items: center; padding: 3px 7px; background: #f2eefb; color: #604e8e; border-radius: 5px; font-size: 10px; font-weight: 700; }
.video-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: end; }
.search-field, .filter-select { display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; min-height: 33px; color: var(--muted); }
.search-field input, .filter-select select { padding: 5px 0; border: 0; background: transparent; color: var(--ink); font-size: 11px; width: 100%; }
.search-field input { max-width: 120px; }
.empty { padding: 22px 16px; color: var(--muted); }

dialog { width: min(480px, calc(100% - 26px)); max-height: min(88dvh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 20px 100px #1d103e50; }
dialog::backdrop { background: #18132985; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 19px 19px 14px; }
.dialog-heading h2 { font-size: 23px; line-height: 1.16; letter-spacing: -.04em; }
.dialog-heading p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.dialog-body { padding: 0 19px 13px; }
.dialog-footer { display: flex; gap: 11px; justify-content: flex-end; align-items: center; padding: 12px 19px; border-top: 1px solid var(--line); }
.dialog-footer .text-button { margin-right: auto; }
.preference-list { display: grid; gap: 5px; }
.preference-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; gap: 5px; }
.preference-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.preference-row input { accent-color: var(--accent); }
.preference-row .icon-button { min-height: 27px; width: 27px; }
.form-note { font-size: 11px; color: var(--accent-dark); }
.form-note:empty { display: none; }
.connect-body { display: grid; gap: 12px; }
.connect-field { display: grid; gap: 6px; font-size: 12px; }
.connect-field input { min-width: 0; width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.connect-consent { display: flex; align-items: start; gap: 6px; font-size: 11px; color: var(--muted); }
.connect-consent input { accent-color: var(--accent); }
.connect-guide { color: var(--muted); font-size: 12px; }
.connect-guide summary { cursor: pointer; color: var(--accent-dark); font-weight: 750; }
.connect-guide ol { padding-left: 20px; margin-bottom: 0; }
.connect-guide li + li { margin-top: 5px; }
.connect-guide code { overflow-wrap: anywhere; }
.connect-note { display: flex; align-items: center; gap: 9px; border-radius: 8px; padding: 9px; color: #6544ab; background: #f4edff; font-size: 12px; }
.connect-step { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 12px; }
.connect-step > span { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: #f4edff; color: #6544ab; font-weight: 800; }
.connect-step strong { display: block; color: var(--ink); margin-bottom: 2px; }
.thumb-large { width: 100%; border-radius: 8px; }
.thumb-large > span { padding: 2px 4px; font-size: 11px; bottom: 5px; right: 5px; }
.video-details p { margin: 13px 0 7px; color: var(--muted); font-weight: 700; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.detail-grid > div { padding: 8px 6px; border: 1px solid var(--line); border-radius: 7px; }
.detail-grid span { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); }
.detail-grid strong { font: 800 16px var(--heading); display: block; margin-top: 3px; }
#toast { position: fixed; z-index: 9; bottom: 17px; right: 17px; color: #fff; background: #29203e; border-radius: 9px; padding: 9px 13px; box-shadow: 0 5px 22px #22113c36; font-weight: 700; opacity: 0; transform: translateY(7px); pointer-events: none; transition: transform .2s, opacity .2s; }
#toast.toast-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1400px) {
  .topbar { padding-inline: 35px; }
  .main { padding-inline: 35px; }
  .goal-hero { padding-inline: 23px; }
  .hero-goal { padding-inline: 13px; }
  .traffic-body { padding-top: 4px; }
}
@media (min-width: 1150px) {
  .goal-hero { grid-template-columns: minmax(230px, .83fr) minmax(0, 2fr); }
  .traffic-body { padding-top: 5px; gap: 13px; }
  .donut { width: 112px; padding: 12px; }
}
@media (max-width: 1060px) {
  .sidebar { width: 186px; padding-inline: 11px; }
  .workspace { margin-left: 186px; }
  .topbar, .main { padding-inline: 18px; }
  .goal-hero { gap: 10px; padding-inline: 12px; grid-template-columns: minmax(168px, .75fr) minmax(0, 2fr); }
  .goal-hero-metrics { gap: 6px; }
  .hero-goal { padding-inline: 7px; }
  .metric-card { padding-inline: 8px; }
  .metric-label { font-size: 11px; gap: 4px; }
}
@media (max-width: 880px) {
  .sidebar { width: 56px; padding: 17px 7px 10px; align-items: stretch; }
  .brand { margin: 0 auto 20px; }
  .brand > span:last-child, .channel-wrap div:not(.channel-avatar), .nav a span, .sidebar-foot { display: none; }
  .channel-wrap { justify-content: center; background: none; border: 0; padding: 0; margin-bottom: 13px; }
  .brand-icon { width: 36px; height: 36px; }
  .nav a, .sidebar-action { justify-content: center; padding: 0; font-size: 0; gap: 0; }
  .workspace { margin-left: 56px; }
}
@media (max-width: 680px) {
  .topbar { height: 51px; }
  .topbar, .main { padding-inline: 12px; }
  .main { padding-top: 17px; }
  .profile-bar { margin-bottom: 14px; }
  .crumb span, .crumb svg { display: none; }
  .goal-hero { grid-template-columns: 1fr; gap: 12px; }
  .hero-goal-value { flex-wrap: wrap; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .traffic-panel:not(.traffic-expanded) .traffic-body { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; }
  .video-panel .panel-heading { flex-wrap: wrap; }
  .video-filters { justify-content: start; }
}
@media (max-width: 455px) {
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: auto; padding: 5px 12px; box-shadow: 0 -4px 15px #1a10232b; }
  .sidebar .brand, .channel-wrap, .sidebar-bottom { display: none; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav a { display: grid; justify-items: center; gap: 2px; padding: 5px 2px; font-size: 9px; text-align: center; }
  .nav a span { display: block; line-height: 1; }
  .workspace { margin-left: 0; padding-bottom: 52px; }
  .profile-options button { padding-inline: 5px; gap: 4px; }
  .profile-options button svg { width: 13px; height: 13px; }
  .formats-body { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  .page-heading p { font-size: 12px; }
  .period-select { height: 34px; }
  .period-select select { font-size: 11px; }
  .period-select > svg:first-child { width: 13px; }
  .hero-goal-label { font-size: 10px; }
  .compare { white-space: normal; }
  .traffic-expanded .traffic-body { gap: 8px; padding-inline: 11px; grid-template-columns: 100px minmax(0, 1fr); }
  .traffic-expanded .donut { padding: 10px; }
  .traffic-expanded .donut strong { font-size: 16px; }
  #toast { bottom: 59px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
