:root {
  color-scheme: dark;
  --background: #07100f;
  --site-background-image: url('/backgrounds/background-01.webp?v=2.7.10');
  --surface: rgba(8, 15, 17, 0.78);
  --surface-raised: rgba(17, 26, 28, 0.8);
  --surface-soft: rgba(22, 33, 35, 0.8);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f6f8f7;
  --muted: #919aa4;
  --subtle: #68717a;
  --accent: #b9ff46;
  --accent-rgb: 185, 255, 70;
  --accent-strong: #d3ff8c;
  --accent-dark: #101b08;
  --danger: #ff6578;
  --cyan: #3fe8d5;
  --cyan-rgb: 63, 232, 213;
  --radius-large: 24px;
  --radius-medium: 17px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: var(--background);
}

body {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: transparent;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

body * {
  -webkit-user-select: none;
  user-select: none;
}

:is(input, textarea, [contenteditable="true"], [contenteditable="true"] *, [data-allow-text-selection], [data-allow-text-selection] *) {
  -webkit-user-select: text;
  user-select: text;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
    overflow-y: visible;
  }
}

html::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: strict;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 10, 0.78) 0%,
      rgba(4, 11, 12, 0.61) 38%,
      rgba(5, 13, 13, 0.24) 72%,
      rgba(4, 9, 10, 0.38) 100%
    ),
    linear-gradient(180deg, rgba(3, 8, 9, 0.12), rgba(3, 8, 9, 0.55)),
    var(--site-background-image) 70% center / cover no-repeat,
    var(--background);
  content: "";
}

html.account-history-page-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.contact-author-page-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.site-feedback-page-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.home-live-trend-page-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

body:is(
  .account-history-page-locked,
  .contact-author-page-locked,
  .site-feedback-page-locked,
  .home-live-trend-page-locked,
  .home-daily-timeline-page-locked
) {
  max-width: none;
}

body.account-history-page-locked {
  position: fixed;
  top: var(--account-history-page-scroll-offset, 0);
  right: 0;
  left: 0;
  width: var(--customer-dialog-layout-width, 100%);
  overflow: hidden;
}

body.contact-author-page-locked {
  position: fixed;
  top: var(--contact-author-page-scroll-offset, 0);
  right: 0;
  left: 0;
  width: var(--customer-dialog-layout-width, 100%);
  overflow: hidden;
}

body.site-feedback-page-locked {
  position: fixed;
  top: var(--site-feedback-page-scroll-offset, 0);
  right: 0;
  left: 0;
  width: var(--customer-dialog-layout-width, 100%);
  overflow: hidden;
}

body.home-live-trend-page-locked {
  position: fixed;
  top: var(--home-live-trend-page-scroll-offset, 0);
  right: 0;
  left: 0;
  width: var(--customer-dialog-layout-width, 100%);
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button,
.page-header,
.brand,
.nav-item,
.account-sort-control,
.live-priority-toggle,
.profile-link {
  -webkit-user-select: none;
  user-select: none;
}

.mobile-menu-button,
.sidebar-backdrop,
.sidebar-close {
  display: none;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 196px minmax(0, 1fr);
  animation: customer-page-enter 380ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes customer-page-enter {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 196px;
  height: auto;
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--border);
  background: rgba(9, 12, 14, 0.9);
  backdrop-filter: blur(6px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

nav {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-item-button {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-item.active,
.nav-item[aria-current="page"] {
  border-color: transparent;
  color: #64d2ff;
  background: transparent;
  box-shadow: none;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(194, 205, 207, 0.36);
}

.nav-item.active .nav-dot,
.nav-item[aria-current="page"] .nav-dot {
  background: #0a84ff;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.72);
}

.account-analysis-dialog {
  width: min(420px, calc(100vw - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 22px;
  color: var(--text);
  background: rgba(8, 14, 16, 0.99);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.account-analysis-dialog::backdrop {
  background: rgba(1, 4, 5, 0.9);
  backdrop-filter: none;
}

.account-analysis-dialog:not([open]) {
  display: none;
}

.account-analysis-dialog-card {
  display: grid;
  justify-items: center;
  padding: 30px 26px 25px;
  text-align: center;
}

.account-analysis-dialog-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 18px;
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.08);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.account-analysis-dialog-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.account-analysis-dialog-card .eyebrow {
  margin: 0 0 7px;
}

.account-analysis-dialog-card h2 {
  margin: 0;
  font-size: 24px;
}

.account-analysis-dialog-card > p:last-of-type {
  max-width: 310px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.account-analysis-dialog-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 13px;
  color: var(--accent-dark);
  background: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.account-analysis-dialog-card button:hover {
  background: var(--accent-strong);
}

.account-analysis-dialog-card button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.22);
  outline-offset: 3px;
}

html.account-analysis-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.account-analysis-dialog-open {
  position: fixed;
  top: calc(-1 * var(--account-analysis-scroll-y, 0px));
  right: 0;
  left: 0;
  width: var(--account-analysis-layout-width, 100%);
  overflow: hidden;
  overscroll-behavior: none;
}


.main-content {
  grid-column: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 38px clamp(22px, 3.5vw, 52px) 54px;
}

.home-page .main-content {
  max-width: 1920px;
}

.page-header,
.section-heading,
.dialog-header,
.dialog-actions,
.account-card-header,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer.is-three-action > :first-child {
  grid-column: 2;
}

.page-header {
  align-items: flex-end;
  gap: 24px;
}

.page-title-copy {
  min-width: 0;
}

.page-header-utility-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.page-header-contact-button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 12px;
  color: var(--accent-strong);
  background: rgba(11, 22, 19, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-header-contact-button[hidden] {
  display: none;
}

.page-header-contact-button > span {
  display: inline-grid;
  min-width: 32px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.page-header-contact-button > span svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.page-header-contact-button:hover,
.page-header-contact-button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: rgba(24, 39, 22, 0.92);
  transform: translateY(-1px);
}

.page-header-contact-button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.38);
  outline-offset: 3px;
}

.page-header-contact-button.is-unavailable {
  color: rgba(var(--accent-rgb), 0.72);
}

.page-header-feedback-button {
  border-color: rgba(var(--cyan-rgb), 0.24);
  color: #91f7eb;
}

.page-header-feedback-button > span {
  color: #061817;
  background: var(--cyan);
}

.page-header-feedback-button:hover,
.page-header-feedback-button:focus-visible {
  border-color: rgba(var(--cyan-rgb), 0.5);
  background: rgba(12, 39, 37, 0.9);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.profile-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.profile-link:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.summary-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.summary-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.summary-card-accent {
  border-color: rgba(var(--accent-rgb), 0.2);
  background:
    radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.15), transparent 55%),
    linear-gradient(145deg, rgba(25, 32, 21, 0.78), var(--surface));
}

.summary-card-live {
  border-color: rgba(255, 78, 101, 0.18);
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 78, 101, 0.12), transparent 55%),
    linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.summary-card-live .summary-label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff4e65;
  box-shadow: 0 0 10px rgba(255, 78, 101, 0.7);
  content: "";
  vertical-align: 1px;
}

.summary-label,
.summary-hint {
  display: block;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.summary-hint {
  color: var(--subtle);
  font-size: 11px;
}

.account-section {
  margin-top: 14px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  min-width: 0;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading > * {
  min-width: 0;
}

.section-heading h2,
.dialog-header h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-heading h2 span {
  margin-left: 5px;
  color: var(--subtle);
  font-size: 13px;
}

.section-tools {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 15px;
}

.account-search-control {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.account-search-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.account-search-input {
  width: 100%;
  min-height: 34px;
  padding: 0 52px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--surface-raised);
  font: inherit;
  font-size: 11px;
}

.account-search-input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.account-search-clear {
  position: absolute;
  right: 5px;
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 9px;
}

.account-search-submit {
  min-width: 72px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 10px;
  color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.12);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-search-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 9px 22px rgba(var(--accent-rgb), 0.2);
}

.account-search-submit:active {
  transform: translateY(1px);
}

.account-search-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.live-control-group {
  display: inline-grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 1fr) max-content;
  align-items: center;
  gap: 12px;
}

.account-sort-control {
  display: grid;
  min-width: 0;
  grid-template-columns: max-content minmax(154px, 1fr);
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  user-select: none;
}

.account-sort-control > .glass-select-shell {
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .account-section .section-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .account-section .section-tools {
    width: 100%;
    justify-self: stretch;
  }

  .account-section .live-control-group {
    width: min(100%, 410px);
  }
}

.account-sort-control > span {
  white-space: nowrap;
}

.card-footer .profile-link:hover {
  transform: none;
}

.account-sort-select {
  min-width: 154px;
  min-height: 34px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background-color: var(--surface-raised);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  touch-action: manipulation;
}

.account-sort-select:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
}

.account-sort-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.live-priority-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.live-priority-toggle > span:last-child {
  white-space: nowrap;
}

.live-priority-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 34px;
  height: 19px;
  flex: 0 0 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1a2024;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 120ms cubic-bezier(0.2, 0.78, 0.2, 1),
    box-shadow 160ms ease;
}

.live-priority-toggle:active .toggle-track {
  transform: scale(0.96);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
}

.toggle-track > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--subtle);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.live-priority-toggle input:checked + .toggle-track {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.14);
}

.live-priority-toggle input:checked + .toggle-track > span {
  background: var(--accent);
  transform: translateX(15px);
}

.live-priority-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.account-grid {
  --account-virtual-row-height: 104px;
  --account-virtual-compact-row-height: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow-anchor: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background-clip: padding-box;
  background: var(--surface);
}

.account-list-spacer {
  width: 100%;
  min-height: 0;
  pointer-events: none;
  contain: layout paint style;
  overflow-anchor: none;
}

.account-grid > .account-card {
  overflow-anchor: none;
}

.account-grid:empty {
  display: none;
}

.account-page-status {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  overflow-anchor: none;
}

.account-page-status[data-loading="true"]::before {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid rgba(var(--accent-rgb), 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  content: "";
}

.account-page-status[data-state="error"] {
  color: #ffc263;
}

.account-page-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
  overflow-anchor: none;
}

.account-card {
  display: grid;
  height: 104px;
  min-height: 104px;
  min-width: 0;
  grid-template-areas: "identity profile insights actions";
  grid-template-columns:
    320px
    minmax(260px, 1fr)
    minmax(440px, 480px)
    282px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background 160ms ease;
}

.account-card.is-compact {
  height: 80px;
  min-height: 80px;
  grid-template-areas: "identity profile actions";
  grid-template-columns: 320px minmax(260px, 1fr) 282px;
}

.account-card.is-live {
  --account-card-density: full;
}

body.home-dialog-paint-guard .account-card {
  content-visibility: visible !important;
}

body.home-dialog-paint-guard .avatar-shell::before,
body.home-dialog-paint-guard .avatar-shell::after {
  animation: none !important;
  will-change: auto !important;
}

.account-card.is-compact .account-live-insights {
  display: none;
}

.account-card.is-compact .card-footer {
  width: 190px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-card:last-child {
  border-bottom: 0;
}

.account-card.is-last-account {
  border-bottom: 0;
}

.account-card[data-virtual-index="0"] {
  border-radius: calc(var(--radius-medium) - 1px)
    calc(var(--radius-medium) - 1px) 0 0;
}

.account-card.is-last-account {
  border-radius: 0 0 calc(var(--radius-medium) - 1px)
    calc(var(--radius-medium) - 1px);
}

.account-card[data-virtual-index="0"].is-last-account {
  border-radius: calc(var(--radius-medium) - 1px);
}

.account-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.account-card:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.72);
  outline-offset: -3px;
  background: rgba(var(--accent-rgb), 0.045);
}

.account-card.is-reordering {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.account-card-header {
  grid-area: identity;
  min-width: 0;
  justify-content: flex-start;
  gap: 11px;
}

.account-sequence {
  display: grid;
  width: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: rgba(214, 224, 226, 0.64);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.avatar-shell {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}

.avatar-shell.is-live::before {
  position: absolute;
  inset: 0;
  border: 2px solid #ff4e65;
  border-radius: 50%;
  content: "";
  opacity: 0.82;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
}

body:not(.page-hidden)
  .avatar-shell.is-live.is-in-viewport::before {
  animation: live-ring-pulse 2.2s ease-in-out infinite;
  will-change: transform, opacity;
}

body.page-hidden .avatar-shell.is-live::before,
.avatar-shell.is-live:not(.is-in-viewport)::before {
  animation: none;
  will-change: auto;
}

.avatar-shell.is-live:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: 5px;
}

.avatar {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--accent-dark);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  font-size: 18px;
  font-weight: 900;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  right: -9px;
  bottom: -5px;
  z-index: 2;
  display: none;
  min-width: 38px;
  padding: 4px 6px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff3553, #ff6c7d);
  box-shadow: 0 6px 18px rgba(255, 53, 83, 0.34);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.avatar-shell.is-live .live-badge {
  display: block;
}

.live-rank-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 3;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 3px 4px rgba(0, 0, 0, 0.46);
}

.live-rank-badge[hidden] {
  display: none;
}

.avatar-shell.live-rank-1 {
  --rank-flame-a: #ffd75a;
  --rank-flame-b: #ff3d28;
  --rank-flame-c: #ff8a1f;
}

.avatar-shell.live-rank-2 {
  --rank-flame-a: #c875ff;
  --rank-flame-b: #ff7426;
  --rank-flame-c: #ffbb4d;
}

.avatar-shell.live-rank-3 {
  --rank-flame-a: #8eeaff;
  --rank-flame-b: #168cff;
  --rank-flame-c: #54cfff;
}

.avatar-shell[class*="live-rank-"]::before {
  inset: -2px;
  border: 0;
  background: conic-gradient(
    from 0deg,
    var(--rank-flame-a),
    var(--rank-flame-b) 24%,
    transparent 30%,
    var(--rank-flame-c) 45%,
    var(--rank-flame-b) 69%,
    transparent 75%,
    var(--rank-flame-a)
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rank-flame-a) 45%, transparent),
    0 0 12px color-mix(in srgb, var(--rank-flame-b) 34%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 65%);
  mask: radial-gradient(circle, transparent 62%, #000 65%);
}

body:not(.page-hidden)
  .avatar-shell.is-live.is-in-viewport[class*="live-rank-"]::before {
  animation: live-rank-flame 3.4s linear infinite;
}

body.page-hidden .avatar-shell[class*="live-rank-"]::before,
.avatar-shell[class*="live-rank-"]:not(.is-in-viewport)::before {
  animation: none;
  will-change: auto;
}

@keyframes live-rank-flame {
  to {
    transform: rotate(1turn);
  }
}

@keyframes live-ring-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.08);
  }
}

.account-identity {
  min-width: 0;
  flex: 1;
}

.account-name-row {
  min-width: 0;
  margin-bottom: 4px;
}

.account-status-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.account-identity h3,
.account-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-viewer-count {
  display: inline-flex;
  min-height: 25px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(232, 126, 143, 0.4);
  border-radius: 999px;
  color: #f4cbd1;
  background: rgba(73, 29, 39, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.live-viewer-count[hidden] {
  display: none !important;
}

.account-id {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-meta {
  display: grid;
  min-width: 0;
  grid-area: profile;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.account-live-state {
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-live-state.live-state-live {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(214, 164, 99, 0.34);
  border-radius: 999px;
  color: #ead2ae;
  background: rgba(66, 47, 25, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.014);
  font-weight: 900;
  line-height: 1;
}

.account-live-state.live-state-offline,
.account-live-state.live-state-checking,
.account-live-state.live-state-unknown {
  color: var(--subtle);
}

.account-live-insights {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-area: insights;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(90px, 1.28fr);
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(116, 230, 215, 0.13);
  border-radius: 12px;
  color: rgba(215, 229, 231, 0.76);
  background: rgba(4, 14, 15, 0.5);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
}

.account-live-insights[hidden] {
  display: none;
}

.account-live-insight-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 3px;
  padding: 2px 7px;
  border-left: 1px solid rgba(116, 230, 215, 0.12);
}

.account-live-insight-row:first-child {
  border-left: 0;
}

.account-live-insight-label,
.account-live-insight-value {
  min-width: 0;
}

.account-live-insight-label {
  overflow: hidden;
  color: rgba(195, 210, 213, 0.64);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-live-previous-average .account-live-insight-label {
  font-size: 10px;
  letter-spacing: -0.015em;
}

.account-live-insight-value {
  overflow: hidden;
  color: rgba(231, 240, 241, 0.88);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-live-milestone {
  color: #ff8b99;
}

.account-live-cumulative {
  color: var(--accent);
}

.account-live-acceptance,
.account-live-average-acceptance {
  color: #ffc263;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.metric {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.065);
}

.metric:first-child {
  border-left: 0;
}

.metric span,
.metric strong {
  display: inline;
}

.metric span {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 9px;
}

.metric strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

@media (min-width: 901px) {
  .account-profile-meta {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .metric-grid {
    width: 180px;
    min-width: 0;
    grid-template-columns: repeat(2, 90px);
  }

  .metric {
    display: grid;
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: baseline;
    gap: 4px;
    padding: 1px 7px;
    overflow: hidden;
  }

  .metric span,
  .metric strong {
    min-width: 0;
    white-space: nowrap;
  }

  .metric strong {
    display: block;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
}

.card-footer {
  display: grid;
  grid-area: actions;
  width: 282px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: start;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-link {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  gap: 4px;
  padding: 0 5px;
  color: var(--accent-strong);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(var(--accent-rgb), 0.06);
  overflow: hidden;
  font-size: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-history-button {
  border-color: rgba(37, 244, 238, 0.17);
  color: #8efbf6;
  background: rgba(37, 244, 238, 0.055);
  font-family: inherit;
}

.account-history-button:hover {
  border-color: rgba(37, 244, 238, 0.34);
  background: rgba(37, 244, 238, 0.1);
}

.home-live-trend-button {
  border-color: rgba(37, 244, 238, 0.2);
  color: #8efbf6;
  background: rgba(37, 244, 238, 0.07);
  font-family: inherit;
}

.home-live-trend-button:hover:not(:disabled) {
  border-color: rgba(37, 244, 238, 0.38);
  background: rgba(37, 244, 238, 0.13);
}

.home-live-trend-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.profile-arrow {
  font-size: 18px;
  line-height: 1;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-large);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.loading-state {
  gap: 12px;
  font-size: 12px;
}

.loader {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state[hidden],
.loading-state[hidden] {
  display: none;
}

.empty-visual {
  position: relative;
  width: 92px;
  height: 72px;
  margin-bottom: 22px;
}

.empty-visual span {
  position: absolute;
  width: 46px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  transform: rotate(-8deg);
}

.empty-visual span:nth-child(2) {
  left: 23px;
  z-index: 2;
  border-color: rgba(var(--accent-rgb), 0.22);
  transform: rotate(0);
}

.empty-visual span:nth-child(3) {
  right: 0;
  transform: rotate(8deg);
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  margin-bottom: 24px;
  font-size: 12px;
}

.secondary-button {
  color: var(--accent-strong);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.07);
}

.account-dialog {
  width: min(590px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  color: var(--text);
  background: #12161a;
  box-shadow: var(--shadow);
}

.account-history-dialog {
  width: min(1420px, calc(100vw - 32px));
  max-width: none;
  height: min(900px, calc(100vh - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 22px;
  color: var(--text);
  background: var(--background);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.contact-author-dialog {
  width: min(420px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 22px;
  color: var(--text);
  background: #091213;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.contact-author-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.contact-author-dialog:not([open]) {
  display: none;
}

.contact-author-card {
  display: grid;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 76% 20%, rgba(var(--accent-rgb), 0.08), transparent 35%),
    #091213;
}

.contact-author-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.contact-author-header > div {
  min-width: 0;
}

.contact-author-header .section-kicker {
  margin-bottom: 5px;
}

.contact-author-header h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-author-body {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.contact-author-qr-shell {
  display: grid;
  width: min(300px, 100%);
  aspect-ratio: 640 / 815;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.contact-author-qr-shell img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 11px;
  object-fit: contain;
}

.contact-author-qr-shell img[hidden],
.contact-author-qr-state[hidden] {
  display: none;
}

.contact-author-qr-state {
  max-width: 210px;
  margin: 0;
  color: #586260;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.contact-author-copy {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  text-align: center;
}

.contact-author-copy p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.contact-author-copy p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.site-feedback-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: min(900px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), 0.24);
  border-radius: 24px;
  color: var(--text);
  background: #071312;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.site-feedback-dialog::backdrop {
  background: rgba(1, 6, 7, 0.82);
  backdrop-filter: blur(10px);
}

.site-feedback-dialog:not([open]) { display: none; }

.site-feedback-card {
  display: flex;
  max-height: min(900px, calc(100dvh - 32px));
  flex-direction: column;
}

.site-feedback-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.07), transparent 62%);
}

.site-feedback-header > div { min-width: 0; }

.site-feedback-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.site-feedback-header p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-feedback-form {
  display: grid;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
  padding: 21px 24px max(24px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.site-feedback-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #dbe4e3;
  font-size: 13px;
  font-weight: 750;
}

.site-feedback-field > span,
.site-feedback-image-field legend {
  color: #dbe4e3;
  font-size: 13px;
  font-weight: 800;
}

.site-feedback-field em {
  color: #ff8291;
  font-size: 10px;
  font-style: normal;
}

.site-feedback-field input,
.site-feedback-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(3, 10, 11, 0.72);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.site-feedback-field input { min-height: 44px; padding: 0 13px; }

.site-feedback-field textarea {
  min-height: 138px;
  resize: vertical;
  padding: 12px 13px 28px;
  line-height: 1.65;
}

.site-feedback-field input:focus,
.site-feedback-field textarea:focus {
  border-color: rgba(var(--cyan-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.09);
}

.site-feedback-time-field { position: relative; }
.site-feedback-time-trigger {
  display: grid;
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}
.site-feedback-time-trigger:hover,
.site-feedback-time-trigger[aria-expanded="true"] {
  border-color: rgba(var(--cyan-rgb), 0.48);
  background: rgba(var(--cyan-rgb), 0.075);
}
.site-feedback-time-trigger:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.32);
  outline-offset: 2px;
}
.site-feedback-time-calendar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.11);
  font-size: 17px;
}
.site-feedback-time-trigger strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.site-feedback-time-trigger > span:nth-last-child(2) { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.site-feedback-time-chevron { color: var(--muted); font-size: 22px; }
.site-feedback-time-picker {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 40px));
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--text);
  background: rgba(8, 21, 20, 0.97);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}
.site-feedback-time-picker[hidden] { display: none; }
.site-feedback-time-picker-header,
.site-feedback-time-actions,
.site-feedback-time-controls { display: flex; align-items: center; }
.site-feedback-time-picker-header { justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.site-feedback-time-picker-header button,
.site-feedback-time-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}
.site-feedback-time-picker-header button { width: 36px; padding: 0; font-size: 21px; }
.site-feedback-time-weekdays,
.site-feedback-time-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.site-feedback-time-weekdays { margin-bottom: 5px; color: var(--subtle); font-size: 10px; text-align: center; }
.site-feedback-time-day {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.site-feedback-time-day:hover { background: rgba(255, 255, 255, 0.08); }
.site-feedback-time-day.is-outside { color: rgba(220, 232, 230, 0.36); }
.site-feedback-time-day.is-today { border-color: rgba(var(--cyan-rgb), 0.38); }
.site-feedback-time-day.is-selected { color: #06100e; background: linear-gradient(135deg, var(--cyan), var(--accent)); font-weight: 900; }
.site-feedback-time-controls { justify-content: center; gap: 8px; margin-top: 11px; }
.site-feedback-time-controls label { display: grid; grid-template-columns: auto 62px; align-items: center; gap: 6px; color: var(--subtle); font-size: 11px; }
.site-feedback-time-controls select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background: #10201e;
}
.site-feedback-time-actions { justify-content: flex-end; gap: 7px; margin-top: 12px; }
.site-feedback-time-actions #site-feedback-time-now { margin-right: auto; color: var(--cyan); }
.site-feedback-time-actions #site-feedback-time-confirm { border-color: rgba(var(--accent-rgb), 0.4); color: #07110f; background: linear-gradient(135deg, var(--cyan), var(--accent)); font-weight: 900; }

.site-feedback-field small,
.site-feedback-image-field small,
.site-feedback-image-hint {
  margin: 0;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.site-feedback-content-field,
.site-feedback-image-field,
.site-feedback-verification,
.site-feedback-form-status,
.site-feedback-actions { grid-column: 1 / -1; }

.site-feedback-content-field { position: relative; }

.site-feedback-counter {
  position: absolute;
  right: 12px;
  bottom: 9px;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(3, 10, 11, 0.84);
}

.site-feedback-counter.is-near-limit { color: #ffbd68; }

.site-feedback-image-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.site-feedback-image-field legend { margin-bottom: 9px; }

.site-feedback-image-picker {
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed rgba(var(--cyan-rgb), 0.35);
  border-radius: 11px;
  color: #8af7eb;
  background: rgba(var(--cyan-rgb), 0.055);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.site-feedback-image-picker:disabled { cursor: not-allowed; opacity: 0.48; }
.site-feedback-image-hint { display: inline; margin-left: 10px; }

.site-feedback-image-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.site-feedback-image-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.site-feedback-image-item img { width: 100%; height: 100%; object-fit: cover; }

.site-feedback-image-upload {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  min-height: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(3, 10, 11, 0.9);
}

.site-feedback-image-upload > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.5), rgba(var(--accent-rgb), 0.58));
  transition: width 160ms ease;
}

.site-feedback-image-upload > strong {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 23px;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}

.site-feedback-image-upload[data-state="uploaded"] {
  border-color: rgba(174, 255, 54, 0.55);
  background: rgba(31, 65, 16, 0.92);
}

.site-feedback-image-upload[data-state="failed"] {
  border-color: rgba(255, 101, 120, 0.62);
  background: rgba(82, 19, 29, 0.94);
  cursor: pointer;
}

.site-feedback-image-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 8, 9, 0.86);
  cursor: pointer;
  font-size: 17px;
}

.site-feedback-honeypot {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-feedback-verification {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(3, 10, 11, 0.58);
}

.site-feedback-verification-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.site-feedback-verification-copy strong { font-size: 13px; }
.site-feedback-verification-copy span { color: var(--muted); font-size: 11px; }

.site-feedback-verification-trigger {
  display: grid;
  min-height: 46px;
  grid-template-columns: 27px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #dfe8e7;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.site-feedback-verification-trigger:hover {
  border-color: rgba(var(--cyan-rgb), 0.42);
  background: rgba(var(--cyan-rgb), 0.07);
}

.site-feedback-verification-trigger:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.35);
  outline-offset: 2px;
}

.site-feedback-verification-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #07110f;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  font-size: 16px;
  font-weight: 950;
}

.site-feedback-verification-chevron { color: var(--muted); font-size: 22px; text-align: right; }
.site-feedback-verification-trigger[data-state="success"] {
  border-color: rgba(var(--accent-rgb), 0.48);
  color: #dfffb2;
  background: rgba(var(--accent-rgb), 0.09);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.site-feedback-verification-trigger[data-state="error"] { border-color: rgba(255, 101, 120, 0.45); }
.site-feedback-verification-trigger:disabled { cursor: wait; opacity: 0.75; }

.site-feedback-captcha-inline {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}
.site-feedback-captcha-inline[hidden] { display: none; }

.site-feedback-captcha-inline-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px 8px 15px;
  border-bottom: 1px solid #edf0ef;
}
.site-feedback-captcha-inline-header > div { display: grid; gap: 2px; }
.site-feedback-captcha-inline-header strong { color: #101817; font-size: 14px; }
.site-feedback-captcha-inline-header span { color: #818b8a; font-size: 10px; }
.site-feedback-captcha-inline-header button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dfe4e3;
  border-radius: 9px;
  color: #677170;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.site-feedback-captcha-inline-header button:hover { color: #111a19; background: #f4f6f6; }
.site-feedback-captcha-body { padding: 16px 19px 15px; }

.site-feedback-puzzle {
  position: relative;
  width: 100%;
  aspect-ratio: var(--puzzle-aspect, 2 / 1);
  overflow: hidden;
  border: 1px solid #dde3e2;
  border-radius: 8px;
  background: #edf2f1;
  box-shadow: inset 0 0 20px rgba(2, 10, 12, 0.08);
}

.site-feedback-puzzle > #site-feedback-puzzle-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site-feedback-puzzle-piece {
  position: absolute;
  top: var(--puzzle-piece-y, 35%);
  left: 0;
  width: var(--puzzle-piece-size, 14%);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.58));
  transform: translateX(var(--puzzle-piece-x, 0px));
  will-change: transform;
  pointer-events: none;
}

.site-feedback-puzzle-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7b8785;
  background: linear-gradient(110deg, #edf1f0 25%, #f7f9f8 40%, #edf1f0 55%);
  background-size: 240% 100%;
  font-size: 12px;
  animation: captcha-shimmer 1.2s linear infinite;
}
.site-feedback-puzzle-loading[hidden] { display: none; }
@keyframes captcha-shimmer { to { background-position: -180% 0; } }

.site-feedback-verification[data-state="success"] .site-feedback-puzzle-piece {
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.82));
}

.site-feedback-slider-shell {
  position: relative;
  display: grid;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 12px;
  border: 1px solid #dce2e1;
  border-radius: 7px;
  background: #f2f4f4;
}

.site-feedback-slider-copy {
  z-index: 1;
  color: #8a9493;
  font-size: 12px;
  pointer-events: none;
}

.site-feedback-slider-thumb {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: grid;
  width: 48px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(53, 207, 171, 0.7);
  border-radius: 7px;
  color: #07110f;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 3px 14px rgba(var(--cyan-rgb), 0.34);
  transform: translateX(var(--slider-thumb-x, 0px));
  pointer-events: none;
}

.site-feedback-slider-thumb span {
  font-size: 19px;
  font-weight: 950;
}

.site-feedback-slider-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.18), rgba(var(--accent-rgb), 0.2));
  transition: width 80ms linear;
}

.site-feedback-slider-shell[data-kind="success"] { border-color: rgba(var(--accent-rgb), 0.38); }
.site-feedback-slider-shell[data-kind="error"] { border-color: rgba(255, 101, 120, 0.36); }

.site-feedback-slider-shell input[type="range"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}

.site-feedback-slider-shell {
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.site-feedback-slider-shell:active {
  cursor: grabbing;
}

.site-feedback-slider-shell:has(input[type="range"]:disabled) {
  cursor: not-allowed;
}

.site-feedback-puzzle-refresh {
  width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  color: #65706f;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-feedback-puzzle-refresh:hover { color: #101817; background: #edf1f0; }
.site-feedback-captcha-footer {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 0 3px;
  box-sizing: border-box;
}
.site-feedback-captcha-footer > span {
  display: flex;
  min-width: 0;
  min-height: 34px;
  flex: 1 1 auto;
  align-items: center;
  color: #84908e;
  font-size: 11px;
  line-height: 17px;
}
.site-feedback-captcha-footer > span[data-kind="error"] { color: #d95768; }

.site-feedback-puzzle-refresh:disabled { cursor: wait; opacity: 0.45; }

.site-feedback-form-status {
  min-height: 18px;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-feedback-form-status[data-kind="error"] { color: #ff8594; }
.site-feedback-form-status[data-kind="success"] { color: var(--accent-strong); }

.site-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }

.site-feedback-actions button {
  min-width: 108px;
  min-height: 43px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.site-feedback-cancel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d5dddd;
  background: rgba(255, 255, 255, 0.04);
}

.site-feedback-submit {
  color: #07110f;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 9px 28px rgba(var(--cyan-rgb), 0.14);
}

.site-feedback-actions button:disabled { cursor: wait; opacity: 0.58; }

.account-history-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.account-history-dialog:not([open]) {
  display: none;
}

.account-history-dialog-card {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.account-history-dialog-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 20, 21, 0.96);
}

.account-history-dialog-header .section-kicker {
  margin-bottom: 5px;
}

.account-history-dialog-header h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-history-dialog-header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

@media (min-width: 681px) {
  .account-history-dialog-header > div:first-child {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 12px;
  }

  .account-history-dialog-header .section-kicker {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .account-history-dialog-header h2 {
    min-width: 0;
    flex: 0 1 auto;
  }

  .account-history-dialog-header p:last-child {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.account-history-dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 24px;
}

.account-history-frame-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--background);
}

.account-history-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overscroll-behavior: contain;
  border: 0;
  background: var(--background);
  touch-action: auto;
}

.account-history-frame-feedback {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--muted);
  background: rgba(7, 16, 17, 0.94);
  text-align: center;
  opacity: 1;
  transition: opacity 160ms ease;
}

.account-history-frame-feedback[hidden] {
  display: none;
}

.account-history-frame-feedback.is-ready {
  opacity: 0;
  pointer-events: none;
}

.account-history-frame-skeleton {
  display: grid;
  width: min(520px, 82%);
  gap: 9px;
}

.account-history-frame-skeleton span {
  display: block;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.035) 18%,
    rgba(var(--accent-rgb), 0.08) 38%,
    rgba(255, 255, 255, 0.035) 58%
  );
  background-size: 220% 100%;
  animation: account-history-loading-sweep 1.4s linear infinite;
}

.account-history-frame-skeleton span:nth-child(2) {
  opacity: 0.78;
}

.account-history-frame-skeleton span:nth-child(3) {
  opacity: 0.56;
}

.account-history-frame-feedback[data-state="error"] .account-history-frame-skeleton {
  opacity: 0.38;
}

.account-history-frame-feedback[data-state="error"] .account-history-frame-skeleton span {
  animation: none;
}

@keyframes account-history-loading-sweep {
  to { background-position-x: -220%; }
}

@keyframes home-dialog-mobile-close {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  99% {
    opacity: 1;
    transform: translate3d(0, 100vh, 0);
    transform: translate3d(0, 100dvh, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 100vh, 0);
    transform: translate3d(0, 100dvh, 0);
  }
}

@keyframes home-dialog-mobile-backdrop-close {
  from { opacity: 1; }
  to { opacity: 0; }
}

.account-history-frame-feedback strong {
  color: var(--text);
  font-size: 14px;
}

.account-history-frame-feedback button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.home-live-trend-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 244, 238, 0.24);
  border-radius: 22px;
  color: var(--text);
  background: var(--background);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.home-live-trend-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.home-live-trend-dialog:not([open]) {
  display: none;
}

.home-live-trend-card {
  display: grid;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 12%, rgba(37, 244, 238, 0.07), transparent 34%),
    var(--background);
}

.home-live-trend-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 20, 21, 0.98);
}

.home-live-trend-header > div:first-child {
  min-width: 0;
}

.home-live-trend-header .section-kicker {
  margin-bottom: 5px;
}

.home-live-trend-header h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-trend-room-title {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-trend-session-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: rgba(220, 231, 232, 0.76);
  font-size: 10px;
  font-weight: 750;
}

.home-live-trend-session-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-trend-session-meta strong {
  color: #fff;
  font: inherit;
}

#home-live-trend-coverage {
  color: #ffc263;
}

.home-live-trend-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.home-live-trend-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.home-live-trend-status.is-connected {
  border-color: rgba(37, 244, 238, 0.24);
  color: #7dfcf6;
}

.home-live-trend-status.is-delayed {
  border-color: rgba(255, 194, 99, 0.28);
  color: #ffc263;
}

.home-live-trend-status.is-ended {
  color: var(--muted);
}

.home-live-trend-body {
  min-height: 0;
  padding: 18px 20px 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.home-live-trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.home-live-trend-summary > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.home-live-trend-summary > .trend-average-acceptance-summary {
  border-color: rgba(255, 194, 99, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 194, 99, 0.105), rgba(255, 194, 99, 0.025)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 194, 99, 0.045);
}

.home-live-trend-summary > .trend-average-acceptance-summary span {
  color: rgba(255, 217, 153, 0.82);
}

.home-live-trend-summary > .trend-average-acceptance-summary strong {
  color: #ffc263;
}

.home-live-trend-summary span,
.home-live-trend-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-acceptance-summary small {
  display: block;
  margin-top: 4px;
  color: rgba(200, 207, 218, 0.66);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

.trend-acceptance-summary small b {
  color: #ffc263;
  font: inherit;
  font-weight: 850;
}

.home-live-trend-summary span {
  color: var(--muted);
  font-size: 10px;
}

.home-live-trend-summary strong {
  margin-top: 5px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.home-live-trend-chart-shell {
  position: relative;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(37, 244, 238, 0.12);
  border-radius: 16px;
  cursor: crosshair;
  outline: none;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    linear-gradient(180deg, rgba(37, 244, 238, 0.025), transparent 50%),
    rgba(0, 0, 0, 0.14);
}

.home-live-trend-chart-shell * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.home-live-trend-chart-shell:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(37, 244, 238, 0.55);
}

.home-live-trend-chart {
  display: block;
  width: 100%;
  height: 360px;
  overflow: visible;
}

.home-live-trend-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-grid-line.is-baseline {
  stroke: rgba(255, 255, 255, 0.15);
}

.home-live-trend-axis-label {
  fill: rgba(200, 207, 218, 0.72);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.home-live-trend-milestone-line,
.history-milestone-line,
.viewer-milestone-line {
  stroke: rgba(255, 78, 101, 0.78);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}

.trend-milestone-overlay {
  pointer-events: none;
}

.trend-milestone-label-pill,
.trend-milestone-copy-pill {
  fill: rgba(6, 17, 17, 0.88);
  stroke: rgba(255, 113, 131, 0.48);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-milestone-label,
.home-live-trend-milestone-copy,
.history-milestone-label,
.history-milestone-copy,
.viewer-milestone-label,
.viewer-milestone-copy {
  fill: #ff7183;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(5, 15, 15, 0.96);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.trend-lane-guide {
  stroke: rgba(255, 255, 255, 0.045);
  stroke-dasharray: 2 6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-axis-label {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  paint-order: stroke fill;
  stroke: rgba(5, 15, 15, 0.92);
  stroke-linejoin: round;
  stroke-width: 1.6px;
  pointer-events: none;
}

.trend-axis-label.is-middle,
.trend-axis-label.is-interval { opacity: 0.7; }
.trend-axis-label.is-cumulative { fill: var(--accent); }
.trend-axis-label.is-viewer { fill: #25f4ee; }
.trend-axis-label.is-likes { fill: #ff7183; }
.trend-axis-label.is-acceptance { fill: #ffc263; }

.trend-axis-tick {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.trend-axis-tick.is-middle,
.trend-axis-tick.is-interval { opacity: 0.5; }
.trend-axis-tick.is-cumulative { stroke: rgba(var(--accent-rgb), 0.72); }
.trend-axis-tick.is-viewer { stroke: rgba(37, 244, 238, 0.72); }
.trend-axis-tick.is-likes { stroke: rgba(255, 113, 131, 0.72); }
.trend-axis-tick.is-acceptance { stroke: rgba(255, 194, 99, 0.72); }

.home-live-trend-milestone-marker,
.history-milestone-marker,
.viewer-milestone-marker {
  fill: #ff4e65;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-milestone-marker.is-conservative,
.history-milestone-marker.is-conservative,
.viewer-milestone-marker.is-conservative {
  fill: #ffb547;
}

.home-live-trend-area {
  fill: url(#home-live-trend-gradient);
  stroke: none;
  pointer-events: none;
}

.home-live-trend-line,
.trend-series-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.trend-series-line.is-primary {
  stroke-width: 3.2;
}

.trend-series-line.is-compare {
  stroke-width: 2.2;
  stroke-dasharray: 7 5;
  opacity: 0.88;
}

.home-live-trend-crosshair {
  stroke: rgba(255, 255, 255, 0.56);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-marker-halo {
  fill: rgba(37, 244, 238, 0.2);
  stroke: rgba(37, 244, 238, 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-marker {
  fill: #fff;
  stroke: #25f4ee;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.home-live-trend-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 112px;
  padding: 9px 10px;
  border: 1px solid rgba(37, 244, 238, 0.25);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(8, 11, 16, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  font-size: 10px;
  pointer-events: none;
}

.home-live-trend-tooltip[hidden] {
  display: none;
}

.home-live-trend-tooltip > span {
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
}

.home-live-trend-tooltip > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.home-live-trend-tooltip strong {
  color: #fff;
  font-size: 17px;
}

.home-live-trend-tooltip small {
  color: #25f4ee;
  font-size: 10px;
}

.trend-series-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  gap: 7px;
  margin-top: 10px;
}

.trend-series-controls button {
  display: inline-flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(215, 229, 231, 0.62);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.trend-series-controls button i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.trend-series-controls button[data-trend-series="viewer"] { color: #25f4ee; }
.trend-series-controls button[data-trend-series="cumulative"] { color: var(--accent); }
.trend-series-controls button[data-trend-series="acceptance"] { color: #ffc263; }
.trend-series-controls button[data-trend-series="likes"] { color: #ff7183; }

.trend-series-controls button:not(.is-active) {
  opacity: 0.58;
}

.trend-series-controls button.is-active {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 1px currentColor inset, 0 0 16px rgba(37, 244, 238, 0.08);
}

.trend-series-controls button.is-compared {
  border-color: currentColor;
  opacity: 0.9;
  box-shadow: 0 0 0 1px currentColor inset;
}

.trend-series-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.2;
  text-decoration: none;
}

.trend-compare-picker {
  display: inline-flex;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 0 5px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(215, 229, 231, 0.72);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 800;
}

.trend-compare-picker select {
  min-height: 24px;
  padding: 0 25px 0 9px;
  border: 0;
  border-radius: 999px;
  color: #eef7f7;
  background: #111c1c;
  cursor: pointer;
  font: inherit;
  outline: 0;
}

.trend-compare-picker select:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 244, 238, 0.7);
}

.trend-compare-picker select:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.trend-independent-scale-note {
  margin: 7px 0 0;
  color: rgba(200, 207, 218, 0.58);
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.trend-tooltip-values {
  display: grid !important;
  gap: 4px !important;
}

.trend-tooltip-row {
  display: grid !important;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap;
}

.trend-tooltip-row i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--series-color);
  box-shadow: 0 0 8px var(--series-color);
}

.trend-tooltip-row small {
  color: rgba(215, 229, 231, 0.64) !important;
}

.trend-tooltip-row strong {
  color: #fff;
}

.trend-tooltip-row.is-average-acceptance {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 194, 99, 0.2);
}

.trend-tooltip-row.is-average-acceptance i {
  border: 1px solid var(--series-color);
  background: transparent;
  box-shadow: none;
}

.trend-tooltip-row.is-average-acceptance small,
.trend-tooltip-row.is-average-acceptance strong {
  color: #ffc263 !important;
}

.home-live-trend-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  color: var(--muted);
  background: rgba(7, 16, 17, 0.82);
  text-align: center;
}

.home-live-trend-empty[hidden] {
  display: none;
}

.home-live-trend-empty strong {
  margin-top: 13px;
  color: var(--copy);
  font-size: 15px;
}

.home-live-trend-empty p {
  max-width: 27rem;
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.65;
}

.home-live-trend-loader {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(37, 244, 238, 0.16);
  border-top-color: #25f4ee;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.home-live-trend-loader[hidden] {
  display: none;
}

.home-live-trend-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.account-dialog form {
  padding: 26px;
}

.compact-dialog {
  width: min(460px, calc(100vw - 28px));
}

.dialog-header {
  margin-bottom: 26px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field > span {
  color: #dfe3e1;
  font-size: 12px;
  font-weight: 700;
}

.form-field em {
  margin-left: 4px;
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 11px;
  color: var(--text);
  background: #0c0f12;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input {
  height: 45px;
}

.form-field textarea {
  min-height: 116px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.55;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.07);
}

.form-field input:disabled,
.form-field textarea:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dialog-actions button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-field small,
.form-note {
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.5;
}

.form-note {
  margin: 18px 0 0;
  padding: 11px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.035);
}

.form-error {
  min-height: 18px;
  margin: 11px 0 0;
  color: var(--danger);
  font-size: 11px;
}

.batch-results {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.batch-results-summary {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.batch-results-list {
  display: grid;
  max-height: 180px;
  gap: 7px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.batch-results-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
}

.batch-results-list strong,
.batch-results-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-results-list span {
  color: var(--muted);
}

.batch-result-added {
  border-left: 2px solid var(--accent);
}

.batch-result-pending {
  border-left: 2px solid var(--cyan);
  opacity: 0.72;
}

.batch-result-duplicate {
  border-left: 2px solid #f7c96a;
}

.batch-result-failed {
  border-left: 2px solid var(--danger);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.ghost-button {
  color: var(--muted);
  background: var(--surface-soft);
}

.confirm-dialog {
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 101, 120, 0.22);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 101, 120, 0.2), transparent 50%),
    #121518;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
}

.confirm-dialog::backdrop {
  background: rgba(2, 3, 4, 0.8);
  backdrop-filter: blur(7px);
}

.confirm-card {
  display: grid;
  justify-items: center;
  padding: 34px 30px 28px;
  text-align: center;
}

.confirm-dialog .section-kicker {
  margin-bottom: 9px;
  color: var(--danger);
}

.confirm-dialog h2 {
  margin-bottom: 18px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.confirm-account {
  display: grid;
  width: 100%;
  gap: 5px;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.confirm-account span {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.confirm-account strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-message {
  max-width: 330px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.confirm-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.confirm-actions button {
  min-height: 48px;
}

.danger-button {
  color: #fff7f8;
  border: 1px solid rgba(255, 128, 143, 0.35);
  background: linear-gradient(135deg, #df4358, #f15f70);
  box-shadow: 0 10px 30px rgba(223, 67, 88, 0.18);
}

.danger-button:hover {
  background: linear-gradient(135deg, #e74b60, #ff6a7b);
  transform: translateY(-1px);
}

.danger-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 48px);
  padding: 13px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-feedback-success-toast {
  z-index: 80;
  min-width: min(340px, calc(100vw - 48px));
  color: #eaffc2;
  border-color: rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(145deg, rgba(22, 45, 31, 0.98), rgba(10, 27, 23, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 28px rgba(var(--accent-rgb), 0.12);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.72);
  outline-offset: 3px;
}

.account-history-button.home-pointer-focus-suppressed:focus,
.home-live-trend-button.home-pointer-focus-suppressed:focus,
#account-history-dialog-close.home-pointer-focus-suppressed:focus,
#home-live-trend-close.home-pointer-focus-suppressed:focus,
#today-live-start-card.home-pointer-focus-suppressed:focus,
#today-cumulative-viewed-card.home-pointer-focus-suppressed:focus,
#home-daily-timeline-close.home-pointer-focus-suppressed:focus,
#contact-author-button.home-pointer-focus-suppressed:focus,
#contact-author-dialog-close.home-pointer-focus-suppressed:focus,
.mobile-menu-button.home-pointer-focus-suppressed:focus,
.sidebar-close.home-pointer-focus-suppressed:focus,
.mobile-menu-button.history-pointer-focus-suppressed:focus,
.sidebar-close.history-pointer-focus-suppressed:focus {
  outline: none;
}

@media (min-width: 2001px) {
  .account-card {
    grid-template-columns:
      minmax(310px, 330px)
      minmax(330px, 360px)
      minmax(560px, 1fr)
      282px;
  }

  .account-card.is-compact {
    grid-template-areas: "identity profile . actions";
    grid-template-columns:
      minmax(310px, 330px)
      minmax(330px, 360px)
      minmax(560px, 1fr)
      282px;
  }

  .account-profile-meta {
    grid-template-columns: minmax(128px, 1fr) 180px;
    gap: 12px;
  }
}

@media (max-width: 2000px) {
  .account-card {
    grid-template-areas:
      "identity profile actions"
      "insights insights insights";
    grid-template-columns: 320px minmax(260px, 1fr) 282px;
    gap: 8px 12px;
  }

  .account-grid {
    --account-virtual-row-height: 152px;
    --account-virtual-compact-row-height: 84px;
  }

  .account-card {
    height: 152px;
    min-height: 152px;
  }

  .account-card.is-compact {
    height: 84px;
    min-height: 84px;
    grid-template-areas: "identity profile actions";
    grid-template-columns: 320px minmax(260px, 1fr) 282px;
  }

  .account-live-insights {
    width: 100%;
    min-height: 46px;
  }

  .account-live-insights[hidden] {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .account-grid {
    --account-virtual-row-height: 208px;
    --account-virtual-compact-row-height: 136px;
  }

  .account-card {
    height: 208px;
    min-height: 208px;
    grid-template-areas:
      "identity profile"
      "insights insights"
      "actions actions";
    grid-template-columns: minmax(230px, 320px) minmax(190px, 1fr);
  }

  .account-card.is-compact {
    height: 136px;
    min-height: 136px;
    grid-template-areas:
      "identity profile"
      "actions actions";
    grid-template-columns: minmax(230px, 320px) minmax(190px, 1fr);
  }

  .account-card .card-footer,
  .account-card.is-compact .card-footer {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .account-history-dialog,
  .home-live-trend-dialog,
  .home-daily-timeline-dialog,
  .contact-author-dialog,
  .site-feedback-dialog,
  .account-analysis-dialog {
    opacity: 1;
    transform: translate3d(0, 100vh, 0);
    transform: translate3d(0, 100dvh, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    transition:
      transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
      display 300ms allow-discrete,
      overlay 300ms allow-discrete;
  }

  .account-history-dialog[open],
  .home-live-trend-dialog[open],
  .home-daily-timeline-dialog[open],
  .contact-author-dialog[open],
  .site-feedback-dialog[open],
  .account-analysis-dialog[open] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1),
      display 500ms allow-discrete,
      overlay 500ms allow-discrete;
  }

  @starting-style {
    .account-history-dialog[open],
    .home-live-trend-dialog[open],
    .home-daily-timeline-dialog[open],
    .contact-author-dialog[open],
    .site-feedback-dialog[open],
    .account-analysis-dialog[open] {
      opacity: 1;
      transform: translate3d(0, 100vh, 0);
      transform: translate3d(0, 100dvh, 0);
    }
  }

  .account-history-dialog.is-mobile-closing,
  .home-live-trend-dialog.is-mobile-closing,
  .home-daily-timeline-dialog.is-mobile-closing {
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    animation: home-dialog-mobile-close 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .account-history-dialog.is-mobile-closing::backdrop,
  .home-live-trend-dialog.is-mobile-closing::backdrop,
  .home-daily-timeline-dialog.is-mobile-closing::backdrop {
    animation: home-dialog-mobile-backdrop-close 300ms ease forwards;
  }

  .account-card.home-pointer-focus-suppressed:focus,
  .account-card.home-pointer-focus-suppressed:focus-visible {
    outline: none;
    background: transparent;
  }

  html {
    position: relative;
    overflow-x: hidden;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body {
    position: relative;
    z-index: 1;
    isolation: isolate;
    background: transparent;
  }

  @supports (overflow: clip) {
    body {
      overflow-x: clip;
    }
  }

  html::before {
    position: fixed;
    top: -96px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: calc(100lvh + 192px);
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    background:
      linear-gradient(180deg, rgba(3, 9, 10, 0.42), rgba(3, 9, 10, 0.75)),
      linear-gradient(90deg, rgba(3, 9, 10, 0.32), rgba(3, 9, 10, 0.1)),
      var(--site-background-image) 64% top / cover no-repeat,
      var(--background);
    content: "";
  }

  @supports not (height: 100svh) {
    html::before {
      top: -96px;
      height: calc(100vh + 192px);
    }
  }

  html,
  body {
    overscroll-behavior-y: none;
    touch-action: pan-y;
  }

  button,
  a,
  input,
  textarea {
    touch-action: manipulation;
  }

  .app-shell {
    display: block;
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
  }

  .mobile-menu-button {
    position: sticky;
    top: max(10px, env(safe-area-inset-top));
    z-index: 30;
    display: flex;
    width: fit-content;
    max-width: calc(100vw - 24px);
    min-height: 52px;
    align-items: center;
    gap: 10px;
    margin: 10px 12px 0;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 16px;
    color: var(--text);
    background: rgba(15, 19, 21, 0.985);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    cursor: pointer;
  }

  .mobile-menu-button img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 12px;
  }

  .mobile-menu-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    text-align: left;
  }

  .mobile-menu-copy strong,
  .mobile-menu-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-copy strong {
    font-size: 13px;
  }

  .mobile-menu-copy small {
    color: var(--subtle);
    font-size: 10px;
  }

  .menu-lines {
    display: grid;
    width: 20px;
    gap: 5px;
    margin-left: 2px;
  }

  .menu-lines span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }

  .menu-lines span:last-child {
    width: 70%;
    justify-self: end;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: clamp(180px, 42vw, 196px);
    max-width: calc(100vw - 76px);
    height: 100vh;
    height: 100dvh;
    padding:
      max(20px, env(safe-area-inset-top))
      18px
      max(20px, env(safe-area-inset-bottom));
    background: rgba(7, 13, 15, 0.985);
    overflow: visible;
    overscroll-behavior: contain;
    visibility: hidden;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    transform: translate3d(-104%, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    will-change: transform, opacity;
    transition:
      transform 300ms cubic-bezier(0.2, 0.72, 0.2, 1),
      visibility 0s linear 300ms;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.48);
    transition:
      transform 800ms cubic-bezier(0.2, 0.72, 0.2, 1),
      visibility 0s linear 0s;
  }

  body.sidebar-open .app-shell {
    animation: none;
  }

  .sidebar-close {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    left: calc(100% + 10px);
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--accent-strong);
    background: var(--surface-raised);
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, visibility 0s linear 120ms;
  }

  .sidebar.is-open .sidebar-close {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 240ms ease 120ms, visibility 0s linear 0s;
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 35;
    display: block;
    width: 100vw;
    height: 100dvh;
    visibility: hidden;
    background: rgba(2, 3, 4, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    will-change: opacity;
  }

  .sidebar-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 800ms ease, visibility 0s linear 0s;
  }

  .sidebar nav {
    margin-top: 34px;
  }

  .nav-item {
    min-height: 46px;
    padding: 0 13px;
  }

  .main-content {
    padding-top: 22px;
  }

  .account-card {
    grid-template-areas:
      "identity profile"
      "insights insights"
      "actions actions";
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 7px 12px;
    height: 208px;
    min-height: 208px;
  }

  .account-grid {
    --account-virtual-row-height: 208px;
    --account-virtual-compact-row-height: 132px;
  }

  .account-card.is-compact {
    height: 132px;
    min-height: 132px;
    grid-template-areas:
      "identity profile"
      "actions actions";
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 7px 12px;
  }

  .account-card.is-compact .card-footer {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-feedback-captcha-body { padding: 13px 12px 11px; }
  .site-feedback-captcha-inline-header { min-height: 50px; padding-left: 13px; }
  .site-feedback-slider-thumb { width: 46px; }
  .site-feedback-time-picker {
    position: fixed;
    z-index: 80;
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(560px, calc(100dvh - 16px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.58);
  }
  .site-feedback-time-day { min-height: 38px; }
  .site-feedback-time-trigger { grid-template-columns: 28px minmax(0, 1fr) auto 18px; }

  .brand strong {
    font-size: 13px;
  }

  .sidebar .brand small {
    display: block;
  }

  .nav-item {
    font-size: 13px;
  }

  .main-content {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 24px 12px 40px;
  }

  .page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .page-header .page-title-copy {
    width: 100%;
    min-width: 0;
  }

  .page-header h1 {
    margin-bottom: 0;
    font-size: clamp(24px, 7.45vw, 32px);
    line-height: 1.08;
    white-space: nowrap;
  }

  .page-header-utility-actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 7px;
  }

  .page-header-contact-button {
    width: auto;
    height: 38px;
    flex: 0 0 auto;
    min-height: 0;
    gap: 6px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .page-header-contact-button > span {
    min-width: 28px;
    height: 20px;
    padding-inline: 5px;
    font-size: 8px;
  }

  .page-header-actions,
  .page-header .primary-button {
    width: auto;
  }

  .page-header .primary-button {
    min-height: 40px;
    margin: 0;
    padding: 0 13px;
    font-size: 12px;
  }

  h1 {
    font-size: 27px;
  }

  .page-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .summary-card {
    min-height: 82px;
    padding: 11px 9px;
    border-radius: 13px;
  }

  .summary-card::after {
    display: none;
  }

  .summary-label {
    font-size: 10px;
  }

  .summary-card strong {
    margin: 8px 0 4px;
    font-size: 21px;
  }

  .summary-hint {
    display: block;
    font-size: 9px;
    line-height: 1.25;
  }

  .summary-grid > button {
    min-height: 108px;
  }

  .account-grid {
    --account-virtual-row-height: 270px;
    --account-virtual-compact-row-height: 148px;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .account-card {
    min-width: 0;
    height: 270px;
    min-height: 270px;
    grid-template-areas:
      "identity"
      "profile"
      "insights"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    overflow: hidden;
    padding: 13px 10px;
  }

  .account-card.is-compact {
    height: 148px;
    min-height: 148px;
    grid-template-areas:
      "identity"
      "profile"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .account-card-header {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 7px;
  }

  .account-sequence {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(225, 234, 235, 0.72);
    background: rgba(3, 8, 9, 0.42);
    font-size: 10px;
  }

  .avatar-shell {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .avatar {
    width: 42px;
    height: 42px;
  }

  .account-identity {
    overflow: hidden;
  }

  .account-identity h3,
  .account-name {
    font-size: 15px;
  }

  .account-live-insights {
    width: 100%;
    min-height: 95px;
    min-width: 0;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
    font-size: 10px;
    line-height: 1.2;
  }

  .account-live-insights[hidden] {
    display: none;
  }

  .account-live-insight-row {
    min-height: 38px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
  }

  .account-live-insight-row:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.055);
  }

  .account-live-insight-label,
  .account-live-insight-value {
    text-align: left;
  }

  .account-live-insight-value {
    font-size: 11px;
  }

  .account-name-row {
    gap: 5px;
  }

  .account-profile-meta {
    grid-template-columns: minmax(105px, 1fr) auto;
    align-items: center;
    gap: 5px;
    padding-left: 0;
  }

  .account-id {
    width: 100%;
    max-width: 100%;
    order: 1;
    font-size: 10px;
  }

  .live-viewer-count {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .metric-grid {
    display: flex;
    width: auto;
    min-width: max-content;
    order: 2;
    padding: 0;
    border: 0;
  }

  .metric {
    gap: 3px;
    padding: 0 5px;
  }

  .metric:first-child {
    padding-left: 0;
  }

  .metric span {
    margin-bottom: 0;
    font-size: 8px;
  }

  .metric strong {
    font-size: 11px;
  }

  .card-footer {
    display: grid;
    width: 100%;
    min-width: 0;
    align-self: end;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 6px;
    justify-content: stretch;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }

  .card-footer.is-three-action > :first-child {
    grid-column: auto;
  }

  .account-card.is-compact .card-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 5px;
  }

  .profile-link {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    gap: 2px;
    padding: 0 3px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-history-button,
  .home-live-trend-button {
    background: rgba(37, 244, 238, 0.035);
  }

  .account-profile-link,
  .live-entry-link {
    border-color: rgba(var(--accent-rgb), 0.2);
    background: rgba(var(--accent-rgb), 0.075);
  }

  .card-footer .profile-arrow {
    font-size: 11px;
  }

  .account-history-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .account-history-dialog-header {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .account-history-frame-feedback {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .contact-author-dialog {
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 19px;
  }

  .contact-author-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .contact-author-header {
    padding: 13px 14px;
  }

  .contact-author-header h2 {
    font-size: 18px;
  }

  .contact-author-body {
    padding: 16px 16px max(17px, env(safe-area-inset-bottom));
  }

  .contact-author-qr-shell {
    width: min(300px, 80vw);
    padding: 9px;
    border-radius: 18px;
  }

  .site-feedback-dialog {
    width: min(680px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 19px;
  }

  .site-feedback-card {
    max-height: calc(100dvh - 20px);
  }

  .site-feedback-header {
    padding: 15px 15px 13px;
  }

  .site-feedback-header h2 {
    font-size: 19px;
  }

  .site-feedback-header p:last-child {
    font-size: 11px;
  }

  .site-feedback-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 15px 15px max(17px, env(safe-area-inset-bottom));
  }

  .site-feedback-field,
  .site-feedback-content-field,
  .site-feedback-image-field,
  .site-feedback-verification,
  .site-feedback-form-status,
  .site-feedback-actions {
    grid-column: 1;
  }

  .site-feedback-image-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-feedback-image-hint {
    display: block;
    margin: 7px 0 0;
  }

  .site-feedback-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 7px;
    background: linear-gradient(180deg, transparent, #071312 24%);
  }

  .site-feedback-form:has(.site-feedback-captcha-inline:not([hidden])) .site-feedback-actions {
    position: static;
  }

  .site-feedback-actions button {
    min-width: 0;
    flex: 1 1 0;
  }

  .site-feedback-success-toast {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 14px 16px;
    font-size: 13px;
  }

  .account-history-dialog-header {
    padding: max(12px, env(safe-area-inset-top)) 13px 12px;
  }

  .account-history-dialog-header h2 {
    font-size: 17px;
  }

  .account-history-dialog-header p:last-child {
    display: none;
  }

  .home-live-trend-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .home-live-trend-card {
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }

  .home-live-trend-header {
    padding: max(12px, env(safe-area-inset-top)) 13px 12px;
  }

  .home-live-trend-header h2 {
    font-size: 17px;
  }

  .home-live-trend-room-title {
    margin-top: 3px;
    font-size: 9px;
  }

  .home-live-trend-session-meta {
    gap: 5px;
    margin-top: 3px;
    font-size: 9px;
  }

  .home-live-trend-header-actions {
    gap: 6px;
  }

  .home-live-trend-status {
    min-height: 28px;
    padding: 0 8px;
    font-size: 9px;
  }

  .home-live-trend-body {
    padding: 12px 12px max(14px, env(safe-area-inset-bottom));
  }

  .home-live-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  .home-live-trend-summary > div {
    padding: 9px 10px;
  }

  .home-live-trend-summary strong {
    font-size: 17px;
  }

  .home-live-trend-chart-shell {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .home-live-trend-chart {
    height: 100%;
    min-height: 260px;
  }

  .trend-series-line {
    stroke-width: 2.2;
  }

  .trend-axis-label {
    font-size: 10px;
    stroke-width: 1.4px;
  }

  .home-live-trend-note {
    font-size: 9px;
  }

  .trend-series-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .trend-series-controls button {
    min-height: 44px;
    min-width: 0;
    justify-content: center;
    padding: 0 4px;
    font-size: 10px;
  }

  .trend-compare-picker {
    grid-column: 1 / -1;
    min-height: 44px;
    justify-content: space-between;
    padding-right: 7px;
    font-size: 11px;
  }

  .trend-compare-picker select {
    min-width: 132px;
    min-height: 36px;
    font-size: 11px;
  }

  .profile-arrow {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .metric-grid {
    min-width: 0;
    align-self: stretch;
    padding-top: 9px;
  }

  .metric {
    min-width: 0;
    padding: 2px 7px;
  }

  .metric:first-child {
    padding-left: 0;
  }

  .section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .section-tools {
    width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .account-section .section-tools {
    order: 1;
  }

  .account-search-control {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-section .account-search-control {
    order: 2;
  }

  .account-search-input {
    min-height: 44px;
    font-size: 16px;
  }

  .account-search-submit {
    min-width: 68px;
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }


  .live-control-group {
    display: grid;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: minmax(190px, 245px) max-content;
    align-items: center;
    justify-content: start;
    gap: 7px;
  }

  .live-priority-toggle {
    min-height: 44px;
    justify-self: end;
    gap: 6px;
    font-size: 10px;
  }

  .account-sort-control {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    min-height: 44px;
    gap: 6px;
    font-size: 10px;
  }

  .account-sort-control > .glass-select-shell {
    width: 100%;
    min-width: 0;
  }

  .account-sort-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    font-size: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  .batch-results-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .account-dialog form {
    padding: 21px 17px;
  }

  .confirm-card {
    padding: 29px 20px 20px;
  }

  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .confirm-actions .danger-button {
    grid-row: 1;
  }
}

@media (max-width: 360px) {
  .live-control-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .live-priority-toggle {
    justify-self: start;
  }
}

@media (pointer: coarse) {
  .account-sort-select,
  .profile-link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-shell.is-live::before,
  .avatar-shell[class*="live-rank-"]::before {
    animation: none !important;
    opacity: 0.82;
    transform: scale(1);
    will-change: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.summary-card-action {
  min-width: 0;
  min-height: 122px;
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.summary-card-action:hover,
.summary-card-action:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.42);
  outline: none;
}

.summary-card-action:focus-visible {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.summary-card-action:active {
  transform: scale(0.985);
}

.summary-card-action .summary-hint {
  max-width: 100%;
}

.summary-action-cue {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 10px;
  display: block;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: rgba(var(--accent-rgb), 0.68);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.summary-card-action:hover .summary-action-cue,
.summary-card-action:focus-visible .summary-action-cue {
  color: var(--accent);
  transform: translateX(2px);
}

.summary-card-action:active .summary-action-cue {
  transform: translateX(1px);
}

html.home-daily-timeline-page-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

body.home-daily-timeline-page-locked {
  position: fixed;
  top: var(--home-daily-timeline-scroll-offset, 0);
  right: 0;
  left: 0;
  width: var(--customer-dialog-layout-width, 100%);
  overflow: hidden;
}

.home-daily-timeline-dialog {
  width: min(1280px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 32px));
  height: min(760px, calc(100dvh - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 22px;
  color: var(--text);
  background: var(--background);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.home-daily-timeline-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.home-daily-timeline-dialog:not([open]) {
  display: none;
}

.home-daily-timeline-card {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 18% 4%, rgba(var(--accent-rgb), 0.08), transparent 34%),
    var(--background);
}

.home-daily-timeline-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 16, 17, 0.96);
}

.home-daily-timeline-header > div {
  min-width: 0;
}

.home-daily-timeline-header .section-kicker {
  margin: 0 0 5px;
}

.home-daily-timeline-header h2 {
  overflow: hidden;
  margin: 0;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-daily-timeline-header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.home-daily-timeline-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 16px 18px 20px;
  -webkit-overflow-scrolling: touch;
}

.home-daily-timeline-dates {
  display: grid;
  grid-auto-columns: minmax(104px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
}

.home-daily-timeline-dates::-webkit-scrollbar {
  display: none;
}

.home-daily-timeline-date {
  display: grid;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(9, 22, 22, 0.72);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: center;
}

.home-daily-timeline-date span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.home-daily-timeline-date small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.home-daily-timeline-date[aria-selected="true"] {
  border-color: rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.08);
}

.home-daily-timeline-date[aria-selected="true"] span,
.home-daily-timeline-date[aria-selected="true"] small {
  color: var(--accent);
}

.home-daily-timeline-date:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.home-daily-timeline-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.home-daily-timeline-view-switch {
  --view-indicator-x: 5px;
  --view-indicator-y: 5px;
  --view-indicator-width: calc(25% - 6px);
  --view-indicator-height: 42px;
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.035), transparent 46%),
    rgba(4, 14, 15, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  isolation: isolate;
}

.home-daily-timeline-view-switch::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--view-indicator-width);
  height: var(--view-indicator-height);
  transform: translate3d(var(--view-indicator-x), var(--view-indicator-y), 0);
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.15));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.26);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition:
    transform 170ms cubic-bezier(0.2, 0.82, 0.2, 1),
    width 170ms cubic-bezier(0.2, 0.82, 0.2, 1),
    height 170ms cubic-bezier(0.2, 0.82, 0.2, 1),
    opacity 100ms ease;
  will-change: transform;
}

.home-daily-timeline-view-switch.is-indicator-ready::before {
  opacity: 1;
}

.home-daily-timeline-view-switch.is-indicator-immediate::before {
  transition: none;
}

.home-daily-timeline-toolbar {
  display: grid;
  min-height: 53px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
  align-items: start;
  gap: 12px;
}

.home-daily-timeline-scope-slot {
  display: grid;
  min-height: 61px;
  align-items: center;
  margin-top: 8px;
}

.home-daily-timeline-scope-slot > * {
  min-width: 0;
  grid-area: 1 / 1;
}

.home-daily-timeline-scope-slot > .home-daily-timeline-dates {
  display: none;
}

.home-daily-date-picker-open {
  display: grid;
  width: min(420px, 100%);
  min-height: 56px;
  grid-template-columns: 34px minmax(72px, auto) minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  padding: 9px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 15px;
  color: var(--text);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(16, 41, 55, 0.94), rgba(4, 17, 27, 0.97));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 10px 28px rgba(0, 5, 10, 0.18);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.home-daily-date-picker-open[hidden] {
  display: none;
}

.home-daily-date-picker-open > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.home-daily-date-picker-open strong {
  font-size: 12px;
}

.home-daily-date-picker-open small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-daily-date-picker-open i {
  color: var(--accent);
  font-style: normal;
  text-align: center;
}

.home-daily-date-picker-open:hover,
.home-daily-date-picker-open:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.46);
  background: rgba(var(--accent-rgb), 0.09);
}

.home-daily-date-picker {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  place-items: center;
  padding: clamp(20px, 3vh, 32px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  border: 0;
  color: var(--text);
  background: transparent;
}

.home-daily-date-picker:not([open]) {
  display: none;
}

.home-daily-date-picker::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-daily-date-picker-card {
  display: grid;
  width: min(1280px, calc(100vw - 48px));
  height: min(860px, calc(100dvh - 34px));
  max-height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 19px;
  color: var(--text);
  background: rgba(8, 24, 31, 0.995);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.035);
  animation: home-date-picker-enter 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  overflow: hidden;
}

.home-daily-date-picker-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 250px;
  gap: 0;
}

.home-daily-date-picker-calendar {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

@keyframes home-date-picker-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.985); }
}

.home-daily-date-picker-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.home-daily-date-picker-card > header > div {
  display: grid;
  gap: 3px;
}

.home-daily-date-picker-card > header span {
  color: var(--muted);
  font-size: 9px;
}

.home-daily-date-picker-card > header strong {
  font-size: 20px;
}

.home-daily-date-picker-card > header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 20px;
}

.home-daily-date-picker-months {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  gap: 7px;
  padding: 12px 22px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-daily-date-picker-months::before {
  display: none;
}

.home-daily-date-picker-months[data-active-index="1"] {
  --date-month-indicator-x: calc(100% + 8px);
}

.home-daily-date-picker-months[data-active-index="2"] {
  --date-month-indicator-x: calc(200% + 16px);
}

.home-daily-date-picker-months button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 8, 9, 0.5);
  cursor: pointer;
  font: inherit;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.home-daily-date-picker-months button strong {
  font-size: 11px;
}

.home-daily-date-picker-months button small {
  color: inherit;
  font-size: 9px;
}

.home-daily-date-picker-months button:hover,
.home-daily-date-picker-months button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.38);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
}

.home-daily-date-picker-months button[aria-selected="true"] {
  border-color: rgba(100, 210, 255, 0.34);
  color: #64d2ff;
  background: transparent;
  box-shadow: none;
}

.home-daily-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(70px, 1fr);
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 18px 22px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.home-daily-date-picker-grid button {
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 5px 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(3, 8, 9, 0.3);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.home-daily-date-picker-grid.is-touch-scrolling button {
  transition: none;
}

.home-daily-date-primary,
.home-daily-date-secondary,
.home-daily-date-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-daily-date-primary {
  color: inherit;
  font-size: 12px;
  font-weight: 850;
}

.home-daily-date-secondary {
  grid-column: 1;
  color: var(--subtle);
  font-size: 9px;
}

.home-daily-date-count {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
}

.home-daily-date-picker-grid button:hover:not(:disabled),
.home-daily-date-picker-grid button:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
}

.home-daily-date-picker-grid button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.15), 0 0 18px rgba(var(--accent-rgb), 0.08);
}

.home-daily-date-picker-grid button[aria-selected="true"] .home-daily-date-primary,
.home-daily-date-picker-grid button[aria-selected="true"] .home-daily-date-count {
  color: #64d2ff;
}

.home-daily-date-picker-grid button:disabled {
  border-color: rgba(255, 255, 255, 0.035);
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.012);
  cursor: default;
  opacity: 0.5;
}

.home-daily-date-picker-grid button:disabled .home-daily-date-secondary,
.home-daily-date-picker-grid button:disabled .home-daily-date-count {
  color: var(--subtle);
}

.home-daily-date-picker-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.home-daily-date-reference {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: rgba(2, 11, 14, 0.3);
}

.home-daily-date-reference > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.home-daily-date-reference > header > div {
  display: grid;
  gap: 2px;
}

.home-daily-date-reference > header strong {
  font-size: 11px;
}

.home-daily-date-reference > header small,
.home-daily-date-reference > header > span {
  color: var(--muted);
  font-size: 9px;
}

.home-daily-date-reference-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-daily-date-reference-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.home-daily-date-reference-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
}

.home-daily-date-reference > header > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.home-daily-date-reference > header i {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.home-daily-date-reference-shell {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 13px;
  background: rgba(2, 11, 14, 0.55);
  contain: layout paint style;
  user-select: none;
}

.home-daily-date-reference-shell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.home-daily-date-reference-scroll {
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.home-daily-date-reference-chart {
  display: block;
  height: 100%;
  min-height: 210px;
}

.home-daily-date-reference-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-axis {
  fill: var(--muted);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.home-daily-date-reference-line {
  fill: none;
  stroke: #25f4ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-point {
  fill: #25f4ee;
}

.home-daily-date-reference-bar {
  fill: rgba(var(--accent-rgb), 0.62);
  stroke: rgba(var(--accent-rgb), 0.92);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-selected {
  fill: var(--background);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-guide {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-marker {
  fill: var(--background);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.home-daily-date-reference-tooltip {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 0;
  display: grid;
  width: 146px;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 10px;
  background: rgba(5, 14, 16, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform: translate3d(var(--date-reference-tooltip-x, 8px), 0, 0);
  will-change: transform;
}

.home-daily-date-reference-tooltip[hidden] {
  display: none;
}

.home-daily-date-reference-tooltip strong {
  font-size: 10px;
}

.home-daily-date-reference-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.home-daily-date-reference-tooltip b {
  color: var(--text);
}

.home-daily-date-reference-tooltip small {
  color: var(--subtle);
  font-size: 8px;
}

.home-daily-date-reference-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.home-daily-date-reference-empty[hidden] {
  display: none;
}

html[data-motion-profile="none"] .home-daily-date-picker-months::before {
  transition-duration: 70ms;
}

@media (min-width: 641px) and (max-width: 1100px) {
  .home-daily-date-picker {
    padding-inline: 20px;
  }

  .home-daily-date-picker-card {
    width: calc(100vw - 40px);
  }

  .home-daily-date-picker-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 230px;
  }

  .home-daily-date-picker-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (min-width: 641px) and (max-height: 680px) {
  .home-daily-date-picker {
    padding-block: 16px;
  }

  .home-daily-date-picker-card {
    height: calc(100dvh - 32px);
  }

  .home-daily-date-picker-grid {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.home-daily-date-reference-zoom-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--text);
  background: transparent;
}

.home-daily-date-reference-zoom-dialog::backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-daily-date-reference-zoom-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 20px;
  background: rgba(7, 22, 28, 0.995);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.home-daily-date-reference-zoom-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-daily-date-reference-zoom-card > header > div:first-child {
  display: grid;
  gap: 3px;
}

.home-daily-date-reference-zoom-card > header span {
  color: var(--muted);
  font-size: 9px;
}

.home-daily-date-reference-zoom-card > header strong {
  font-size: 17px;
}

.home-daily-date-reference-zoom-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-daily-date-reference-zoom-actions button {
  min-width: 36px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.home-daily-date-reference-zoom-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.home-daily-date-reference-zoom-shell {
  position: relative;
  min-height: 390px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 14px;
  background: rgba(2, 10, 14, 0.62);
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.home-daily-date-reference-zoom-shell svg {
  display: block;
  height: 360px;
  touch-action: pan-x;
}

.home-daily-date-reference-zoom-axis {
  font-size: 9px;
}

.home-daily-timeline-period-picker {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 7px;
  margin-left: auto;
  margin-top: 0;
}

.home-daily-timeline-period-picker[hidden] {
  display: none;
}

.home-daily-timeline-period-picker button,
.home-daily-timeline-period-picker select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(4, 14, 15, 0.9);
  font-size: 11px;
  font-weight: 750;
}

.home-daily-timeline-period-picker button {
  color: var(--accent);
  cursor: pointer;
  font-size: 22px;
}

.home-daily-timeline-period-picker button:disabled {
  color: var(--subtle);
  cursor: not-allowed;
  opacity: 0.45;
}

.home-daily-timeline-period-picker select {
  width: 100%;
  padding: 0 34px 0 12px;
  text-align: center;
}

.home-daily-timeline-sort {
  display: grid;
  width: 100%;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.home-daily-timeline-sort[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.home-daily-timeline-toolbar:is(.is-trend-view, .is-overall-view) .home-daily-timeline-sort[hidden] {
  display: none;
}

.home-daily-timeline-sort select {
  min-height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(4, 14, 15, 0.9);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.home-daily-timeline-view-switch button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.home-daily-timeline-view-switch button[aria-pressed="true"] {
  color: var(--accent);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-weight: 850;
}

.home-daily-timeline-view-switch button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: -4px;
}

.home-daily-timeline-summary > div {
  display: grid;
  min-height: 70px;
  align-content: center;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 22, 22, 0.72);
}

.home-daily-timeline-summary span {
  color: var(--muted);
  font-size: 10px;
}

.home-daily-timeline-summary strong {
  font-size: 23px;
}

.home-daily-timeline-insights {
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 15px;
  background: rgba(9, 22, 22, 0.64);
}

.home-daily-timeline-insights[hidden],
.home-daily-timeline-dates[hidden] {
  display: none;
}

.home-daily-timeline-insights-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-daily-timeline-insights-heading strong {
  color: var(--accent);
  font-size: 13px;
}

.home-daily-timeline-insights-heading span,
.home-daily-timeline-insights > p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.home-daily-timeline-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: 0;
}

.home-daily-timeline-insights-grid > div {
  min-width: 0;
}

.home-daily-timeline-insights-grid dt {
  color: var(--muted);
  font-size: 9px;
}

.home-daily-timeline-insights-grid dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.home-daily-timeline-insights > p {
  margin: 9px 0 0;
}

.home-daily-timeline-scope-slot[hidden],
.home-daily-timeline-summary[hidden],
.home-daily-timeline-chart-shell[hidden],
.home-daily-month-weeks[hidden],
.home-daily-overall-trends[hidden],
.home-daily-overall-combined[hidden],
.home-daily-overall-split[hidden] {
  display: none;
}

.home-daily-timeline-toolbar.is-trend-view {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
  align-items: start;
}

.home-daily-timeline-toolbar.is-overall-view {
  min-height: 53px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
}

.home-daily-month-weeks {
  position: relative;
  min-width: 0;
  padding: 10px 12px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 15px;
  background: rgba(4, 14, 15, 0.72);
}

.home-daily-month-weeks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.home-daily-month-weeks-heading > strong {
  color: var(--text);
  font-size: 11px;
}

#home-daily-month-weeks-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 8px;
}

#home-daily-month-weeks-legend button {
  padding: 2px 5px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

#home-daily-month-weeks-legend button::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

#home-daily-month-weeks-legend button[aria-pressed="false"] {
  opacity: 0.38;
  text-decoration: line-through;
}

.home-daily-month-weeks svg {
  display: block;
  width: 100%;
  height: 112px;
  overflow: visible;
}

.home-daily-month-weeks-grid-line,
.home-daily-overall-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-daily-month-weeks-axis {
  fill: var(--muted);
  font-size: 8px;
}

.home-daily-month-week-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.home-daily-month-week-dot {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

:is(.home-daily-month-week-line, .home-daily-month-week-dot, .home-daily-interactive-marker, #home-daily-month-weeks-legend button).is-week-1 { color: #25f4ee; stroke: #25f4ee; fill: #25f4ee; }
:is(.home-daily-month-week-line, .home-daily-month-week-dot, .home-daily-interactive-marker, #home-daily-month-weeks-legend button).is-week-2 { color: #0a84ff; stroke: #0a84ff; fill: #0a84ff; }
:is(.home-daily-month-week-line, .home-daily-month-week-dot, .home-daily-interactive-marker, #home-daily-month-weeks-legend button).is-week-3 { color: #ff9f0a; stroke: #ff9f0a; fill: #ff9f0a; }
:is(.home-daily-month-week-line, .home-daily-month-week-dot, .home-daily-interactive-marker, #home-daily-month-weeks-legend button).is-week-4 { color: #bf5af2; stroke: #bf5af2; fill: #bf5af2; }

.home-daily-overall-trends {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 8%, rgba(var(--accent-rgb), 0.09), transparent 34%),
    rgba(4, 14, 15, 0.76);
}

.home-daily-overall-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-daily-overall-heading > div {
  display: grid;
  gap: 3px;
}

.home-daily-overall-heading span,
.home-daily-overall-heading small,
.home-daily-overall-controls label > span,
.home-daily-overall-layout > span {
  color: var(--muted);
  font-size: 9px;
}

.home-daily-overall-heading strong {
  font-size: 18px;
}

.home-daily-overall-heading b {
  min-width: 62px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 13px;
  text-align: center;
}

.home-daily-overall-heading b[data-tone="down"] { color: #ff9f0a; border-color: rgba(255, 159, 10, 0.3); background: rgba(255, 159, 10, 0.1); }
.home-daily-overall-heading b[data-tone="wave"] { color: #bf5af2; border-color: rgba(191, 90, 242, 0.3); background: rgba(191, 90, 242, 0.1); }
.home-daily-overall-heading b[data-tone="steady"] { color: #64d2ff; border-color: rgba(100, 210, 255, 0.3); background: rgba(100, 210, 255, 0.1); }

.home-daily-overall-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.home-daily-overall-controls label,
.home-daily-overall-layout {
  display: grid;
  gap: 5px;
}

.home-daily-overall-controls select,
.home-daily-overall-layout > div {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(7, 20, 24, 0.9);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.home-daily-overall-controls select {
  width: 100%;
  padding: 0 34px 0 12px;
}

.home-daily-overall-layout > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
}

.home-daily-overall-layout button {
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.home-daily-overall-layout button[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
}

.home-daily-overall-combined,
.home-daily-overall-split > article {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 15px;
  background: rgba(2, 10, 14, 0.46);
  scrollbar-width: thin;
  touch-action: pan-x;
}

.home-daily-overall-combined {
  padding: 8px 10px 10px;
}

.home-daily-overall-combined svg,
.home-daily-overall-split svg {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
  touch-action: pan-x;
}

.home-daily-overall-combined svg.is-compact-data { height: 174px; }
.home-daily-overall-split svg.is-compact-data { height: 116px; }

.home-daily-interactive-guide {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-dasharray: 4 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-daily-interactive-marker {
  fill: var(--background);
  stroke: var(--accent);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.home-daily-interactive-tooltip {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 0;
  display: grid;
  width: 164px;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 10px;
  background: rgba(5, 14, 16, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform: translate3d(var(--interactive-tooltip-x, 8px), 0, 0);
  will-change: transform;
}

.home-daily-interactive-tooltip[hidden] { display: none; }

.home-daily-interactive-tooltip strong {
  color: var(--text);
  font-size: 10px;
}

.home-daily-interactive-tooltip span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.home-daily-interactive-tooltip span > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.home-daily-interactive-tooltip b { color: var(--text); }

.home-daily-overall-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.18));
  vector-effect: non-scaling-stroke;
}

.home-daily-overall-dot {
  fill: rgba(4, 14, 15, 0.96);
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.home-daily-overall-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 9px;
}

.home-daily-overall-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.home-daily-overall-split > article {
  min-width: 0;
  padding: 10px;
}

.home-daily-overall-split article > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 5px;
}

.home-daily-overall-split article > header strong {
  font-size: 11px;
}

.home-daily-overall-split article > header span {
  color: var(--muted);
  font-size: 8px;
}

.home-daily-overall-split svg {
  height: 156px;
}

.home-daily-timeline-chart-shell {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(37, 244, 238, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 18%, rgba(37, 244, 238, 0.07), transparent 34%),
    rgba(4, 14, 15, 0.78);
  touch-action: pan-y;
  user-select: none;
}

.home-daily-timeline-chart-shell.is-compact-data,
.home-daily-timeline-chart-shell.is-compact-data .home-daily-timeline-chart {
  min-height: 286px;
  height: 286px;
}

.home-daily-timeline-chart-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.home-daily-timeline-chart-shell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.home-daily-timeline-chart {
  display: block;
  width: 100%;
  height: 430px;
}

.home-daily-timeline-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.home-daily-timeline-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.home-daily-timeline-hour-label {
  font-size: 9px;
  letter-spacing: -0.02em;
}

.home-daily-timeline-day-end-label {
  transform: translateY(12px);
}

.home-daily-timeline-hour-label.is-future,
.home-daily-timeline-bar-value.is-future {
  opacity: 0.42;
}

.home-daily-timeline-bar-value {
  fill: var(--text);
  font-size: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.home-daily-timeline-progress-label {
  fill: var(--accent);
  font-size: 8px;
  font-weight: 800;
}

.home-daily-timeline-area {
  fill: rgba(var(--accent-rgb), 0.1);
}

.home-daily-timeline-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.home-daily-timeline-bar {
  fill: rgba(var(--accent-rgb), 0.58);
  stroke: rgba(var(--accent-rgb), 0.85);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.home-daily-timeline-bar.is-future {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.08);
}

.home-daily-timeline-bar.is-top {
  fill: rgba(var(--accent-rgb), 0.82);
}

.home-daily-timeline-bar.is-top-1 {
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar {
  fill: rgba(37, 244, 238, 0.58);
  stroke: rgba(37, 244, 238, 0.85);
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-top {
  fill: rgba(37, 244, 238, 0.82);
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-top-1 {
  fill: #25f4ee;
  stroke: rgba(255, 255, 255, 0.8);
}

.home-daily-timeline-bar.is-trend {
  cursor: pointer;
  transition: filter 120ms ease, opacity 120ms ease, stroke-width 120ms ease;
}

.home-daily-timeline-bar.is-trend:hover,
.home-daily-timeline-bar.is-trend:focus {
  outline: none;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.42));
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-trend:hover,
.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-trend:focus {
  filter: drop-shadow(0 0 5px rgba(37, 244, 238, 0.42));
}

.home-daily-timeline-bar.is-trend.is-partial,
.home-daily-timeline-bar.is-trend.is-incomplete {
  fill: rgba(var(--accent-rgb), 0.25);
  stroke: rgba(var(--accent-rgb), 0.9);
  stroke-dasharray: 4 3;
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-trend.is-partial,
.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-bar.is-trend.is-incomplete {
  fill: rgba(37, 244, 238, 0.25);
  stroke: rgba(37, 244, 238, 0.9);
}

.home-daily-timeline-bar.is-trend.is-missing {
  fill: transparent !important;
  stroke: rgba(255, 255, 255, 0.28) !important;
  stroke-dasharray: 2 3;
}

.home-daily-timeline-bar.is-trend.is-zero {
  stroke-width: 1.5;
}

.home-daily-timeline-bar-value.is-trend-status.is-missing,
.home-daily-timeline-bar-value.is-trend-status.is-partial,
.home-daily-timeline-bar-value.is-trend-status.is-incomplete {
  fill: var(--muted);
  font-size: 8px;
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-area {
  fill: rgba(37, 244, 238, 0.1);
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-line {
  stroke: #25f4ee;
}

.home-daily-timeline-crosshair {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.home-daily-timeline-marker {
  fill: var(--background);
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.home-daily-timeline-chart-shell[data-mode="viewed"] .home-daily-timeline-marker {
  stroke: #25f4ee;
}

.home-daily-timeline-tooltip {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 0;
  display: grid;
  width: 176px;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 244, 238, 0.3);
  border-radius: 12px;
  background: rgba(5, 14, 16, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transform: translate3d(var(--timeline-tooltip-x, 10px), 0, 0);
  contain: layout paint style;
  will-change: transform;
}

.home-daily-timeline-tooltip.is-right {
  right: auto;
  left: 0;
}

.home-daily-timeline-tooltip[hidden] {
  display: none;
}

.home-daily-timeline-tooltip strong {
  color: var(--text);
  font-size: 12px;
}

.home-daily-timeline-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.home-daily-timeline-tooltip b {
  color: var(--text);
}

.home-daily-timeline-empty {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: var(--muted);
  background: rgba(5, 14, 16, 0.7);
  font-size: 13px;
}

.home-daily-timeline-empty strong {
  color: var(--text);
  font-size: 13px;
}

.home-daily-timeline-loader {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(var(--accent-rgb), 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.home-daily-timeline-loader[hidden] {
  display: none;
}

.home-daily-timeline-empty[hidden] {
  display: none;
}

.home-daily-timeline-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .home-daily-date-reference-zoom-dialog {
    width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }

  .home-daily-date-reference-zoom-card {
    min-height: 100dvh;
    align-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-daily-date-reference-zoom-card > header {
    align-items: flex-start;
  }

  .home-daily-date-reference-zoom-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .home-daily-date-reference-zoom-shell {
    min-height: 350px;
  }

  .home-daily-date-reference-zoom-shell svg {
    height: 330px;
  }

  .home-daily-timeline-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .home-daily-timeline-card {
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }

  .home-daily-timeline-header {
    padding: max(12px, env(safe-area-inset-top)) 13px 12px;
  }

  .home-daily-timeline-header h2 {
    font-size: 18px;
  }

  .home-daily-timeline-header p:last-child {
    display: none;
  }

  .home-daily-timeline-body {
    padding: 12px 12px max(18px, env(safe-area-inset-bottom));
  }

  .home-daily-timeline-dates {
    grid-auto-columns: minmax(92px, 36vw);
  }

  .home-daily-timeline-summary > div {
    min-height: 64px;
    padding: 10px 12px;
  }

  .home-daily-timeline-view-switch {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 18px;
    overflow: hidden;
    touch-action: manipulation;
  }

  .home-daily-timeline-view-switch::-webkit-scrollbar {
    display: none;
  }

  .home-daily-timeline-view-switch button {
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
    white-space: nowrap;
  }

  .home-daily-timeline-toolbar {
    display: grid;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .home-daily-timeline-toolbar.is-trend-view,
  .home-daily-timeline-toolbar.is-overall-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-daily-month-weeks {
    margin-top: 7px;
  }

  .home-daily-month-weeks-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #home-daily-month-weeks-legend {
    justify-content: flex-start;
  }

  .home-daily-overall-trends {
    padding: 12px;
  }

  .home-daily-overall-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-daily-overall-layout {
    grid-column: 1 / -1;
  }

  .home-daily-overall-combined svg {
    height: 220px;
  }

  .home-daily-overall-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-daily-timeline-scope-slot {
    min-height: 54px;
  }

  .home-daily-date-picker-open {
    width: 100%;
  }

  .home-daily-date-picker {
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .home-daily-date-picker-card {
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
  }

  .home-daily-date-picker-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 205px;
  }

  .home-daily-date-picker-calendar {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .home-daily-date-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .home-daily-date-picker-grid button {
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-daily-date-reference-shell,
  .home-daily-date-reference-scroll {
    min-height: 156px;
    height: 156px;
  }

  .home-daily-timeline-period-picker {
    width: 100%;
    margin-left: 0;
  }

  .home-daily-timeline-sort {
    min-width: 0;
  }

  .home-daily-timeline-sort select {
    width: 100%;
    min-height: 40px;
    padding-left: 9px;
    font-size: 10px;
  }

  .home-daily-timeline-view-switch button {
    min-height: 44px;
    border-radius: 13px;
    font-size: clamp(9px, 2.65vw, 11px);
  }

  .home-daily-timeline-summary strong {
    font-size: 20px;
  }

  .home-daily-timeline-insights {
    margin-bottom: 10px;
    padding: 10px;
  }

  .home-daily-timeline-insights-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .home-daily-timeline-insights-heading span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-daily-timeline-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .home-daily-timeline-insights-grid > div {
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }

  .home-daily-timeline-insights-grid dd {
    display: -webkit-box;
    min-height: 30px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-daily-timeline-insights > p {
    overflow: hidden;
    margin-top: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-daily-timeline-chart-shell,
  .home-daily-timeline-chart {
    min-height: 260px;
    height: 260px;
  }

  .home-daily-timeline-chart-shell.is-compact-data,
  .home-daily-timeline-chart-shell.is-compact-data .home-daily-timeline-chart {
    min-height: 224px;
    height: 224px;
  }

  .home-daily-timeline-chart[data-view-mode="hourly"] {
    min-width: 1316px;
  }

  .home-daily-timeline-hour-label {
    font-size: 10px;
  }

  .home-daily-timeline-axis-label {
    font-size: 12px;
  }

  .home-daily-timeline-tooltip {
    top: 12px;
    width: 158px;
    padding: 9px 10px;
  }
}

@media (max-width: 350px) {
  .home-daily-timeline-toolbar {
    grid-template-columns: 1fr;
  }

  .home-daily-timeline-sort span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .home-daily-timeline-summary {
    gap: 7px;
  }

  .home-daily-timeline-summary > div {
    padding-inline: 9px;
  }

  .home-daily-timeline-summary strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-card-action,
  .summary-action-cue {
    transition: none;
  }
}

.summary-label {
  color: rgba(220, 230, 231, 0.82);
  font-weight: 680;
}

.account-live-insight-label,
.metric span,
.home-live-trend-summary span,
.home-daily-timeline-summary span,
.home-daily-timeline-insights-grid dt,
.home-daily-timeline-sort {
  color: rgba(202, 216, 218, 0.78);
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

dialog::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

dialog {
  opacity: 0;
  transition:
    opacity 300ms cubic-bezier(0.2, 0.72, 0.2, 1),
    display 300ms allow-discrete,
    overlay 300ms allow-discrete;
}

dialog[open] {
  opacity: 1;
  transition:
    opacity 500ms cubic-bezier(0.2, 0.72, 0.2, 1),
    display 500ms allow-discrete,
    overlay 500ms allow-discrete;
}

dialog::backdrop {
  opacity: 0;
  transition:
    opacity 300ms cubic-bezier(0.2, 0.72, 0.2, 1),
    display 300ms allow-discrete,
    overlay 300ms allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
  transition:
    opacity 500ms cubic-bezier(0.2, 0.72, 0.2, 1),
    display 500ms allow-discrete,
    overlay 500ms allow-discrete;
}

@starting-style {
  dialog[open],
  dialog[open]::backdrop {
    opacity: 0;
  }
}


.summary-hint,
.home-live-trend-session-meta,
.home-daily-timeline-insights-heading span,
.home-daily-timeline-insights > p,
.trend-acceptance-summary small {
  color: rgba(181, 195, 197, 0.72);
  font-size: 10.5px;
  line-height: 1.45;
}

.account-live-insight-value,
.metric strong,
.home-daily-timeline-insights-grid dd {
  color: rgba(244, 248, 248, 0.94);
}

@media (max-width: 680px) {
  .account-live-insight-label,
  .metric span,
  .home-live-trend-summary span,
  .home-daily-timeline-summary span,
  .home-daily-timeline-insights-grid dt,
  .home-daily-timeline-sort {
    font-size: 10px;
  }

  .summary-hint,
  .home-live-trend-session-meta,
  .home-daily-timeline-insights-heading span,
  .home-daily-timeline-insights > p,
  .trend-acceptance-summary small {
    font-size: 10px;
  }
}
