@font-face {
  font-family: Nunito;
  src: url("/assets/nunito-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: optional;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Nunito;
  src: url("/assets/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: optional;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-kerning: normal;
  letter-spacing: .012em;
  line-height: 1.4;
  color: #f1f2f5;
  background: #101114;
  --glass-surface: linear-gradient(145deg, #ffffff09, transparent 62%), #202125b8;
  --glass-shadow: 0 14px 34px #07080a40, inset 0 1px #ffffff0c;
  --glass-raised: #1e2025f0;
  --control: #ffffff0b;
  --control-hover: #ffffff18;
  --control-border: #ffffff23;
  --control-border-hover: #ffffff46;
  --field: #16171cc9;
  --border: #ffffff20;
  --muted: #a9adb9;
  --accent: #9ab5ff;
  --accent-ink: #11192d;
  --focus: #c1d2ff;
  --danger: #ffb5ad;
  --radius: 19px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
label { pointer-events: none; }
label :is(input, select, textarea, button, a) { pointer-events: auto; }
button, input, select { font: inherit; letter-spacing: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
svg { display: block; width: 19px; height: 19px; flex: none; }
[data-icon]:empty { display: block; width: 19px; height: 19px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; left: 10px; top: 10px; z-index: 3; padding: 10px 14px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.app-layout, .portal-layout {
  min-height: 100dvh;
  background: radial-gradient(ellipse 62rem 26rem at 50% -8rem, #292a2e, transparent 76%), #101114;
}
.app-layout { padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px)); }
:root:has(.bottom-nav:not([hidden])) { scroll-padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px)); }
.brand-header { padding: 14px clamp(14px, 3vw, 32px) 0; }
.bottom-nav {
  position: fixed; z-index: 10; inset-inline: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 3px;
  width: max-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 6px 8px;
  border: 1px solid #ffffff24; border-radius: 999px;
  background: #1a1b20dd; backdrop-filter: blur(14px); box-shadow: 0 10px 32px #0506099e;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  max-width: 100%; font-size: 20px; font-weight: 800; letter-spacing: .006em; white-space: nowrap;
}
.brand img { display: block; flex: none; }
.brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-action {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 0; min-height: 43px; padding: 6px 10px;
  border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent;
  font-size: 12px; font-weight: 590; text-align: center;
}
.nav-action > span:not([data-icon]) { color: #fff; }
.nav-action svg, .nav-action [data-icon]:empty { width: 17px; height: 17px; }
#nav-overview { --nav-accent: #fff; }
#nav-publishers { --nav-accent: #ff6273; }
#creators-button { --nav-accent: #ff74b9; }
#nav-payments { --nav-accent: #f5c275; }
#nav-settings { --nav-accent: #72e3c1; }
.nav-action:hover,
.nav-action.is-current {
  border-color: color-mix(in srgb, var(--nav-accent) 48%, transparent);
  color: var(--nav-accent);
  background: #252932;
}
.shell {
  width: 100%; max-width: 1450px; min-width: 0; margin-inline: auto;
  padding: 17px clamp(22px, 3vw, 44px) 0;
}
#workspace:focus { outline: none; }

.search-area {
  padding: 28px clamp(18px, 4vw, 34px);
  text-align: center;
}
.search-copy h1 {
  margin: 0 0 7px; font-size: clamp(32px, 4vw, 50px); line-height: 1.12;
  letter-spacing: 0; font-weight: 800;
}
.search-copy p { margin: 0; color: #b9becb; font-size: 14px; line-height: 1.5; }

#search-form { width: min(100%, 550px); margin: 18px auto 0; }
.platforms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 0; border: 0; margin: 0 0 9px; min-width: 0;
}
.twitch { --platform-color: #d6b7ff; --platform-wash: #392956; }
.youtube { --platform-color: #ffaaa4; --platform-wash: #492c2a; }
.kick { --platform-color: #baf291; --platform-wash: #2e4024; }
.tiktok { --platform-color: #99e9e5; --platform-wash: #24403f; }
.platform { position: relative; min-width: 0; cursor: pointer; }
.platform input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.platform > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 11px;
  border-radius: 9px; border: 1px solid var(--control-border); background: var(--control); color: #d5d7df;
  font-size: 12px; font-weight: 620;
}
.platform i { color: var(--platform-color); }
.platform svg, .platform [data-icon]:empty { width: 15px; height: 15px; }
.platform:hover > span, .platform input:checked + span { background: var(--platform-wash); }
.platform input:checked + span { border-color: var(--platform-color); color: var(--platform-color); }
.platform.tiktok { --platform-color: #fff; --platform-wash: #33363e; }
.platform.tiktok input:checked + span { background: #fff; color: #191b20; }
.platform.tiktok input:checked + span i { color: inherit; }
#search-form .platform.twitch { --platform-color: #c893ff; --platform-wash: #42265f; }
#search-form .platform.youtube { --platform-color: #ff6a76; --platform-wash: #49242c; }
#search-form .platform.kick { --platform-color: #61ff86; --platform-wash: #22422d; }
#search-form .platform input:not(:checked) + span { color: var(--platform-color); }
.platform input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.search-box {
  display: flex; align-items: center; gap: 11px; padding: 5px 5px 5px 12px;
  border: 1px solid var(--control-border); border-radius: 10px; background: var(--field);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box > span { color: #aeb9cd; }
.search-box input { width: 100%; min-width: 0; padding: 7px 0; color: #f1f2f5; background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #a2a7b6; }
.primary-button, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 670;
}
.primary-button { min-height: 39px; padding: 7px 13px; background: #d6deee; color: #1d2330; font-weight: 780; }
.primary-button:hover { background: #eff2f8; }
#search-form .primary-button { background: #54b8ff; color: #101b26; }
#search-form .primary-button:hover { background: #80caff; }
.primary-button svg, .primary-button [data-icon]:empty { width: 16px; height: 16px; }
.outline-button { min-height: 33px; padding: 6px 10px; border-color: var(--control-border); background: var(--control); color: #edeef2; }
.outline-button:hover { border-color: var(--control-border-hover); background: var(--control-hover); color: #fff; }
.outline-button svg { width: 15px; height: 15px; color: #b5bdd0; }
.primary-button:disabled, .outline-button:disabled { cursor: wait; opacity: .65; }

#dashboard { min-width: 0; padding-block: 20px 35px; }
.account {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; padding: 1px 0;
}
.identity, .account-name, .account-meta { display: flex; align-items: center; }
.identity { gap: 11px; min-width: 0; }
.identity > div { min-width: 0; }
.avatar {
  display: grid; place-items: center; flex: none; width: 47px; height: 47px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--platform-color) 40%, transparent); border-radius: 13px;
  background: var(--platform-wash); color: var(--platform-color);
  font-size: 18px; font-weight: 740; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name, .account-meta { flex-wrap: wrap; gap: 4px 8px; }
.account-name h2 { margin: 0; font-size: 24px; font-weight: 780; line-height: 1.18; overflow-wrap: anywhere; }
.account-meta { margin: 5px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.platform-badge, .demo-badge, .live-badge {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 5px;
  padding: 2px 6px; font-size: 10px; line-height: 1.25; font-weight: 650; letter-spacing: .02em; white-space: nowrap;
}
.platform-badge { color: var(--platform-color); background: var(--platform-wash); }
.platform-badge svg { width: 11px; height: 11px; }
.demo-badge { color: #edeef2; border-color: var(--control-border); background: var(--control); }
.demo-badge i, .live-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.live-badge { color: #acf2ba; border-color: #4b6a42; background: #263921; }
.live-badge:hover { background: #33482c; }
.profile-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.profile-link:hover { text-decoration: underline; }
.profile-link svg { width: 12px; height: 12px; }
.period-date {
  display: inline-flex; align-items: center; flex: none; gap: 7px;
  border: 1px solid var(--control-border); border-radius: 9px; background: var(--control); color: var(--muted);
  padding: 7px 9px; font-size: 12px;
}
.period-date svg { width: 15px; height: 15px; color: #adb7ca; }
.period-date strong { color: #e9ebf3; font-weight: 640; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.panel, .kpi, .admin-metric {
  min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--glass-surface); box-shadow: var(--glass-shadow); backdrop-filter: blur(16px);
}
.panel:has(.dropdown-trigger[aria-expanded="true"]) { position: relative; z-index: 4; }
.kpi { padding: 12px 14px 13px; border-radius: 15px; }
.kpi:nth-child(1) { --metric-icon: #a6baff; }
.kpi:nth-child(2) { --metric-icon: #81d5c9; }
.kpi:nth-child(3) { --metric-icon: #c6b0ee; }
.kpi:nth-child(4) { --metric-icon: #e2b9a3; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.kpi-icon {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border: 1px solid var(--control-border); border-radius: 8px; background: var(--control); color: var(--metric-icon);
}
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-label { color: #d9dce5; font-size: 12px; font-weight: 610; }
.kpi strong {
  display: block; margin: 4px 0 3px; font-size: clamp(21px, 2.3vw, 32px);
  line-height: 1.16; font-weight: 790; letter-spacing: .014em; font-variant-numeric: tabular-nums;
}
.kpi small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 13px; margin-bottom: 13px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 15px 0; }
.panel-heading h3 { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.25; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > svg { width: 18px; height: 18px; color: #adb7ca; }
.custom-select { position: relative; display: grid; flex: 0 1 auto; min-width: 0; max-width: 100%; }
:is(.dropdown-trigger, .dropdown-option)[data-value="kick"] { --dropdown-platform: #61ff86; }
:is(.dropdown-trigger, .dropdown-option)[data-value="twitch"] { --dropdown-platform: #c893ff; }
:is(.dropdown-trigger, .dropdown-option)[data-value="youtube"] { --dropdown-platform: #ff7584; }
:is(.dropdown-trigger, .dropdown-option)[data-value="tiktok"] { --dropdown-platform: #fff; }
.dropdown-trigger, .dropdown-option {
  --dropdown-ring: color-mix(in srgb, var(--dropdown-platform) 46%, transparent);
}
:is(.dropdown-trigger, .dropdown-option):is([data-value="kick"], [data-value="twitch"], [data-value="youtube"], [data-value="tiktok"]) {
  --dropdown-fill: #15161a;
  --dropdown-highlight: #202126;
}
.dropdown-trigger, .custom-select select {
  display: inline-flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 5px 8px;
  border: 1px solid var(--control-border); border-radius: 9px; background: var(--control);
  color: #f0f0f2; font-size: 11px; font-weight: 750; text-align: left;
}
.custom-select > select {
  appearance: none; display: block; min-width: 0; padding-inline-end: 22px;
}
.custom-select > .dropdown-native { visibility: hidden; pointer-events: none; }
.dropdown-native-leading {
  position: absolute; inset-inline-start: 9px; top: 50%; transform: translateY(-50%); pointer-events: none;
}
.dropdown-native-leading > svg { width: 13px; height: 13px; color: #e3e3e6; }
.custom-select:has(> .dropdown-native-leading) > select { padding-inline-start: 27px; }
.custom-select:has(> .dropdown-native) > .dropdown-native-leading { display: none; }
.custom-select:has(> select:not(.dropdown-native))::after {
  content: ""; position: absolute; inset-inline-end: 11px; top: calc(50% - 4.5px);
  width: 6px; height: 6px; border: solid var(--native-dropdown-color, #c3c3c7); border-width: 0 1px 1px 0;
  transform: rotate(45deg); pointer-events: none;
}
.custom-select:has(> select > option[value="kick"]:checked) { --native-dropdown-color: #61ff86; }
.custom-select:has(> select > option[value="twitch"]:checked) { --native-dropdown-color: #c893ff; }
.custom-select:has(> select > option[value="youtube"]:checked) { --native-dropdown-color: #ff7584; }
.custom-select:has(> select > option[value="tiktok"]:checked) { --native-dropdown-color: #fff; }
.custom-select:has(> select > option:is([value="kick"], [value="twitch"], [value="youtube"], [value="tiktok"]):checked) > select {
  color: var(--native-dropdown-color); border-color: color-mix(in srgb, var(--native-dropdown-color) 46%, transparent); background: #15161a;
}
.dropdown-trigger {
  position: absolute; inset: 0; height: 100%; max-width: 100%;
  border-color: var(--dropdown-ring, var(--control-border)); background: var(--dropdown-fill, var(--control));
  color: var(--dropdown-platform, #f0f0f2);
}
.dropdown-trigger:hover, .dropdown-trigger[aria-expanded="true"] {
  border-color: var(--dropdown-ring, var(--control-border-hover)); background: var(--dropdown-highlight, var(--control-hover));
}
.dropdown-trigger:disabled { opacity: .65; cursor: wait; }
.dropdown-trigger[aria-invalid="true"] { border-color: var(--danger); }
.dropdown-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-leading { color: #e3e3e6; }
.dropdown-leading svg { width: 13px; height: 13px; }
.dropdown-arrow {
  flex: none; width: 6px; height: 6px; margin: -3px 2px 0 auto;
  border: solid var(--dropdown-platform, #c3c3c7); border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.dropdown-trigger[aria-expanded="true"] .dropdown-arrow { margin-top: 3px; transform: rotate(225deg); }
.dropdown-options {
  position: absolute; inset-inline-start: 0; top: calc(100% + 5px); z-index: 3;
  min-width: max(100%, 152px); display: grid; gap: 2px; padding: 4px;
  max-width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--control-border-hover); border-radius: 10px;
  background: var(--glass-raised); box-shadow: 0 9px 24px #09090ca8; backdrop-filter: blur(16px);
}
.dropdown-options-floating {
  position: fixed; inset: auto; margin: 0;
  max-height: calc(100dvh - 65px);
}
.custom-select.opens-up .dropdown-options { top: auto; bottom: calc(100% + 5px); }
.custom-select.align-end .dropdown-options { inset-inline-start: auto; inset-inline-end: 0; }
.dropdown-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 31px;
  padding: 5px 7px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--dropdown-platform, #e4e4e7); text-align: left; font-size: 12px; overflow-wrap: anywhere;
}
.dropdown-option[aria-selected="true"] {
  border-color: var(--dropdown-ring, transparent); background: var(--dropdown-highlight, #35363b);
  color: var(--dropdown-platform, #fff); font-weight: 800;
}
.dropdown-option:hover, .dropdown-option:focus-visible {
  border-color: var(--dropdown-ring, #727378); background: var(--dropdown-highlight, #3b3c40);
}
.dropdown-trigger:focus-visible, .dropdown-option:focus-visible { outline-color: #e4e5e8; }
.dropdown-option:focus-visible { outline-offset: -1px; }
.dropdown-option::after {
  content: ""; flex: none; width: 6px; height: 10px; margin-right: 3px; visibility: hidden;
  border: solid var(--dropdown-platform, #f0f0f2); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dropdown-option[aria-selected="true"]::after { visibility: visible; }
.management-form .dropdown-trigger { min-height: 39px; font-size: 14px; }
.trend-panel { display: flex; flex-direction: column; }
.plot {
  --trend-left: 47px; --trend-right: 12px; --trend-top: 12px; --trend-bottom: 25px;
  position: relative; flex: 1; min-height: 167px; margin: 8px 11px 8px 8px;
  container-type: inline-size;
}
.trend-graph {
  position: absolute; inset: var(--trend-top) var(--trend-right) var(--trend-bottom) var(--trend-left);
  width: calc(100% - var(--trend-left) - var(--trend-right)); height: calc(100% - var(--trend-top) - var(--trend-bottom));
  overflow: visible; color: var(--accent);
}
.trend-grid line, .trend-line, .trend-points path { vector-effect: non-scaling-stroke; }
.trend-grid line { stroke: #363941; stroke-dasharray: 3 4; }
.trend-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.trend-points path { stroke: currentColor; stroke-width: 6.8; stroke-linecap: round; }
.trend-points-dense path { stroke-width: 4; }
.trend-points path.is-hovered { stroke: #fff; stroke-width: 10; }
.trend-scale, .trend-dates {
  position: absolute; display: flex; justify-content: space-between; pointer-events: none;
  color: #a9aebc; font-size: 10px; line-height: 1; white-space: nowrap;
}
.trend-scale {
  inset: calc(var(--trend-top) - 5px) auto calc(var(--trend-bottom) - 5px) 0;
  width: calc(var(--trend-left) - 8px); flex-direction: column; text-align: end;
}
.trend-dates { inset: auto var(--trend-right) 3px var(--trend-left); }
.trend-tooltip {
  position: absolute; padding: 4px 8px; border-radius: 5px; pointer-events: none; white-space: nowrap;
  color: white; background: #303a53; font-size: 11px;
}
@container (max-width: 460px) {
  .trend-dates span:nth-child(even) { display: none; }
}
.latest-panel { display: flex; flex-direction: column; }
.latest-cover {
  position: relative; display: grid; place-items: center; height: 112px; overflow: hidden;
  margin: 10px 13px 0; border-radius: 10px; color: #9ca8bf;
  background: radial-gradient(ellipse at 60% 0, #363d4b, #272b34 71%);
}
.latest-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.latest-cover > svg { width: 33px; height: 33px; }
.with-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #1012188f); }
.cover-duration {
  position: absolute; z-index: 1; bottom: 7px; right: 7px; padding: 4px 6px; border-radius: 5px;
  background: #14161de8; color: #f1f2f5; font-size: 10px; font-weight: 700;
}
.on-air { background: #95292e; color: #fff; }
.latest-copy { padding: 9px 14px 12px; }
.latest-title, .row-title {
  border: 0; background: none; color: #edf0f5; text-align: left; padding: 0; font-size: 13px; font-weight: 670;
}
.latest-title { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 5px; font-size: 14px; }
.latest-title svg { width: 14px; height: 14px; color: var(--accent); }
.latest-title:hover, .row-title:hover { color: var(--accent); }
.latest-copy p { color: var(--muted); margin: 3px 0 8px; font-size: 11px; }
.latest-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 7px; border-top: 1px solid var(--border); }
.latest-stats small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.latest-stats strong { font-size: 15px; }
.panel-empty { padding: 30px 16px; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; }
.chart-empty svg { color: var(--accent); }

.history .panel-heading { padding-bottom: 13px; }
.table-scroll { overflow-x: auto; border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.mobile-label { display: none; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: 13px; }
thead { background: #ffffff0d; color: #dbdde4; }
thead th { font-size: 11px; font-weight: 670; }
td, th { padding: 9px 11px; border-top: 1px solid var(--border); }
td { color: #d9dce6; font-variant-numeric: tabular-nums; }
th:first-child { padding-left: 15px; }
tbody th { width: 39%; white-space: normal; }
tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
tbody tr:hover { background: #ffffff09; }
.record-cell { display: flex; align-items: center; gap: 8px; }
.record-cell > div { min-width: 0; }
.record-icon {
  display: grid; place-items: center; flex: none; width: 27px; height: 27px;
  border: 1px solid var(--control-border); border-radius: 6px; background: var(--control); color: #b7c3d7;
}
.record-icon svg { width: 14px; height: 14px; }
.record-column-label { display: inline-flex; align-items: center; gap: 5px; }
.record-column-label svg { width: 14px; height: 14px; }
.history thead th:nth-child(1) svg { color: #c680ff; }
.history thead th:nth-child(2) svg { color: #3ee6df; }
.history thead th:nth-child(3) svg { color: #ff9f4e; }
.history thead th:nth-child(4) svg { color: #74aaff; }
.history thead th:nth-child(5) svg { color: #00f0aa; }
.record-icon.twitch { color: #c893ff; }
.record-icon.youtube { color: #ff6a76; }
.record-icon.kick { color: #61ff86; }
.record-icon.tiktok { color: #fff; }
.icon-button {
  display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--control); color: #dfe4ef;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.row-button { width: 25px; height: 25px; }
.row-button svg { width: 13px; height: 13px; }

.archive-panel { margin-bottom: 13px; }
.panel-grid > .archive-panel { margin-bottom: 0; }
.archive-copy { padding: 0 15px 15px; }
.archive-copy p { margin: 8px 0 11px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.archive-copy p strong { color: var(--accent); }
.archive-copy .tracker-error { color: var(--danger); }
.archive-links, .recovery { display: flex; flex-wrap: wrap; gap: 8px; }
.tracker-external { margin-top: 9px; }
.data-note { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bottom-note { margin: 10px 0 0; }
.message { margin-top: 13px; padding: 11px 13px; border: 1px solid #6a4d38; border-radius: 10px; background: #33271c; color: #ffe3b8; font-size: 13px; }
.recovery { padding: 14px; }

dialog {
  width: min(525px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 19px;
  border: 1px solid #ffffff2a; border-radius: var(--radius); background: var(--glass-raised); color: #f1f2f5;
  box-shadow: 0 30px 80px #08090de6, inset 0 1px #ffffff0c; backdrop-filter: blur(16px);
}
dialog::backdrop { background: #08090cba; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 24px; font-weight: 800; line-height: 1.24; margin: 0; }
.dialog-heading button { flex: none; }
#dialog-body p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.management-list { list-style: none; margin: 0; padding: 0; }
dialog.stream-detail-dialog {
  width: min(680px, calc(100% - 28px)); padding: 0;
}
.stream-detail-dialog .dialog-heading {
  position: sticky; top: 0; z-index: 1; align-items: center;
  margin: 0; padding: 13px 16px 10px; background: var(--glass-raised); backdrop-filter: blur(16px);
}
.stream-detail-dialog .dialog-heading h2 { font-size: clamp(19px, 4vw, 26px); overflow-wrap: anywhere; }
.stream-detail-dialog #dialog-body { padding: 0 16px 15px; }
.stream-detail-media { max-width: 540px; margin: 0 auto 10px; overflow: hidden; border: 1px solid #ffffff18; border-radius: 12px; background: #15171b; }
.detail-cover { display: block; width: 100%; max-height: min(236px, 34dvh); aspect-ratio: 16 / 9; object-fit: cover; }
.stream-detail-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.stream-detail-meta:empty { display: none; }
.stream-detail-meta > span {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 4px 6px; border: 1px solid #ffffff19; border-radius: 6px;
  background: #ffffff08; color: #cdd1db; font-size: 11px; overflow-wrap: anywhere;
}
.stream-detail-meta svg { width: 13px; height: 13px; color: #a9b1c1; }
.stream-detail-meta .live-badge { background: #00ec9115; border-color: #00ec9150; color: #56edaa; }
.stream-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stream-detail-metric { min-width: 0; padding: 9px 10px; border: 1px solid var(--control-border); border-radius: 9px; background: var(--control); }
.stream-detail-metric dt { display: flex; align-items: center; gap: 5px; color: #b9becb; font-size: 11px; }
.stream-detail-metric dt svg { width: 17px; height: 17px; }
.stream-detail-metric:nth-child(1) svg { color: #ff9f4e; }
.stream-detail-metric:nth-child(2) svg { color: #3cc5ff; }
.stream-detail-metric:nth-child(3) svg { color: #c680ff; }
.stream-detail-metric:nth-child(4) svg { color: #00f0aa; }
.stream-detail-metric dd {
  margin: 4px 0 0; color: #f4f5f8; font-size: 20px; font-weight: 820;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.stream-detail-footer {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: 9px; margin-top: 9px; border-top: 1px solid #ffffff1a;
}
.stream-detail-footer small { margin-inline-end: auto; color: var(--muted); font-size: 11px; }
@media (max-width: 540px) {
  .stream-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#creators-address { margin: 9px 0 0; }
.management-form { display: grid; gap: 7px; margin: 9px 0 0; }
.management-form label { color: #e1e4ed; font-size: 12px; font-weight: 650; }
.management-form input, .management-form select {
  width: 100%; min-width: 0; border: 1px solid var(--control-border); border-radius: 9px; padding: 9px 10px;
  background: var(--field); color: #f1f2f5; outline: none;
}
.management-form input::placeholder { color: #a2a7b6; }
.management-form input:focus, .management-form select:focus { border-color: var(--accent); }
.management-form input[aria-invalid="true"] { border-color: var(--danger); }
.management-form > button[type="submit"] { justify-self: start; }
.form-feedback { margin: 0; font-size: 13px; line-height: 1.45; }
.form-feedback.error, #dialog-body .form-feedback.error { color: var(--danger); }
.form-feedback.success { color: #c8efa5; }
.management-links { display: flex; gap: 6px; }
.management-list { margin-top: 8px; }
.management-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.management-list strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.management-list small { color: var(--muted); }
.management-list button { flex: none; }
.page-actions, .page-accounts { display: flex; flex-wrap: wrap; gap: 5px; }
.page-actions .outline-button, .page-accounts .outline-button { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.page-accounts { margin-top: 5px; }
.page-status { display: inline-flex; align-items: center; gap: 4px; }
.page-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.page-status.active { color: #c3ed8f; }

.portal-layout { display: grid; align-items: start; }
.invite-shell {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  width: min(100% - 32px, 480px); margin: clamp(28px, 11vh, 90px) auto 28px;
}
.invite-brand { margin: 0 0 5px 3px; }
.invite-card { padding: clamp(19px, 5vw, 26px); }
.invite-overview h1 { margin: 0 0 5px; font-size: clamp(25px, 4vw, 31px); font-weight: 820; line-height: 1.2; }
.invite-overview p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.invite-panel { margin-top: 20px; }
.invite-panel .management-form { gap: 8px; margin: 0; }
.invite-content-type { display: grid; gap: 8px; }
.invite-panel :is(input, select, .dropdown-trigger) { min-height: 41px; }
.invite-panel .management-form > .primary-button {
  justify-self: stretch; min-height: 42px; margin-top: 3px;
  border-color: #b8f9e6; background: linear-gradient(105deg, #8ce9cd, #b0f2de); color: #10251f; font-weight: 780;
}
.invite-panel .primary-button:hover:not(:disabled) { background: #b8f7e5; }
.invite-accounts { padding: 14px clamp(19px, 5vw, 26px); }
#join-accounts-heading { margin: 0; font-size: 16px; font-weight: 780; }
.invite-accounts .outline-button { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.linked-account-info { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

@media (max-width: 690px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 2px;
    width: min(440px, calc(100% - 20px)); max-width: none; padding: 5px 6px;
  }
  [data-role="observer"] .bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-header .brand img { width: 32px; height: 32px; }
  .nav-action {
    flex-direction: column; justify-content: center; gap: 3px;
    padding: 5px 2px; font-size: clamp(10px, 2.7vw, 11px); line-height: 1.2;
  }
  .shell { padding-inline: 14px; }
  .search-area { padding: 18px 13px; }
  .search-copy p { font-size: 13px; max-width: 310px; margin-inline: auto; }
  #search-form { margin-top: 14px; }
  .period-date > span:not([data-icon]) { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .latest-cover { height: clamp(135px, 31vw, 205px); }
  .plot { min-height: 185px; }
}

@media (max-width: 760px) {
  .history table, .history tbody { display: block; }
  .history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .history tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) 1fr 1fr auto; gap: 6px;
    padding: 9px 12px; border-top: 1px solid var(--border);
  }
  .history tbody :is(th, td) { border: 0; padding: 0; min-width: 0; }
  .history tbody th:first-child { width: auto; grid-column: span 2; padding: 0; }
  .history tbody td:nth-child(2) { padding-top: 2px; color: var(--muted); font-size: 11px; text-align: right; white-space: normal; }
  .history tbody td:last-child { grid-column: 4; grid-row: 1; }
  .record-icon { display: none; }
  .mobile-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
}

@media (max-width: 430px) {
  .nav-action svg, .nav-action [data-icon]:empty { width: 15px; height: 15px; }
  .platforms { gap: 4px; }
  .platform > span { padding: 7px 6px; gap: 3px; font-size: 11px; }
  .platform svg, .platform [data-icon]:empty { width: 13px; height: 13px; }
  .search-box { gap: 7px; padding-left: 7px; }
  .search-box input, .management-form input, .management-form select { font-size: 16px; }
  .primary-button { padding-inline: 8px; font-size: 12px; }
  .primary-button svg, .primary-button [data-icon]:empty { width: 14px; height: 14px; }
  .account-name h2 { font-size: 19px; }
  .avatar { width: 38px; height: 38px; font-size: 15px; }
  .identity { gap: 7px; }
  .kpi { padding: 10px; }
  .kpi-icon { width: 24px; height: 24px; }
  .kpi-icon svg { width: 13px; height: 13px; }
  dialog { padding: 13px; }
}

.payment-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; margin: 10px 0 14px;
}
#payment-panel .payment-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.payment-heading .period-date [data-icon]:empty { width: 15px; height: 15px; }
.payment-table-scroll { scrollbar-width: thin; }
.payment-table-scroll:focus-visible { outline-offset: -2px; }
.payment-table { display: table; min-width: 1120px; table-layout: fixed; background: #101114; }
.payment-table thead { position: static; width: auto; height: auto; clip-path: none; overflow: visible; background: #1a1b1f; }
.payment-table tbody { display: table-row-group; }
.payment-table tbody tr { display: table-row; border: 0; padding: 0; }
.payment-table :is(th, td) { padding: 10px 12px; border-top: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.payment-table :is(th, td):last-child { border-inline-end: 0; }
.payment-table thead th {
  border-top: 0; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; overflow-wrap: anywhere; color: #fff;
}
.payment-table tbody :is(th, td) {
  padding: 4px 9px; line-height: 1.35; vertical-align: middle;
  white-space: normal; overflow-wrap: anywhere; color: #fff;
}
.payment-table th:first-child { width: 136px; padding-inline-start: 16px; }
.payment-table tbody .payment-number { text-align: end; }
.payment-table [data-cell="2"] { padding-block: 2px; }
.payment-platform-select :is(select, .dropdown-trigger) {
  min-height: 24px; padding: 2px 6px; border-radius: 5px; line-height: 1.2;
}
.payment-platform-select > select { padding-inline-end: 19px; }
.payment-platform-select :is(.dropdown-trigger, .dropdown-option) { color: var(--dropdown-platform, #fff); }
.payment-table .payment-status-cell { text-align: center; vertical-align: middle; }
.payment-checkbox {
  appearance: none; display: grid; place-items: center;
  width: 19px; height: 19px; margin: 0 auto; border: 1px solid #788b84;
  border-radius: 4px; background: #151b19; color: #14251f; cursor: pointer;
}
.payment-checkbox:checked { border-color: #8ce9cd; background: #8ce9cd; }
.payment-checkbox:checked::before {
  content: ""; width: 9px; height: 5px; border: solid currentColor;
  border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg);
}
.payment-checkbox:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.payment-empty { margin: 0; }
.payment-scroll-hint { display: none; }
.payment-controls {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
}
.payment-controls .outline-button { min-height: 28px; padding: 4px 8px; font-size: 11px; }
#payment-save-status { color: var(--muted); font-size: 12px; }
#payment-save-status.error { color: var(--danger); }
.payment-table [data-cell] {
  cursor: cell; white-space: pre-wrap;
}
.payment-table [data-payment-auto] { cursor: default; }
.payment-note-value:not(:empty) { display: block; }
.payment-note-value:not(:empty) + .payment-bot-note { margin-top: 3px; }
.payment-bot-note {
  display: inline-block; padding: 1px 5px; border-radius: 4px;
  background: #472c17; color: #ffcd8b; font-size: 11px; font-weight: 800;
}
.payment-table [data-cell]:focus, .payment-table [data-cell]:has(.payment-cell-input) {
  outline: 2px solid #f5c275; outline-offset: -2px; background: #f5c27512;
}
.payment-cell-input {
  display: block; width: 100%; min-width: 0; height: 1lh;
  border: 0; padding: 0; resize: none; overflow: hidden; outline: none;
  background: transparent; color: #fff; font: inherit; letter-spacing: inherit; text-align: inherit;
}

@media (max-width: 1100px) {
  .nav-action { min-block-size: 44px; }
  #search-form .primary-button, #dashboard .outline-button { min-block-size: 44px; }
  #search-form .platform > span { min-block-size: 40px; }
  .search-box input { font-size: 16px; }
  #dashboard .custom-select :is(select, .dropdown-trigger) { min-block-size: 42px; }
  .dropdown-option { min-block-size: 40px; }
  .invite-panel input { font-size: 16px; }
  .invite-panel .primary-button, .invite-accounts .outline-button { min-height: 44px; }
  :is(.history, dialog) .icon-button { width: 40px; height: 40px; }
  .payment-scroll-hint { display: block; padding: 7px 12px; margin: 0; color: var(--muted); font-size: 12px; }
  .payment-scroll-hint span { display: none; }
  .payment-controls .outline-button, .payment-table tbody :is(th, td) { height: 44px; }
  .payment-table-scroll { scroll-padding-inline-start: 116px; }
  .payment-table th:first-child { width: 116px; }
  .payment-table :is(thead th:first-child, tbody th[scope="row"]) {
    position: sticky; inset-inline-start: 0; z-index: 1; background: #1a1b1f;
    box-shadow: 1px 0 var(--border);
  }
  .payment-platform-select :is(select, .dropdown-trigger) { min-block-size: 38px; }
  .payment-checkbox { width: 22px; height: 22px; }
  .payment-cell-input { font-size: 16px; }
}

@media (max-width: 690px) {
  .nav-action { min-block-size: 48px; }
}

@media (pointer: coarse) and (max-width: 1100px) {
  .payment-scroll-hint span { display: inline; }
}

