:root {
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f7f9fc;
  --line: #e3e8f0;
  --line-strong: #d5dce8;
  --text: #162033;
  --muted: #6f7b90;
  --green: #19a15a;
  --green-soft: #e7f7ee;
  --red: #e65554;
  --red-soft: #fdecec;
  --yellow: #f5b84d;
  --blue: #2f6df6;
  --blue-soft: #eef4ff;
  --chip: #f3f6fb;
  --shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Inter", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 56%, #f4f7fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #ffffff;
  font-weight: 900;
}

.sidebar-brand__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sidebar-section + .sidebar-section {
  margin-top: 20px;
}

.sidebar-title {
  margin: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav,
.sidebar-topic-list {
  display: grid;
  gap: 6px;
}

.sidebar-link,
.sidebar-topic {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-topic:hover {
  background: var(--panel2);
}

.app-main {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  min-width: 0;
  padding: 20px 0 48px;
}

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

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #ffffff;
  font-weight: 900;
}

.topbar-brand__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.topbar-search {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.language-switcher {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.language-pill.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(87, 167, 255, 0.14);
}

.language-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell {
  display: grid;
  gap: 16px;
}

.page-hero,
.detail-hero,
.detail-card,
.trade-panel .info-card,
.empty-state,
.empty-page,
.stats-card,
.table-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-hero,
.detail-hero,
.detail-card,
.trade-panel .info-card,
.empty-state,
.empty-page,
.stats-card,
.table-wrap {
  border-radius: var(--radius-xl);
}

.page-hero {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.page-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-hero p {
  margin: 10px 0 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.7;
}

.channel-nav,
.topic-chip-row,
.type-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-pill,
.topic-chip,
.type-chip {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.channel-pill.is-active,
.topic-chip.is-active,
.type-chip.is-active {
  background: #ffffff;
  border-color: rgba(47, 109, 246, 0.26);
  color: var(--blue);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 132px;
  gap: 12px;
}

.search-box,
.custom-select {
  position: relative;
  display: flex;
}

.search-box input,
.custom-select__trigger {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.search-box input:focus,
.custom-select.is-open .custom-select__trigger,
.custom-select:focus-within .custom-select__trigger {
  outline: none;
  border-color: rgba(87, 167, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(87, 167, 255, 0.12);
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.custom-select__arrow {
  color: var(--muted);
}

.search-suggestions,
.custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.search-box.is-open .search-suggestions,
.custom-select.is-open .custom-select__menu {
  display: grid;
  gap: 4px;
}

.search-suggestion,
.custom-select__option {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion.is-active,
.custom-select__option:hover,
.custom-select__option.is-selected {
  background: rgba(87, 167, 255, 0.12);
  color: var(--blue);
}

.search-suggestion.is-hidden {
  display: none;
}

.toolbar-button,
.share-button,
.copy-button,
.secondary-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}

.toolbar-button,
.share-button {
  background: #ffffff;
  color: var(--blue);
  border-color: rgba(47, 109, 246, 0.2);
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.08);
}

.copy-button,
.secondary-button {
  background: var(--panel2);
  color: var(--text);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head__hint,
.section-head__metric {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.share-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 10px;
}

.compact-card {
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.compact-card__body {
  height: 100%;
  padding: 12px;
  display: grid;
  gap: 12px;
  color: #162033;
}

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

.compact-card__thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf0fb;
}

.compact-card__thumb img {
  height: 100%;
  object-fit: cover;
}

.compact-card__title-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.compact-card__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
}

.compact-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: #161f33;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card__subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 50px;
}

.compact-card__subcopy,
.compact-card__submeta {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.compact-card__subcopy {
  min-width: 0;
  color: #5f6d84;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card__submeta {
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f7fc;
  color: #708097;
  align-self: center;
}

.compact-card__rows {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafd;
  border: 1px solid #edf2f8;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.compact-row--candidate {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-row__label {
  color: #384355;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-row__value {
  color: #161f33;
  font-size: 13px;
  font-weight: 800;
}

.compact-row__pill {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #e6f6ea;
  color: #19a15a;
  font-size: 12px;
  font-weight: 700;
}

.compact-row__pill--soft {
  background: #fdecec;
  color: #e65554;
}

.compact-row__pill--rank {
  background: #eef3ff;
  color: var(--blue);
}

.compact-binary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-binary-pill {
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  border-radius: 12px;
}

.compact-binary-pill strong {
  font-size: 13px;
  line-height: 1;
}

.compact-binary-pill span {
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.compact-binary-pill--yes {
  background: var(--green-soft);
  color: var(--green);
}

.compact-binary-pill--no {
  background: var(--red-soft);
  color: var(--red);
}

.compact-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.compact-scoreboard__team,
.compact-scoreboard__center {
  padding: 8px 10px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #e8eef8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.compact-scoreboard__team {
  text-align: center;
}

.compact-scoreboard__center {
  text-align: center;
  background: #f4f8ff;
}

.compact-scoreboard__name,
.compact-scoreboard__clock {
  color: #5b6980;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.compact-scoreboard__value,
.compact-scoreboard__status {
  color: #152238;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.compact-scoreboard__team--lead {
  background: #eef9f1;
  border-color: #d8efdf;
}

.compact-scoreboard__team--lead .compact-scoreboard__value {
  color: #12924e;
}

.compact-scoreboard__team--trail {
  background: #fff3f3;
  border-color: #f5dddd;
}

.compact-scoreboard__team--trail .compact-scoreboard__value {
  color: #d84d4d;
}

.compact-card--sports_live .compact-card__kicker {
  background: #eef8ff;
  color: #1d74d8;
}

.compact-card--sports_live .compact-card__subhead {
  align-items: center;
}

.compact-card--sports_live .compact-card__subcopy,
.compact-card--sports_live .compact-card__submeta {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.compact-card--mentions .compact-card__kicker {
  background: #fff4e8;
  color: #e3831c;
}

.compact-card--bucket_range .compact-card__kicker {
  background: #f3f1ff;
  color: #6b56d8;
}

.compact-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.compact-card__meta-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compact-card__meta {
  color: #7a8597;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.compact-card__meta-value {
  color: #1d2740;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.compact-card .card-share-links {
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.compact-card .card-share-link {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
}

.compact-card .card-share-link svg {
  width: 11px;
  height: 11px;
}

.summary-share-card,
.share-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-share-card {
  min-height: 200px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.summary-share-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.summary-share-card h3 {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.summary-share-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-share-card__footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.summary-share-card__footer strong {
  color: var(--blue);
  font-size: 18px;
}

.market-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.market-grid--home,
.market-grid--channel,
.market-grid--search {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.market-card {
  align-self: start;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.market-card__body {
  height: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.market-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: start;
}

.market-card__badges,
.detail-hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.badge--soft {
  background: #f3f5f8;
  color: var(--muted);
}

.market-card__title {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.market-card__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.market-card__thumb {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5fb;
}

.market-card__thumb img,
.detail-hero__media img {
  height: 100%;
  object-fit: cover;
}

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

.binary-outcome,
.outcome-row,
.timeline-row,
.meta-pill,
.stat-box,
.stats-card,
.market-panel,
.trade-panel .info-card {
  background: var(--panel2);
  border: 1px solid var(--line);
}

.binary-outcome {
  padding: 12px 14px;
  border-radius: 16px;
}

.binary-outcome span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.binary-outcome strong {
  font-size: 30px;
}

.binary-outcome--yes strong {
  color: var(--green);
}

.binary-outcome--no strong {
  color: var(--red);
}

.market-card__insight {
  min-height: 0;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.market-card__insight strong {
  color: var(--text);
}

.outcome-list,
.timeline-list,
.detail-stack,
.trade-panel {
  display: grid;
  gap: 12px;
}

.outcome-row,
.timeline-row {
  border-radius: 16px;
  padding: 12px 14px;
}

.outcome-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.outcome-row__rank,
.timeline-row__date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.outcome-row__label,
.timeline-row__question {
  font-weight: 700;
  line-height: 1.5;
}

.outcome-row__value,
.timeline-row__side strong {
  font-size: 20px;
}

.timeline-row__copy {
  display: grid;
  gap: 6px;
}

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

.timeline-row__side span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.market-card__meta,
.market-panel__stats,
.detail-hero__stats,
.stats-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}

.market-card__meta,
.market-panel__stats,
.detail-hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.meta-pill,
.stat-box,
.stats-card {
  padding: 10px 14px;
  border-radius: 14px;
}

.meta-pill span,
.stat-box span,
.stats-card span,
.trade-metric span,
.detail-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.meta-pill strong,
.stat-box strong,
.trade-metric strong,
.detail-list strong {
  font-size: 15px;
}

.stats-card strong {
  font-size: 28px;
}

.market-card__share-row,
.timeline-row__share,
.market-panel__share {
  display: flex;
  justify-content: flex-end;
}

.card-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-share-link {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef3ff;
  border: 1px solid var(--line);
  color: #ffffff;
  flex: 0 0 34px;
}

.card-share-link svg {
  width: 17px;
  height: 17px;
}

.card-share-link--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.card-share-link--x {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.card-share-link--zalo {
  background: #0068ff;
  border-color: #0068ff;
  color: #ffffff;
}

.card-share-link--telegram {
  background: #229ed9;
  border-color: #229ed9;
  color: #ffffff;
}

.card-share-link--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.load-more-button {
  min-width: 160px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.load-more-button.is-loading,
.load-more-button[aria-disabled="true"] {
  opacity: 0.68;
  pointer-events: none;
}

.detail-hero {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
  background: #ffffff;
}

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

.detail-hero__copy {
  display: grid;
  gap: 12px;
}

.detail-hero__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-hero__copy p {
  margin: 0;
}

.detail-hero__headline {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.detail-hero__headline h1 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.08;
}

.detail-hero__lead {
  max-width: 680px;
  color: #55637a;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero__meta {
  flex: 0 0 auto;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #6f7b90;
}

.detail-hero__meta.is-open {
  color: #1f9d55;
}

.detail-hero__meta.is-closed {
  color: #8b95a7;
}

.detail-hero__media {
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f9fc;
}

.detail-hero__media--share {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  align-self: stretch;
  position: sticky;
  top: 16px;
}

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

.share-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.share-card__topline,
.share-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-card__body {
  padding: 16px 0;
  display: grid;
  gap: 12px;
}

.share-card__body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.share-card__body p {
  margin: 0;
  color: var(--muted);
}

.share-card__metric {
  padding: 18px;
  border-radius: 18px;
  background: #f5f8fd;
  border: 1px solid var(--line);
}

.share-card__metric span,
.share-card__detail-row span,
.share-card__footer span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.share-card__metric strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  color: var(--green);
}

.share-card__detail-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.share-card__detail-row strong {
  text-align: right;
  font-size: 16px;
}

.share-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-card__tag {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f6fb;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 280px;
  gap: 14px;
}

.detail-main {
  display: grid;
  gap: 12px;
}

.detail-card {
  padding: 16px;
}

.detail-overview__grid {
  display: grid;
  gap: 12px;
}

.detail-overview__grid--binary {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
}

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

.detail-overview__chart,
.detail-overview__note {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.detail-overview__spark {
  height: 160px;
  border-radius: 16px;
  border: 1px solid #e8eef8;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  padding: 14px;
  display: flex;
  align-items: stretch;
}

.detail-overview__spark svg {
  width: 100%;
  height: 100%;
}

.detail-overview__chart p,
.detail-overview__note p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-overview__note strong {
  display: block;
  font-size: 16px;
}

.detail-overview__list {
  display: grid;
  gap: 8px;
}

.detail-hero__stat,
.detail-overview__item,
.info-card--detail-summary .trade-metric {
  height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-overview__item {
  white-space: nowrap;
}

.detail-hero__stat span,
.detail-overview__item span,
.info-card--detail-summary .trade-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.detail-hero__stat strong,
.detail-overview__item strong,
.info-card--detail-summary .trade-metric strong {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-overview__item span {
}

.detail-overview__item strong {
}

.detail-overview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-overview__chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f3f6fb;
  color: #53627a;
  font-size: 13px;
  font-weight: 700;
}

.detail-overview__chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.detail-chart-card {
  display: grid;
  gap: 14px;
}

.detail-chart-card__window {
  color: #738197;
  font-size: 14px;
  font-weight: 700;
}

.detail-chart-card__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.detail-chart-card__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail-chart-card__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--series-color);
}

.detail-chart-card__legend-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-chart-card__legend-copy strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-chart-card__legend-copy span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-chart-card__canvas {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.detail-chart-card__canvas svg {
  width: 100%;
  height: 360px;
  display: block;
}

.detail-chart-card__grid {
  stroke: #dfe6f0;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.detail-chart-card__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-chart-card__end-dot {
  stroke: #ffffff;
  stroke-width: 2.5;
}

.detail-chart-card__hover-line {
  stroke: rgba(22, 32, 51, 0.16);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.detail-chart-card__hover-point {
  stroke: #ffffff;
  stroke-width: 2;
}

.detail-chart-card__tick-label {
  fill: #5b6980;
  font-size: 18px;
  font-weight: 800;
}

.detail-chart-card__axis {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.detail-chart-card__tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 140px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
  pointer-events: none;
  z-index: 2;
}

.detail-chart-card__tooltip-time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-chart-card__tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-chart-card__tooltip-row + .detail-chart-card__tooltip-row {
  margin-top: 6px;
}

.detail-chart-card__tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

.detail-chart-card__tooltip-label em {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--series-color);
  flex: 0 0 auto;
}

.detail-chart-card__tooltip-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-chart-card__tooltip-value {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.detail-chart-card__ranges {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-chart-card__footer {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.detail-chart-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

.detail-chart-card__action {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex: 1 1 0;
}

.detail-chart-card__action--primary {
  background: var(--blue);
  color: #ffffff;
}

.detail-chart-card__action--secondary {
  background: #eef4ff;
  color: var(--blue);
  border-color: #dce7ff;
}

.prediction-share-modal[hidden] {
  display: none;
}

body.is-modal-open {
  overflow: hidden;
}

.prediction-share-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.prediction-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.prediction-share-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 420px);
  transform: translate(-50%, -50%);
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}

.prediction-share-modal__body {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.prediction-share-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #42516a;
  letter-spacing: 0.02em;
  text-align: left;
}

.prediction-share-modal__summary {
  display: flex;
  justify-content: center;
}

.prediction-share-modal__preview {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 36%),
    linear-gradient(180deg, #eef4ff 0%, #e8f0ff 100%);
  border: 1px solid #d9e6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.prediction-share-modal__line {
  margin: 0;
}

.prediction-share-modal__line--title {
  color: #18233a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prediction-share-modal__line--emphasis {
  color: #21457f;
  background: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cfe0ff;
}

.prediction-share-modal__line--meta {
  color: #63738d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.prediction-share-modal__link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}

.prediction-share-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.prediction-share-links .card-share-link {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
}

.prediction-share-links .card-share-link svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 680px) {
  .prediction-share-modal__dialog {
    width: min(94vw, 420px);
    padding: 16px;
  }

  .prediction-share-modal__preview {
    padding: 14px;
    gap: 8px;
  }

  .prediction-share-modal__line--title {
    font-size: 22px;
  }

  .prediction-share-modal__line--emphasis {
    font-size: 16px;
    padding: 11px 12px;
  }
}

.detail-chart-card__range {
  color: #738197;
  font-size: 12px;
  font-weight: 800;
}

.detail-chart-card__range.is-active {
  color: var(--text);
}

.detail-chart-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-chart-card__meta-item {
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-chart-card__meta-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.detail-chart-card__meta-item strong {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.detail-overview__timeline {
  display: grid;
  gap: 4px;
}

.detail-sportsboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.detail-sportsboard__team,
.detail-sportsboard__center {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
  display: grid;
  gap: 6px;
}

.detail-sportsboard__center {
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.detail-sportsboard__team span,
.detail-sportsboard__center span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-sportsboard__team strong,
.detail-sportsboard__center strong {
  font-size: 22px;
  line-height: 1.1;
}

.market-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
}

.market-panel:first-of-type {
  margin-top: 0;
}

.market-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 14px;
}

.market-panel__header h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.market-panel__original,
.market-panel__description,
.comment-row p,
.rule-block p {
  color: var(--muted);
}

.market-panel__description,
.comment-row p,
.rule-block p {
  line-height: 1.7;
}

.detail-side {
  display: grid;
  gap: 12px;
}

.detail-side .info-card {
  padding: 14px;
}

.trade-metric,
.detail-list div,
.rule-block,
.comment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rule-block,
.comment-row {
  display: block;
}

.trade-metric:first-of-type,
.detail-list div:first-of-type,
.rule-block:first-of-type,
.comment-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.comment-row strong {
  display: block;
  margin-bottom: 8px;
}

.trade-metric strong {
  text-align: right;
  font-size: 14px;
}

.info-card--detail-summary {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.info-card--detail-summary .trade-metric {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-card--detail-summary .trade-metric + .trade-metric {
  margin-top: 8px;
}

.table-wrap {
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  background: #f7f9fc;
}

.table tr:last-child td {
  border-bottom: 0;
}

.positive { color: var(--green); font-weight: 700; }
.negative { color: var(--red); font-weight: 700; }

.empty-state,
.empty-page {
  padding: 24px;
}

.empty-state strong,
.empty-page h1 {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.empty-state p,
.empty-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .compact-grid,
  .market-grid--home,
  .market-grid--channel,
  .market-grid--search,
  .detail-layout,
  .detail-hero,
  .share-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-overview__grid--binary,
  .detail-overview__grid--stack {
    grid-template-columns: 1fr;
  }

  .detail-chart-card__meta {
    grid-template-columns: 1fr;
  }

  .detail-sportsboard {
    grid-template-columns: 1fr;
  }

  .detail-hero__media--share {
    position: static;
  }
}

@media (max-width: 920px) {
  .app-sidebar {
    display: none;
  }

  .app-main {
    width: min(100vw - 24px, 1440px);
    padding: 16px 0 32px;
  }

  .topbar {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .filter-toolbar,
  .market-card__meta,
  .market-panel__stats,
  .detail-hero__stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .compact-grid,
  .market-grid--home,
  .market-grid--channel,
  .market-grid--search {
    grid-template-columns: 1fr;
  }

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

  .table-wrap {
    overflow-x: auto;
  }

  .table {
    min-width: 720px;
  }
}

@media (max-width: 560px) {
  .app-main {
    width: calc(100vw - 20px);
    padding: 14px 0 28px;
  }

  .topbar {
    gap: 6px;
    margin-bottom: 14px;
  }

  .topbar-brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .topbar-brand__text {
    font-size: 18px;
  }

  .topbar-actions {
    margin-left: 0;
  }

  .language-switcher {
    gap: 4px;
  }

  .language-pill {
    width: 24px;
    height: 24px;
  }

  .topbar-search {
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .page-hero,
  .detail-hero,
  .detail-card,
  .trade-panel .info-card,
  .stats-card,
  .empty-state,
  .empty-page {
    padding: 16px;
  }

  .detail-hero {
    gap: 16px;
  }

  .detail-hero__headline {
    gap: 10px;
  }

  .detail-hero__headline h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .detail-hero__lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .market-card__body {
    padding: 16px;
  }

  .market-card__header {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .market-card__thumb {
    width: 76px;
    height: 76px;
  }

  .compact-card__body {
    padding: 12px;
  }

  .compact-card__top {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .compact-card__thumb {
    width: 36px;
    height: 36px;
  }

  .compact-card__title {
    font-size: 13px;
  }

  .compact-card__kicker {
    margin-bottom: 0;
  }

  .compact-card__subhead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding-left: 44px;
  }

  .compact-card__submeta {
    justify-self: end;
  }

  .compact-card__subcopy,
  .compact-card__submeta {
    min-height: 26px;
  }

  .compact-card__subcopy {
    line-height: 26px;
  }

  .compact-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .compact-row__pill {
    grid-column: 2;
    justify-self: end;
  }

  .compact-card--time_node .compact-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .compact-card--time_node .compact-row__pill {
    grid-column: auto;
    justify-self: start;
  }

  .compact-card__footer {
    align-items: center;
    flex-direction: row;
  }

  .compact-card .card-share-links {
    justify-content: flex-end;
  }

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

  .compact-scoreboard {
    grid-template-columns: 1fr;
  }

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

  .market-card__title {
    font-size: 19px;
    line-height: 1.35;
  }

  .summary-share-card h3,
  .share-card__body h3 {
    font-size: 22px;
  }

  .share-card__metric strong,
  .stats-card strong,
  .binary-outcome strong {
    font-size: 24px;
  }

  .trade-metric,
  .detail-list div {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-overview__item {
    min-height: 56px;
    align-items: center;
    flex-direction: row;
  }

  .detail-overview__item strong {
    text-align: right;
    font-size: 16px;
  }

  .trade-metric strong {
    text-align: left;
  }

  .info-card--detail-summary .trade-metric {
    height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .info-card--detail-summary .trade-metric strong {
    text-align: right;
    font-size: 14px;
  }

  .detail-overview__item {
    height: 52px;
  }

  .detail-overview__item strong {
    font-size: 14px;
  }

  .detail-hero__stat {
    height: 52px;
    padding: 10px 12px;
  }

  .detail-hero__stat strong {
    font-size: 14px;
  }

  .market-panel__header,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .market-card__share-row,
  .timeline-row__share,
  .market-panel__share {
    justify-content: flex-start;
  }

  .timeline-row__side {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-row__side span {
    text-align: left;
  }

  .market-card__insight {
    min-height: 40px;
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .detail-hero__topline {
    align-items: center;
  }

  .detail-hero__meta {
    font-size: 12px;
  }

  .detail-hero__headline h1 {
    font-size: 22px;
    line-height: 1.12;
  }

  .compact-card__body {
    gap: 8px;
  }

  .detail-chart-card__legend {
    grid-template-columns: 1fr;
  }

  .detail-chart-card__legend-copy strong {
    font-size: 13px;
  }

  .detail-chart-card__legend-copy span {
    font-size: 12px;
  }

  .detail-chart-card__canvas {
    padding: 6px;
  }

  .detail-chart-card__canvas svg {
    height: 248px;
  }

  .detail-chart-card__tick-label,
  .detail-chart-card__axis {
    font-size: 14px;
  }

  .detail-chart-card__ranges {
    gap: 8px;
  }

  .detail-chart-card__footer {
    align-items: flex-end;
  }

  .detail-chart-card__actions {
    width: 100%;
  }

  .detail-chart-card__action {
    min-width: 0;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .detail-chart-card__meta-item {
    height: 52px;
  }

  .detail-chart-card__meta-item strong {
    font-size: 14px;
  }

  .compact-card__rows {
    padding: 7px;
  }

  .compact-row__label {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .compact-card__subhead {
    padding-left: 44px;
  }

  .compact-card--time_node .compact-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .compact-card--time_node .compact-row__label {
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compact-card--time_node .compact-row__value {
    font-size: 12px;
  }

  .compact-card--time_node .compact-row__pill {
    grid-column: auto;
    justify-self: start;
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .compact-card__footer {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .compact-card__meta-group {
    flex: 1 1 auto;
  }

  .compact-card .card-share-links {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
}

.shell--monitor {
  gap: 20px;
}

.freshness-bar,
.monitor-actions,
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.freshness-bar {
  padding: 2px 2px 6px;
}

.freshness-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.freshness-bar__stamp,
.freshness-bar__note,
.freshness-bar__source {
  color: var(--muted);
  font-size: 13px;
}

.freshness-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.freshness-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.freshness-bar__link--soft {
  background: #edf3ff;
  color: var(--accent);
}

.monitor-hero {
  display: grid;
  gap: 8px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.monitor-card,
.monitor-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.monitor-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.monitor-card span {
  color: var(--muted);
  font-size: 14px;
}

.monitor-card strong {
  font-size: 32px;
  line-height: 1.1;
}

.monitor-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.monitor-panel {
  padding: 20px;
}

.monitor-list,
.monitor-table {
  display: grid;
  gap: 10px;
}

.monitor-row,
.monitor-table__row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 12px 14px;
}

.monitor-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.monitor-row span,
.monitor-table__row span {
  color: var(--muted);
  font-size: 14px;
}

.monitor-row strong {
  font-size: 15px;
}

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

.monitor-empty {
  color: var(--muted);
  margin: 0;
}

.monitor-run {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-alt);
  padding: 14px;
}

.monitor-run__head,
.monitor-run__meta,
.monitor-slug-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.monitor-run__head {
  justify-content: space-between;
}

.monitor-run__head span,
.monitor-run__meta span {
  color: var(--muted);
  font-size: 13px;
}

.monitor-slug {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .monitor-actions,
  .back-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .freshness-bar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .freshness-bar__meta {
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
  }

  .freshness-bar__actions {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
  }

  .monitor-card strong {
    font-size: 28px;
  }

  .monitor-table__row {
    grid-template-columns: 1fr;
  }
}
