:root {
  --bg: #f4f7fb;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: #f4f7fb;
  --bg-sidebar-active: #eaf1ff;
  --bg-input: #ffffff;
  --border: #e5eaf1;
  --border-light: #eef2f6;
  --border-focus: #336df4;
  --text: #172033;
  --text-secondary: #455168;
  --text-muted: #7a8599;
  --text-placeholder: #a9b2c2;
  --text-sidebar: #172033;
  --text-sidebar-muted: #7a8599;
  --accent: #336df4;
  --accent-hover: #2455cb;
  --accent-soft: #eaf1ff;
  --accent-ring: rgba(51, 109, 244, 0.14);
  --green: #18a868;
  --green-soft: #eaf8f1;
  --amber: #d8890d;
  --amber-soft: #fff6df;
  --red: #dc4c55;
  --red-soft: #fff0f1;
  --violet: #7657e8;
  --violet-soft: #f1edff;
  --shadow-sm: 0 1px 2px rgba(20, 32, 55, 0.03), 0 3px 10px rgba(20, 32, 55, 0.025);
  --shadow-md: 0 12px 30px rgba(28, 45, 76, 0.08);
  --sidebar-w: 236px;
  --globalbar-h: 64px;
  --topbar-h: 60px;
  --radius-sm: 7px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

/* Data dictionary */
.event-catalog-page .workspace-heading { align-items: flex-end; }
.dictionary-observation-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--text-secondary);
  font-size: 12px;
}
.dictionary-observation-status i,
.dictionary-list-footer i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.dictionary-observation-status small { color: var(--text-muted); font-size: 11px; }
.dictionary-observation-status.is-unavailable { color: var(--amber); }
.dictionary-observation-status.is-unavailable i { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.dictionary-observation-status.is-loading { color: var(--accent); }
.dictionary-observation-status.is-loading i,
.dictionary-list-footer .is-loading i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: dictionary-status-pulse 1.4s ease-in-out infinite; }

.dictionary-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dictionary-summary-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 124px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.dictionary-summary-card:hover:not(:disabled) { border-color: #cdd7e5; background: #fbfdff; }
.dictionary-summary-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.dictionary-summary-card:disabled { cursor: default; opacity: .65; }
.dictionary-summary-card > span:last-child { min-width: 0; }
.dictionary-summary-card small,
.dictionary-summary-card strong,
.dictionary-summary-card p { display: block; margin: 0; }
.dictionary-summary-card small { color: var(--text-muted); font-size: 13px; }
.dictionary-summary-card strong { margin-top: 2px; color: var(--text); font-size: 27px; font-weight: 720; }
.dictionary-summary-card p { margin-top: 3px; color: var(--text-placeholder); font-size: 11px; }
.dictionary-summary-card .metric-icon--red { background: var(--red-soft); color: var(--red); }

.dictionary-list-card { overflow: visible; }
.dictionary-list-header { min-height: 84px; }
.dictionary-list-header > div:first-child { min-width: 0; }
.dictionary-observation-warning {
  margin: 14px 22px 0;
  border: 1px solid #f0d99f;
  border-radius: 8px;
  background: var(--amber-soft);
  padding: 10px 13px;
  color: #8a6215;
  font-size: 12px;
  line-height: 1.55;
}

.dictionary-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--border);
  padding: 15px 22px;
}
.dictionary-search {
  position: relative;
  display: block;
  min-width: 0;
}
.dictionary-search__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  color: #94a0b3;
  transform: translateY(-50%);
  pointer-events: none;
}
.dictionary-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  padding: 0 13px 0 39px;
  color: var(--text-secondary);
  font-size: 12px;
}
.dictionary-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.dictionary-filter-set { display: flex; align-items: end; gap: 9px; }
.dictionary-filter { display: grid; gap: 4px; width: 138px; }
.dictionary-filter--days { width: 140px; }
.dictionary-filter__label { color: #8b97aa; font-size: 10px; font-weight: 600; }
.dictionary-filter__control { position: relative; width: 100%; height: 40px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #344158; }
.dictionary-filter__control:hover { border-color: #c5cfdd; }
.dictionary-filter__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.dictionary-filter__control > summary { display: grid; grid-template-columns: minmax(0, 1fr) 8px; align-items: center; gap: 10px; height: 38px; padding: 0 12px; list-style: none; cursor: pointer; }
.dictionary-filter__control > summary::-webkit-details-marker { display: none; }
.dictionary-filter__control > summary strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dictionary-filter__control > summary i { width: 6px; height: 6px; border-right: 1.5px solid #8995a8; border-bottom: 1.5px solid #8995a8; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.dictionary-filter__control[open] { z-index: 90; }
.dictionary-filter__control[open] > summary i { transform: translateY(2px) rotate(225deg); }
.dictionary-filter__menu { position: absolute; z-index: 90; top: calc(100% + 6px); right: 0; min-width: max(100%, 180px); overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 5px; box-shadow: 0 12px 30px rgba(31, 47, 76, .16); }
.dictionary-filter__menu button { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; width: 100%; min-height: 34px; border: 0; border-radius: 6px; background: transparent; padding: 0 8px; color: var(--text-secondary); font-size: 11px; text-align: left; }
.dictionary-filter__menu button:hover { background: #f5f8fd; }
.dictionary-filter__menu button.is-selected { background: var(--accent-soft); color: var(--accent); }
.dictionary-filter__menu button em { font-size: 11px; font-style: normal; text-align: center; }
.dictionary-issues-toggle,
.dictionary-reset-button,
.dictionary-mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}
.dictionary-issues-toggle.is-active,
.dictionary-mobile-filter-toggle.is-active { border-color: #b9cbfa; background: var(--accent-soft); color: var(--accent); }
.dictionary-reset-button { border-color: transparent; color: var(--text-muted); padding-inline: 7px; }
.dictionary-mobile-filter-toggle { display: none; }

.dictionary-desktop-table { width: 100%; overflow: hidden; }
.dictionary-table-head,
.dictionary-table-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) minmax(105px, .65fr) minmax(80px, .45fr) minmax(130px, .72fr) minmax(92px, .5fr) minmax(180px, 1fr) 18px;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}
.dictionary-table-head { min-height: 46px; background: #fafbfd; color: #909aac; font-size: 12px; font-weight: 650; }
.dictionary-table-row { width: 100%; min-height: 82px; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: #fff; color: var(--text-secondary); font-size: 13px; text-align: left; }
.dictionary-table-head + .dictionary-table-row { border-top: 0; }
.dictionary-table-row:hover { background: #fbfdff; }
.dictionary-table-row.is-warning { box-shadow: inset 3px 0 0 var(--amber); }
.dictionary-table-row.is-blocked { background: #fff9f7; }
.dictionary-table-row.is-deprecated { background: #fcfcfd; }
.dictionary-table-row b,
.dictionary-table-row small { display: block; }
.dictionary-table-row b { color: var(--text); font-size: 13px; font-weight: 620; }
.dictionary-table-row small { margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.dictionary-event-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dictionary-event-identity > i { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-style: normal; }
.dictionary-event-identity > span { min-width: 0; }
.dictionary-event-identity code { display: block; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.dictionary-event-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dictionary-observation-cell b { color: var(--text); }
.dictionary-observation-cell b.is-muted { color: var(--text-muted); }
.dictionary-status-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; border-radius: 6px; padding: 3px 8px; font-size: 10px; font-style: normal; font-weight: 650; white-space: nowrap; }
.dictionary-status-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dictionary-status-tag--active { background: var(--green-soft); color: var(--green); }
.dictionary-status-tag--blocked { background: #fff0eb; color: #c84324; }
.dictionary-status-tag--unregistered { background: var(--amber-soft); color: var(--amber); }
.dictionary-status-tag--deprecated { background: #eef2f6; color: #758094; }
.dictionary-diagnostic-cell { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.dictionary-diagnostic-cell i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.dictionary-diagnostic-cell.is-info i { background: var(--accent); }
.dictionary-diagnostic-cell.is-warning { color: #9a6812; }
.dictionary-diagnostic-cell.is-warning i { background: var(--amber); }
.dictionary-row-chevron { color: #9aa5b7; font-size: 22px; text-align: right; }
.dictionary-mobile-list { display: none; }
.dictionary-empty-state { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 7px; color: var(--text-muted); text-align: center; }
.dictionary-empty-state svg { color: #9aa6b8; }
.dictionary-empty-state strong { color: var(--text-secondary); font-size: 14px; }
.dictionary-empty-state p { margin: 0; font-size: 12px; }
.dictionary-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-top: 1px solid var(--border); padding: 0 22px; color: var(--text-muted); font-size: 11px; }
.dictionary-list-footer span:last-child { display: inline-flex; align-items: center; gap: 9px; }

.dictionary-skeleton-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) minmax(105px, .65fr) minmax(80px, .45fr) minmax(130px, .72fr) minmax(92px, .5fr) minmax(180px, 1fr) 18px;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  border-top: 1px solid var(--border);
  padding: 0 22px;
}
.dictionary-skeleton-row > span { min-width: 0; }
.dictionary-skeleton-row b,
.dictionary-skeleton-line {
  display: block;
  width: var(--skeleton-width, 72%);
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 45%, #eef2f7 68%);
  background-size: 240% 100%;
  animation: dictionary-skeleton-shimmer 1.35s ease-in-out infinite;
}
.dictionary-skeleton-event { display: flex; align-items: center; gap: 12px; }
.dictionary-skeleton-event i {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #edf2fb;
}
.dictionary-mobile-skeleton { display: none; }

@keyframes dictionary-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes dictionary-status-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

.dictionary-drawer-layer { position: fixed; z-index: 120; inset: 0; }
.dictionary-drawer-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(19, 29, 48, .34); padding: 0; }
.dictionary-drawer-scrim:hover,
.dictionary-drawer-scrim:focus,
.dictionary-drawer-scrim:active { background: rgba(19, 29, 48, .34); box-shadow: none; outline: none; }
.dictionary-drawer { position: absolute; top: 0; right: 0; width: min(720px, calc(100vw - 120px)); height: 100%; overflow-y: auto; background: #fff; box-shadow: -20px 0 48px rgba(24, 39, 68, .16); }
.dictionary-drawer__header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 142px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .97); padding: 25px 28px 22px; }
.dictionary-drawer__header .eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; }
.dictionary-drawer__header h2 { margin: 8px 0 5px; font-size: 23px; }
.dictionary-drawer__header h2 code { color: var(--text); font-family: inherit; }
.dictionary-drawer__header p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.dictionary-drawer__header > button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; background: #f4f7fb; color: var(--text-muted); padding: 0; font-size: 22px; }
.dictionary-drawer__body { display: grid; gap: 20px; padding: 22px 28px 36px; }
.dictionary-drawer__status { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; }
.dictionary-drawer-diagnostic { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #f0d99f; border-radius: 9px; background: var(--amber-soft); padding: 12px; color: #8a6215; }
.dictionary-drawer-diagnostic.is-info { border-color: #cbdafa; background: var(--accent-soft); color: #375ba7; }
.dictionary-drawer-diagnostic > svg { width: 18px; flex: 0 0 auto; }
.dictionary-drawer-diagnostic strong,
.dictionary-drawer-diagnostic small { display: block; }
.dictionary-drawer-diagnostic strong { font-size: 12px; }
.dictionary-drawer-diagnostic small { margin-top: 3px; font-size: 11px; line-height: 1.5; }
.dictionary-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.dictionary-detail-grid > div { min-width: 0; min-height: 76px; border-right: 1px solid var(--border); padding: 15px; }
.dictionary-detail-grid > div:last-child { border-right: 0; }
.dictionary-detail-grid small,
.dictionary-detail-grid b { display: block; }
.dictionary-detail-grid small { color: var(--text-muted); font-size: 10px; }
.dictionary-detail-grid b { overflow: hidden; margin-top: 6px; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dictionary-field-section,
.dictionary-registration-meta { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dictionary-field-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; border-bottom: 1px solid var(--border); padding: 14px 17px; }
.dictionary-field-section__heading h3,
.dictionary-registration-meta h3 { margin: 0; color: var(--text); font-size: 15px; }
.dictionary-field-section__heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 11px; }
.dictionary-field-section__heading > span { display: grid; min-width: 26px; height: 24px; place-items: center; border-radius: 12px; background: #eef2f6; color: var(--text-muted); font-size: 10px; }
.dictionary-field-table { width: 100%; overflow-x: auto; }
.dictionary-field-table__head,
.dictionary-field-table__row { display: grid; grid-template-columns: minmax(120px, .8fr) 70px 54px minmax(190px, 1.3fr) minmax(100px, .72fr); align-items: center; gap: 12px; min-width: 620px; padding: 0 16px; }
.dictionary-field-table__head { min-height: 42px; background: #fafbfd; color: #909aac; font-size: 10px; font-weight: 650; }
.dictionary-field-table__row { min-height: 68px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 11px; }
.dictionary-field-table__head + .dictionary-field-table__row { border-top: 0; }
.dictionary-field-table__row code { color: var(--text); font-size: 11px; font-weight: 650; }
.dictionary-field-table__row b,
.dictionary-field-table__row small { display: block; }
.dictionary-field-table__row small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.dictionary-type-tag { display: inline-flex; border-radius: 5px; background: #eef2f6; padding: 4px 6px; color: #66738a; font-size: 9px; font-style: normal; }
.dictionary-field-table__row .is-required { color: var(--red); }
.dictionary-field-table__row .is-optional { color: var(--text-muted); }
.dictionary-field-enums { line-height: 1.45; }
.dictionary-field-empty { display: grid; min-height: 120px; place-items: center; color: var(--text-muted); font-size: 12px; }
.dictionary-registration-meta h3 { border-bottom: 1px solid var(--border); padding: 15px 17px; }
.dictionary-registration-meta > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dictionary-registration-meta span { min-height: 68px; border-right: 1px solid var(--border); padding: 14px 17px; }
.dictionary-registration-meta span:last-child { border-right: 0; }
.dictionary-registration-meta small,
.dictionary-registration-meta b { display: block; }
.dictionary-registration-meta small { color: var(--text-muted); font-size: 10px; }
.dictionary-registration-meta b { margin-top: 5px; color: var(--text-secondary); font-size: 11px; }

@media (max-width: 1200px) {
  .dictionary-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dictionary-filter-bar { grid-template-columns: 1fr; }
  .dictionary-filter-set { flex-wrap: wrap; }
  .dictionary-table-head,
  .dictionary-table-row { grid-template-columns: minmax(220px, 1.5fr) minmax(100px, .7fr) 70px minmax(115px, .8fr) 85px minmax(150px, 1fr) 16px; gap: 13px; }
  .dictionary-skeleton-row { grid-template-columns: minmax(220px, 1.5fr) minmax(100px, .7fr) 70px minmax(115px, .8fr) 85px minmax(150px, 1fr) 16px; gap: 13px; }
}

@media (max-width: 720px) {
  .event-catalog-page .workspace-heading { align-items: flex-start; }
  .event-catalog-page .workspace-actions { width: auto; }
  .dictionary-observation-status { min-height: 26px; font-size: 11px; }
  .dictionary-observation-status small { display: none; }
  .dictionary-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dictionary-summary-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; min-height: 94px; border-radius: 11px; padding: 13px; }
  .dictionary-summary-card .metric-icon { width: 34px; height: 34px; border-radius: 9px; }
  .dictionary-summary-card .metric-icon svg { width: 15px; height: 15px; }
  .dictionary-summary-card small { font-size: 10px; }
  .dictionary-summary-card strong { font-size: 22px; }
  .dictionary-summary-card p { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .dictionary-list-header { align-items: flex-end; min-height: 0; padding: 15px; }
  .dictionary-list-header h2 { font-size: 16px; }
  .dictionary-list-header p { display: none; }
  .dictionary-filter--days { width: 112px; }
  .dictionary-filter__label { font-size: 9px; }
  .dictionary-filter__control,
  .dictionary-filter__control > summary { height: 36px; }
  .dictionary-filter__control > summary { padding-inline: 10px; }
  .dictionary-filter__control > summary strong { font-size: 11px; }
  .dictionary-observation-warning { margin: 10px 14px 0; padding: 9px 11px; font-size: 10px; }
  .dictionary-filter-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; }
  .dictionary-search input { height: 38px; }
  .dictionary-mobile-filter-toggle { display: inline-flex; height: 38px; }
  .dictionary-filter-set { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border-top: 1px solid var(--border); padding-top: 11px; }
  .dictionary-filter-set.is-open { display: grid; }
  .dictionary-filter-set .dictionary-filter { width: 100%; }
  .dictionary-issues-toggle,
  .dictionary-reset-button { width: 100%; height: 36px; }
  .dictionary-desktop-table { display: none; }
  .dictionary-mobile-list { display: grid; gap: 10px; background: #f8fafd; padding: 12px; }
  .dictionary-mobile-skeleton { display: grid; }
  .dictionary-event-card { display: grid; gap: 13px; width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 14px; color: var(--text-secondary); text-align: left; box-shadow: var(--shadow-sm); }
  .dictionary-event-card.is-warning { border-left: 3px solid var(--amber); }
  .dictionary-event-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .dictionary-event-card__top .dictionary-event-identity { flex: 1; }
  .dictionary-event-identity > i { width: 32px; height: 32px; border-radius: 8px; }
  .dictionary-event-identity code { font-size: 12px; }
  .dictionary-event-identity small { max-width: 230px; font-size: 10px; }
  .dictionary-event-card__meta { display: grid; grid-template-columns: 1.3fr .55fr .8fr; gap: 8px; }
  .dictionary-event-card__meta small,
  .dictionary-event-card__meta b { display: block; }
  .dictionary-event-card__meta small { color: var(--text-muted); font-size: 9px; }
  .dictionary-event-card__meta b { overflow: hidden; margin-top: 3px; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .dictionary-mobile-skeleton .dictionary-event-card { min-height: 112px; }
  .dictionary-mobile-skeleton .dictionary-skeleton-event b { flex: 1; }
  .dictionary-list-footer { align-items: flex-start; flex-direction: column; gap: 5px; min-height: 0; padding: 12px 14px; }
  .dictionary-drawer { width: 100%; }
  .dictionary-drawer__header { min-height: 0; padding: 19px 18px 16px; }
  .dictionary-drawer__header h2 { font-size: 20px; }
  .dictionary-drawer__body { gap: 14px; padding: 16px 14px 28px; }
  .dictionary-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dictionary-detail-grid > div { min-height: 66px; border-bottom: 1px solid var(--border); }
  .dictionary-detail-grid > div:nth-child(2) { border-right: 0; }
  .dictionary-detail-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .dictionary-field-section__heading { min-height: 64px; padding: 12px 14px; }
  .dictionary-field-table { overflow: visible; }
  .dictionary-field-table__head { display: none; }
  .dictionary-field-table__row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px 12px;
    min-width: 0;
    padding: 13px;
  }
  .dictionary-field-table__row > span:nth-child(4),
  .dictionary-field-table__row > span:nth-child(5) { grid-column: 1 / -1; }
  .dictionary-field-table__row > span:nth-child(4) { margin-top: 3px; }
  .dictionary-field-table__row > span:nth-child(5) { border-top: 1px dashed var(--border); padding-top: 8px; }
  .dictionary-registration-meta > div { grid-template-columns: 1fr; }
  .dictionary-registration-meta span { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; }
  .dictionary-registration-meta span:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dictionary-skeleton-row b,
  .dictionary-skeleton-line,
  .dictionary-observation-status.is-loading i,
  .dictionary-list-footer .is-loading i { animation: none; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.global-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto;
  align-items: stretch;
  height: var(--globalbar-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 8px rgba(23, 32, 51, .025);
  backdrop-filter: blur(12px);
}

.global-header__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: var(--globalbar-h);
  min-height: var(--globalbar-h);
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0 18px;
  text-align: left;
}

button.global-header__brand:hover { background: #fbfcfe; }
.global-header__brand > span:last-child { min-width: 0; }
.global-header__brand strong,
.global-header__brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-header__brand strong { color: var(--text); font-size: 15px; font-weight: 750; }
.global-header__brand small { color: var(--text-muted); font-size: 10px; font-weight: 500; }

.global-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 0 18px;
}

.global-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: var(--globalbar-h);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 14px;
  color: #667287;
  font-size: 13px;
  font-weight: 580;
}

.global-tab::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.global-tab:hover { background: #f8faff; color: var(--text); }
.global-tab.is-active { color: var(--accent); font-weight: 680; }
.global-tab.is-active::after { background: var(--accent); }
.global-tab svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.global-header__actions { display: flex; align-items: center; gap: 8px; padding: 0 18px 0 12px; }
.global-header__help,
.global-header__logout {
  display: grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
}
.global-header__help:hover,
.global-header__logout:hover { background: #f3f6fa; color: var(--text-secondary); }
.global-header__help svg,
.global-header__logout svg { width: 17px; height: 17px; }
.global-header__account { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 4px; }
.global-header__account > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #34435d; color: #fff; font-size: 10px; font-weight: 700; }
.global-header__account strong { max-width: 132px; overflow: hidden; color: var(--text-secondary); font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-v2 .sidebar {
  top: var(--globalbar-h);
  bottom: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--globalbar-h));
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-sidebar);
  padding: 0;
}

.dashboard-v2 .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
}

.brand__mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent);
  padding: 6px;
}

.brand__mark i {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: #fff;
}

.brand__mark i:nth-child(1) { height: 8px; opacity: 0.72; }
.brand__mark i:nth-child(2) { height: 13px; opacity: 0.88; }
.brand__mark i:nth-child(3) { height: 17px; }

.dashboard-v2 .brand-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.dashboard-v2 .brand-subtitle {
  display: block;
  margin-top: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.dashboard-v2 .side-group {
  margin: 12px 12px 0;
  padding: 0;
}

.dashboard-v2 .side-group label {
  color: var(--text-muted);
  font-size: 10px;
}

.dashboard-v2 .side-group select {
  min-height: 36px;
  border-color: var(--border);
  background-color: #f8fafc;
  color: var(--text-secondary);
}

.game-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  width: calc(100% - 24px);
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  margin: 13px 12px 2px;
  padding: 8px 10px;
}

.sidebar-game-picker {
  position: relative;
  width: calc(100% - 24px);
  margin: 13px 12px 2px;
}

.sidebar-game-picker > .game-switcher {
  width: 100%;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.sidebar-game-picker > .game-switcher::-webkit-details-marker { display: none; }
.dashboard-v2 .sidebar-game-picker::after { content: none; }

.game-switcher__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8b96a8;
  border-bottom: 1.5px solid #8b96a8;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}

.sidebar-game-picker[open] .game-switcher__chevron { transform: translateY(2px) rotate(225deg); }

.game-switcher__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(31, 47, 76, .16);
}

.game-switcher__menu button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 6px 8px;
  color: var(--text-secondary);
  text-align: left;
}

.game-switcher__menu button:hover { background: #f5f8fd; }
.game-switcher__menu button.is-selected { background: var(--accent-soft); color: var(--accent); }
.game-switcher__menu button.game-switcher__create { border-top: 1px solid var(--border); border-radius: 0 0 7px 7px; margin-top: 3px; padding-top: 9px; }
.game-switcher__menu button.game-switcher__create .game-switcher__option-avatar { background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 500; }
.game-switcher__menu button.game-switcher__create b { color: var(--accent); }
.game-switcher__menu button > span:nth-child(2) { min-width: 0; }
.game-switcher__menu b,
.game-switcher__menu small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-switcher__menu b { color: var(--text); font-size: 11px; }
.game-switcher__menu small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.game-switcher__menu em { color: var(--accent); font-size: 12px; font-style: normal; text-align: center; }
.game-switcher__option-avatar { display: grid !important; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #edf2ff; color: var(--accent); font-size: 10px; font-weight: 750; }

.game-switcher:hover {
  border-color: #d6dde8;
  background: #fff;
}

.game-switcher--empty {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
}

.game-switcher__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e6edff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.game-switcher__copy {
  min-width: 0;
}

.game-switcher__copy small,
.game-switcher__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-switcher__copy small {
  color: var(--text-muted);
  font-size: 10px;
}

.game-switcher__copy strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-v2 .sidebar-nav {
  flex: 1;
  margin-top: 4px;
  overflow-y: auto;
  padding: 5px 10px 18px;
}

.dashboard-v2 .sidebar-global-nav {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  padding: 5px 10px 10px;
}

.dashboard-v2 .sidebar-global-nav .sidebar-nav__label { margin-top: 8px; }
.sidebar-nav-spacer { flex: 1; }

.sidebar-nav__label {
  margin: 16px 10px 6px;
  color: #9aa4b4;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-v2 .nav-list button {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  margin: 2px 0;
  padding: 0 11px;
  color: #5c687c;
  font-size: 13px;
  font-weight: 520;
}

.dashboard-v2 .nav-list button:hover {
  background: #f4f7fb;
  color: var(--text);
}

.dashboard-v2 .nav-list button.active,
.dashboard-v2 .nav-list button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.dashboard-v2 .nav-list .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  margin-right: 10px;
}

.dashboard-v2 .nav-list .nav-icon svg {
  width: 17px;
  height: 17px;
}

.dashboard-v2 .sidebar-global-nav .nav-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-v2 .nav-list button > span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.dashboard-v2 .nav-list button b {
  min-width: 22px;
  border-radius: 999px;
  background: #eef2f7;
  padding: 1px 6px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}

.dashboard-v2 .nav-list button.active b {
  background: #d7e4ff;
  color: var(--accent);
}

.dashboard-v2 .sidebar__footer {
  border-top: 1px solid var(--border);
  padding: 9px 12px 12px;
}

.dashboard-v2 .sidebar__footer > a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.dashboard-v2 .sidebar__footer > a:hover {
  background: #f8fafc;
  color: var(--text-secondary);
}

.sidebar-account {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  margin-top: 4px;
  padding: 8px;
}

.sidebar-account__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34435d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-account strong,
.sidebar-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account strong { font-size: 11px; }
.sidebar-account small { color: var(--text-muted); font-size: 10px; }

.sidebar-account button {
  width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
}

.dashboard-v2 .main {
  min-height: 100vh;
  margin-left: 0;
  padding-top: var(--globalbar-h);
}

.dashboard-v2--with-context-sidebar .main { margin-left: var(--sidebar-w); }

.dashboard-v2 .topbar {
  position: sticky;
  top: var(--globalbar-h);
  z-index: 20;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(229, 234, 241, 0.92);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 28px;
  backdrop-filter: blur(12px);
}

.topbar__context {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.topbar__context > span,
.topbar__context > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__context strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.topbar__context b {
  color: #b2bac7;
  font-weight: 400;
}

.topbar__menu {
  display: none;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
}

.dashboard-v2 .top-actions {
  gap: 8px;
}

.topbar__game-id {
  max-width: 360px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-action-link--icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.dashboard-v2 .content {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 28px 30px 48px;
}

.page-loading-bar {
  position: fixed;
  z-index: 30;
  top: calc(var(--globalbar-h) + var(--topbar-h));
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.dashboard-v2--with-context-sidebar .page-loading-bar { left: var(--sidebar-w); }

.page-loading-bar i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  animation: page-loading-slide 1.05s ease-in-out infinite;
}

@keyframes page-loading-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(325%); }
}

.dashboard-boot-picker {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  margin: 13px 12px 2px;
  padding: 8px 10px;
}

.dashboard-boot-picker > span:last-child {
  min-width: 0;
}

.dashboard-boot-picker small,
.dashboard-boot-picker strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-boot-picker small {
  color: var(--text-muted);
  font-size: 10px;
}

.dashboard-boot-picker strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-boot-nav__item {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  margin: 2px 0;
  padding: 0 11px;
  color: #5c687c;
  font-size: 13px;
  font-weight: 520;
}

.dashboard-boot-nav__item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.dashboard-boot-nav__item .nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  margin-right: 10px;
}

.dashboard-boot-content {
  display: grid;
  gap: 22px;
  padding-top: 6px;
}

.dashboard-boot-heading {
  display: grid;
  gap: 10px;
  width: min(520px, 72%);
}

.dashboard-boot-heading i,
.dashboard-boot-heading span,
.dashboard-boot-card i {
  display: block;
  border-radius: 6px;
  background: #e7ecf4;
  animation: dashboard-boot-pulse 1.1s ease-in-out infinite alternate;
}

.dashboard-boot-heading i {
  width: 92px;
  height: 10px;
}

.dashboard-boot-heading span:nth-child(2) {
  width: 64%;
  height: 28px;
}

.dashboard-boot-heading span:nth-child(3) {
  width: 100%;
  height: 12px;
}

.dashboard-boot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-boot-card {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.dashboard-boot-card--wide {
  min-height: 290px;
  grid-column: 1 / -1;
}

.dashboard-boot-card i:nth-child(1) {
  width: 34%;
  height: 17px;
}

.dashboard-boot-card i:nth-child(2) {
  width: 72%;
  height: 10px;
}

.dashboard-boot-card i:nth-child(3),
.dashboard-boot-card i:nth-child(4) {
  width: 100%;
  height: 54px;
}

@keyframes dashboard-boot-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.workspace-page {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.game-library-page { gap: 18px; }

.game-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-library-metric {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.game-library-metric > span:last-child { min-width: 0; }
.game-library-metric small,
.game-library-metric strong,
.game-library-metric p { display: block; margin: 0; }
.game-library-metric small { color: var(--text-muted); font-size: 12px; }
.game-library-metric strong { margin-top: 2px; color: var(--text); font-size: 26px; font-weight: 720; }
.game-library-metric p { overflow: hidden; margin-top: 3px; color: var(--text-placeholder); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.game-library-browser { overflow: hidden; }

.game-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  border-bottom: 1px solid var(--border);
  padding: 16px 22px;
}

.game-library-toolbar h2 { margin: 0; color: var(--text); font-size: 18px; }
.game-library-toolbar p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }

.game-library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: var(--text-muted);
}

.game-library-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.game-library-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.game-library-search input::placeholder { color: var(--text-placeholder); }
.game-library-mobile-sort { display: none; }

.game-library-table { overflow-x: auto; }
.game-library-table__head,
.game-library-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(190px, 1.05fr) minmax(130px, .72fr) minmax(130px, .72fr) minmax(140px, .78fr) 18px;
  gap: 16px;
  align-items: center;
  min-width: 1040px;
  padding: 0 22px;
}

.game-library-table__head {
  min-height: 44px;
  background: #fafbfd;
  color: #909aac;
  font-size: 12px;
  font-weight: 600;
}
.game-library-table__sort-head { align-self: stretch; min-width: 0; }
.game-library-table__sort-button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.game-library-table__metric-head .game-library-table__sort-button { width: 100%; justify-content: flex-end; }
.game-library-table__sort-head.is-active,
.game-library-table__sort-button:hover { color: var(--accent); }
.game-library-table__sort-button:focus-visible { border-radius: 5px; outline: 2px solid var(--accent); outline-offset: 2px; }
.game-library-table__sort-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: .34;
  transition: transform 140ms ease, opacity 140ms ease;
}
.game-library-table__sort-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.game-library-table__sort-head.is-active .game-library-table__sort-icon { opacity: 1; }
.game-library-table__sort-icon.is-ascending { transform: rotate(180deg); }

.game-library-row {
  width: 100%;
  min-height: 86px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.game-library-row:hover { background: #fbfdff; box-shadow: inset 3px 0 var(--accent); }
.game-library-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.game-library-row:disabled { cursor: wait; opacity: .68; }
.game-library-row > span { min-width: 0; }
.game-library-row > span:not(.game-library-row__name):not(.game-library-row__arrow) b,
.game-library-row > span:not(.game-library-row__name):not(.game-library-row__arrow) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-library-row > span:not(.game-library-row__name):not(.game-library-row__arrow) b { color: var(--text-secondary); font-size: 13px; font-weight: 650; }
.game-library-row > span:not(.game-library-row__name):not(.game-library-row__arrow) small { margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.game-library-table__metric-head,
.game-library-row__metric { text-align: right; }
.game-library-row__metric b { font-variant-numeric: tabular-nums; }

.game-library-row__name { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.game-library-row__name strong,
.game-library-row__name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-library-row__name strong { color: var(--text); font-size: 15px; font-weight: 680; }
.game-library-row__name small { margin-top: 4px; color: var(--text-muted); font-size: 11px; }

.game-library-row__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 15px;
  font-style: normal;
  font-weight: 750;
}
.game-library-row__avatar--blue { background: #e9f0ff; color: #316be9; }
.game-library-row__avatar--violet { background: #f0eaff; color: #7851d6; }
.game-library-row__avatar--green { background: #e7f8f1; color: #15835f; }
.game-library-row__avatar--amber { background: #fff3d9; color: #9a6710; }

.game-library-row__status > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.game-library-row__status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a4adba; }
.game-library-row__status.is-active i { background: #1aa374; box-shadow: 0 0 0 3px #e6f7f1; }
.game-library-row__status.is-inactive i { background: #d99828; box-shadow: 0 0 0 3px #fff4dd; }
.game-library-row__arrow { color: #aab3c0; font-size: 20px; }

.game-library-empty { display: grid; min-height: 280px; place-items: center; align-content: center; gap: 8px; padding: 32px; color: var(--text-muted); text-align: center; }
.game-library-empty > svg { width: 28px; height: 28px; }
.game-library-empty strong { color: var(--text-secondary); font-size: 14px; }
.game-library-empty p { margin: 0; font-size: 12px; }

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.workspace-heading .eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}

.workspace-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: 0;
}

.workspace-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.workspace-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.workspace-card,
.dashboard-v2 .section,
.dashboard-v2 .experiment-v2-panel,
.dashboard-v2 .report-group {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.workspace-card__header,
.dashboard-v2 .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  border-bottom: 1px solid var(--border);
  padding: 17px 22px;
}

.workspace-card__header h2,
.dashboard-v2 .section-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: 0;
}

.workspace-card__header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.workspace-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workspace-kpi-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  min-height: 124px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.workspace-kpi-card:hover {
  border-color: #cdd7e5;
  background: #fbfdff;
}

.workspace-kpi-card > span:last-child { min-width: 0; }
.workspace-kpi-card small,
.workspace-kpi-card strong,
.workspace-kpi-card p { display: block; margin: 0; }
.workspace-kpi-card small { color: var(--text-muted); font-size: 13px; }
.workspace-kpi-card strong { margin-top: 2px; color: var(--text); font-size: 27px; font-weight: 720; }
.workspace-kpi-card p { margin-top: 3px; color: var(--text-placeholder); font-size: 11px; }

.platform-usage-page { gap: 18px; }
.platform-usage-page .workspace-heading { align-items: flex-end; }
.platform-usage-filter { display: flex; align-items: flex-end; gap: 10px; }
.platform-usage-filter label { display: grid; gap: 5px; color: var(--text-muted); font-size: 11px; }
.platform-usage-filter input {
  width: 142px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: var(--text);
  font: inherit;
}
.platform-usage-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-usage-kpis .workspace-kpi-card { cursor: default; }
.platform-usage-trend,
.platform-usage-details { overflow: hidden; }
.platform-usage-table-wrap { margin: 0; border: 0; border-radius: 0; }
.platform-usage-table-wrap table { min-width: 820px; }
.platform-usage-table-wrap th:first-child,
.platform-usage-table-wrap td:first-child { padding-left: 22px; }
.platform-usage-table-wrap th:last-child,
.platform-usage-table-wrap td:last-child { padding-right: 22px; }
.platform-usage-secondary { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.platform-usage-details__header { min-height: 76px; }
.platform-usage-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f6f8fb;
  padding: 3px;
}
.platform-usage-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 13px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.platform-usage-tabs button.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(25, 40, 65, .12); }
.platform-usage-members { display: flex; max-width: 420px; flex-wrap: wrap; gap: 5px; }
.platform-usage-members span { border-radius: 5px; background: #eef2f7; padding: 3px 7px; color: var(--text-muted); font-size: 11px; }

.metric-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
}

.metric-icon svg { width: 18px; height: 18px; }
.metric-icon--blue { background: var(--accent-soft); color: var(--accent); }
.metric-icon--green { background: var(--green-soft); color: var(--green); }
.metric-icon--amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon--violet { background: var(--violet-soft); color: var(--violet); }

.workspace-grid {
  display: grid;
  gap: 16px;
}

.workspace-grid--overview {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
}

.workspace-table__head,
.workspace-table__row {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

.workspace-table--overview .workspace-table__head,
.workspace-table--overview .workspace-table__row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) 90px 150px;
}

.workspace-table__head {
  min-height: 46px;
  background: #fafbfd;
  color: #909aac;
  font-size: 12px;
  font-weight: 650;
}

.workspace-table__row {
  min-height: 82px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.workspace-table__head + .workspace-table__row { border-top: 0; }
.workspace-table__row b,
.workspace-table__row small { display: block; }
.workspace-table__row b { color: var(--text); font-size: 14px; font-weight: 620; }
.workspace-table__row small { margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.workspace-table__row code { font-size: 12px; }

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.tag--positive,
.status-badge--completed { background: var(--green-soft); color: var(--green); }
.tag--running { background: var(--accent-soft); color: var(--accent); }
.tag--neutral,
.status-badge--upcoming { background: #eef2f6; color: #758094; }
.tag--danger { background: var(--red-soft); color: var(--red); }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.readiness-list {
  display: grid;
  padding: 6px 0;
}

.readiness-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  padding: 11px 20px;
  text-align: left;
}

.readiness-item:first-child { border-top: 0; }
.readiness-item:hover { background: #fbfdff; }
.readiness-item__status { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 750; }
.readiness-item__status.is-ready { background: var(--green-soft); color: var(--green); }
.readiness-item b,
.readiness-item small { display: block; }
.readiness-item b { color: var(--text); font-size: 14px; font-weight: 620; }
.readiness-item small { margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.readiness-item em { color: var(--text-muted); font-size: 12px; font-style: normal; }

.overview-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.overview-config-grid > div {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding: 17px 20px;
}

.overview-config-grid > div:last-child { border-right: 0; }
.overview-config-grid dt { color: var(--text-muted); font-size: 11px; }
.overview-config-grid dd { margin: 5px 0 0; color: var(--text); font-size: 13px; }
.overview-config-grid code { font-size: 11px; }
.overview-config-card .integration-grid { border: 0; border-radius: 0; }

.dashboard-v2 .section {
  margin: 0;
  overflow: hidden;
}

.dashboard-v2 .section + .section { margin-top: 0; }
.dashboard-v2 .section-body { padding: 24px; }

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) form label {
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) form input,
.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) form select {
  min-height: 44px;
  padding-right: 12px;
  padding-left: 12px;
  font-size: 13px;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) .form-actions {
  margin-top: 16px;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) .subsection-form h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) .info-grid div {
  min-height: 72px;
  padding: 14px 16px;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) .info-grid span {
  font-size: 12px;
}

.workspace-page:not(.experiment-center-page):not(.experiment-detail-page) .info-grid strong {
  margin-top: 5px;
  font-size: 14px;
}

.account-identities__intro {
  margin: -4px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.account-identity-list {
  border-top: 1px solid var(--border);
}

.account-identity-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  padding: 10px 2px;
}

.account-identity-row__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.account-identity-row__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-identity-row__content,
.account-identity-row__meta {
  display: grid;
  gap: 4px;
}

.account-identity-row__content strong {
  color: var(--text);
  font-size: 13px;
}

.account-identity-row__content small,
.account-identity-row__meta small {
  color: var(--text-muted);
  font-size: 11px;
}

.account-identity-row__meta {
  justify-items: end;
}

.account-identity-bind {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
}

.organization-members__intro {
  margin: -4px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.organization-members .table-wrap {
  margin-top: 0;
}

.organization-member {
  display: flex;
  align-items: center;
  gap: 10px;
}

.organization-member__avatar {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.organization-member > span:last-child {
  display: grid;
  gap: 2px;
}

.organization-member strong {
  color: var(--text);
  font-size: 13px;
}

.organization-member small,
.organization-member__permission {
  color: var(--text-muted);
  font-size: 11px;
}

.organization-member-role-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-page .organization-member-role-form select {
  width: 112px;
  min-height: 34px;
  padding: 5px 30px 5px 10px;
}

@media (max-width: 720px) {
  .account-identity-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .account-identity-row__meta {
    grid-column: 2;
    justify-items: start;
  }
}

.organization-member-role-form button {
  min-height: 34px;
  padding: 6px 12px;
}

.dashboard-v2 input,
.dashboard-v2 select,
.dashboard-v2 textarea {
  border-color: var(--border);
  border-radius: 8px;
  background-color: #fff;
}

.dashboard-v2 input:focus,
.dashboard-v2 select:focus,
.dashboard-v2 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.dashboard-v2 button.primary,
.dashboard-v2 .btn--primary,
.button--primary {
  background: var(--accent);
  color: #fff;
}

.dashboard-v2 button.primary:hover,
.dashboard-v2 .btn--primary:hover,
.button--primary:hover { background: var(--accent-hover); }

.button,
.dashboard-v2 .btn {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
}

.button--secondary,
.dashboard-v2 .btn--secondary {
  border: 1px solid #d6dde8;
  background: #fff;
  color: var(--text-secondary);
}

.button--quiet,
.dashboard-v2 .btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.experiment-v2-page {
  display: grid;
  gap: 14px;
}

.dashboard-v2 .experiment-v2-controls {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.dashboard-v2 .experiment-v2-controls__meta span {
  border-radius: 999px;
  background: #eef2f7;
  color: var(--text-muted);
}

.dashboard-v2 .experiment-v2-panel {
  padding: 0;
  overflow: hidden;
}

.dashboard-v2 .experiment-v2-panel__head {
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.dashboard-v2 .experiment-v2-heading__main h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.dashboard-v2 .experiment-v2-heading p {
  margin-top: 7px;
}

.dashboard-v2 .experiment-v2-summary {
  margin: 14px 18px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfd;
}

.dashboard-v2 .experiment-v2-managed,
.dashboard-v2 .experiment-v2-table-block {
  padding-right: 18px;
  padding-left: 18px;
}

.dashboard-v2 .experiment-v2-managed__round {
  border-color: var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}

.dashboard-v2 .experiment-v2-current-assessment {
  border: 1px solid #cfddff;
  border-radius: 9px;
  background: #f3f7ff;
}

.dashboard-v2 .experiment-v2-report-groups {
  padding: 0 18px 18px;
}

.dashboard-v2 .report-dashboard {
  display: grid;
  gap: 14px;
}

.report-dashboard__platform { width: 130px; }
.report-dashboard__range { width: auto; }

.segmented-control {
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.segmented-control button {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 3px 11px;
  color: var(--text-muted);
  font-size: 11px;
}

.segmented-control button:hover { background: #f4f7fb; }
.segmented-control button.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }

.dashboard-v2 .report-tabs {
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0;
}

.dashboard-v2 .report-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  color: var(--text-muted);
}

.dashboard-v2 .report-tab--active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}

.dashboard-v2 .report-group {
  overflow: hidden;
  padding: 0;
}

.dashboard-v2 .report-group__head {
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.dashboard-v2 .report-chart-card {
  border-color: var(--border);
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-v2 .report-chart-card__header h3 {
  font-size: 13px;
  letter-spacing: 0;
}

.dashboard-v2 .report-chart-card__header p { color: var(--text-muted); }

.dashboard-v2 .editor-layout {
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dashboard-v2 .editor-list {
  border-color: var(--border);
  background: #fafbfd;
}

.dashboard-v2 .editor-list__item {
  border-radius: 8px;
}

.dashboard-v2 .editor-list__item--active {
  border-color: #cfddff;
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-v2 .editor-toolbar {
  border-color: var(--border);
  background: #fff;
}

.dashboard-v2 .editor-code {
  background: #111827;
  color: #dbe7ff;
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-v2 .key-help {
  border-color: #dbe5f4;
  background: #f7faff;
  color: var(--text-secondary);
}

.dashboard-v2 .key-reveal {
  border-color: #cfddff;
  background: #f3f7ff;
}

.dashboard-v2 .table-wrap {
  border-color: var(--border);
  border-radius: 8px;
}

.dashboard-v2 table thead { background: #fafbfd; }
.dashboard-v2 table th { color: #8a95a7; font-size: 10px; }
.dashboard-v2 table td { color: var(--text-secondary); }

.dashboard-v2 .marketing-sync-status {
  border-color: var(--border);
  background: #fafbfd;
}

.dashboard-v2 .adjust-callback-box {
  border-color: var(--border);
  border-radius: 8px;
  background: #fafbfd;
}

/* Config files */
.config-workspace-demo {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.config-file-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #fbfcfe;
}

.config-file-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px 18px;
}

.config-file-list__header h2 { display: inline; margin: 0; font-size: 17px; }
.config-file-list__header span { margin-left: 8px; color: var(--text-muted); font-size: 12px; }
.config-file-list__items { flex: 1; overflow-y: auto; border-top: 1px solid var(--border); }

.config-file-list__items > button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 82px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 13px 16px;
  color: var(--text-secondary);
  text-align: left;
}

.config-file-list__items > button:hover { background: #f5f8fd; }
.config-file-list__items > button.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.config-file-list__items b,
.config-file-list__items small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-file-list__items b { color: var(--text); font-size: 14px; }
.config-file-list__items small { margin-top: 4px; color: var(--text-muted); font-size: 11px; }

.config-file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef3fa;
  color: #718099;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.config-file-list__items button.is-active .config-file-icon { background: #dce7ff; color: var(--accent); }
.config-file-list__empty { padding: 24px 16px; color: var(--text-muted); font-size: 11px; text-align: center; }

.config-create-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: 16px;
}

.config-create-panel label,
.config-save-as { min-width: 0; }
.config-create-panel label { display: grid; gap: 6px; }
.config-create-panel label span { color: var(--text-muted); font-size: 12px; font-weight: 650; }
.config-create-panel input,
.config-save-as input { width: 100%; min-width: 0; height: 42px; padding: 0 11px; font-size: 13px; }

.config-editor-demo { display: flex; min-width: 0; flex-direction: column; }
.config-editor-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 100px;
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
}
.config-editor-demo__header .title-line { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.config-editor-demo__header h2 { margin: 0; font-size: 20px; }
.config-editor-demo__header p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.config-editor-demo__header code { color: var(--text-secondary); }

.config-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: #fafbfd;
  padding: 15px 20px;
}
.config-meta > div { min-width: 0; border-right: 1px solid var(--border); padding: 0 15px; }
.config-meta > div:first-child { padding-left: 0; }
.config-meta > div:last-child { border: 0; }
.config-meta dt { color: var(--text-muted); font-size: 11px; }
.config-meta dd { overflow: hidden; margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.config-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 22px;
}
.config-editor-toolbar > span { display: flex; align-items: baseline; gap: 7px; }
.config-editor-toolbar b { font-size: 14px; }
.config-editor-toolbar small { color: var(--text-muted); font-size: 11px; }
.config-save-as { display: grid; grid-template-columns: minmax(130px, 220px) auto; gap: 7px; }

.config-code-editor {
  width: auto;
  min-height: 440px;
  flex: 1;
  resize: vertical;
  border: 0 !important;
  border-radius: 9px !important;
  outline: 0;
  background: #182235 !important;
  margin: 0 22px;
  padding: 22px;
  color: #dce6f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 2.05;
  tab-size: 2;
}
.config-code-editor:focus { box-shadow: 0 0 0 3px var(--accent-ring) !important; }
.config-code-editor:disabled { color: #8290a5; opacity: 1; }
.config-editor-demo__footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; color: var(--text-muted); font-size: 12px; }
.config-editor-demo__footer .is-valid { color: var(--green); }
.config-editor-demo__footer .is-invalid { color: var(--red); }

/* Marketing */
.workspace-page--marketing .workspace-card__header,
.workspace-page--keys .workspace-card__header { min-height: 84px; padding: 17px 22px; }
.workspace-page--marketing .workspace-card__header h2,
.workspace-page--keys .workspace-card__header h2 { font-size: 18px; }
.workspace-page--marketing .workspace-card__header p,
.workspace-page--keys .workspace-card__header p { margin-top: 5px; font-size: 12px; }
.workspace-page--marketing .workspace-kpi-card { gap: 15px; min-height: 124px; padding: 20px; }
.workspace-page--marketing .workspace-kpi-card small { font-size: 13px; }
.workspace-page--marketing .workspace-kpi-card strong { margin-top: 2px; font-size: 27px; }
.workspace-page--marketing .workspace-kpi-card p { margin-top: 3px; font-size: 11px; }
.workspace-page--marketing .metric-icon { width: 44px; height: 44px; }
.workspace-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-freshness { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10px; }
.data-freshness i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.data-freshness.is-inactive i { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.marketing-kpi-card { cursor: default; }
.marketing-kpi-card:hover { border-color: var(--border); background: #fff; }
.marketing-kpi-card__compact { font-size: 18px !important; line-height: 1.3; }
.demo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 24px; }
.demo-form-grid label { display: grid; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 650; }
.demo-form-grid input,
.demo-form-grid select { width: 100%; height: 44px; padding: 0 12px; color: var(--text-secondary); font-size: 13px; }
.demo-form-grid textarea { width: 100%; min-height: 168px; resize: vertical; padding: 12px; color: var(--text-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.55; }
.demo-form-grid .marketing-form-wide { grid-column: 1 / -1; }
.demo-form-grid label > small { color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.marketing-card-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--border); padding: 16px 24px; }

.callback-box {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
  margin: 24px;
  padding: 10px 12px;
}
.callback-box__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; }
.callback-box code { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.callback-box button { min-height: 32px; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 650; }
.callback-box button:disabled { color: var(--text-placeholder); }

.callback-hint { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0 24px 20px; color: var(--text-muted); }
.callback-hint > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef2f7; font-size: 10px; font-weight: 750; }
.callback-hint b { color: var(--text-secondary); font-size: 13px; }
.callback-hint p { margin: 3px 0 0; font-size: 11px; line-height: 1.5; }
.callback-hint--success { border-radius: 8px; background: var(--green-soft); padding: 10px; color: var(--green); }
.callback-hint--success > span { background: #d8f2e5; }
.callback-hint--success b { color: #147f52; }

.marketing-sync-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); background: #fafbfd; padding: 17px 22px; }
.marketing-sync-summary > span { min-width: 0; border-right: 1px solid var(--border); padding: 0 16px; }
.marketing-sync-summary > span:first-child { padding-left: 0; }
.marketing-sync-summary > span:last-child { border-right: 0; }
.marketing-sync-summary small,
.marketing-sync-summary b { display: block; }
.marketing-sync-summary small { color: var(--text-muted); font-size: 11px; }
.marketing-sync-summary b { overflow: hidden; margin-top: 5px; color: var(--text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.marketing-sync-form { display: grid; grid-template-columns: minmax(190px, 260px) minmax(190px, 260px) auto; gap: 14px; align-items: end; padding: 22px 24px; }
.marketing-sync-form label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.marketing-sync-form input { height: 42px; padding: 0 12px; font-size: 13px; }
.marketing-sync-error,
.marketing-sync-result { margin: 16px 24px 0; border-radius: 8px; padding: 12px 14px; font-size: 12px; }
.marketing-sync-error { display: grid; gap: 3px; background: var(--red-soft); color: var(--red); }
.marketing-sync-result { background: var(--green-soft); color: #147f52; }

/* Access keys */
.key-notice { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 92px; border: 1px solid #d8e4fc; border-radius: 12px; background: #f3f7ff; padding: 16px 20px; }
.key-notice__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #dfe9ff; color: var(--accent); font-size: 14px; font-weight: 750; }
.key-notice b { font-size: 14px; }
.key-notice p { margin: 4px 0 0; color: #6d7c94; font-size: 12px; line-height: 1.5; }
.key-notice > a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.key-demo-card { min-width: 0; overflow: visible; }
.key-demo-card + .key-demo-card { margin-top: 16px; }
.key-card-actions { display: flex; align-items: center; gap: 10px; }
.key-card-actions .button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
.key-create-form { display: grid; grid-template-columns: minmax(260px, 480px) max-content; gap: 12px; align-items: end; justify-content: start; border-bottom: 1px solid var(--border); padding: 18px 22px; }
.key-create-form label { display: grid; gap: 7px; color: var(--text-muted); font-size: 11px; font-weight: 650; }
.key-create-form input { height: 42px; padding: 0 12px; font-size: 13px; }
.key-reveal { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; align-items: start; border: 1px solid #cfddff; border-radius: 8px; background: #f3f7ff; margin: 14px 18px; padding: 13px; }
.key-reveal__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 750; }
.key-reveal__content { min-width: 0; }
.key-reveal__label { color: var(--text-muted); font-size: 9px; }
.key-reveal__title { margin: 2px 0 7px; color: var(--text); font-size: 11px; font-weight: 650; }
.key-reveal__content input { width: 100%; height: 34px; padding: 0 9px; font-size: 10px; }
.key-reveal__hint { margin-top: 5px; color: var(--text-muted); font-size: 9px; }
.key-reveal__actions { display: flex; gap: 7px; }
.workspace-table-empty { padding: 36px 22px; color: var(--text-muted); font-size: 13px; text-align: center; }
.workspace-table-scroll { max-width: 100%; overflow-x: auto; }
.workspace-page--keys .workspace-table-scroll { overflow: visible; }
.workspace-table--keys,
.workspace-table--admin-keys { min-width: 930px; }
.workspace-table--keys .workspace-table__head,
.workspace-table--keys .workspace-table__row { grid-template-columns: minmax(210px, 1.15fr) minmax(180px, .9fr) minmax(200px, 1.05fr) minmax(145px, .7fr) minmax(155px, .75fr) 126px; }
.workspace-table--admin-keys .workspace-table__head,
.workspace-table--admin-keys .workspace-table__row { grid-template-columns: minmax(210px, 1.1fr) minmax(180px, .9fr) minmax(190px, 1fr) minmax(220px, 1.1fr) minmax(155px, .75fr) 126px; }
.workspace-page--keys .workspace-table__head { min-height: 46px; padding: 0 22px; font-size: 12px; }
.workspace-page--keys .workspace-table__row { min-height: 82px; padding: 0 22px; font-size: 13px; }
.workspace-page--keys .workspace-table__row b { font-size: 14px; }
.workspace-page--keys .workspace-table__row small { margin-top: 4px; font-size: 11px; }
.key-name-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.key-platform,
.server-key-icon { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 10px; font-style: normal; font-weight: 750; }
.key-platform--client { background: #edf2fb; color: #53627c; }
.key-platform--ios { background: #edf2fb; color: #53627c; }
.key-platform--android { background: var(--green-soft); color: var(--green); }
.key-platform--rest { background: var(--amber-soft); color: #a66300; }
.key-platform--all { background: var(--accent-soft); color: var(--accent); }
.server-key-icon { background: var(--violet-soft); color: var(--violet); }
.key-purpose { overflow: hidden; color: var(--text-secondary); text-overflow: ellipsis; white-space: nowrap; }
.key-row-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 7px; overflow: visible !important; }
.key-row-actions .icon-button { width: 34px; height: 34px; }
.key-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 76px; height: 34px; border: 1px solid #d4deef; border-radius: 8px; background: #fff; color: #40516e; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, color 140ms ease; }
.key-copy-button svg { width: 15px; height: 15px; }
.key-copy-button:hover { border-color: #9fb7e8; background: #f4f7ff; color: var(--accent); }
.key-copy-button:focus-visible { outline: 2px solid rgba(47, 104, 237, .28); outline-offset: 2px; }
.key-copy-button.is-copied { border-color: #bde6d1; background: var(--green-soft); color: var(--green); }
.key-more-menu { position: relative; }
.key-more-menu summary { list-style: none; cursor: pointer; }
.key-more-menu summary::-webkit-details-marker { display: none; }
.key-more-menu[open] summary { border-color: #b9c9e8; background: var(--accent-soft); color: var(--accent); }
.key-more-menu > div { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; display: grid; min-width: 138px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 5px; box-shadow: 0 12px 30px rgba(30, 48, 80, .16); }
.key-more-menu button { border: 0; border-radius: 6px; background: transparent; padding: 9px 10px; color: var(--text-secondary); font-size: 12px; text-align: left; cursor: pointer; }
.key-more-menu button:hover { background: #f4f7fb; color: var(--text); }
.key-more-menu button.is-danger { color: var(--red); }
.scope-list { display: flex; flex-wrap: wrap; gap: 5px; }
.scope-list em { border-radius: 5px; background: #f1f4f8; padding: 4px 7px; color: #66738a; font-size: 10px; font-style: normal; }
.button--danger { border: 1px solid #f0c8cc; background: #fff6f7; color: var(--red); }

.key-dialog-layer { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.key-dialog-backdrop,
.key-dialog-backdrop:hover,
.key-dialog-backdrop:focus {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, .38);
  padding: 0;
  box-shadow: none;
  cursor: default;
  transition: none;
}
.key-dialog { position: relative; z-index: 1; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .24); }
.key-dialog--wide { width: min(680px, 100%); }
.key-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 21px 24px 18px; }
.key-dialog__header > div { min-width: 0; }
.key-dialog__header h2 { margin: 0; color: var(--text); font-size: 19px; }
.key-dialog__header p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.key-dialog__header .icon-button { flex: 0 0 auto; border: 0; font-size: 22px; }
.key-dialog__body { padding: 22px 24px; }
.key-dialog__footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); padding: 15px 24px; }
.key-dialog__footer .button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 15px; font-size: 13px; }
.key-dialog-form { display: grid; gap: 17px; }
.key-dialog-form > label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.key-dialog-form input:not([type="checkbox"]), .key-dialog-form select, .key-secret-field input { width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; padding: 0 12px; color: var(--text); font-size: 13px; outline: 0; }
.key-dialog-form input:focus, .key-dialog-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 101, 245, .1); }
.key-dialog-form small, .key-dialog-readonly small { color: var(--text-muted); font-size: 11px; font-weight: 400; }
.game-dialog-organization { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; padding: 0 12px; color: var(--text); font-size: 13px; font-weight: 500; }
.delete-game-dialog__warning { display: grid; gap: 5px; border: 1px solid #f0c8cc; border-radius: 8px; background: #fff6f7; padding: 13px 14px; }
.delete-game-dialog__warning b { color: var(--red); font-size: 13px; }
.delete-game-dialog__warning span { color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.delete-game-dialog .key-dialog-form code { border-radius: 5px; background: #f1f4f8; padding: 2px 6px; color: var(--text); font-size: 12px; user-select: all; }
.delete-game-dialog .button--danger:disabled { border-color: #e5e9f0; background: #f4f6f9; color: #a5aebb; cursor: not-allowed; }
.key-dialog-readonly { display: grid; gap: 6px; border-radius: 8px; background: #f7f9fc; padding: 12px 14px; }
.key-dialog-readonly > span { color: var(--text-muted); font-size: 11px; }
.key-dialog-readonly strong { font-size: 13px; }
.key-fixed-permissions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; background: #f3f7ff; padding: 13px 14px; }
.key-fixed-permissions b { font-size: 12px; }
.key-fixed-permissions span { color: var(--text-muted); font-size: 11px; }
.key-scope-fieldset { min-width: 0; border: 0; margin: 2px 0 0; padding: 0; }
.key-scope-fieldset legend { color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.key-scope-fieldset > p { margin: 5px 0 10px; color: var(--text-muted); font-size: 11px; }
.key-scope-matrix { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.key-scope-matrix > div { display: grid; grid-template-columns: minmax(140px, 1fr) 90px 90px; align-items: center; min-height: 43px; border-top: 1px solid var(--border); padding: 0 13px; }
.key-scope-matrix > div:first-child { border-top: 0; }
.key-scope-matrix__head { background: #f7f9fc; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.key-scope-matrix__head span:not(:first-child) { text-align: center; }
.key-scope-matrix b { color: var(--text-secondary); font-size: 12px; }
.key-scope-matrix label { display: grid; place-items: center; cursor: pointer; }
.key-scope-matrix input { width: 16px; height: 16px; accent-color: var(--accent); }
.key-secret-dialog .key-dialog__header > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; }
.key-secret-dialog .key-dialog__header h2, .key-secret-dialog .key-dialog__header p { grid-column: 2; }
.key-dialog__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.key-dialog__icon--success { background: var(--green-soft); color: var(--green); font-weight: 800; }
.key-secret-field { display: grid; gap: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.key-secret-field input { font-family: var(--mono); font-size: 11px; }
.key-secret-dialog .key-dialog__body > p { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.identity-binding-dialog--taptap .key-dialog__body { text-align: center; }
.identity-binding-dialog .auth-login-qr { margin-bottom: 12px; }
.identity-binding-hint { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.identity-binding-open-link { display: inline-flex; margin-top: 14px; }
.identity-binding-loading { display: grid; justify-items: center; gap: 10px; min-height: 150px; align-content: center; color: var(--text-muted); font-size: 12px; }
.identity-binding-loading p { margin: 0; }
.identity-binding-spinner { width: 26px; height: 26px; border: 3px solid #dce6fb; border-top-color: var(--accent); border-radius: 50%; animation: identity-binding-spin .8s linear infinite; }
@keyframes identity-binding-spin { to { transform: rotate(360deg); } }

.workspace-page--configs .button,
.workspace-page--marketing .button,
.workspace-page--keys .key-create-form .button { min-height: 42px; padding-right: 14px; padding-left: 14px; font-size: 13px; }

/* Keep the production experiment list at the visual scale of the approved demo. */
.experiment-center-page .workspace-card__header { min-height: 88px; padding: 14px 22px; }
.experiment-center-page .workspace-card__header h2 { font-size: 17px; }
.experiment-center-page .workspace-card__header p { margin-top: 5px; font-size: 13px; }
.experiment-center-page { gap: 18px; padding-top: 8px; }
.experiment-center-page .workspace-heading { margin-bottom: 10px; }
.experiment-center-page .workspace-heading .eyebrow { margin-bottom: 6px; font-size: 11px; }
.experiment-center-page .workspace-heading h1 { font-size: 32px; }
.experiment-center-page .workspace-heading p { margin-top: 8px; font-size: 15px; }
.experiment-center-page .experiment-status-card { grid-template-columns: 48px minmax(0, 1fr); gap: 15px; min-height: 124px; border-radius: 14px; padding: 20px; }
.experiment-center-page .experiment-status-card .metric-icon { width: 44px; height: 44px; border-radius: 13px; }
.experiment-center-page .experiment-status-overview small { font-size: 13px; }
.experiment-center-page .experiment-status-overview strong { font-size: 29px; font-weight: 720; line-height: 1.5; }
.experiment-center-page .experiment-status-overview p { margin-top: 1px; font-size: 12px; }
.experiment-center-page .experiment-run-list-card { border-radius: 14px; }
.experiment-center-page .experiment-run-table__head { min-height: 44px; padding: 0 22px; font-size: 12px; }
.experiment-center-page .experiment-run-row { min-height: 112px; padding: 16px 22px; }
.experiment-center-page .experiment-run-row > span:not(.experiment-run-name) b { font-size: 14px; }
.experiment-center-page .experiment-run-row > span:not(.experiment-run-name) small { margin-top: 5px; font-size: 12px; }
.experiment-center-page .experiment-run-name { grid-template-columns: 44px minmax(0, 1fr); gap: 13px; }
.experiment-center-page .experiment-run-glyph { width: 44px; height: 44px; border-radius: 13px; }
.experiment-center-page .experiment-run-glyph svg { width: 20px; height: 20px; }
.experiment-center-page .experiment-run-name strong { font-size: 16px; }
.experiment-center-page .experiment-run-name small { margin-top: 4px; font-size: 12px; }
.experiment-center-page .experiment-run-name code { margin-top: 5px; font-size: 11px; }

.settings-card .section-body { padding: 24px; }
.settings-name-field { max-width: 720px; }
.settings-danger-card { border-color: #f0c8cc; }
.settings-danger-card .workspace-card__header h2 { color: var(--red); }
.settings-danger-card__body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.settings-danger-card__body span { display: grid; gap: 5px; }
.settings-danger-card__body b { color: var(--text); font-size: 14px; }
.settings-danger-card__body small { color: var(--text-secondary); font-size: 12px; }

@media (max-width: 720px) {
  .settings-danger-card__body { align-items: stretch; flex-direction: column; }
}

.workspace-page .table-wrap th {
  min-height: 46px;
  padding: 13px 14px;
  font-size: 12px;
}

.workspace-page .table-wrap td {
  min-height: 58px;
  padding: 14px;
  font-size: 13px;
}

.topbar-account {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34435d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-v2 .sidebar-picker--account {
  margin: 12px 12px 0;
}

.dashboard-v2 .sidebar-picker--account label {
  display: grid;
  gap: 4px;
}

.dashboard-v2 .sidebar-picker--account select {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 9px;
  color: var(--text-secondary);
  font-size: 11px;
}

/* Experiment center */
.experiment-center-page,
.experiment-detail-page {
  width: min(1600px, 100%);
}

.experiment-status-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.experiment-status-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.experiment-status-card:hover {
  border-color: #b9caf0;
  box-shadow: 0 5px 14px rgba(52, 87, 150, .1);
  transform: translateY(-1px);
}

.experiment-status-card:focus-visible {
  outline: 2px solid rgba(47, 104, 237, .35);
  outline-offset: 2px;
}

.experiment-status-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 104, 237, .12), 0 5px 14px rgba(52, 87, 150, .1);
}

.experiment-status-overview small,
.experiment-status-overview strong,
.experiment-status-overview p { display: block; }
.experiment-status-overview small { color: var(--text-muted); font-size: 11px; }
.experiment-status-overview strong { margin-top: 2px; font-size: 24px; line-height: 1.1; }
.experiment-status-overview p { margin: 5px 0 0; color: var(--text-muted); font-size: 10px; }

.experiment-list-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, .8fr);
  gap: 18px;
}

.experiment-activity-panel,
.experiment-change-panel { overflow: hidden; }

.experiment-secondary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
}

.experiment-secondary-header h2 { margin: 0; font-size: 17px; }
.experiment-secondary-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.experiment-secondary-header > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f2f5f9;
  padding: 5px 9px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.experiment-activity-list,
.experiment-change-list { display: grid; }

.experiment-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}

.experiment-activity-list .experiment-activity-item:first-child,
.experiment-change-list .experiment-change-item:first-child { border-top: 0; }
.experiment-activity-marker { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.experiment-activity-marker svg { width: 19px; height: 19px; }
.experiment-activity-marker--blue { background: var(--accent-soft); color: var(--accent); }
.experiment-activity-marker--green { background: var(--green-soft); color: var(--green); }
.experiment-activity-item strong,
.experiment-activity-item p,
.experiment-activity-item time { display: block; }
.experiment-activity-item strong { color: var(--text-secondary); font-size: 14px; font-weight: 650; }
.experiment-activity-item p { margin: 5px 0 0; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.experiment-activity-item > span:last-child { display: grid; justify-items: end; gap: 6px; padding-left: 12px; }
.experiment-activity-item time { color: var(--text-muted); font-size: 10px; font-style: normal; }
.experiment-activity-tag { min-height: 22px; border-radius: 6px; padding: 3px 7px; font-size: 9px; font-style: normal; font-weight: 650; }
.experiment-activity-tag--blue { background: var(--accent-soft); color: var(--accent); }
.experiment-activity-tag--green { background: var(--green-soft); color: var(--green); }

.experiment-change-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  border-top: 1px solid var(--border);
  padding: 14px 18px;
}

.experiment-change-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f2f5f9; color: #8490a2; font-family: var(--font-mono); font-size: 10px; font-weight: 650; }
.experiment-change-item strong,
.experiment-change-item p,
.experiment-change-item b,
.experiment-change-item small { display: block; }
.experiment-change-item strong { color: var(--text-secondary); font-size: 13px; font-weight: 650; }
.experiment-change-item p { margin: 5px 0 0; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.experiment-change-item > span:last-child { padding-left: 8px; text-align: right; }
.experiment-change-item b { color: var(--text-secondary); font-size: 11px; font-weight: 620; }
.experiment-change-item small { margin-top: 4px; color: var(--text-muted); font-size: 9px; }
.experiment-secondary-empty { min-height: 86px; padding: 31px 20px; color: var(--text-muted); font-size: 12px; text-align: center; }

@media (max-width: 1180px) {
  .experiment-list-secondary-grid { grid-template-columns: 1fr; }
}

.experiment-run-filter-empty {
  min-width: 1050px;
  padding: 44px 22px;
  color: var(--text-muted);
  text-align: center;
}

.experiment-run-list-card { overflow: hidden; }
.experiment-run-table { overflow-x: auto; }
.experiment-run-table__head,
.experiment-run-row {
  display: grid;
  grid-template-columns: minmax(270px, 1.9fr) minmax(105px, .68fr) minmax(145px, .9fr) minmax(120px, .78fr) minmax(105px, .68fr) minmax(135px, .88fr) 18px;
  gap: 16px;
  align-items: center;
  min-width: 1210px;
}

.experiment-run-table__head {
  min-height: 38px;
  background: #fafbfd;
  padding: 0 18px;
  color: #909aac;
  font-size: 10px;
  font-weight: 600;
}

.experiment-run-row {
  width: 100%;
  min-height: 88px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  padding: 12px 18px;
  text-align: left;
}

.experiment-run-row:hover {
  background: #fbfdff;
  box-shadow: inset 3px 0 var(--accent);
}

.experiment-run-row > span { min-width: 0; }
.experiment-run-row > span:not(.experiment-run-name) b,
.experiment-run-row > span:not(.experiment-run-name) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.experiment-run-row > span:not(.experiment-run-name) b { color: var(--text-secondary); font-size: 11px; font-weight: 650; }
.experiment-run-row > span:not(.experiment-run-name) small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.experiment-run-name { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; }
.experiment-run-name strong,
.experiment-run-name small,
.experiment-run-name code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.experiment-run-name strong { font-size: 13px; }
.experiment-run-name small { margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.experiment-run-name code { margin-top: 3px; color: #9ba5b4; font-size: 9px; }
.experiment-run-status > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.experiment-run-status > span .status-dot { flex: 0 0 auto; margin-right: 0; }
.experiment-run-trend__label {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.experiment-run-trend__label--green { background: var(--green-soft); color: var(--green) !important; }
.experiment-run-trend__label--blue { background: var(--accent-soft); color: var(--accent) !important; }
.experiment-run-trend__label--amber { background: var(--amber-soft); color: var(--amber) !important; }
.experiment-run-trend__label--red { background: var(--red-soft); color: var(--red) !important; }
.experiment-run-trend__label--neutral { background: #eef2f6; color: #667085 !important; }
.experiment-run-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; }
.experiment-run-glyph svg { width: 18px; height: 18px; }
.experiment-run-glyph--blue { background: var(--accent-soft); color: var(--accent); }
.experiment-run-glyph--amber { background: var(--amber-soft); color: var(--amber); }
.experiment-run-glyph--green { background: var(--green-soft); color: var(--green); }
.experiment-run-glyph--violet { background: var(--violet-soft); color: var(--violet); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.status-dot--blue { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-dot--amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.status-dot--green { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot--violet { background: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.status-dot--red { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.experiment-run-row__arrow { color: #aab3c0; font-size: 20px; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; min-height: 20px; border-radius: 999px; background: #eef2f7; padding: 1px 6px; color: var(--text-muted); font-size: 10px; }
.experiment-list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-top: 1px solid var(--border);
  padding: 8px 22px;
  color: var(--text-muted);
  font-size: 12px;
}
.experiment-list-pagination__controls { display: flex; align-items: center; gap: 10px; }
.experiment-list-pagination__size {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-shrink: 0;
  gap: 6px;
  margin: 0 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.experiment-list-pagination__size select {
  width: 76px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  padding: 0 26px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
}
.experiment-list-pagination b { color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.experiment-list-pagination button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}
.experiment-list-pagination button:disabled { color: #c9d0db; cursor: default; }

.experiment-back-link {
  justify-self: start;
  width: auto;
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.experiment-back-link:hover { color: var(--accent); }
.experiment-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.experiment-detail-heading__title { display: flex; align-items: center; gap: 10px; }
.experiment-detail-heading h1 { margin: 0; font-size: 28px; }
.experiment-detail-heading p { margin: 7px 0 0; color: var(--text-muted); font-size: 14px; }
.experiment-detail-heading code { color: #8d98aa; font-size: 11px; }
.experiment-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; color: var(--text-secondary); font-size: 12px; }
.experiment-detail-actions { display: flex; align-items: flex-end; gap: 8px; }
.run-picker { display: grid; gap: 4px; min-width: 330px; }
.run-picker__label { color: var(--text-muted); font-size: 11px; }
.run-picker__control { position: relative; width: 100%; height: 40px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #344158; }
.run-picker__control:hover { border-color: #c5cfdd; }
.run-picker__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.run-picker__control.is-disabled { background: #f7f9fc; color: #a0aabc; pointer-events: none; }
.run-picker__control > summary { display: grid; grid-template-columns: minmax(0, 1fr) 8px; align-items: center; gap: 10px; height: 38px; padding: 0 12px; list-style: none; cursor: pointer; }
.run-picker__control > summary::-webkit-details-marker { display: none; }
.run-picker__control > summary strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.run-picker__control > summary i { width: 6px; height: 6px; border-right: 1.5px solid #8995a8; border-bottom: 1.5px solid #8995a8; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.run-picker__control[open] > summary i { transform: translateY(2px) rotate(225deg); }
.run-picker__menu { position: absolute; z-index: 80; top: calc(100% + 6px); right: 0; display: grid; gap: 2px; width: 100%; min-width: min(360px, calc(100vw - 32px)); max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 5px; box-shadow: 0 12px 30px rgba(31, 47, 76, .16); }
.run-picker__menu button { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; min-height: 46px; border: 0; border-radius: 6px; background: transparent; padding: 6px 9px; color: var(--text-secondary); text-align: left; }
.run-picker__menu button:hover { background: #f5f8fd; }
.run-picker__menu button.is-selected { background: var(--accent-soft); color: var(--accent); }
.run-picker__menu button > span { min-width: 0; }
.run-picker__menu b,
.run-picker__menu small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-picker__menu b { font-size: 12px; font-weight: 600; }
.run-picker__menu small { margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.run-picker__menu em { font-size: 11px; font-style: normal; text-align: center; }
.status-badge--blue { background: var(--accent-soft); color: var(--accent); }
.status-badge--amber { background: var(--amber-soft); color: var(--amber); }
.status-badge--green { background: var(--green-soft); color: var(--green); }
.status-badge--red { background: var(--red-soft); color: var(--red); }
.experiment-detail-tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.experiment-detail-tabs button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 0 2px; color: var(--text-muted); font-size: 14px; }
.experiment-detail-tabs button.is-active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 650; }
.experiment-detail-overview { display: grid; gap: 14px; }
.experiment-detail-panel,
.experiment-insight-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-detail-panel { padding: 18px; }
.experiment-insight-panel { border-color: #cfddff; background: #f7faff; padding: 14px; }
.experiment-detail-panel__header { margin-bottom: 14px; }
.experiment-detail-panel__header h2 { margin: 0; font-size: 16px; }
.experiment-detail-panel__header p { margin: 3px 0 0; color: var(--text-muted); font-size: 12px; }
.experiment-definition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 8px; margin: 0; }
.experiment-definition-grid > div { border-right: 1px solid var(--border); padding: 14px; }
.experiment-definition-grid > div:last-child { border-right: 0; }
.experiment-definition-grid dt { color: var(--text-muted); font-size: 11px; }
.experiment-definition-grid dd { margin: 5px 0 0; color: var(--text); font-size: 13px; font-weight: 650; }
.experiment-detail-panel .experiment-v2-table-block { margin-top: 0; }
.experiment-detail-page > .experiment-v2-panel { border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }

/* Experiment detail workspace */
.experiment-insight-v2 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #ccdcff;
  border-radius: 8px;
  background: #f6f9ff;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.experiment-insight-v2__marker { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--accent); color: #fff; }
.experiment-insight-v2__marker svg { width: 20px; height: 20px; }
.experiment-insight-v2__body { min-width: 0; }
.experiment-insight-v2__eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; }
.experiment-insight-v2__eyebrow span { border-left: 1px solid #cfdcf6; margin-left: 8px; padding-left: 9px; color: var(--text-muted); font-weight: 500; }
.experiment-insight-v2 h2 { margin: 5px 0; font-size: 18px; line-height: 1.45; }
.experiment-insight-v2 p { max-width: 880px; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.experiment-insight-v2__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.experiment-insight-v2__facts span { display: grid; gap: 2px; min-width: 110px; }
.experiment-insight-v2__facts small { color: var(--text-muted); font-size: 10px; }
.experiment-insight-v2__facts b { color: var(--text); font-size: 12px; font-weight: 650; }
.experiment-uplift-probabilities {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  gap: 8px 28px;
  width: 100%;
  border-top: 1px solid #dce5f7;
  margin-top: 2px;
  padding-top: 9px;
}
.experiment-uplift-probabilities--fact .experiment-uplift-probability { min-width: 132px; }
.experiment-uplift-probabilities--signal { color: var(--text-muted); font-size: 12px; }
.experiment-insight-v2__facts .experiment-uplift-probability b,
.experiment-assessment__signals .experiment-uplift-probability b { color: var(--accent); font-weight: 700; }
.experiment-insight-v2__score { min-width: 160px; border-left: 1px solid #d7e1f7; padding-left: 22px; text-align: right; }
.experiment-insight-v2__score small,
.experiment-insight-v2__score b,
.experiment-insight-v2__score em,
.experiment-insight-v2__score strong,
.experiment-insight-v2__score span { display: block; }
.experiment-insight-v2__score small { color: var(--text-muted); font-size: 10px; }
.experiment-insight-v2__score b { max-width: 180px; margin-top: 3px; color: var(--text-secondary); font-size: 11px; font-weight: 650; line-height: 1.35; }
.experiment-insight-v2__score em { margin-top: 7px; color: var(--text-muted); font-size: 10px; font-style: normal; }
.experiment-insight-v2__score strong { margin: 2px 0; color: var(--green); font-size: 28px; }
.experiment-insight-v2__score span { color: var(--text-secondary); font-size: 11px; }
.experiment-assessment__details { margin-top: 10px; }
.experiment-assessment__details summary { width: max-content; cursor: pointer; color: var(--text-secondary); font-size: 12px; }
.experiment-assessment__details[open] summary { margin-bottom: 8px; }

.experiment-section-heading-v2,
.experiment-config-panel-v2__header,
.experiment-section-intro-v2 { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.experiment-section-heading-v2 h2,
.experiment-config-panel-v2__header h2,
.experiment-section-intro-v2 h2 { margin: 0; font-size: 16px; }
.experiment-section-heading-v2 p,
.experiment-config-panel-v2__header p,
.experiment-section-intro-v2 p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.experiment-round-settings-v2 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.experiment-round-settings-v2 span { border-radius: 6px; background: #f1f4f8; padding: 5px 9px; color: var(--text-secondary); font-size: 11px; }

.experiment-round-journey-v2 { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-round-journey-v2 > .experiment-section-heading-v2 { min-height: 76px; border-bottom: 1px solid var(--border); padding: 14px 18px; }
.experiment-round-track-v2 { display: flex; align-items: center; overflow-x: auto; padding: 20px; }
.experiment-round-card-v2 { display: flex; align-items: stretch; justify-content: flex-start; flex: 1 0 260px; flex-direction: column; gap: 0; min-width: 260px; min-height: 194px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 15px; text-align: left; white-space: normal; }
.experiment-round-card-v2:hover:not(:disabled) { border-color: #bcc9dc; transform: translateY(-1px); }
.experiment-round-card-v2.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.experiment-round-card-v2.is-current { background: #f8faff; }
.experiment-round-card-v2.is-complete { background: #fbfefc; }
.experiment-round-card-v2.is-upcoming { border-style: dashed; background: #fafbfd; }
.experiment-round-card-v2:disabled { color: inherit; cursor: default; opacity: 1; }
.experiment-round-card-v2__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.experiment-round-card-v2__top b { font-size: 15px; }
.experiment-round-card-v2__top em { border-radius: 5px; background: #eef2f7; padding: 3px 6px; color: var(--text-muted); font-size: 11px; font-style: normal; font-weight: 650; }
.experiment-round-card-v2.is-complete .experiment-round-card-v2__top em { background: var(--green-soft); color: var(--green); }
.experiment-round-card-v2.is-current .experiment-round-card-v2__top em { background: var(--accent-soft); color: var(--accent); }
.experiment-round-card-v2.is-waiting .experiment-round-card-v2__top em { background: var(--amber-soft); color: var(--amber); }
.experiment-round-card-v2__date { margin-top: 5px; color: var(--text-muted); font-size: 12px; }
.experiment-round-card-v2__group-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--text-muted); }
.experiment-round-card-v2__group-header small { font-size: 11px; }
.experiment-round-card-v2__group-header b { color: var(--text-secondary); font-size: 12px; }
.experiment-round-card-v2__groups { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-width: 0; margin-top: 7px; }
.experiment-round-card-v2__groups code { overflow: hidden; max-width: 100%; border: 1px solid var(--border); border-radius: 5px; background: #fff; padding: 4px 7px; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.experiment-round-card-v2.is-current .experiment-round-card-v2__groups code:nth-child(-n+2) { border-color: #c9d9ff; background: #f5f8ff; color: #456596; }
.experiment-round-card-v2.is-upcoming .experiment-round-card-v2__groups code:first-child { border-style: dashed; background: #f4f6f9; color: var(--text-muted); }
.experiment-round-card-v2__result { margin-top: auto; padding-top: 12px; color: var(--text-muted); font-size: 12px; }
.experiment-round-card-v2__result strong { margin-left: 4px; color: var(--text-secondary); }
.experiment-round-connector-v2 { display: flex; align-items: center; justify-content: center; flex: 0 0 78px; flex-direction: column; gap: 5px; color: #9aa6b8; text-align: center; }
.experiment-round-connector-v2 span { font-size: 11px; }
.experiment-round-connector-v2 b { font-size: 22px; font-weight: 400; }

.experiment-round-analysis-v2 { display: grid; gap: 13px; }
.experiment-round-analysis-v2__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 1px 2px; }
.experiment-round-analysis-v2__header > div { display: flex; align-items: center; gap: 9px; }
.experiment-round-analysis-v2__header h2 { margin: 0; font-size: 18px; }
.experiment-round-analysis-v2__header p { margin: 0; color: var(--text-muted); font-size: 10px; }
.experiment-round-facts-v2 { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-round-facts-v2 > div { min-width: 0; border-right: 1px solid var(--border); padding: 13px 16px; }
.experiment-round-facts-v2 > div:last-child { border-right: 0; }
.experiment-round-facts-v2 small,
.experiment-round-facts-v2 strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.experiment-round-facts-v2 small { color: var(--text-muted); font-size: 11px; }
.experiment-round-facts-v2 strong { margin-top: 3px; color: var(--text-secondary); font-size: 13px; }

.experiment-round-groups-v2 { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-round-groups-v2 > .experiment-section-heading-v2 { min-height: 72px; border-bottom: 1px solid var(--border); padding: 14px 18px; }
.experiment-round-group-table-v2 { overflow-x: auto; }
.experiment-round-group-table-v2__head,
.experiment-round-group-table-v2__row { display: grid; grid-template-columns: minmax(180px, 1.35fr) minmax(100px, .75fr) minmax(85px, .62fr) minmax(70px, .5fr) minmax(115px, .82fr) minmax(115px, .82fr) minmax(90px, .65fr); gap: 12px; align-items: center; min-width: 990px; padding: 0 18px; }
.experiment-round-group-table-v2__head { min-height: 40px; background: #fafbfd; color: var(--text-muted); font-size: 11px; }
.experiment-round-group-table-v2__row { min-height: 70px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; }
.experiment-round-group-table-v2__row.is-leading { background: #f8fcfa; }
.experiment-round-group-table-v2__row > span:first-child { display: flex; align-items: center; gap: 8px; }
.experiment-round-group-table-v2__row > span:first-child > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.experiment-round-group-table-v2__row b,
.experiment-round-group-table-v2__row small { display: block; }
.experiment-round-group-table-v2__row b { color: var(--text); font-size: 13px; }
.experiment-round-group-table-v2__row small { margin-top: 2px; color: var(--text-muted); font-size: 11px; }

.experiment-basic-metrics-v2 { display: grid; gap: 13px; }
.experiment-basic-metrics-v2__heading { min-height: 58px; padding: 0 2px; }
.experiment-basic-metrics-v2__heading > span { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.experiment-metric-card-v2 { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-metric-card-v2__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; border-bottom: 1px solid var(--border); padding: 12px 16px; }
.experiment-metric-card-v2__header h3 { margin: 0; color: var(--text); font-size: 15px; }
.experiment-metric-card-v2__header p { margin: 4px 0 0; color: var(--text-muted); font-size: 11px; }
.experiment-metric-switch-v2 { flex: 0 0 auto; }
.experiment-overview-table-v2__scroll { overflow-x: auto; }
.experiment-overview-table-v2 { width: 100%; min-width: 1760px; border-collapse: separate; border-spacing: 0; color: var(--text-secondary); font-size: 11px; }
.experiment-overview-table-v2 th,
.experiment-overview-table-v2 td { min-width: 86px; height: 58px; border-bottom: 1px solid var(--border); padding: 9px 11px; text-align: right; vertical-align: middle; white-space: nowrap; }
.experiment-overview-table-v2 thead th { height: 40px; background: #fafbfd; color: var(--text-muted); font-size: 10px; font-weight: 600; }
.experiment-overview-table-v2 tbody tr:last-child > * { border-bottom: 0; }
.experiment-overview-table-v2 tbody tr.is-baseline > * { background: #f8fbff; }
.experiment-overview-table-v2 th:first-child { position: sticky; left: 0; z-index: 2; min-width: 190px; text-align: left; }
.experiment-overview-table-v2 thead th:first-child { z-index: 3; }
.experiment-overview-table-v2 tbody th:first-child { background: #fff; }
.experiment-overview-table-v2 tbody tr.is-baseline th:first-child { background: #f8fbff; }
.experiment-overview-table-v2 td strong,
.experiment-overview-table-v2 td small { display: block; }
.experiment-overview-table-v2 td strong { color: var(--text); font-size: 12px; font-weight: 600; }
.experiment-overview-table-v2 td small { min-height: 15px; margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.experiment-overview-table-v2 td small.is-positive { color: var(--green); }
.experiment-overview-table-v2 td small.is-negative { color: var(--red); }
.experiment-overview-table-v2 td.is-empty strong,
.experiment-overview-table-v2 td.is-empty small { color: #a6afbd; }
.experiment-metric-variant-v2 { display: flex; align-items: center; gap: 8px; }
.experiment-metric-variant-v2 > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.experiment-metric-variant-v2 b,
.experiment-metric-variant-v2 small { display: block; }
.experiment-metric-variant-v2 b { max-width: 150px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; text-transform: none; }
.experiment-metric-variant-v2 small { margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: 500; }

.experiment-metrics-v2,
.experiment-configuration-v2,
.experiment-debug-v2 { display: grid; gap: 14px; }
.experiment-section-intro-v2 { min-height: 50px; }
.experiment-section-intro-v2 > span { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 11px; }
.experiment-section-intro-v2 > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.experiment-config-panel-v2 { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.experiment-config-panel-v2__header { min-height: 72px; border-bottom: 1px solid var(--border); padding: 14px 18px; }
.experiment-config-panel-v2 .experiment-definition-grid { border: 0; border-radius: 0; }
.experiment-definition-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.experiment-default-config-v2__details { border-top: 1px solid var(--border); padding: 12px 18px 14px; }
.experiment-default-config-v2__details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.experiment-default-config-v2__details summary::-webkit-details-marker { display: none; }
.experiment-default-config-v2__details summary span { color: var(--text-secondary); font-weight: 650; }
.experiment-default-config-v2__details summary span::before { content: "›"; display: inline-block; margin-right: 7px; transition: transform .16s ease; }
.experiment-default-config-v2__details[open] summary span::before { transform: rotate(90deg); }
.experiment-default-config-v2__details summary b { border-radius: 5px; background: #f1f4f8; padding: 4px 7px; color: var(--text-muted); font-size: 10px; font-weight: 600; }
.experiment-default-config-v2__details pre { max-width: none; margin-top: 12px; }
.experiment-traffic-total-v2 { color: var(--text-muted); font-size: 11px; }
.experiment-traffic-total-v2 b { color: var(--text); font-size: 13px; }

.experiment-candidate-table-v2 { overflow-x: auto; }
.experiment-candidate-table-v2__head,
.experiment-candidate-table-v2__row { display: grid; grid-template-columns: minmax(190px, 1.3fr) minmax(100px, .7fr) minmax(90px, .65fr) minmax(80px, .55fr) minmax(130px, .9fr) minmax(110px, .7fr); gap: 12px; align-items: center; min-width: 860px; padding: 0 18px; }
.experiment-candidate-table-v2__head { min-height: 40px; background: #fafbfd; color: var(--text-muted); font-size: 11px; }
.experiment-candidate-table-v2__row { min-height: 72px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; }
.experiment-candidate-table-v2__row.is-active { background: #f8faff; }
.experiment-candidate-table-v2__row > span:first-child { display: flex; align-items: center; gap: 8px; }
.experiment-candidate-table-v2__row > span:first-child > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.experiment-candidate-table-v2__row > span:first-child b,
.experiment-candidate-table-v2__row > span:first-child code { display: block; }
.experiment-candidate-table-v2__row > span:first-child b { font-size: 13px; }
.experiment-candidate-table-v2__row > span:first-child code { margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.experiment-candidate-table-v2 details { max-width: 220px; }
.experiment-candidate-table-v2 summary { cursor: pointer; }
.experiment-candidate-table-v2 pre { max-height: 240px; overflow: auto; border-radius: 6px; background: #162033; padding: 10px; color: #dce5f4; font-size: 9px; white-space: pre-wrap; }
.experiment-debug-v2 .experiment-config-panel-v2 { padding: 18px; }
.experiment-debug-v2 .experiment-v2-table-block { margin: 0; }

.experiment-metric-table-v2 { overflow-x: auto; border-top: 1px solid var(--border); margin: 13px -12px -12px; }
.experiment-metric-table-v2__head,
.experiment-metric-table-v2__row { display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(9, minmax(108px, .8fr)); gap: 12px; align-items: center; min-width: 1480px; padding: 0 18px; }
.experiment-metric-table-v2__head { min-height: 40px; background: #fafbfd; color: var(--text-muted); font-size: 11px; }
.experiment-metric-table-v2__row { min-height: 62px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.experiment-metric-table-v2__row > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.experiment-metric-table-v2__row > span:first-child i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.experiment-metric-table-v2__row > span:first-child b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.experiment-metric-table-v2__row > span:first-child em { flex: 0 0 auto; border-radius: 5px; background: #f0f3f7; padding: 2px 5px; color: var(--text-muted); font-size: 9px; font-style: normal; }
.experiment-metric-table-v2__row .is-positive { color: var(--green); }

/* Report workspace */
.report-page-v2 { display: grid; gap: 16px; width: min(1600px, 100%); margin: 0 auto; }
.report-heading-v2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.report-heading-v2 .eyebrow { font-size: 11px; }
.report-heading-v2 h1 { margin: 8px 0 5px; font-size: 28px; line-height: 1.2; }
.report-heading-v2 p { margin: 0; color: var(--text-muted); font-size: 13px; }
.report-updated-at { display: flex; align-items: center; gap: 8px; padding-bottom: 3px; color: var(--text-muted); font-size: 12px; }
.report-updated-at span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.report-updated-at.is-pending span { background: #a8b2c1; box-shadow: 0 0 0 4px #eef1f5; }
.report-toolbar-v2 { display: flex; align-items: center; gap: 12px; min-height: 58px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 9px 11px; box-shadow: var(--shadow-sm); }
.report-toolbar-v2 .report-updated-at { margin-left: auto; padding: 0 8px; white-space: nowrap; }
.report-range-tabs { display: flex; gap: 3px; border-radius: 8px; background: #f2f5f9; padding: 3px; }
.report-range-tabs button { height: 32px; border: 0; border-radius: 6px; background: transparent; padding: 0 15px; color: #738096; font-size: 12px; }
.report-range-tabs button.is-active { background: #fff; color: var(--accent); font-weight: 650; box-shadow: 0 1px 4px rgba(32, 57, 90, .12); }
.report-filter-control { position: relative; min-width: 164px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-muted); }
.report-filter-control:hover { border-color: #c5cfdd; }
.report-filter-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.report-filter-control > summary { display: grid; grid-template-columns: auto minmax(78px, 1fr) 8px; align-items: center; gap: 12px; height: 40px; padding: 0 11px 0 13px; list-style: none; cursor: pointer; }
.report-filter-control > summary::-webkit-details-marker { display: none; }
.report-filter-control__label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.report-filter-control > summary strong { color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.report-filter-control > summary i { width: 6px; height: 6px; border-right: 1.5px solid #8995a8; border-bottom: 1.5px solid #8995a8; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.report-filter-control[open] > summary i { transform: translateY(2px) rotate(225deg); }
.report-filter-control__menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; left: 0; display: grid; gap: 2px; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 5px; box-shadow: 0 12px 30px rgba(31, 47, 76, .16); }
.report-filter-control__menu button { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; min-height: 34px; border: 0; border-radius: 6px; background: transparent; padding: 0 8px; color: var(--text-secondary); font-size: 11px; text-align: left; }
.report-filter-control__menu button:hover { background: #f5f8fd; }
.report-filter-control__menu button.is-selected { background: var(--accent-soft); color: var(--accent); }
.report-filter-control__menu em { font-size: 11px; font-style: normal; text-align: center; }
.report-dashboard-v2 { display: grid; gap: 14px; }
.report-level-tabs { display: flex; align-items: stretch; height: 54px; min-height: 54px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0 16px; scrollbar-width: none; box-shadow: var(--shadow-sm); }
.report-level-tabs::-webkit-scrollbar { display: none; }
.report-level-tabs button { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 150px; height: 52px; border: 0; background: transparent; padding: 0 16px; color: #718097; white-space: nowrap; }
.report-level-tabs button span { font-size: 14px; font-weight: 650; }
.report-level-tabs button small { color: #a0aabb; font-size: 11px; }
.report-level-tabs button::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; content: ""; }
.report-level-tabs button.is-active { color: var(--accent); }
.report-level-tabs button.is-active small { color: #7296ec; }
.report-level-tabs button.is-active::after { background: var(--accent); }
.report-dashboard-v2 .report-group-list { display: grid; gap: 14px; }
.dashboard-v2 .report-dashboard-v2 .report-group { display: block; overflow: hidden; gap: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0; box-shadow: var(--shadow-sm); }
.report-group-v2__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; border-bottom: 1px solid var(--border); padding: 14px 18px; }
.report-group-v2__header h3 { margin: 3px 0; font-size: 18px; }
.report-group-v2__header p { margin: 0; color: var(--text-muted); font-size: 12px; }
.dashboard-v2 .report-group:has(.report-group-filter__control[open]) { position: relative; z-index: 20; overflow: visible; }
.report-group-v2__header .report-group__tools { align-items: flex-end; gap: 9px; }
.report-group-filter { display: grid; gap: 4px; width: 168px; min-width: 148px; }
.report-group-filter--searchable { width: 210px; }
.report-group-filter__label { color: #8b97aa; font-size: 10px; font-weight: 600; }
.report-group-filter__control { position: relative; width: 100%; height: 40px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #344158; }
.report-group-filter__control:hover { border-color: #c5cfdd; }
.report-group-filter__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.report-group-filter__control.is-disabled { background: #f7f9fc; color: #a0aabc; pointer-events: none; }
.report-group-filter__control > summary { display: grid; grid-template-columns: minmax(0, 1fr) 8px; align-items: center; gap: 10px; height: 38px; padding: 0 12px; list-style: none; cursor: pointer; }
.report-group-filter__control > summary::-webkit-details-marker { display: none; }
.report-group-filter__control > summary strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.report-group-filter__control > summary i { width: 6px; height: 6px; border-right: 1.5px solid #8995a8; border-bottom: 1.5px solid #8995a8; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.report-group-filter__control[open] > summary i { transform: translateY(2px) rotate(225deg); }
.report-group-filter__menu { position: absolute; z-index: 80; top: calc(100% + 6px); right: 0; min-width: max(100%, 220px); overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 5px; box-shadow: 0 12px 30px rgba(31, 47, 76, .16); }
.report-group-filter__search { width: 100%; height: 34px; margin-bottom: 4px; border: 1px solid var(--border); border-radius: 6px; outline: 0; background: #fafbfd; padding: 0 9px; color: var(--text-secondary); font-size: 11px; }
.report-group-filter__search:focus { border-color: var(--accent); background: #fff; }
.report-group-filter__options { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.report-group-filter__options button { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; min-height: 34px; border: 0; border-radius: 6px; background: transparent; padding: 0 8px; color: var(--text-secondary); font-size: 11px; text-align: left; }
.report-group-filter__options button:hover { background: #f5f8fd; }
.report-group-filter__options button.is-selected { background: var(--accent-soft); color: var(--accent); }
.report-group-filter__options button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-group-filter__options button em { font-size: 11px; font-style: normal; text-align: center; }
.report-group-v2__body { background: #f7f9fc; padding: 14px; }
.report-grid-v2 { gap: 14px; }
.report-grid-v2 > .report-chart-card--fill-row { grid-column: 1 / -1; }
.dashboard-v2 .report-card-v2 { overflow: hidden; border-radius: 15px; background: #fff; padding: 0; box-shadow: var(--shadow-sm); }
.dashboard-v2 .report-card-v2 .report-chart-card__header { min-height: 74px; border-bottom: 1px solid var(--border); margin: 0; padding: 14px 18px; }
.dashboard-v2 .report-card-v2 .report-chart-card__header h3 { font-size: 16px; }
.dashboard-v2 .report-card-v2 .report-chart-card__header p { font-size: 11px; }
.dashboard-v2 .report-chart-switcher__body { background: #fff; }
.dashboard-v2 .report-chart-switcher .report-chart-card--embedded {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.dashboard-v2 .report-chart-switcher__panel-grid .report-chart-card--embedded > .report-chart-card__header {
  align-items: center;
  height: 88px;
  min-height: 88px;
  box-sizing: border-box;
}
.dashboard-v2 .report-chart-tag { flex: 0 0 auto; border-radius: 6px; background: #f2f5f9; padding: 5px 7px; color: #738197; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.dashboard-v2 .report-card-v2 .report-echart--line,
.dashboard-v2 .report-card-v2 .report-echart--bar { height: 350px; }
.dashboard-v2 .report-card-v2 .report-echart--funnel { height: 360px; }
.dashboard-v2 .report-card-v2 .report-echart--cohort { height: 430px; }
.dashboard-v2 .report-funnel-viewport.is-collapsible .report-funnel-scroll {
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dashboard-v2 .report-funnel-viewport.is-expanded .report-funnel-scroll {
  max-height: none;
  overflow: visible;
}
.dashboard-v2 .report-funnel-scroll::-webkit-scrollbar { width: 8px; }
.dashboard-v2 .report-funnel-scroll::-webkit-scrollbar-track { background: transparent; }
.dashboard-v2 .report-funnel-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #c9d3e2;
  background-clip: padding-box;
}
.dashboard-v2 .report-funnel-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding: 9px 14px;
}
.dashboard-v2 .report-funnel-expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.dashboard-v2 .report-funnel-expand::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}
.dashboard-v2 .report-funnel-expand:hover {
  border-color: #b9c8dd;
  background: #f8faff;
  color: var(--accent);
}
.dashboard-v2 .report-funnel-expand[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
.dashboard-v2 .report-chart-card--lg .report-echart--line,
.dashboard-v2 .report-chart-card--lg .report-echart--bar,
.dashboard-v2 .report-chart-card--full .report-echart--line,
.dashboard-v2 .report-chart-card--full .report-echart--bar { height: 390px; }

.dashboard-v2 .core-activity {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.dashboard-v2 .core-activity__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-v2 .core-activity__kpi {
  min-width: 0;
  min-height: 108px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(35, 52, 79, .04);
}

.dashboard-v2 .core-activity__kpi small,
.dashboard-v2 .core-activity__kpi strong,
.dashboard-v2 .core-activity__kpi p {
  display: block;
  margin: 0;
}

.dashboard-v2 .core-activity__kpi small {
  color: #7c899e;
  font-size: 12px;
}

.dashboard-v2 .core-activity__kpi strong {
  margin-top: 6px;
  color: #182337;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-v2 .core-activity__kpi p {
  margin-top: 5px;
  color: #98a3b4;
  font-size: 11px;
}

.dashboard-v2 .core-activity__trend {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.dashboard-v2 .core-activity__trend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e4eaf2;
  padding: 16px 18px;
}

.dashboard-v2 .core-activity__trend-header h4,
.dashboard-v2 .core-activity__trend-header p {
  margin: 0;
}

.dashboard-v2 .core-activity__trend-header h4 {
  color: #182337;
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-v2 .core-activity__trend-header p {
  margin-top: 4px;
  color: #8a96a9;
  font-size: 11px;
}

.dashboard-v2 .report-echart--core-activity {
  height: 420px;
}
.dashboard-v2 .report-card-v2 > .report-chart,
.dashboard-v2 .report-card-v2 > .report-table-wrap,
.dashboard-v2 .report-card-v2 > .table-wrap,
.dashboard-v2 .report-card-v2 > .empty,
.dashboard-v2 .report-card-v2 > .notice { margin: 14px; }
.dashboard-v2 .report-card-v2 > .report-result { margin: 0; padding-top: 14px; }
.dashboard-v2 .report-card-v2 > .report-result > .report-result__meta,
.dashboard-v2 .report-card-v2 > .report-result > .report-table-tools { padding-right: 16px; padding-left: 16px; }
.dashboard-v2 .report-card-v2 > .report-result > .report-result__meta {
  min-height: 28px;
  margin: 0;
  color: #55637a;
  font-size: 12px;
}
.dashboard-v2 .report-card-v2 > .report-result > .report-table-tools {
  margin: 8px 0 14px;
}
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap table {
  min-width: 100%;
  border-collapse: collapse;
}
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap th {
  height: 40px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fafbfd;
  padding: 0 18px;
  color: #8995a8;
  font-size: 11px;
  font-weight: 600;
}
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap td {
  height: 60px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  color: #526078;
  font-size: 13px;
}
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap tbody tr:last-child td { border-bottom: 0; }
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap tbody tr:hover td { background: #fbfcfe; }
.dashboard-v2 .report-card-v2 > .report-result > .table-wrap .report-table-sort {
  width: 100%;
  min-height: 40px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.dashboard-v2 .report-card-v2 > .report-result > .report-table-pager {
  min-height: 58px;
  margin: 0;
  padding: 10px 18px 12px;
}

.dashboard-v2 .report-cohort-table {
  min-width: 0;
  padding: 14px 16px 12px;
}

.dashboard-v2 .report-cohort-table__scroll {
  max-height: 520px;
  overflow: auto;
  padding-bottom: 10px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.dashboard-v2 .report-cohort-table.is-expanded .report-cohort-table__scroll {
  max-height: none;
}

.dashboard-v2 .report-cohort-table__scroll.is-scrolling {
  scrollbar-color: rgba(91, 108, 135, .45) transparent;
}

.dashboard-v2 .report-cohort-table__scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dashboard-v2 .report-cohort-table__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-v2 .report-cohort-table__scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.dashboard-v2 .report-cohort-table__scroll.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(91, 108, 135, .45);
  background-clip: padding-box;
}

.dashboard-v2 .report-cohort-table table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: #526078;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.dashboard-v2 .report-cohort-table th,
.dashboard-v2 .report-cohort-table td {
  min-width: 72px;
  height: 38px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.dashboard-v2 .report-cohort-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #f8fafc;
  color: #7b879b;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-table thead tr:nth-child(2) th {
  z-index: 3;
  top: 38px;
}

.dashboard-v2 .report-cohort-table thead tr:nth-child(3) th {
  z-index: 3;
  top: 76px;
}

.dashboard-v2 .report-cohort-table__series {
  height: 38px;
  border-bottom-color: #dce4ef !important;
  background: var(--cohort-series-color, #3f6fc8) !important;
  color: #fff !important;
  font-size: 12px;
  letter-spacing: .01em;
}

.dashboard-v2 .report-cohort-table__date {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 82px !important;
  border-right-color: #dce4ef !important;
  background: #fff;
  color: #6c7990;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-table thead .report-cohort-table__date {
  z-index: 6;
  background: #f8fafc;
}

.dashboard-v2 .report-cohort-table thead .report-cohort-table__summary-label {
  z-index: 6;
  background: #edf3ff;
  color: #315aa9;
  font-weight: 700;
}

.dashboard-v2 .report-cohort-table__sample {
  min-width: 58px !important;
  background: #fbfcfe;
  color: #738197;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-table thead .report-cohort-table__summary-sample,
.dashboard-v2 .report-cohort-table thead .report-cohort-table__summary-value {
  border-bottom-color: #d4dfef !important;
  background: #f3f7ff;
  color: #314b77;
  font-weight: 700;
}

.dashboard-v2 .report-cohort-table thead .report-cohort-table__summary-value.is-immature {
  color: #a7b2c4;
  font-weight: 500;
}

.dashboard-v2 .report-cohort-table tbody tr:hover th,
.dashboard-v2 .report-cohort-table tbody tr:hover td {
  box-shadow: inset 0 1px rgba(63, 111, 246, .12), inset 0 -1px rgba(63, 111, 246, .12);
}

.dashboard-v2 .report-cohort-table__value {
  color: #344158;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-table__value.is-tone-0 { background: #f2f6fd; }
.dashboard-v2 .report-cohort-table__value.is-tone-1 { background: #e4edfc; }
.dashboard-v2 .report-cohort-table__value.is-tone-2 { background: #cfdef9; }
.dashboard-v2 .report-cohort-table__value.is-tone-3 { background: #a9c3f3; }
.dashboard-v2 .report-cohort-table__value.is-tone-4 { background: #759ce8; color: #fff; }
.dashboard-v2 .report-cohort-table__value.is-tone-5 { background: #3768cf; color: #fff; }
.dashboard-v2 .report-cohort-table__value.is-immature {
  background: #f7f9fc;
  color: #b0bac8;
  font-weight: 500;
}
.dashboard-v2 .report-cohort-table__value.is-low-sample {
  background: #fff3d5;
  color: #8f6717;
}

.dashboard-v2 .report-cohort-table th.is-highlighted,
.dashboard-v2 .report-cohort-table td.is-highlighted {
  box-shadow: inset 2px 0 rgba(54, 104, 216, .22), inset -2px 0 rgba(54, 104, 216, .22);
}

.dashboard-v2 .report-cohort-table__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding-top: 10px;
  color: #8995a8;
  font-size: 10px;
}

.dashboard-v2 .report-cohort-table__legend-items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  flex-wrap: wrap;
  gap: 14px;
}

.dashboard-v2 .report-cohort-table__legend-items span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-v2 .report-cohort-table__legend-items span > i {
  width: 18px;
  height: 10px;
  border: 1px solid #e4eaf2;
  border-radius: 3px;
  background: #f7f9fc;
}

.dashboard-v2 .report-cohort-table__legend-items span > i.is-low-sample {
  border-color: #f0d99d;
  background: #fff3d5;
}

.dashboard-v2 .report-cohort-table__scale i {
  width: 120px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #f2f6fd, #cfdef9 45%, #759ce8 75%, #3768cf) !important;
}

.dashboard-v2 .report-cohort-table__expand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 28px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #53637b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-v2 .report-cohort-table__expand::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.dashboard-v2 .report-cohort-table__expand:hover {
  border-color: #b8c7dc;
  background: #f8fafc;
  color: #315fae;
}

.dashboard-v2 .report-cohort-table__expand[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.dashboard-v2 .report-cohort-matrix {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 14px 16px 12px;
}

.dashboard-v2 .report-cohort-matrix__scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 476px;
  overflow: auto;
  padding-bottom: 6px;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.dashboard-v2 .report-cohort-matrix.is-expanded .report-cohort-matrix__scroll {
  max-height: none;
}

.dashboard-v2 .report-cohort-matrix__scroll.is-scrolling {
  scrollbar-color: rgba(91, 108, 135, .45) transparent;
}

.dashboard-v2 .report-cohort-matrix__scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dashboard-v2 .report-cohort-matrix__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-v2 .report-cohort-matrix__scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.dashboard-v2 .report-cohort-matrix__scroll.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(91, 108, 135, .45);
  background-clip: padding-box;
}

.dashboard-v2 .report-cohort-matrix table {
  width: max-content;
  min-width: 100%;
  border-spacing: 3px;
  border-collapse: separate;
  color: #526078;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.dashboard-v2 .report-cohort-matrix th,
.dashboard-v2 .report-cohort-matrix td {
  min-width: 52px;
  height: 30px;
  padding: 4px 7px;
  text-align: center;
  white-space: nowrap;
}

.dashboard-v2 .report-cohort-matrix thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 34px;
  background: #fff;
  color: #7d899d;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-matrix__cohort {
  position: sticky;
  z-index: 3;
  left: 0;
  width: 72px;
  min-width: 72px !important;
  max-width: 72px;
  box-sizing: border-box;
  padding-right: 6px !important;
  padding-left: 4px !important;
  background: #fff;
  color: #6f7c92;
  font-weight: 500;
  text-align: right !important;
}

.dashboard-v2 .report-cohort-matrix.has-variants .report-cohort-matrix__cohort {
  width: 122px;
  min-width: 122px !important;
  max-width: 122px;
}

.dashboard-v2 .report-cohort-matrix thead .report-cohort-matrix__cohort {
  z-index: 6;
  color: #7d899d;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-matrix__cohort strong,
.dashboard-v2 .report-cohort-matrix__cohort span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-v2 .report-cohort-matrix__cohort strong {
  color: #5e6d84;
  font-size: 10.5px;
  font-weight: 600;
}

.dashboard-v2 .report-cohort-matrix__cohort span {
  margin-top: 2px;
  color: #8b97aa;
  font-size: 9.5px;
}

.dashboard-v2 .report-cohort-matrix__cell {
  border-radius: 5px;
  color: #344158;
  font-weight: 600;
  transition: box-shadow .12s ease, transform .12s ease;
}

.dashboard-v2 .report-cohort-matrix__cell.is-dark {
  color: #fff;
}

.dashboard-v2 .report-cohort-matrix__cell.is-immature {
  background: #f7f9fc;
  color: #b2bccb;
  font-weight: 500;
}

.dashboard-v2 .report-cohort-matrix tbody tr.starts-cohort:not(:first-child) th,
.dashboard-v2 .report-cohort-matrix tbody tr.starts-cohort:not(:first-child) td {
  border-top: 5px solid #fff;
}

.dashboard-v2 .report-cohort-matrix tbody tr:hover .report-cohort-matrix__cohort {
  color: #315fae;
}

.dashboard-v2 .report-cohort-matrix tbody tr:hover .report-cohort-matrix__cell:not(.is-immature) {
  box-shadow: inset 0 0 0 1px rgba(31, 68, 148, .35);
}

.dashboard-v2 .report-cohort-matrix__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 18px;
  min-height: 34px;
  padding-top: 8px;
}

.dashboard-v2 .report-cohort-matrix__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 7px;
  color: #8995a8;
  font-size: 10px;
}

.dashboard-v2 .report-cohort-matrix__legend > i {
  width: 118px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, #eff4fd, #aabfe8 50%, #2557bf);
}

.dashboard-v2 .report-cohort-matrix__immature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.dashboard-v2 .report-cohort-matrix__immature b {
  width: 16px;
  height: 10px;
  border: 1px solid #edf1f6;
  border-radius: 3px;
  background: #f7f9fc;
}

.auth-login-screen {
  position: relative;
  display: grid;
  grid-template-rows: 78px minmax(680px, 1fr) 54px;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 8%, rgba(79, 125, 244, 0.11), transparent 30%),
    radial-gradient(circle at 65% 100%, rgba(118, 87, 232, 0.07), transparent 36%),
    #f3f6fb;
  color: #172033;
}

.auth-login-screen::before {
  position: absolute;
  z-index: 0;
  top: 72px;
  left: -120px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(90, 126, 205, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(90, 126, 205, 0.035),
    0 0 0 140px rgba(90, 126, 205, 0.025);
  content: "";
  pointer-events: none;
}

.auth-login-screen svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-login-header,
.auth-login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
}

.auth-login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #172033;
  text-decoration: none;
}

.auth-login-brand .brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.auth-login-brand strong,
.auth-login-brand small {
  display: block;
}

.auth-login-brand strong {
  font-size: 17px;
  font-weight: 750;
}

.auth-login-brand small {
  color: #7e8ba1;
  font-size: 10px;
}

.auth-login-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #526078;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.auth-login-help:hover {
  color: var(--accent);
}

.auth-login-help svg {
  width: 17px;
  height: 17px;
}

.auth-login-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(620px, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  width: min(1380px, calc(100% - 96px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.auth-product-story {
  min-width: 0;
}

.auth-product-copy {
  max-width: 680px;
}

.auth-product-copy .eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.auth-product-copy h1 {
  margin: 13px 0 18px;
  color: #172033;
  font-size: clamp(42px, 4.25vw, 64px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-product-copy p {
  max-width: 620px;
  margin: 0;
  color: #65738b;
  font-size: 16px;
  line-height: 1.8;
}

.auth-product-preview {
  position: relative;
  max-width: 720px;
  overflow: hidden;
  border: 1px solid rgba(205, 216, 232, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  margin-top: 38px;
  box-shadow: 0 24px 70px rgba(33, 52, 88, 0.13);
  transform: perspective(1200px) rotateY(1.7deg) rotateX(0.6deg);
  transform-origin: center;
}

.auth-product-preview::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
  content: "";
  pointer-events: none;
}

.auth-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid #e2e8f1;
  padding: 0 17px;
  color: #526078;
  font-size: 11px;
}

.auth-preview-topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-preview-topbar > div > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #eaf1ff;
  color: var(--accent);
  font-weight: 750;
}

.auth-preview-topbar em {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7e8ba1;
  font-style: normal;
}

.auth-preview-topbar em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18a868;
}

.auth-preview-body {
  padding: 18px;
}

.auth-preview-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.auth-preview-title small {
  color: var(--accent);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.auth-preview-title h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.auth-preview-title > span {
  color: #7e8ba1;
  font-size: 9px;
}

.auth-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.auth-preview-kpis article {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  border: 1px solid #dfe6f0;
  border-radius: 11px;
  padding: 11px;
  box-shadow: 0 3px 9px rgba(33, 52, 88, 0.035);
}

.auth-preview-kpis article > span {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
}

.auth-preview-kpis article > span svg {
  width: 16px;
  height: 16px;
}

.auth-preview-kpis article > span.is-blue {
  background: #eaf1ff;
  color: #336df4;
}

.auth-preview-kpis article > span.is-green {
  background: #eaf8f1;
  color: #18a868;
}

.auth-preview-kpis article > span.is-violet {
  background: #f1edff;
  color: #7657e8;
}

.auth-preview-kpis small,
.auth-preview-kpis strong {
  display: block;
}

.auth-preview-kpis small {
  color: #7e8ba1;
  font-size: 9px;
}

.auth-preview-kpis strong {
  margin-top: -1px;
  font-size: 18px;
}

.auth-preview-experiment {
  border: 1px solid #dfe6f0;
  border-radius: 11px;
  margin-top: 10px;
  padding: 14px;
}

.auth-preview-experiment-title,
.auth-preview-experiment-title > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.auth-preview-experiment-title > div {
  min-width: 0;
  justify-content: flex-start;
}

.auth-preview-experiment-title > div > i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #336df4;
  box-shadow: 0 0 0 4px #eaf1ff;
}

.auth-preview-experiment-title strong,
.auth-preview-experiment-title small {
  display: block;
}

.auth-preview-experiment-title strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-preview-experiment-title small {
  margin-top: 2px;
  color: #7e8ba1;
  font-size: 8px;
}

.auth-preview-experiment-title em {
  border-radius: 5px;
  background: #eaf1ff;
  padding: 3px 6px;
  color: #336df4;
  font-size: 8px;
  font-style: normal;
}

.auth-preview-rounds {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
}

.auth-preview-rounds > i {
  color: #a8b3c5;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.auth-preview-rounds article {
  min-width: 0;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 8px 9px;
}

.auth-preview-rounds article.is-active {
  border-color: #9bb8fb;
  background: #f2f6ff;
}

.auth-preview-rounds article.is-future {
  border-style: dashed;
}

.auth-preview-rounds span,
.auth-preview-rounds b,
.auth-preview-rounds small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-preview-rounds span,
.auth-preview-rounds small {
  color: #7e8ba1;
  font-size: 8px;
}

.auth-preview-rounds b {
  margin: 2px 0;
  font-size: 10px;
}

.auth-product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: #46536a;
  font-size: 12px;
}

.auth-product-points span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-product-points i {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}

.auth-login-column {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.auth-login-card {
  width: 100%;
  max-width: 470px;
  min-width: 0;
  border: 1px solid rgba(212, 221, 234, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 35px 36px 30px;
  box-shadow: 0 24px 70px rgba(33, 52, 88, 0.13);
  backdrop-filter: blur(14px);
}

.auth-login-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7e8ba1;
  font-size: 10px;
}

.auth-login-environment {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #eaf1ff;
  padding: 5px 9px;
  color: var(--accent);
  font-weight: 650;
}

.auth-login-environment i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.auth-login-heading {
  margin: 26px 0 20px;
}

.auth-login-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.auth-login-heading p {
  margin: 8px 0 0;
  color: #7e8ba1;
  font-size: 13px;
}

.auth-login-methods {
  display: flex;
  gap: 4px;
  border-radius: 10px;
  background: #f2f5fa;
  margin-bottom: 22px;
  padding: 4px;
}

.auth-login-methods button {
  flex: 1 1 0;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7e8ba1;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 650;
}

.auth-login-methods button:hover {
  color: #46536a;
}

.auth-login-methods button.is-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(33, 52, 88, 0.09);
  color: var(--accent);
}

.auth-login-form {
  display: grid;
  gap: 18px;
}

.auth-login-field {
  display: grid;
  gap: 8px;
  color: #46536a;
  font-size: 12px;
  font-weight: 620;
}

.auth-login-input {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  height: 50px;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color 150ms, box-shadow 150ms;
}

.auth-login-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.auth-login-input > svg {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  color: #8592a7;
}

.auth-login-input input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 13px 0 0;
  color: #172033;
  font-size: 13px;
}

.auth-login-input input::placeholder {
  color: #a8b2c3;
}

.auth-login-input input:-webkit-autofill,
.auth-login-input input:-webkit-autofill:hover,
.auth-login-input input:-webkit-autofill:focus,
.auth-login-input input:autofill {
  background: #fff;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: #172033;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #172033;
}

.auth-login-input--verification {
  grid-template-columns: 50px minmax(0, 1fr);
}

.auth-login-input--verification > svg {
  width: 16px;
  height: 16px;
  color: #96a3b7;
}

.auth-login-input--verification input {
  padding-left: 2px;
}

.auth-login-input--password {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.auth-login-input--password input {
  padding-right: 0;
}

.auth-login-input--password button {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: #8895aa;
}

.auth-login-input--password button:hover {
  background: #f3f6fa;
  color: #46536a;
}

.auth-login-input--password button svg {
  width: 17px;
  height: 17px;
}

.auth-login-primary,
.auth-login-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.auth-login-primary {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  color: #fff;
}

.auth-login-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(51, 109, 244, 0.27);
  color: #fff;
  transform: translateY(-1px);
}

.auth-login-primary svg {
  width: 17px;
  height: 17px;
}

.auth-login-secondary {
  border-color: #d7e0ed;
  background: #fff;
  color: #46536a;
}

.auth-login-secondary:hover {
  border-color: #bfcce0;
  background: #f8faff;
}

.auth-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: #8a96aa;
  font-size: 11px;
}

.auth-login-divider::before,
.auth-login-divider::after {
  height: 1px;
  flex: 1;
  background: #e2e8f1;
  content: "";
}

.auth-login-error {
  border: 1px solid #ef9aa0;
  border-radius: 7px;
  background: #fff1f2;
  margin-bottom: 17px;
  padding: 10px 12px;
  color: #b4232d;
  font-size: 12px;
  line-height: 1.55;
}

.auth-login-helper {
  margin: -8px 0 0;
  color: #7e8ba1;
  font-size: 11px;
  line-height: 1.6;
}

.auth-login-verification-target {
  border-left: 3px solid var(--accent);
  background: #f3f6ff;
  padding: 10px 12px;
  color: #526078;
  font-size: 12px;
}

.auth-login-verification-target strong {
  color: #172033;
}

.auth-login-inline-action {
  text-align: center;
}

.auth-login-inline-action button {
  min-height: 28px;
  background: transparent;
  padding: 2px 8px;
  color: var(--accent);
  font-size: 12px;
}

.auth-login-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid #e2e8f1;
  margin-top: 25px;
  padding-top: 20px;
}

.auth-login-note > svg {
  width: 18px;
  height: 18px;
  margin: 4px auto 0;
  color: #18a868;
}

.auth-login-note strong,
.auth-login-note small {
  display: block;
}

.auth-login-note strong {
  color: #526078;
  font-size: 11px;
}

.auth-login-note small {
  margin-top: 2px;
  color: #7e8ba1;
  font-size: 10px;
  line-height: 1.55;
}

.auth-login-card--taptap {
  text-align: center;
}

.auth-login-qr {
  display: grid;
  width: 224px;
  height: 224px;
  margin: 0 auto 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e0ed;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.auth-login-qr svg {
  width: 100%;
  height: 100%;
  fill: initial;
  stroke: initial;
  stroke-width: initial;
  stroke-linecap: initial;
  stroke-linejoin: initial;
}

.auth-login-qr svg path:first-child {
  fill: #fff;
  stroke: none;
}

.auth-login-qr svg path:not(:first-child) {
  fill: none;
  stroke: #111827;
  stroke-width: 1;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.auth-login-card--taptap .auth-login-secondary {
  margin-top: 10px;
}

.auth-login-card--loading {
  min-height: 260px;
}

.auth-login-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e2e8f1;
  padding-top: 20px;
  color: #7e8ba1;
  font-size: 12px;
}

.auth-login-loading i {
  width: 16px;
  height: 16px;
  border: 2px solid #cad5e6;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: auth-login-spin 700ms linear infinite;
}

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

.auth-login-footer {
  border-top: 1px solid rgba(215, 224, 236, 0.86);
  color: #929db0;
  font-size: 10px;
}

.auth-login-footnote {
  margin: 16px 0 0;
  color: #929db0;
  font-size: 10px;
  text-align: center;
}

.organization-onboarding {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--bg);
  padding: 32px;
}

.organization-onboarding__panel {
  width: 100%;
  max-width: 920px;
  min-width: 0;
}

.organization-onboarding__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.organization-onboarding__header h1 {
  margin: 0 0 5px;
  font-size: 25px;
}

.organization-onboarding__header p,
.organization-onboarding__choices p {
  margin: 0;
  color: var(--text-muted);
}

.organization-onboarding__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.organization-onboarding__choices form {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding: 28px;
}

.organization-onboarding__choices form:last-child {
  border-right: 0;
}

.organization-onboarding__choices h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.organization-onboarding__choices label {
  margin-top: 28px;
}

.organization-onboarding__choices button {
  margin-top: auto;
}

.organization-onboarding__logout {
  display: block;
  margin: 18px auto 0;
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1100px) {
  .auth-login-main {
    grid-template-columns: minmax(480px, 1fr) minmax(400px, 0.8fr);
    gap: 46px;
    width: min(1000px, calc(100% - 56px));
  }
  .auth-product-copy h1 { font-size: 46px; }
  .auth-product-copy p { font-size: 14px; }
  .workspace-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid--overview { grid-template-columns: 1fr; }
  .config-workspace-demo { grid-template-columns: 270px minmax(0, 1fr); }
  .overview-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-config-grid > div:nth-child(2) { border-right: 0; }
  .overview-config-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .topbar__game-id { display: none; }
  .experiment-status-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-definition-grid > div:nth-child(2) { border-right: 0; }
  .experiment-definition-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 900px) {
  .global-header { grid-template-columns: 190px minmax(0, 1fr) auto; }
  .global-header__brand { padding-inline: 14px; }
  .global-tabs { gap: 0; padding-inline: 8px; }
  .global-tab { min-width: 96px; padding-inline: 10px; }
  .global-header__actions { gap: 4px; padding-inline: 6px 10px; }
  .global-header__account strong { display: none; }
  .auth-login-screen {
    grid-template-rows: 72px auto 50px;
    overflow: visible;
  }
  .auth-login-main {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 50px);
    width: min(620px, calc(100% - 40px));
    padding: 30px 0 54px;
  }
  .auth-product-copy { margin: 0 auto; text-align: center; }
  .auth-product-copy h1 { font-size: 42px; }
  .auth-product-copy p { margin-inline: auto; }
  .auth-product-preview { margin-top: 30px; transform: none; }
  .auth-product-points { justify-content: center; margin-bottom: 8px; }
  .auth-login-card { max-width: 500px; }
  .page-loading-bar { left: 0; }
  .dashboard-v2 .report-chart-switcher__panel-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-v2 .report-chart-switcher__panel-grid > .report-chart-card--embedded + .report-chart-card--embedded {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .dashboard-v2 .sidebar {
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

  .dashboard-v2 .sidebar.sidebar--open { transform: translateX(0); }
  .dashboard-v2 .main { margin-left: 0; }
  .topbar__menu { display: grid; place-items: center; }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.34);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
  }
  .sidebar-scrim--visible { visibility: visible; opacity: 1; pointer-events: auto; }
  .experiment-detail-heading { align-items: flex-start; flex-direction: column; }
  .experiment-detail-actions { width: 100%; }
  .run-picker { flex: 1; min-width: 0; }
  .workspace-grid--equal { grid-template-columns: 1fr; }
  .dashboard-v2 .core-activity__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-workspace-demo { grid-template-columns: 1fr; min-height: 0; }
  .config-file-list { border-right: 0; border-bottom: 1px solid var(--border); }
  .config-file-list__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 230px; }
  .config-file-list__items > button { border-right: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-loading i { animation: none; }
  .page-loading-bar i { width: 100%; animation: none; opacity: .72; }
  .dashboard-boot-heading i,
  .dashboard-boot-heading span,
  .dashboard-boot-card i { animation: none; }
  .game-library-row { transition: none; }
  .game-library-table__sort-icon { transition: none; }
}

@media (max-width: 720px) {
  .global-header { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .global-header__brand { justify-content: center; padding: 0; }
  .global-header__brand > span:last-child { display: none; }
  .global-tabs { gap: 0; padding: 0 2px; }
  .global-tab { min-width: 0; padding: 0 7px; font-size: 11px; }
  .global-tab::after { right: 7px; left: 7px; }
  .global-tab svg { display: none; }
  .global-header__actions { gap: 1px; padding: 0 5px; }
  .global-header__help,
  .global-header__logout { width: 31px; height: 34px; min-height: 34px; }
  .global-header__help,
  .global-header__account { display: none; }
  .global-header__account { padding: 0 2px; }
  .global-header__account > span { width: 27px; height: 27px; }
  .dashboard-v2 .report-chart-switcher__header { align-items: stretch; flex-direction: column; }
  .dashboard-v2 .report-chart-switcher__tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .dashboard-v2 .report-chart-switcher__tabs button { flex: 1 0 auto; }
  .auth-login-header,
  .auth-login-footer { width: calc(100% - 28px); }
  .auth-login-help { font-size: 0; }
  .auth-login-help svg { width: 19px; height: 19px; }
  .auth-login-main { gap: 26px; width: calc(100% - 28px); padding-top: 18px; }
  .auth-product-copy h1 { margin: 10px 0 13px; font-size: 33px; }
  .auth-product-copy p { font-size: 13px; line-height: 1.65; }
  .auth-product-preview { display: none; }
  .auth-product-points { display: none; }
  .auth-login-card { border-radius: 16px; padding: 27px 22px 24px; }
  .auth-login-heading { margin-block: 22px; }
  .auth-login-heading h2 { font-size: 27px; }
  .dashboard-v2 .topbar {
    align-items: center;
    flex-direction: row;
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    padding: 0 14px;
  }
  .dashboard-v2 .topbar__context { flex: 1; }
  .dashboard-v2 .top-actions { width: auto; flex: 0 0 auto; justify-content: flex-end; }
  .dashboard-v2 .content { padding: 20px 14px 36px; }
  .platform-usage-page .workspace-heading { align-items: stretch; }
  .platform-usage-filter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .platform-usage-filter label,
  .platform-usage-filter input { width: 100%; }
  .platform-usage-filter button { grid-column: 1 / -1; }
  .platform-usage-details__header { align-items: flex-start; flex-direction: column; }
  .platform-usage-tabs { width: 100%; }
  .platform-usage-tabs button { flex: 1; }
  .dashboard-v2 .report-cohort-matrix {
    padding: 10px 10px 9px;
  }
  .dashboard-v2 .report-cohort-matrix__scroll {
    max-height: 420px;
    overscroll-behavior-inline: contain;
  }
  .dashboard-v2 .report-cohort-matrix table {
    min-width: max-content;
    border-spacing: 2px;
  }
  .dashboard-v2 .report-cohort-matrix th,
  .dashboard-v2 .report-cohort-matrix td {
    min-width: 50px;
    height: 30px;
    padding: 4px 6px;
  }
  .dashboard-v2 .report-cohort-matrix__cohort {
    width: 62px;
    min-width: 62px !important;
    max-width: 62px;
  }
  .dashboard-v2 .report-cohort-matrix.has-variants .report-cohort-matrix__cohort {
    width: 100px;
    min-width: 100px !important;
    max-width: 100px;
  }
  .dashboard-v2 .report-cohort-matrix__footer {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
  .dashboard-v2 .report-cohort-matrix__legend {
    justify-content: flex-start;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }
  .dashboard-v2 .report-cohort-matrix__legend > i {
    width: 84px;
  }
  .dashboard-v2 .report-cohort-matrix__immature {
    width: 100%;
    margin: 2px 0 0;
  }
  .dashboard-v2 .report-cohort-matrix__footer .report-cohort-table__expand {
    margin-left: auto;
  }
  .dashboard-boot-grid { grid-template-columns: 1fr; }
  .dashboard-boot-card--wide { grid-column: auto; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .workspace-heading h1 { font-size: 22px; }
  .workspace-actions { width: 100%; flex-wrap: wrap; }
  .game-library-page .workspace-actions .button { width: 100%; justify-content: center; }
  .game-library-summary { grid-template-columns: 1fr; }
  .game-library-toolbar { align-items: stretch; flex-direction: column; padding: 16px; }
  .game-library-search { width: 100%; }
  .game-library-mobile-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 12px;
  }
  .game-library-mobile-sort select {
    min-width: min(220px, 70vw);
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 34px 0 12px;
    background: #fff;
    color: var(--text-secondary);
    font: inherit;
  }
  .game-library-mobile-sort select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 1px; }
  .game-library-table { overflow: visible; padding: 0 12px 12px; }
  .game-library-table__head { display: none; }
  .game-library-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 18px;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
  }
  .game-library-row:first-child { margin-top: 0; }
  .game-library-row__name { grid-column: 1 / 4; grid-row: 1; }
  .game-library-row > span:nth-child(2) { grid-column: 1 / 5; grid-row: 2; }
  .game-library-row__metric { grid-row: 3; text-align: left; }
  .game-library-row__arrow { grid-column: 4; grid-row: 1; }
  .report-dashboard__platform { flex: 1; min-width: 120px; }
  .workspace-kpi-grid { grid-template-columns: 1fr; }
  .overview-config-grid { grid-template-columns: 1fr; }
  .overview-config-grid > div,
  .overview-config-grid > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .overview-config-grid > div:last-child { border-bottom: 0; }
  .workspace-table { overflow-x: auto; }
  .workspace-page--keys .workspace-table-scroll { overflow-x: auto; overflow-y: visible; }
  .workspace-table--overview { width: 100%; min-width: 0; overflow: hidden; }
  .workspace-table--overview .workspace-table__head { display: none; }
  .workspace-table--overview .workspace-table__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    min-width: 0;
    min-height: 108px;
    padding: 14px 18px;
  }
  .workspace-table--overview .workspace-table__row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .workspace-table--overview .workspace-table__row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .workspace-table--overview .workspace-table__row > span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .workspace-table--overview .workspace-table__row > span:nth-child(4) { grid-column: 2; grid-row: 2; align-self: end; color: var(--text-muted); font-size: 11px; }
  .dashboard-v2 .experiment-v2-controls { grid-template-columns: 1fr; }
  .dashboard-v2 .experiment-v2-controls__meta { justify-content: flex-start; }
  .dashboard-v2 .experiment-v2-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-status-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experiment-center-page .workspace-heading h1 { font-size: 26px; }
  .experiment-center-page .workspace-heading p { font-size: 13px; }
  .experiment-center-page .experiment-status-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 92px;
    padding: 13px;
  }
  .experiment-center-page .experiment-status-card .metric-icon { width: 38px; height: 38px; border-radius: 10px; }
  .experiment-center-page .experiment-status-overview small { font-size: 11px; }
  .experiment-center-page .experiment-status-overview strong { font-size: 24px; }
  .experiment-center-page .experiment-status-overview p { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .experiment-center-page .workspace-card__header { min-height: 0; padding: 16px; }
  .experiment-center-page .workspace-card__header p { font-size: 12px; line-height: 1.55; }
  .experiment-run-table { overflow: visible; padding: 0 12px 12px; }
  .experiment-run-table__head { display: none; }
  .experiment-center-page .experiment-run-row {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
    min-width: 0;
    min-height: 0;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
  }
  .experiment-center-page .experiment-run-row:first-child { margin-top: 0; }
  .experiment-center-page .experiment-run-row:hover { box-shadow: var(--shadow-sm); }
  .experiment-center-page .experiment-run-name { grid-column: 1 / -1; padding-right: 22px; }
  .experiment-center-page .experiment-run-row > span:nth-child(4) { grid-column: 1 / -1; }
  .experiment-center-page .experiment-run-row > span:not(.experiment-run-name) b,
  .experiment-center-page .experiment-run-row > span:not(.experiment-run-name) small { white-space: normal; }
  .experiment-center-page .experiment-run-row__arrow {
    position: absolute;
    top: 17px;
    right: 14px;
  }
  .experiment-run-filter-empty { min-width: 0; padding: 36px 12px; }
  .experiment-list-pagination { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .experiment-list-pagination__controls { margin-left: auto; }
  .experiment-detail-heading__title { align-items: flex-start; flex-direction: column; }
  .experiment-detail-actions { align-items: stretch; flex-direction: column; }
  .experiment-insight-v2 { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; }
  .experiment-insight-v2__marker { width: 36px; height: 36px; }
  .experiment-insight-v2__score { grid-column: 1 / -1; border-top: 1px solid #d7e1f7; border-left: 0; padding-top: 10px; padding-left: 0; text-align: left; }
  .experiment-section-heading-v2,
  .experiment-config-panel-v2__header,
  .experiment-section-intro-v2 { align-items: flex-start; flex-direction: column; }
  .experiment-round-settings-v2 { justify-content: flex-start; }
  .experiment-round-track-v2 { align-items: stretch; flex-direction: column; gap: 8px; }
  .experiment-round-card-v2 { width: 100%; min-width: 0; max-width: none; min-height: 164px; }
  .experiment-round-connector-v2 { display: none; }
  .experiment-round-analysis-v2__header { align-items: flex-start; flex-direction: column; }
  .experiment-basic-metrics-v2__heading,
  .experiment-metric-card-v2__header { align-items: flex-start; flex-direction: column; }
  .experiment-basic-metrics-v2__heading > span { white-space: normal; }
  .experiment-metric-switch-v2 { width: 100%; }
  .experiment-metric-switch-v2 button { flex: 1; }
  .experiment-round-facts-v2 { grid-template-columns: 1fr 1fr; }
  .experiment-round-facts-v2 > div:nth-child(2) { border-right: 0; }
  .experiment-round-facts-v2 > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .experiment-definition-grid--five { grid-template-columns: 1fr; }
  .experiment-definition-grid { grid-template-columns: 1fr; }
  .experiment-definition-grid > div,
  .experiment-definition-grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .experiment-definition-grid > div:last-child { border-bottom: 0; }
  .report-heading-v2 { align-items: flex-start; flex-direction: column; }
  .report-heading-v2 .report-updated-at { display: none; }
  .report-toolbar-v2 { flex-wrap: wrap; }
  .report-toolbar-v2 .report-updated-at { width: 100%; margin-left: 0; padding: 2px 5px; }
  .report-range-tabs { width: 100%; }
  .report-range-tabs button { flex: 1; }
  .report-filter-control { flex: 1; }
  .report-level-tabs { padding: 0 5px; }
  .report-level-tabs button { min-width: 128px; padding: 0 9px; }
  .report-level-tabs button::after { right: 9px; left: 9px; }
  .report-level-tabs button small { display: none; }
  .report-group-v2__header { align-items: flex-start; flex-direction: column; }
  .report-group-v2__header .report-group__tools { width: 100%; justify-content: flex-start; }
  .report-group-v2__header .report-group__selector { flex: 1; min-width: 130px; }
  .report-group-v2__body { padding: 9px; }
  .dashboard-v2 .report-card-v2 .report-echart--line,
  .dashboard-v2 .report-card-v2 .report-echart--bar,
  .dashboard-v2 .report-chart-card--lg .report-echart--line,
  .dashboard-v2 .report-chart-card--lg .report-echart--bar,
  .dashboard-v2 .report-chart-card--full .report-echart--line,
  .dashboard-v2 .report-chart-card--full .report-echart--bar { height: 340px; }
  .dashboard-v2 .report-funnel-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .dashboard-v2 .report-card-v2 .report-echart--funnel { height: 320px; }
  .dashboard-v2 .report-funnel-viewport.is-collapsible .report-funnel-scroll { max-height: 350px; }
  .dashboard-v2 .editor-layout { grid-template-columns: 1fr; min-height: 0; }
  .dashboard-v2 .editor-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--border); }
  .dashboard-v2 .editor-code { min-height: 440px; }
  .config-file-list__items { grid-template-columns: 1fr; }
  .config-file-list__items > button { border-right: 0; }
  .config-editor-demo__header { align-items: flex-start; flex-direction: column; }
  .config-editor-demo__header .workspace-actions { width: auto; }
  .config-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .config-meta > div:nth-child(2) { border-right: 0; }
  .config-meta > div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .config-editor-toolbar { align-items: flex-start; flex-direction: column; }
  .config-save-as { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .config-code-editor { min-height: 360px; margin: 0 12px; }
  .demo-form-grid { grid-template-columns: 1fr; }
  .marketing-sync-summary { grid-template-columns: 1fr; gap: 10px; }
  .marketing-sync-summary > span { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 10px; }
  .marketing-sync-summary > span:last-child { border-bottom: 0; padding-bottom: 0; }
  .marketing-sync-form { grid-template-columns: 1fr; }
  .key-create-form { grid-template-columns: 1fr; }
  .key-reveal { grid-template-columns: 30px minmax(0, 1fr); }
  .key-reveal__actions { grid-column: 2; }
  .organization-onboarding { padding: 20px 14px; }
  .organization-onboarding__choices { grid-template-columns: 1fr; }
  .organization-onboarding__choices form {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .organization-onboarding__choices form:last-child { border-bottom: 0; }
  .dashboard-v2 .core-activity { padding: 12px; }
  .dashboard-v2 .core-activity__trend-header { padding: 14px; }
  .dashboard-v2 .report-echart--core-activity { height: 340px; }
}

@media (max-width: 480px) {
  .auth-login-brand small,
  .auth-login-footer span:last-child { display: none; }
  .auth-login-card { padding-inline: 19px; }
  .auth-login-qr { width: 200px; height: 200px; }
  .workspace-actions { align-items: stretch; flex-direction: column; }
  .report-dashboard__platform,
  .report-dashboard__range { width: 100%; }
  .segmented-control button { flex: 1; }
  .dashboard-v2 .experiment-v2-summary { grid-template-columns: 1fr; }
  .dashboard-v2 .core-activity__kpis { grid-template-columns: 1fr; }
  .experiment-detail-tabs { gap: 16px; }
  .experiment-detail-tabs button { white-space: nowrap; }
  .experiment-round-facts-v2 { grid-template-columns: 1fr; }
  .experiment-round-facts-v2 > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .experiment-round-facts-v2 > div:last-child { border-bottom: 0; }
  .topbar__context > span,
  .topbar__context > b { display: none; }
  .config-create-panel { grid-template-columns: 1fr; }
  .config-meta { grid-template-columns: 1fr; }
  .config-meta > div,
  .config-meta > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .config-meta > div:last-child { border-bottom: 0; }
  .config-editor-demo__footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Account and organization workspace */
.dashboard-v2 .account-settings-page {
  width: min(1440px, 100%);
  gap: 0;
  padding-top: 6px;
}

.account-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.account-page-heading .eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}

.account-page-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.22;
}

.account-page-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.organization-state,
.security-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 6px 11px;
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.organization-state > i,
.security-level > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 168, 104, 0.1);
}

.organization-state.is-disabled {
  background: #eef2f6;
  color: var(--text-muted);
}

.organization-state.is-disabled > i {
  background: #9aa5b5;
  box-shadow: none;
}

.role-icon svg,
.login-method-icon svg,
.organization-access-card__icon svg,
.password-dialog-icon svg,
.password-rule svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-settings-content {
  min-width: 0;
}

.account-tab-panel {
  overflow: hidden;
  animation: account-panel-in 0.18s ease-out;
}

@keyframes account-panel-in {
  from { opacity: 0.45; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}

.account-panel-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.account-panel-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.72fr);
  min-height: 420px;
}

.account-settings-page .settings-form {
  padding: 26px 28px 24px;
}

.account-settings-page .form-section-heading h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 680;
}

.account-settings-page .form-section-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.account-settings-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-v2 .account-settings-page .form-grid label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 620;
}

.account-settings-page .form-grid label > span:first-child {
  line-height: 18px;
}

.account-settings-page .form-grid label small {
  margin-top: -2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 450;
}

.dashboard-v2 .account-settings-page .form-grid input,
.dashboard-v2 .account-settings-page .form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  font-size: 13px;
}

.dashboard-v2 .account-settings-page .form-grid input[readonly] {
  background: #f7f9fc;
  color: #6f7b8e;
}

.account-id-field {
  grid-column: 1 / -1;
}

.account-settings-page .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
}

.account-settings-page .form-footer > span {
  color: var(--text-muted);
  font-size: 10px;
}

.account-role-summary {
  border-left: 1px solid var(--border);
  background: #fbfcfe;
  padding: 26px 24px;
}

.role-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  margin-top: 26px;
  color: var(--accent);
}

.role-icon svg {
  width: 22px;
  height: 22px;
}

.account-role-summary > strong {
  display: block;
  margin-top: 13px;
  color: var(--text);
  font-size: 16px;
}

.account-role-summary > p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.account-role-summary dl {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.account-role-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-top: 1px solid var(--border);
}

.account-role-summary dt {
  color: var(--text-muted);
  font-size: 10px;
}

.account-role-summary dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}

.account-role-summary dd i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.security-content,
.organization-content {
  display: grid;
}

.login-method-section,
.organization-form,
.organization-games,
.organization-members,
.organization-access {
  padding: 26px 28px;
}

.login-method-section,
.organization-form,
.organization-games,
.organization-members {
  border-bottom: 1px solid var(--border);
}

.login-method-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-top: 21px;
}

.login-method-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  border-top: 1px solid var(--border);
  padding: 13px 16px;
}

.login-method-list article:first-child {
  border-top: 0;
}

.login-method-list article.is-planned {
  background: #fafbfd;
}

.login-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2f6;
  color: #8290a4;
}

.login-method-icon svg {
  width: 19px;
  height: 19px;
}

.login-method-icon--blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.login-method-icon--green {
  background: var(--green-soft);
  color: var(--green);
}

.login-method-icon--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.login-method-icon--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.login-method-list strong,
.login-method-list small {
  display: block;
}

.login-method-list strong {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.login-method-list small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.login-method-list article > span:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-v2 .login-method-list article > span:last-child button {
  min-width: 70px;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

.dashboard-v2 .login-method-list article > span:last-child button:hover {
  color: var(--accent-hover);
}

.method-state,
.member-role {
  border-radius: 6px;
  background: #eef2f6;
  padding: 4px 7px;
  color: #7a8597;
  font-size: 9px;
  font-style: normal;
  font-weight: 620;
  white-space: nowrap;
}

.method-state--active,
.member-role--admin {
  background: var(--green-soft);
  color: var(--green);
}

.member-role--developer {
  background: var(--accent-soft);
  color: var(--accent);
}

.member-role--operator {
  background: var(--violet-soft);
  color: var(--violet);
}

.organization-state--compact {
  min-height: 28px;
  padding: 5px 9px;
}

.input-with-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.dashboard-v2 .account-settings-page .input-with-copy input {
  border-radius: 9px 0 0 9px;
}

.dashboard-v2 .account-settings-page .input-with-copy button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #d8e0eb;
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: #f7f9fc;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
}

.dashboard-v2 .account-settings-page .input-with-copy button:hover {
  color: var(--accent);
}

.input-with-copy button svg {
  width: 16px;
  height: 16px;
}

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

.organization-games__heading h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.organization-games__heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.organization-games__heading > span {
  border-radius: 999px;
  background: #eef2f7;
  padding: 5px 9px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.organization-game-table,
.organization-member-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.organization-game-table__head,
.organization-game-table article,
.organization-member-table__head,
.organization-member-table article {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
}

.organization-game-table__head,
.organization-game-table article {
  grid-template-columns: minmax(220px, 1.5fr) 100px 130px;
}

.organization-member-table__head,
.organization-member-table article {
  grid-template-columns: minmax(200px, 1.3fr) minmax(180px, 0.8fr) minmax(220px, 1.3fr) 130px;
}

.organization-game-table__head,
.organization-member-table__head {
  min-height: 40px;
  background: #fafbfd;
  color: #929cad;
  font-size: 10px;
  font-weight: 620;
}

.organization-game-table article,
.organization-member-table article {
  min-height: 76px;
  border-top: 1px solid var(--border);
}

.organization-game-table article > span:first-child {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.organization-game-table strong,
.organization-game-table small,
.organization-member strong,
.organization-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-game-table strong,
.organization-member strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.organization-game-table small,
.organization-member small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.organization-game-table code {
  overflow: hidden;
  color: #6f7b8e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-game-table time,
.organization-member-table time {
  color: var(--text-muted);
  font-size: 10px;
}

.game-avatar,
.organization-member__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.game-avatar--blue,
.organization-member__avatar {
  background: var(--accent-soft);
  color: var(--accent);
}

.game-avatar--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.game-avatar--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.game-avatar--green {
  background: var(--green-soft);
  color: var(--green);
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 620;
}

.game-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.game-status--paused {
  color: var(--text-muted);
}

.game-status--paused i {
  background: #a1aaba;
}

.organization-member {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.organization-member > span:last-child {
  min-width: 0;
}

.organization-member__permission {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.organization-member-role-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-v2 .account-settings-page .organization-member-role-form select {
  width: 112px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  padding: 5px 30px 5px 10px;
  font-size: 11px;
}

.dashboard-v2 .account-settings-page .organization-member-role-form button {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 11px;
}

.workspace-table-empty {
  border: 1px dashed #dce3ed;
  border-radius: 10px;
  padding: 28px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.organization-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.organization-access-grid > :only-child {
  max-width: 560px;
}

.organization-access-card {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfcfe;
  padding: 18px;
}

.organization-access-card > div:first-child {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
}

.organization-access-card__icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.organization-access-card__icon svg {
  width: 18px;
  height: 18px;
}

.organization-access-card h4 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.organization-access-card p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 10px;
}

.dashboard-v2 .account-settings-page .organization-access-card label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 620;
}

.dashboard-v2 .account-settings-page .organization-access-card input,
.dashboard-v2 .account-settings-page .organization-access-card select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background-color: #fff;
  padding: 0 11px;
  font-size: 12px;
}

.dashboard-v2 .account-settings-page .organization-access-card > .button {
  justify-self: start;
  min-height: 38px;
  padding: 7px 13px;
}

.account-password-dialog {
  width: min(480px, 100%);
  border-radius: 14px;
}

.account-password-dialog__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-dialog-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.password-dialog-icon svg {
  width: 19px;
  height: 19px;
}

.password-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: #f5f8ff;
  padding: 12px;
  color: var(--accent);
}

.password-rule svg {
  width: 18px;
  height: 18px;
  margin: 0 auto;
}

.password-rule strong,
.password-rule small {
  display: block;
}

.password-rule strong {
  color: var(--text-secondary);
  font-size: 11px;
}

.password-rule small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

@media (max-width: 1120px) {
  .profile-content {
    grid-template-columns: 1fr;
  }

  .account-role-summary {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .organization-member-table__head,
  .organization-member-table article {
    grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 0.8fr) minmax(180px, 1fr);
  }

  .organization-member-table__head > span:last-child,
  .organization-member-table article > time {
    display: none;
  }
}

@media (max-width: 900px) {
  .account-page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .organization-game-table__head,
  .organization-game-table article {
    grid-template-columns: minmax(180px, 1.4fr) 80px;
  }

  .organization-game-table__head > span:last-child,
  .organization-game-table article > time {
    display: none;
  }

  .organization-member-table__head,
  .organization-member-table article {
    grid-template-columns: minmax(180px, 1.2fr) minmax(170px, 0.8fr);
  }

  .organization-member-table__head > span:nth-child(3),
  .organization-member-table article > .organization-member__permission {
    display: none;
  }
}

@media (max-width: 680px) {
  .account-page-heading h1 {
    font-size: 25px;
  }

  .account-page-heading p {
    font-size: 12px;
  }

  .account-panel-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 17px 18px;
  }

  .profile-content {
    min-height: 0;
  }

  .account-settings-page .settings-form,
  .login-method-section,
  .organization-form,
  .organization-games,
  .organization-members,
  .organization-access,
  .account-role-summary {
    padding: 20px 18px;
  }

  .account-settings-page .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .account-id-field {
    grid-column: auto;
  }

  .login-method-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 88px;
    padding: 12px;
  }

  .login-method-icon {
    width: 36px;
    height: 36px;
  }

  .login-method-list article > span:last-child {
    grid-column: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .organization-game-table,
  .organization-member-table {
    border: 0;
    border-radius: 0;
  }

  .organization-game-table__head,
  .organization-member-table__head {
    display: none;
  }

  .organization-game-table article,
  .organization-member-table article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 10px;
    padding: 14px;
  }

  .organization-game-table article:first-of-type,
  .organization-member-table article:first-of-type {
    margin-top: 0;
  }

  .organization-game-table article > span:first-child,
  .organization-member-table article > .organization-member {
    grid-column: 1;
    grid-row: 1;
  }

  .organization-member-table article > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .organization-game-table article > .game-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .organization-member-table article > div:nth-child(2) {
    margin-left: 49px;
  }

  .organization-member-table article > .organization-member__permission,
  .organization-game-table article > time,
  .organization-member-table article > time {
    display: none;
  }

  .organization-access-grid {
    grid-template-columns: 1fr;
  }

  .organization-access-grid > :only-child {
    max-width: none;
  }

  .organization-member-role-form {
    flex-wrap: wrap;
  }
}
