:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-muted: #f2f4f8;
  --text: #111936;
  --text-soft: #33415f;
  --muted: #69748d;
  --line: rgba(17, 25, 54, 0.09);
  --line-strong: rgba(17, 25, 54, 0.15);
  --navy: #111936;
  --navy-2: #1b2652;
  --accent: #e24b8f;
  --accent-soft: rgba(226, 75, 143, 0.12);
  --green: #20a66a;
  --orange: #f59a33;
  --red: #ef4444;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 70px rgba(17, 25, 54, 0.08);
  --shadow-card: 0 16px 38px rgba(17, 25, 54, 0.07);
  --font-ui: "Geist", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 84% 8%, rgba(226, 75, 143, 0.13), transparent 28rem),
    radial-gradient(circle at 6% 78%, rgba(17, 25, 54, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(17, 25, 54, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 25, 54, 0.015) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::selection {
  background: rgba(226, 75, 143, 0.18);
}

button,
input,
canvas {
  font: inherit;
}

a {
  color: inherit;
}

code {
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.06);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 44px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100dvh - 40px);
  padding: 22px;
  border: 1px solid rgba(245, 246, 247, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #081539 0%, #071537 33%, #071538 66%, #081538 100%);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(8, 21, 57, 0.32);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  padding: 4px 2px 0;
}

.brand-link {
  display: inline-flex;
  max-width: 100%;
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-wordmark {
  color: #f5f6f7;
  font-family: "Geist", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.45rem, 1vw + 1rem, 1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 24px;
  flex: 1;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-heading,
.section-label,
.kpi-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-heading {
  color: #f5f6f7;
  padding: 0 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: #f5f6f7;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover {
  background: rgba(245, 246, 247, 0.08);
  color: #f5f6f7;
}

.nav-link.is-active {
  background: linear-gradient(90deg, #e21e6b 0%, #a52964 100%);
  color: #f5f6f7;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(226, 30, 107, 0.22);
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-copy span,
.status-warning,
.panel-meta,
.ranking-subline,
.kpi-note,
.hero-copy p,
.toggle-card small,
.methodology-block p {
  color: var(--muted);
}

.main-shell {
  min-width: 0;
  position: relative;
}

.mobile-topbar {
  display: none;
}

.status-strip,
.command-bar,
.panel,
.methodology-strip,
.page-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
}

.status-indicator,
.data-source-badge,
.status-page-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-indicator {
  padding: 0 2px 0 0;
}

.data-source-badge {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
}

.status-page-link {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(17, 25, 54, 0.04);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.status-page-link.is-mobile-entry {
  display: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c4ccdf;
  box-shadow: 0 0 0 4px rgba(196, 204, 223, 0.2);
}

.status-dot.is-success {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 166, 106, 0.12);
}

.status-dot.is-warning {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 154, 51, 0.12);
}

.status-dot.is-danger {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.status-warning {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 0;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 20;
  overflow: visible;
}

.scope-control,
.command-actions,
.panel-tools,
.chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scope-control {
  padding: 28px 28px 24px;
  overflow: visible;
}

.time-filter-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  border-left: 1px solid var(--line);
}

.time-filter-panel {
  padding: 28px 28px 24px;
  min-width: 0;
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.filter-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

.scope-button,
.scope-chip,
.filter-chip,
.time-filter-trigger {
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.scope-button,
.filter-chip {
  padding: 0 14px;
}

.scope-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 52px 14px 16px;
  min-height: 64px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 47, 114, 0.5);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 25, 54, 0.06);
  cursor: pointer;
}

.scope-button:hover,
.scope-button[aria-expanded="true"] {
  border-color: rgba(255, 47, 114, 0.5);
  box-shadow: 0 18px 38px rgba(255, 47, 114, 0.08);
}

.scope-dropdown {
  position: relative;
  z-index: 40;
  width: 100%;
}

.scope-button::after,
.time-filter-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 180ms ease;
}

.scope-button[aria-expanded="true"]::after,
.time-filter-trigger[aria-expanded="true"]::after {
  transform: translateY(-25%) rotate(-135deg);
}

.scope-button-label {
  font-size: 1rem;
  font-weight: 700;
}

.control-button-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #ff2f72;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)),
    linear-gradient(135deg, rgba(255, 60, 122, 0.16), rgba(255, 60, 122, 0.05));
}

.control-button-icon svg,
.time-filter-option-icon svg,
.time-preview-card-icon svg,
.time-filter-info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time-filter-dropdown {
  position: relative;
  z-index: 40;
}

.time-filter-trigger {
  position: relative;
  width: min(100%, 320px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 52px 14px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 47, 114, 0.5);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(255, 47, 114, 0.08);
  cursor: pointer;
}

.time-filter-trigger-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.time-filter-trigger-title {
  font-size: 1rem;
  font-weight: 800;
}

.time-filter-trigger-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.time-filter-trigger-meta,
.time-filter-option-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.time-filter-trigger .time-filter-trigger-subtitle,
.time-filter-trigger .time-filter-trigger-meta {
  display: none;
}

.time-filter-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  width: min(100%, 812px);
  padding: 18px;
  border: 1px solid rgba(17, 25, 54, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 25, 54, 0.1);
}

.time-filter-menu[hidden] {
  display: none;
}

.time-filter-menu {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.time-filter-options {
  display: grid;
  gap: 10px;
}

.time-filter-option {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 44px 14px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.time-filter-option:hover,
.time-filter-option.is-selected {
  background: linear-gradient(135deg, rgba(255, 60, 122, 0.12), rgba(255, 255, 255, 0.86));
}

.time-filter-option.is-selected::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 14px;
  border-right: 2px solid #ff2f72;
  border-bottom: 2px solid #ff2f72;
  transform: translateY(-60%) rotate(40deg);
}

.time-filter-option-icon,
.time-preview-card-icon,
.time-filter-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ff2f72;
  background: linear-gradient(135deg, rgba(255, 60, 122, 0.14), rgba(255, 60, 122, 0.05));
}

.time-filter-option-copy,
.time-preview-card-copy {
  display: grid;
  gap: 4px;
}

.time-filter-option-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.time-filter-option-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.time-filter-preview {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(17, 25, 54, 0.08);
  overflow: hidden;
}

.time-preview-panel {
  display: grid;
  gap: 16px;
}

.time-preview-panel[hidden] {
  display: none;
}

.time-preview-heading {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.time-preview-heading span {
  color: var(--muted);
  font-weight: 600;
}

.time-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(17, 25, 54, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
}

.time-preview-card-copy strong {
  font-size: 1.05rem;
}

.time-preview-card-copy span {
  color: var(--muted);
  font-weight: 600;
}

.time-filter-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.time-filter-note:empty {
  display: none;
}

.time-filter-note::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid rgba(17, 25, 54, 0.2);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.time-filter-note-inline::before {
  display: none;
}

.scope-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(17, 25, 54, 0.12);
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
}

.scope-menu-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.scope-menu-item {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  transition: background 160ms ease, color 160ms ease;
}

.scope-menu-item:hover,
.scope-menu-item.is-selected {
  background: linear-gradient(135deg, rgba(255, 60, 122, 0.12), rgba(255, 255, 255, 0.86));
}

.scope-menu-note {
  margin: 10px 2px 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.scope-button:hover,
.filter-chip:hover,
.icon-button:hover {
  box-shadow: 0 10px 24px rgba(17, 25, 54, 0.08);
}

.button:active,
.scope-button:active,
.filter-chip:active,
.icon-button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  color: var(--text);
}

.dashboard {
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: center;
  min-height: 182px;
  background:
    radial-gradient(circle at 92% 12%, rgba(226, 75, 143, 0.16), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.hero-copy {
  max-width: 760px;
}

.section-label {
  color: var(--navy-2);
}

.hero-copy h1,
.panel h2,
.methodology-block h2 {
  margin: 0;
  letter-spacing: -0.05em;
  color: var(--navy);
}

.hero-copy h1 {
  max-width: 11.5ch;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.03;
}

.hero-copy p {
  max-width: 56rem;
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.toggle-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(17, 25, 54, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.toggle-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.toggle-copy small {
  display: block;
  line-height: 1.6;
}

.switch {
  position: relative;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.16);
  transition: background 180ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 25, 54, 0.16);
  transition: transform 180ms ease;
}

.switch input:checked + .switch-ui {
  background: var(--navy);
}

.switch input:checked + .switch-ui::after {
  transform: translateX(24px);
}

.kpi-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

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

.kpi-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    linear-gradient(180deg, rgba(238, 241, 247, 0.36), rgba(255, 255, 255, 0));
}

.kpi-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kpi-label {
  color: var(--text-soft);
  max-width: 15ch;
}

.kpi-value,
.ranking-value strong {
  font-family: var(--font-mono);
  font-weight: 700;
}

.kpi-value {
  display: block;
  font-size: clamp(2rem, 2.4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.kpi-note {
  display: inline-flex;
  align-items: center;
  font-size: 0.87rem;
  line-height: 1.45;
}

.kpi-note-group {
  display: grid;
  gap: 6px;
}

.kpi-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.inline-link-light {
  color: rgba(255, 255, 255, 0.94);
}

.accent-card {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 84% 90%, rgba(226, 75, 143, 0.88), transparent 44%),
    linear-gradient(135deg, #18265a 0%, #111936 60%, #1d2d68 100%);
}

.accent-card .kpi-label,
.accent-card .kpi-note {
  color: rgba(255, 255, 255, 0.82);
}

.sparkline {
  width: 88px;
  height: 32px;
  flex: 0 0 auto;
}

.sparkline path {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-green path {
  stroke: #27c46f;
}

.sparkline-accent path {
  stroke: #8c5bff;
}

.sparkline-pink path {
  stroke: #ff58a8;
}

.donut-card {
  align-items: flex-start;
}

.mini-donut {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-donut-chart {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--navy) 0deg 300deg, rgba(17, 25, 54, 0.12) 300deg 360deg);
  position: relative;
}

.mini-donut-chart::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface-solid);
}

.mini-donut-chart span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.mini-donut-chart-neutral {
  background: conic-gradient(#cdd5e6 0deg 360deg);
}

.mini-donut-chart-large {
  width: 124px;
  height: 124px;
  margin: 0 auto;
}

.mini-donut-chart-large::before {
  inset: 18px;
}

.mini-donut-chart-large span {
  font-size: 1rem;
}

.mini-donut-legend {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

.mini-donut-legend-list {
  display: flex;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  text-align: left;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.04);
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-soft);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.demo-badge-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(226, 75, 143, 0.12);
  border: 1px solid rgba(226, 75, 143, 0.16);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.accent-card .demo-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.wide-panel {
  grid-column: 1 / -1;
}

.ranking-panel {
  grid-column: span 4;
}

.ranking-panel-combined {
  grid-column: span 4;
}

.distribution-panel {
  grid-column: span 3;
}

.distribution-panel-wide {
  grid-column: span 6;
}

.distribution-panel-compact {
  grid-column: span 3;
}

.distribution-panel-quality {
  grid-column: span 6;
}

.insight-panel {
  min-height: 336px;
}

.origin-panel,
.origin-language-panel {
  min-height: 336px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.panel-header h2,
.methodology-block h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.panel-header-chart {
  margin-bottom: 10px;
}

.panel-tools {
  justify-content: flex-end;
}

.panel-meta {
  margin: 3px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.panel-header-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.panel-meta-soft {
  color: var(--muted);
  font-weight: 500;
  max-width: 30ch;
}

.distribution-panel-compact .panel-header {
  margin-bottom: 12px;
}

.panel-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f6fe2;
  text-decoration: none;
}

.ranking-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(17, 25, 54, 0.05);
}

.ranking-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.ranking-tab.is-active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(17, 25, 54, 0.08);
}

.ranking-panels {
  display: grid;
}

.ranking-panel-view {
  display: none;
}

.ranking-panel-view.is-active {
  display: block;
}

.ranking-panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.chart-legend {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trend-weekend-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(17, 25, 54, 0.58);
}

.trend-weekend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(226, 75, 143, 0.1);
  flex: 0 0 auto;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-navy {
  background: var(--navy);
}

.legend-accent {
  background: var(--accent);
}

.echart {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.chart-wrap {
  position: relative;
  min-height: 340px;
}

.mini-chart-wrap {
  position: relative;
  min-height: 230px;
}

.mini-chart-wrap-compact {
  min-height: 188px;
}

.insight-chart-wrap,
.heatmap-chart-wrap {
  min-height: 250px;
}

.mini-chart-wrap-donut {
  min-height: 220px;
  width: min(100%, 240px);
}

.donut-chart-wrap {
  position: relative;
  min-height: 220px;
}

.echart canvas {
  border-radius: inherit;
}

.chart-empty-state {
  margin: 0;
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 24px;
}

.ranking-list {
  display: grid;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.origin-language-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ranking-bar {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 25, 54, 0.06);
}

.ranking-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(17, 25, 54, 0.72), rgba(226, 75, 143, 0.72));
}

.ranking-index {
  width: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.ranking-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.ranking-subline {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ranking-value {
  text-align: right;
}

.ranking-value strong {
  display: block;
  font-size: 1rem;
}

.dashboard-ranking-page {
  display: block;
}

.ranking-page-shell {
  padding: 24px;
}

.ranking-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.ranking-page-intro h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ranking-page-copy {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ranking-page-tip {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.94));
}

.ranking-page-tip-icon,
.ranking-summary-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.ranking-page-tip-icon {
  color: #7c6bff;
  background: rgba(124, 107, 255, 0.12);
}

.ranking-page-tip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-page-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.ranking-page-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ranking-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ranking-page-toolbar-stack {
  display: grid;
  gap: 10px;
}

.ranking-mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(17, 25, 54, 0.05);
  width: fit-content;
}

.ranking-mode-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.ranking-mode-tab.is-active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(17, 25, 54, 0.08);
}

.ranking-page-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ranking-page-panels {
  display: grid;
  gap: 18px;
}

.ranking-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.ranking-page-table-card,
.ranking-page-map-card,
.ranking-page-summary-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(17, 25, 54, 0.05);
}

.ranking-page-table-card,
.ranking-page-map-card {
  padding: 18px;
}

.ranking-page-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ranking-page-table-head {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(150px, 1.2fr) minmax(120px, 0.9fr) minmax(120px, 0.85fr) minmax(110px, 0.7fr);
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ranking-page-table {
  display: grid;
}

.ranking-page-row {
  display: grid;
  grid-template-columns: 38px minmax(150px, 1.2fr) minmax(120px, 0.9fr) minmax(120px, 0.85fr) minmax(110px, 0.7fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-page-row:last-child {
  border-bottom: 0;
}

.ranking-page-rank {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(17, 25, 54, 0.05);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.ranking-page-row:nth-child(1) .ranking-page-rank {
  background: rgba(255, 43, 122, 0.14);
  color: #ff2f72;
}

.ranking-page-name strong {
  display: block;
  font-size: 0.94rem;
}

.ranking-page-name span,
.ranking-page-table-empty,
.ranking-page-summary-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ranking-page-count {
  font-size: 0.94rem;
  font-weight: 800;
}

.ranking-page-delta {
  font-size: 0.84rem;
  font-weight: 800;
}

.ranking-page-delta.up {
  color: var(--green);
}

.ranking-page-delta.down {
  color: var(--red);
}

.ranking-page-trend {
  position: relative;
  height: 22px;
}

.ranking-page-trend::before,
.ranking-page-trend::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
}

.ranking-page-trend::before {
  height: 2px;
  background: rgba(17, 25, 54, 0.08);
  transform: translateY(-50%);
}

.ranking-page-trend::after {
  height: 8px;
  top: 50%;
  left: 0;
  width: var(--trend-width, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 25, 54, 0.22), rgba(255, 43, 122, 0.88));
  transform: translateY(-50%);
}

.ranking-map-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 43, 122, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 43, 122, 0.1), rgba(255, 255, 255, 0.96) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 255, 0.95));
}

.ranking-map-placeholder span {
  color: #ff2f72;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

.ranking-page-summary-card {
  padding: 18px;
}

.ranking-page-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ranking-summary-dot.is-up {
  background: rgba(32, 166, 106, 0.12);
}

.ranking-summary-dot.is-down {
  background: rgba(245, 154, 51, 0.14);
}

.ranking-summary-dot.is-note {
  background: rgba(124, 107, 255, 0.14);
}

.ranking-page-summary-list {
  display: grid;
  gap: 10px;
}

.ranking-page-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.84rem;
}

.ranking-page-summary-item strong {
  font-size: 0.88rem;
}

.ranking-page-summary-value {
  font-weight: 800;
}

.delta {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 700;
}

.delta.up {
  color: var(--green);
}

.delta.down {
  color: var(--red);
}

.popover-card {
  position: absolute;
  right: 18px;
  top: calc(100% - 8px);
  z-index: 25;
  width: min(420px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(17, 25, 54, 0.96);
  box-shadow: 0 20px 46px rgba(6, 10, 26, 0.28);
  color: rgba(255, 255, 255, 0.92);
}

.popover-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.popover-card strong,
.popover-list {
  color: #ffffff;
}

.popover-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.popover-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.popover-list {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.donut-panel-body {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.donut-panel-body .mini-chart-wrap {
  width: 100%;
  min-width: 0;
}

.donut-panel-body-compact {
  gap: 10px;
}

.origin-donut-panel-body {
  min-height: 248px;
}

.origin-donut-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 248px;
}

.distribution-panel-hair .mini-chart-wrap {
  min-height: 188px;
}

.methodology-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 2px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.methodology-block {
  padding: 22px 24px;
}

.methodology-block + .methodology-block {
  border-left: 1px solid var(--line);
}

.methodology-block p {
  margin: 12px 0 0;
  max-width: 46ch;
  line-height: 1.7;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}

.footer-copy span {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-footer a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms ease;
}

.icon-button span {
  display: block;
}

.icon-button:not(.icon-button-circle) span {
  width: 16px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button:not(.icon-button-circle) span + span {
  margin-top: 4px;
}

.brand-link-mobile {
  align-items: center;
}

.icon-button-circle {
  border-radius: 999px;
}

.info-ring {
  width: 18px;
  height: 18px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.info-ring::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.info-ring::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.mobile-logo {
  width: 26px;
  height: auto;
  display: block;
}

.brand-lockup-mobile {
  gap: 8px;
}

.brand-wordmark-mobile {
  color: var(--navy);
  font-size: 1.1rem;
}

.mobile-menu-backdrop,
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(17, 25, 54, 0.18);
}

.mobile-menu-panel {
  display: none;
}

.mobile-menu-panel.is-open {
  display: grid;
}

.mobile-menu-panel,
.mobile-sheet {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 25, 54, 0.14);
}

.mobile-menu-panel {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 40;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.mobile-menu-link:hover {
  background: rgba(17, 25, 54, 0.05);
}

.mobile-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 41;
  padding: 14px 14px 18px;
  border-radius: 24px;
}

.mobile-sheet p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mobile-sheet-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.16);
}

.mobile-sheet-close {
  width: 100%;
}

.status-page {
  display: grid;
  gap: 18px;
}

.status-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.status-overview-copy p {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

.status-overview-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--navy);
}

.status-overview-meta {
  display: grid;
  gap: 12px;
}

.status-meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px 18px;
}

.status-meta-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
}

.status-meta-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.status-meta-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.status-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.status-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-badge-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c4ccdf;
  box-shadow: 0 0 0 6px rgba(196, 204, 223, 0.14);
}

.status-badge-dot.is-success {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(32, 166, 106, 0.14);
}

.status-badge-dot.is-warning {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(245, 154, 51, 0.14);
}

.status-badge-dot.is-danger {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
}

.status-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--navy);
}

.status-card-state {
  margin: 6px 0 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-soft);
}

.status-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-detail {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 25, 54, 0.035);
  border: 1px solid rgba(17, 25, 54, 0.04);
}

.status-detail-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-detail-value {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.status-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-card-copy strong {
  color: var(--navy);
}

.status-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(226, 75, 143, 0.08);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.status-worker-updates-card {
  align-content: start;
}

.worker-updates-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.worker-update-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(17, 25, 54, 0.08);
}

.worker-update-row:last-child {
  border-bottom: 0;
}

.worker-update-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #c4ccdf;
}

.worker-update-dot.is-success {
  background: #20a66a;
}

.worker-update-dot.is-danger {
  background: #e5484d;
}

.worker-update-dot.is-warning {
  background: #f59e0b;
}

.worker-update-main {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.worker-update-date {
  font-family: var(--font-mono);
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.worker-update-name {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  word-break: break-word;
}

.worker-update-zone {
  color: rgba(17, 25, 54, 0.58);
  white-space: nowrap;
}

.worker-updates-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .panel,
  .status-strip,
  .command-bar,
  .page-footer {
    animation: fadeUp 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .status-dot.is-success {
    animation: statusPulse 2200ms ease-in-out infinite;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(32, 166, 106, 0.12);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(32, 166, 106, 0.05);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    width: min(100% - 32px, 1200px);
    grid-template-columns: 224px minmax(0, 1fr);
  }

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

  .wide-panel,
  .ranking-panel,
  .distribution-panel {
    grid-column: span 6;
  }

  .distribution-panel-wide {
    grid-column: span 6;
  }

  .origin-panel,
  .origin-language-panel {
    min-height: unset;
  }

  .ranking-panel-combined {
    grid-column: span 6;
  }

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

  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

  .ranking-page-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .app-shell {
    display: block;
    width: min(100% - 24px, 920px);
    padding-top: 16px;
  }

  .sidebar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .command-bar {
    grid-template-columns: 1fr;
  }

  .status-overview {
    grid-template-columns: 1fr;
  }

  .command-bar {
    align-items: start;
  }

  .time-filter-panel {
    width: 100%;
  }

  .command-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 0;
  }

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

  .wide-panel,
  .ranking-panel,
  .distribution-panel {
    grid-column: auto;
  }

  .distribution-panel-wide {
    grid-column: auto;
  }

  .ranking-panel-combined {
    grid-column: auto;
  }

  .methodology-strip {
    grid-template-columns: 1fr;
  }

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

  .methodology-block + .methodology-block {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .ranking-page-intro {
    grid-template-columns: 1fr;
  }

  .ranking-page-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-page-toolbar-stack {
    width: 100%;
  }

  .ranking-page-chip-row {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .app-shell {
    width: 100%;
    padding: 0;
  }

  .main-shell {
    padding: 0 10px 28px;
  }

  .mobile-topbar {
    margin: 10px 0 12px;
  }

  .mobile-menu-panel {
    top: 72px;
  }

  .status-strip,
  .command-bar,
  .hero-card,
  .panel,
  .methodology-strip,
  .page-footer {
    border-radius: 22px;
  }

  .status-strip {
    gap: 10px;
    padding: 12px 14px;
  }

  .status-indicator,
  .data-source-badge {
    display: none;
  }

  .status-page-link {
    min-height: 40px;
  }

  .status-page-link.is-mobile-entry {
    display: inline-flex;
  }

  .command-bar {
    gap: 14px;
  }

  .scope-control,
  .command-actions,
  .time-filter-panel {
    width: 100%;
  }

  .scope-control {
    padding: 14px 14px 0;
    position: relative;
    z-index: 90;
  }

  .scope-dropdown {
    width: 100%;
  }

  .scope-button {
    width: 100%;
  }

  .scope-button,
  .scope-chip,
  .time-filter-trigger {
    min-height: 58px;
  }

  .scope-menu {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }

  .time-filter-panel {
    padding: 14px;
  }

  .time-filter-shell,
  .time-filter-panel {
    position: relative;
    z-index: 20;
  }

  .time-filter-trigger {
    width: 100%;
  }

  .time-filter-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .time-filter-preview {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 25, 54, 0.08);
    padding-top: 18px;
  }

  .date-range-group {
    grid-template-columns: 1fr;
  }

  .time-filter-note {
    max-width: none;
  }

  .time-filter-note::before {
    margin-bottom: 10px;
    vertical-align: middle;
  }

  .ranking-page-shell {
    padding: 16px;
  }

  .ranking-page-intro h1 {
    font-size: 2.2rem;
  }

  .ranking-page-copy {
    font-size: 0.9rem;
  }

  .ranking-mode-switch,
  .ranking-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .ranking-mode-tab,
  .ranking-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .ranking-page-table-head {
    display: none;
  }

  .ranking-page-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
  }

  .ranking-page-name,
  .ranking-page-count,
  .ranking-page-delta,
  .ranking-page-trend {
    grid-column: 2;
  }

  .ranking-page-trend {
    margin-top: 2px;
  }

  .ranking-map-placeholder {
    min-height: 220px;
  }

  .hero-card {
    gap: 16px;
    min-height: 0;
    padding: 18px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.25rem;
  }

  .hero-copy p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .toggle-card {
    padding: 16px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kpi-card {
    min-height: 142px;
    padding: 16px;
  }

  .kpi-value {
    font-size: 1.95rem;
  }

  .kpi-note {
    font-size: 0.8rem;
  }

  .sparkline {
    width: 62px;
    height: 26px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ranking-panel-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-wrap {
    min-height: 320px;
  }

  .mini-chart-wrap {
    min-height: 220px;
  }

  .mini-chart-wrap-compact {
    min-height: 204px;
  }

  .origin-donut-wrap {
    min-height: 220px;
  }

  .donut-chart-wrap {
    min-height: 210px;
  }

  .panel-tools,
  .panel-header,
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header-stack {
    justify-items: start;
    text-align: left;
  }

  .chart-legend {
    gap: 12px;
  }

  .page-footer nav {
    gap: 12px 16px;
  }

  .status-card-grid {
    grid-template-columns: 1fr;
  }

  .popover-card {
    display: none;
  }
}

@media (max-width: 379px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .command-actions {
    flex-direction: column;
  }
}
