:root {
  color-scheme: dark;
  --bg: #1d2a4b;
  --panel: #2a3962;
  --panel-2: #334676;
  --line: #52699c;
  --text: #f7fbff;
  --muted: #b8c5df;
  --accent: #82e3dd;
  --accent-2: #9b7cff;
  --danger: #ff7b8a;
  --ok: #8bd17c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1080px;
  background:
    linear-gradient(90deg, rgba(125, 153, 224, 0.08) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(64, 82, 142, 0.56) 0, rgba(32, 46, 83, 0.94) 82px, #1d2a4b 100%);
  background-size: 96px 100%, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

body.login-page {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 20%, rgba(127, 213, 198, 0.18), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(183, 156, 255, 0.16), transparent 30%),
    #101217;
}

button,
input,
select {
  font: inherit;
}

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

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(115, 137, 198, 0.42);
  background: rgba(29, 40, 72, 0.92);
  box-shadow: 0 10px 32px rgba(11, 17, 34, 0.2);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(127, 213, 198, 0.28);
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

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

input[type="search"] {
  width: 360px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 22, 43, 0.58);
  color: var(--text);
  outline: none;
}

select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 22, 43, 0.58);
  color: var(--text);
  outline: none;
}

button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(51, 70, 118, 0.84);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(127, 213, 198, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(31, 39, 63, 0.96), rgba(18, 21, 30, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel h1 {
  font-size: 28px;
}

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

.login-form[hidden] {
  display: none;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.login-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 22, 43, 0.68);
  color: var(--text);
  outline: none;
}

.login-form button {
  height: 42px;
  border-color: rgba(127, 213, 198, 0.48);
  background: linear-gradient(135deg, #26bca6, #6f6df6 60%, #9c5cff);
  color: #ffffff;
  font-weight: 780;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
}

.revenue-trigger {
  height: 38px;
  border-color: rgba(127, 213, 198, 0.48);
  background: linear-gradient(135deg, #26bca6, #6f6df6 55%, #9c5cff);
  color: #ffffff;
  font-weight: 780;
}

.layout {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 430px;
  min-height: calc(100vh - 72px);
}

.layout.dashboard-mode {
  grid-template-columns: 1fr;
}

.layout.dashboard-mode .left-pane {
  border-right: 0;
}

.layout.dashboard-mode .detail-pane {
  display: none;
}

.left-pane {
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.detail-pane {
  background: rgba(27, 39, 70, 0.92);
  overflow: auto;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
  border-bottom: 1px solid rgba(93, 116, 177, 0.45);
  background: rgba(20, 30, 56, 0.5);
}

.tab {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  color: var(--muted);
}

.tab.active {
  color: var(--text);
  border-color: rgba(118, 145, 214, 0.58);
  background: linear-gradient(180deg, rgba(58, 76, 128, 0.96), rgba(42, 57, 98, 0.96));
}

.panel {
  display: none;
  padding: 16px;
  height: calc(100vh - 119px);
  overflow: auto;
}

.active-panel {
  display: block;
}

.overview-screen {
  display: grid;
  gap: 14px;
}

.overview-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(122, 151, 224, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(50, 68, 121, 0.96), rgba(39, 54, 98, 0.96)),
    #2b3b68;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px rgba(11, 17, 34, 0.16);
}

.overview-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.overview-heading-actions {
  max-width: none;
  justify-content: flex-start;
}

.overview-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.02fr) minmax(400px, 1.22fr) minmax(300px, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.overview-revenue-hero {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.overview-revenue-hero .revenue-amount {
  margin: 78px 0 64px;
  font-size: 86px;
}

.overview-hero-metrics {
  display: grid;
  gap: 12px;
}

.overview-hero-secondary-grid {
  margin-top: 0;
}

.overview-side-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
}

.overview-side-stack .platform-panel {
  max-height: none;
}

.overview-region-panel {
  min-height: 0;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.85fr);
  gap: 14px;
}

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

.system-overview-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.28fr) minmax(360px, 0.72fr);
  gap: 14px;
}

.system-health-panel {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(48, 91, 126, 0.82), rgba(47, 57, 111, 0.94) 62%, rgba(37, 52, 92, 0.96)),
    #2a3a67;
}

.system-activity-panel,
.system-detail-panel {
  min-height: 280px;
}

.system-detail-panel {
  grid-column: 1 / -1;
}

.system-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.system-headline strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
}

.system-headline p {
  margin: 9px 0 0;
  color: #b6c9ea;
  overflow-wrap: anywhere;
}

.health-pill,
.system-alert {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.health-pill.healthy,
.system-alert.healthy {
  color: #071414;
  background: #7fd5c6;
}

.health-pill.warn,
.system-alert.warn {
  color: #1b1204;
  background: #ffd27a;
}

.health-pill.critical,
.system-alert.critical {
  color: #1b0709;
  background: #ff7b8a;
}

.system-live-count {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(127, 213, 198, 0.28);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.5);
}

.system-live-count span,
.system-live-count small {
  color: #9fb4d7;
}

.system-live-count strong {
  margin: 0;
  font-size: 34px;
}

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

.system-meter {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.52);
}

.system-meter.warn {
  border-color: rgba(255, 210, 122, 0.42);
}

.system-meter.critical {
  border-color: rgba(255, 123, 138, 0.52);
}

.system-meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.system-meter-top span,
.system-meter-detail {
  color: #9fb4d7;
  font-size: 12px;
}

.system-meter-top strong {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 22px;
}

.system-meter-track {
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(159, 180, 215, 0.18);
}

.system-meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fd5c6, #b79cff);
}

.system-meter.warn .system-meter-track span {
  background: linear-gradient(90deg, #ffd27a, #ff9f7a);
}

.system-meter.critical .system-meter-track span {
  background: linear-gradient(90deg, #ff7b8a, #ff4f72);
}

.system-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.system-stat-grid,
.system-detail-grid {
  display: grid;
  gap: 10px;
}

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

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

.system-stat {
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.system-stat.warn {
  border-color: rgba(255, 123, 138, 0.5);
}

.system-stat span,
.system-stat small {
  display: block;
  min-width: 0;
  color: #9fb4d7;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-stat strong {
  display: block;
  margin: 7px 0 5px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-server-strip {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.server-shortcut,
.server-shortcut-note {
  min-width: 0;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(127, 213, 198, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(48, 91, 126, 0.78), rgba(45, 58, 105, 0.94)),
    #2a3a67;
}

.server-shortcut {
  height: auto;
  display: grid;
  gap: 5px;
  text-align: left;
}

.server-shortcut.warn {
  border-color: rgba(255, 210, 122, 0.54);
}

.server-shortcut.critical {
  border-color: rgba(255, 123, 138, 0.62);
}

.server-shortcut span,
.server-shortcut small,
.server-shortcut-note span {
  color: #9fb4d7;
  font-size: 12px;
}

.server-shortcut strong,
.server-shortcut-note strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-shortcut-note {
  display: grid;
  align-content: center;
  gap: 7px;
}

.server-screen {
  display: grid;
  gap: 14px;
}

.server-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(122, 151, 224, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(50, 68, 121, 0.96), rgba(39, 54, 98, 0.96)),
    #2b3b68;
}

.server-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.server-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.server-status-strip {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(127, 213, 198, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(127, 213, 198, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(25, 55, 74, 0.88), rgba(25, 31, 60, 0.94)),
    #2a3a67;
}

.server-status-strip.warn {
  border-color: rgba(255, 210, 122, 0.44);
}

.server-status-strip.critical {
  border-color: rgba(255, 123, 138, 0.54);
}

.server-status-title {
  min-width: 0;
}

.server-status-title strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.server-status-title p {
  margin: 10px 0 0;
  color: #b6c9ea;
  line-height: 1.55;
}

.watch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.watch-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.48);
}

.watch-item.warn {
  border-color: rgba(255, 210, 122, 0.45);
}

.watch-item.critical {
  border-color: rgba(255, 123, 138, 0.55);
}

.watch-item span {
  color: #ffffff;
  font-weight: 780;
}

.watch-item p {
  margin: 7px 0 0;
  color: #9fb4d7;
  line-height: 1.45;
}

.server-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.server-metric {
  min-width: 0;
  min-height: 118px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(53, 67, 113, 0.62), rgba(20, 27, 47, 0.92)),
    #2a3a67;
}

.server-metric.warn {
  border-color: rgba(255, 210, 122, 0.5);
}

.server-metric.critical {
  border-color: rgba(255, 123, 138, 0.6);
}

.server-metric-top {
  display: grid;
  gap: 7px;
}

.server-metric-top span,
.server-metric p {
  color: #9fb4d7;
  font-size: 12px;
}

.server-metric-top strong {
  color: #ffffff;
  font-size: 26px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-metric p {
  margin: 9px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-secondary {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
}

.service-row-list {
  display: grid;
  gap: 9px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(96px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.service-row.warn {
  border-color: rgba(255, 210, 122, 0.42);
}

.service-row span,
.service-row small {
  min-width: 0;
  color: #9fb4d7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-row strong {
  min-width: 0;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-diagnostics-panel {
  display: grid;
  gap: 10px;
}

.server-details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.45);
}

.server-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: #dce8ff;
  cursor: pointer;
}

.server-details summary strong {
  min-width: 0;
  color: #9fb4d7;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.diagnostic-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.diagnostic-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.diagnostic-toolbar span,
.diagnostic-meta {
  color: #9fb4d7;
  font-size: 12px;
}

.diagnostic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 12px 10px;
}

.server-log-pre {
  max-height: 420px;
  margin: 0 12px 12px;
  white-space: pre-wrap;
}

.feedback-screen {
  display: grid;
  gap: 14px;
}

.feedback-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(122, 151, 224, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(50, 68, 121, 0.96), rgba(39, 54, 98, 0.96)),
    #2b3b68;
}

.feedback-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.feedback-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feedback-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.feedback-metric {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(53, 67, 113, 0.62), rgba(20, 27, 47, 0.92)),
    #2a3a67;
}

.feedback-metric.warn {
  border-color: rgba(255, 210, 122, 0.5);
}

.feedback-metric.critical {
  border-color: rgba(255, 123, 138, 0.6);
}

.feedback-metric span,
.feedback-metric small {
  display: block;
  color: #9fb4d7;
  font-size: 12px;
}

.feedback-metric strong {
  display: block;
  margin: 8px 0 6px;
  color: #ffffff;
  font-size: 27px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 213, 198, 0.18);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.feedback-toolbar > span {
  color: #9fb4d7;
  font-size: 12px;
}

.feedback-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-filter-tabs button {
  height: 30px;
  border: 0;
  background: transparent;
  color: #9fb4d7;
}

.feedback-filter-tabs button.active {
  color: #ffffff;
  background: #2b766c;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-card {
  height: auto;
  min-height: 148px;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(42, 52, 88, 0.72), rgba(20, 26, 45, 0.92)),
    #2a3a67;
  text-align: left;
}

.feedback-card.active,
.feedback-card:hover {
  border-color: rgba(127, 213, 198, 0.7);
  background:
    linear-gradient(180deg, rgba(52, 72, 113, 0.84), rgba(21, 31, 54, 0.96)),
    #17203a;
}

.feedback-card-top,
.feedback-card-meta,
.feedback-item-top,
.feedback-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.feedback-card strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.feedback-card p {
  margin: 0;
  color: #c7d6f0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feedback-card-meta,
.feedback-item-meta {
  color: #9fb4d7;
  font-size: 12px;
}

.feedback-priority,
.feedback-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.feedback-priority.critical {
  color: #23070b;
  background: #ff7b8a;
}

.feedback-priority.warn {
  color: #1c1203;
  background: #ffd27a;
}

.feedback-priority.open {
  color: #071414;
  background: #7fd5c6;
}

.feedback-priority.muted {
  color: #ffffff;
  background: #3c4350;
}

.feedback-status {
  color: #dce8ff;
  background: rgba(159, 180, 215, 0.16);
}

.feedback-status.warn {
  color: #1c1203;
  background: #ffd27a;
}

.feedback-status.resolved {
  color: #ffffff;
  background: #3c4350;
}

.feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-reasons span {
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #9fb4d7;
  background: rgba(33, 45, 82, 0.5);
  font-size: 12px;
}

.feedback-reasons.large span {
  color: #e5f0ff;
  background: rgba(127, 213, 198, 0.14);
}

.feedback-detail-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(96, 118, 179, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(53, 67, 113, 0.72), rgba(27, 35, 62, 0.92)),
    #2a3a67;
}

.feedback-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.feedback-detail-head h3 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.15;
}

.feedback-detail-head p {
  margin: 0;
  color: #b6c9ea;
  line-height: 1.5;
}

.feedback-score {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(127, 213, 198, 0.28);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.5);
}

.feedback-score span {
  color: #9fb4d7;
  font-size: 12px;
}

.feedback-score strong {
  color: #ffffff;
  font-size: 32px;
}

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

.feedback-detail-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-user-grid,
.feedback-item-list {
  display: grid;
  gap: 10px;
}

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

.feedback-user,
.feedback-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.feedback-user strong,
.feedback-user span,
.feedback-user small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-user strong {
  color: #ffffff;
}

.feedback-user span,
.feedback-user small {
  margin-top: 5px;
  color: #9fb4d7;
  font-size: 12px;
}

.feedback-item.low-value {
  opacity: 0.72;
}

.feedback-item-top span {
  color: #071414;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #7fd5c6;
  font-size: 12px;
  font-weight: 780;
}

.feedback-item-top strong {
  color: #ffffff;
}

.feedback-item-top small {
  margin-left: auto;
  color: #9fb4d7;
}

.feedback-item p {
  margin: 10px 0;
  color: #dce8ff;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.feedback-item-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(159, 180, 215, 0.13);
}

.feedback-raw-details {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.45);
}

.feedback-raw-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: #dce8ff;
  cursor: pointer;
}

.feedback-raw-details summary strong {
  min-width: 0;
  color: #9fb4d7;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-raw-details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-raw-details pre {
  max-height: 420px;
  margin: 12px;
  white-space: pre-wrap;
}

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

.status-json-grid pre {
  max-height: 230px;
}

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

.metric {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(109, 133, 196, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(58, 76, 128, 0.82), rgba(39, 54, 96, 0.96)),
    var(--panel);
}

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

.metric-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 760;
}

.query-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.control-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.control-field span {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(42, 57, 98, 0.96);
  border: 1px solid rgba(109, 133, 196, 0.54);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  background: rgba(50, 67, 112, 0.98);
}

th.sortable {
  padding: 0;
}

.sort-head {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sort-head:hover,
.sort-head.active {
  color: var(--text);
  background: #242a35;
}

.sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: #10151a;
  background: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.sort-head:not(.active) .sort-icon {
  color: var(--muted);
  background: #323844;
}

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

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: rgba(76, 94, 149, 0.46);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0b1114;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.pill.muted {
  color: var(--text);
  background: #343a46;
}

.pill.warn {
  color: #16090b;
  background: var(--danger);
}

.subtext {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-empty,
.detail-content {
  padding: 18px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.template-editor {
  height: 100%;
  padding: 14px;
  overflow: auto;
}

.template-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.template-editor-head span,
.template-editor-head p,
.template-editor-fields span,
.template-phone-toolbar span,
.template-editor-footer span {
  color: #9fb4d7;
  font-size: 12px;
}

.template-editor-head h2 {
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: 22px;
}

.template-editor-head p {
  margin: 0;
}

.template-editor-head strong {
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.72);
  color: #ffffff;
  text-align: center;
}

.template-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.template-editor-fields label {
  display: grid;
  gap: 5px;
}

.template-editor-fields input,
.template-editor-fields select {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(116, 142, 211, 0.55);
  border-radius: 7px;
  background: rgba(14, 20, 36, 0.68);
  color: #ffffff;
}

.template-platform-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

.template-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-platform-options label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(116, 142, 211, 0.38);
  border-radius: 7px;
  background: rgba(14, 20, 36, 0.52);
}

.template-platform-options input {
  width: auto;
  height: auto;
}

.template-phone-editor {
  border: 1px solid rgba(116, 142, 211, 0.42);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 26, 30, 0.94), rgba(5, 10, 13, 0.98)),
    #090d10;
}

.template-phone-head {
  height: 54px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0 12px;
  background: rgba(38, 40, 45, 0.82);
  color: #f5f7fb;
  text-align: center;
}

.template-phone-head span {
  color: #d8dde6;
  font-size: 24px;
}

.template-phone-head strong {
  font-size: 20px;
}

.template-phone-title-input {
  min-width: 112px;
  max-width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: transparent;
  color: #f5f7fb;
  font-size: 20px;
  font-weight: 820;
  text-align: center;
}

.template-phone-title-input:focus {
  border-color: rgba(127, 213, 198, 0.42);
  background: rgba(10, 14, 22, 0.34);
}

.template-message-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  padding: 14px 12px;
  overflow: auto;
}

.template-message-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "avatar bubble"
    ". actions";
  align-items: start;
  gap: 9px;
}

.template-message-row.right {
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-areas:
    "bubble avatar"
    "actions .";
}

.template-message-row .template-avatar-button {
  grid-area: avatar;
}

.template-message-row .template-bubble {
  grid-area: bubble;
}

.template-message-row .template-message-actions {
  grid-area: actions;
  justify-self: start;
}

.template-message-row.right .template-message-actions {
  justify-self: end;
}

.template-avatar-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.template-avatar-button.left {
  background:
    linear-gradient(145deg, rgba(150, 170, 190, 0.78), rgba(58, 69, 81, 0.92)),
    #4d5c69;
}

.template-avatar-button.right {
  background:
    linear-gradient(145deg, rgba(91, 45, 123, 0.9), rgba(24, 17, 31, 0.96)),
    #211827;
}

.template-avatar-button.has-image {
  background-size: cover;
}

.template-message-row select {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(116, 142, 211, 0.44);
  border-radius: 6px;
  background: rgba(33, 45, 82, 0.7);
  color: #dce8ff;
  font-size: 12px;
}

.template-bubble {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px 8px;
  border-radius: 6px;
  background: #2b2b30;
  color: #f3f5f8;
}

.template-bubble.right {
  justify-self: end;
  background: #27c46c;
  color: #06150d;
}

.template-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 12px;
  background: inherit;
  transform: translateY(-50%);
}

.template-bubble.left::before {
  left: -8px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.template-bubble.right::before {
  right: -8px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.template-message-row textarea {
  display: block;
  width: var(--template-bubble-width, auto);
  max-width: min(208px, 100%);
  min-width: 16px;
  min-height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  overflow: hidden;
  resize: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  line-height: 1.36;
}

.template-message-actions {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 21, 27, 0.76);
}

.template-message-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce8ff;
}

.template-phone-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(36, 36, 38, 0.9);
}

.template-phone-toolbar button,
.template-editor-footer button {
  height: 34px;
  border-radius: 8px;
}

.template-editor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.template-editor-footer .primary-action {
  border-color: rgba(127, 213, 198, 0.5);
  background: linear-gradient(135deg, #26bca6, #6f6df6 58%, #9c5cff);
  color: #ffffff;
  font-weight: 820;
}

.detail-section {
  margin-bottom: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row .section-title {
  margin-bottom: 8px;
}

.ops-mode {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.ops-mode.enabled {
  color: #071414;
  background: var(--accent);
}

.ops-mode.disabled {
  color: var(--text);
  background: #343a46;
}

.safe-ops {
  padding: 12px;
  border: 1px solid rgba(127, 213, 198, 0.24);
  border-radius: 8px;
  background: rgba(24, 27, 33, 0.72);
}

.entitlement-ops {
  padding: 12px;
  border: 1px solid rgba(127, 213, 198, 0.3);
  border-radius: 8px;
  background: rgba(23, 39, 58, 0.78);
}

.entitlement-current {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.entitlement-current div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(116, 142, 211, 0.28);
  border-radius: 7px;
  background: rgba(12, 18, 33, 0.46);
}

.entitlement-current span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.entitlement-current strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
}

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

.pending-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.entitlement-form button {
  min-height: 34px;
  align-self: end;
  border-color: rgba(127, 213, 198, 0.45);
  background: linear-gradient(135deg, #26bca6, #6f6df6 58%, #9c5cff);
  color: #ffffff;
  font-weight: 820;
}

.safe-op-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.safe-op-status {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.safe-op-status.ok,
.safe-op-status.error {
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 6px;
}

.safe-op-status.ok {
  color: #08201c;
  background: rgba(127, 213, 198, 0.88);
}

.safe-op-status.error {
  color: #2a080d;
  background: rgba(255, 123, 138, 0.9);
}

.safe-op-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.safe-op-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #223052;
}

.safe-op-card.pending {
  border-style: dashed;
  background: rgba(34, 48, 82, 0.52);
}

.safe-op-card.compact {
  gap: 7px;
}

.safe-op-card h4 {
  margin: 0;
  font-size: 13px;
}

.safe-op-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.safe-op-field span {
  color: var(--muted);
  font-size: 12px;
}

.safe-op-field input,
.safe-op-field select,
.safe-op-field textarea {
  width: 100%;
  min-width: 0;
}

.safe-op-field textarea {
  min-height: 58px;
  resize: vertical;
}

.safe-op-card button {
  width: 100%;
  border-color: rgba(127, 213, 198, 0.36);
}

.safe-op-card button:disabled,
.entitlement-form button:disabled,
.safe-op-field input:disabled,
.safe-op-field select:disabled,
.safe-op-field textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.user-write-map {
  padding: 12px;
  border: 1px solid rgba(116, 142, 211, 0.28);
  border-radius: 8px;
  background: rgba(29, 42, 75, 0.58);
}

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

.write-map-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(12, 18, 33, 0.42);
}

.write-map-item.ready {
  border-color: rgba(127, 213, 198, 0.32);
}

.write-map-item.partial,
.write-map-item.warn {
  border-color: rgba(255, 210, 122, 0.34);
}

.write-map-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.write-map-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kv {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 7px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 12px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #162443;
  color: #d7dde7;
  font-size: 12px;
  line-height: 1.5;
}

.system-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d2a4b;
}

.system-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  cursor: pointer;
}

.system-details summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-details pre {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.collection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.status-line {
  margin: 0 0 12px;
  color: var(--muted);
}

.error {
  color: var(--danger);
}

.revenue-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 42, 0.7);
}

.revenue-overlay[hidden] {
  display: none;
}

.revenue-board {
  position: relative;
  width: min(1380px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(111, 138, 209, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(55, 73, 133, 0.72), rgba(31, 43, 80, 0.94) 120px),
    #223257;
  box-shadow: 0 24px 80px rgba(4, 9, 24, 0.4);
}

.revenue-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(33, 45, 82, 0.84);
}

.revenue-content {
  padding: 20px;
}

.revenue-screen {
  min-width: 1120px;
}

.revenue-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding-right: 80px;
}

.revenue-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.revenue-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 0 22px rgba(127, 213, 198, 0.28);
}

.revenue-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.revenue-range-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 410px;
}

.revenue-range-tabs button {
  height: 28px;
  padding: 0 8px;
  background: rgba(43, 56, 99, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.revenue-range-tabs button.active {
  border-color: rgba(127, 213, 198, 0.82);
  color: #ffffff;
  background: linear-gradient(135deg, #29b9a5, #7569f1);
}

.revenue-main-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.02fr) minmax(410px, 1.25fr) minmax(300px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.revenue-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(116, 142, 211, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(58, 76, 128, 0.84), rgba(40, 55, 96, 0.96)),
    #2b3b68;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 34px rgba(8, 14, 30, 0.16);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-heading h3 {
  margin: 0;
  color: #edf4ff;
  font-size: 15px;
}

.panel-heading span {
  color: #9fb4d7;
  font-size: 12px;
}

.panel-title-block {
  min-width: 0;
}

.panel-title-block h3 {
  margin-bottom: 3px;
}

.panel-title-block span {
  display: block;
}

.trend-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trend-stack .trend-panel {
  min-height: 258px;
}

.trend-stack .trend-chart {
  height: 184px;
}

.trend-stack .user-trend-chart {
  height: 164px;
}

.user-trend-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 132px;
}

.user-trend-tabs button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 166, 214, 0.5);
  border-radius: 6px;
  color: #cad8f4;
  background: rgba(29, 42, 80, 0.56);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.user-trend-tabs button.active {
  border-color: rgba(154, 216, 255, 0.82);
  color: #ffffff;
  background: linear-gradient(135deg, #3186d9, #2fb9a4);
}

.revenue-hero {
  position: relative;
  align-self: start;
  min-height: 286px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(190, 178, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(55, 96, 255, 0.96) 0%, rgba(115, 80, 255, 0.94) 48%, rgba(161, 55, 246, 0.88) 74%, rgba(56, 175, 196, 0.82) 100%),
    #3942c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 46px rgba(54, 82, 219, 0.28);
}

.revenue-hero.overview-revenue-hero {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.revenue-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.revenue-hero-top .revenue-range-tabs {
  max-width: 460px;
}

.revenue-hero-top .revenue-range-tabs button {
  background: rgba(38, 43, 86, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.revenue-hero-label {
  color: rgba(255, 255, 255, 0.82);
  min-width: 120px;
  font-size: 15px;
  font-weight: 700;
}

.revenue-amount {
  margin: 18px 0 18px;
  text-align: center;
  color: #ffffff;
  font-size: 64px;
  font-weight: 820;
  line-height: 1;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.28);
}

.revenue-rolling-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.015em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  overflow: visible;
  white-space: nowrap;
  --revenue-digit-box-height: 1.12em;
}

.revenue-digit-viewport {
  display: inline-block;
  width: 0.78em;
  height: var(--revenue-digit-box-height);
  overflow: hidden;
  vertical-align: -0.06em;
}

.revenue-digit-track {
  display: grid;
  grid-template-rows: var(--revenue-digit-box-height) var(--revenue-digit-box-height);
  transform: translateY(calc(-1 * var(--revenue-digit-box-height)));
}

.revenue-digit-track.is-rolling {
  animation: revenueDigitRoll 640ms cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: var(--revenue-roll-delay, 0ms);
}

.revenue-digit-track span,
.revenue-amount-symbol {
  display: block;
  height: var(--revenue-digit-box-height);
  line-height: var(--revenue-digit-box-height);
}

.revenue-digit-track span {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.02em;
  text-align: center;
}

.revenue-amount-symbol {
  min-width: 0.26em;
}

@keyframes revenueDigitRoll {
  0% {
    transform: translateY(0);
    filter: blur(0);
  }
  48% {
    filter: blur(0.6px);
  }
  100% {
    transform: translateY(calc(-1 * var(--revenue-digit-box-height)));
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .revenue-digit-track.is-rolling {
    animation: none;
    transform: translateY(calc(-1 * var(--revenue-digit-box-height)));
  }
}

.revenue-hero-grid,
.revenue-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.revenue-metric-grid {
  margin-top: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.revenue-metric {
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(34, 30, 88, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.revenue-metric.cyan {
  border-color: rgba(127, 213, 198, 0.36);
}

.revenue-metric.warn {
  border-color: rgba(255, 123, 138, 0.48);
}

.revenue-metric-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.revenue-metric-value {
  margin-top: 7px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 780;
}

.trend-panel {
  min-height: 300px;
}

.trend-chart {
  height: 230px;
  overflow: hidden;
}

.platform-panel {
  max-height: 322px;
  overflow: hidden;
}

.platform-panel .dimension-row {
  gap: 5px;
  padding: 6px 0;
}

.platform-panel .dimension-sub {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px 8px;
  font-size: 11px;
}

.platform-panel .dimension-main {
  font-size: 13px;
}

.platform-panel .dimension-bar {
  height: 6px;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-grid {
  stroke: rgba(190, 205, 239, 0.2);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(200, 214, 244, 0.38);
  stroke-width: 1;
}

.chart-axis-text {
  fill: #c1cdeb;
  font-size: 12px;
}

.chart-area {
  fill: url(#trendArea);
}

.chart-line {
  fill: none;
  stroke: url(#trendLine);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(130, 227, 221, 0.48));
}

.chart-point {
  fill: #ffffff;
  stroke: #7fd5c6;
  stroke-width: 2;
}

.user-chart-area {
  fill: url(#userTrendArea);
}

.user-chart-line {
  stroke: url(#userTrendLine);
}

.user-chart-point {
  stroke: #9ad8ff;
}

.trend-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: #d7e5ff;
  font-size: 12px;
}

.trend-foot span {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(28, 39, 74, 0.58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revenue-sections {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.revenue-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.region-panel,
.quality-panel {
  min-height: 250px;
}

.region-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(127, 213, 198, 0.24);
  border-radius: 8px;
  background: rgba(28, 39, 74, 0.48);
}

.region-tabs button {
  height: 30px;
  border: 0;
  background: transparent;
  color: #9fb4d7;
}

.region-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2bb9a9, #755ff1);
}

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

.revenue-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(116, 142, 211, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(58, 76, 128, 0.78), rgba(40, 55, 96, 0.94)),
    #2b3b68;
}

.revenue-section h3 {
  margin: 0 0 12px;
  color: #dfe6f2;
  font-size: 14px;
}

.dimension-row,
.hour-row {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dimension-row:first-of-type,
.hour-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.dimension-main,
.dimension-sub,
.hour-row {
  min-width: 0;
}

.dimension-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dimension-main span,
.hour-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-main strong,
.hour-row strong {
  flex: 0 0 auto;
  color: #ffffff;
}

.dimension-bar,
.hour-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 43, 80, 0.72);
}

.dimension-bar span,
.hour-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #b79cff);
}

.dimension-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}

.hour-row {
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
}

.hour-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.database-ops {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.database-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(122, 151, 224, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(50, 68, 121, 0.96), rgba(39, 54, 98, 0.96)),
    #2b3b68;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 28px rgba(11, 17, 34, 0.16);
}

.database-heading h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1;
}

.database-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.database-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(122, 151, 224, 0.42);
  border-radius: 8px;
  background: rgba(39, 54, 98, 0.72);
}

.database-compact-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.database-compact-title strong {
  color: #ffffff;
  font-size: 16px;
}

.database-compact-title small,
.database-compact-head p {
  color: #9fb4d7;
  font-size: 12px;
}

.database-compact-head p {
  margin: 0;
  text-align: right;
}

.database-tools-drawer {
  border: 1px solid rgba(116, 142, 211, 0.44);
  border-radius: 8px;
  background: rgba(29, 42, 75, 0.44);
}

.database-tools-drawer summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: #dce8ff;
  cursor: pointer;
}

.database-tools-drawer summary span {
  color: #ffffff;
  font-weight: 820;
}

.database-tools-drawer summary small {
  color: #9fb4d7;
  font-size: 12px;
}

.database-tools-drawer[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.database-tools-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.database-tools-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.database-tools-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.database-tools-head p {
  margin: 5px 0 0;
  color: #9fb4d7;
  font-size: 12px;
}

.database-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.database-toolbar button:first-child {
  border-color: rgba(127, 213, 198, 0.5);
  background: linear-gradient(135deg, #26bca6, #6f6df6 58%, #9c5cff);
  font-weight: 780;
}

.database-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.database-card,
.database-panel {
  min-width: 0;
  border: 1px solid rgba(116, 142, 211, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(58, 76, 128, 0.84), rgba(40, 55, 96, 0.96)),
    #2b3b68;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.database-card {
  min-height: 98px;
  padding: 13px;
}

.database-card span,
.database-card small,
.database-count-row span,
.database-preview-head span,
.database-preview-empty {
  color: #9fb4d7;
  font-size: 12px;
}

.database-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.database-action-status {
  padding: 10px 12px;
  border: 1px solid rgba(127, 213, 198, 0.32);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.52);
  color: #dce8ff;
}

.write-ops-workbench {
  padding: 14px;
}

.write-op-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.write-op-card {
  min-width: 0;
  min-height: 154px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(116, 142, 211, 0.38);
  border-radius: 8px;
  background: rgba(27, 39, 72, 0.7);
}

.write-op-card.ready {
  border-color: rgba(127, 213, 198, 0.38);
}

.write-op-card.partial {
  border-color: rgba(255, 210, 122, 0.35);
}

.write-op-head,
.write-op-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.write-op-card h4,
.governance-card h4 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.write-op-card p {
  margin: 0;
  color: #cbd7f2;
  font-size: 12px;
}

.write-op-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 15px;
  color: #9fb4d7;
  font-size: 11px;
  line-height: 1.35;
}

.write-op-status {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.write-op-status.ready {
  color: #071414;
  background: var(--accent);
}

.write-op-status.partial {
  color: #1b1204;
  background: #ffd27a;
}

.write-op-status.pending {
  color: #dce8ff;
  background: #343a46;
}

.write-op-foot span {
  min-width: 0;
  overflow: hidden;
  color: #9fb4d7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.write-op-foot button {
  height: 28px;
  padding: 0 8px;
  border-color: rgba(127, 213, 198, 0.28);
  font-size: 12px;
}

.governance-config-panel {
  padding: 14px;
}

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

.governance-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(116, 142, 211, 0.36);
  border-radius: 8px;
  background: rgba(27, 39, 72, 0.58);
}

.governance-card.high-risk {
  border-color: rgba(255, 123, 138, 0.34);
}

.governance-card textarea {
  min-height: 64px;
  resize: vertical;
}

.governance-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.database-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.database-warning-list span {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1b1204;
  background: #ffd27a;
  font-size: 12px;
  font-weight: 760;
}

.database-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.database-panel {
  padding: 14px;
}

.database-remote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.48);
}

.database-remote-head p {
  margin: 0;
  color: #c9d7f3;
  font-size: 13px;
  text-align: right;
}

.database-remote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.database-remote-compact {
  margin-top: 0;
  background: rgba(14, 20, 36, 0.22);
}

.database-remote-compact summary strong {
  color: #9fb4d7;
  font-size: 12px;
  font-weight: 700;
}

.database-remote-compact-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.database-template-panel {
  overflow: hidden;
}

.database-template-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.database-template-card,
.database-template-empty {
  min-width: 0;
  min-height: 70px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.database-template-card {
  display: flex;
  height: 70px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  overflow: hidden;
  text-align: left;
  cursor: grab;
}

.database-template-card:hover,
.database-template-card.active,
.database-template-card.drag-over {
  border-color: rgba(127, 213, 198, 0.62);
  background: rgba(45, 67, 118, 0.78);
}

.database-template-card.is-hidden {
  border-style: dashed;
  background: rgba(33, 45, 82, 0.3);
}

.database-template-card.active {
  box-shadow: inset 0 0 0 1px rgba(127, 213, 198, 0.25);
}

.database-template-card.dragging {
  opacity: 0.55;
}

.database-template-card span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.database-template-hidden-badge {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 210, 122, 0.2);
  color: #ffd27a;
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
}

.database-template-card small {
  display: -webkit-box;
  overflow: hidden;
  color: #b9c8e4;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.database-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(33, 45, 82, 0.46);
}

.database-count-row strong {
  color: #ffffff;
  font-size: 18px;
}

.database-mini-table {
  background: rgba(33, 45, 82, 0.5);
}

.database-mini-table th,
.database-mini-table td {
  padding: 8px;
}

.database-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.database-actions button,
.download-link {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(127, 213, 198, 0.34);
  border-radius: 6px;
  background: rgba(33, 45, 82, 0.74);
  color: #f7fbff;
  font-size: 12px;
  text-decoration: none;
}

.database-preview,
.database-preview-empty {
  margin-top: 10px;
}

.database-preview-empty {
  padding: 12px;
  border: 1px dashed rgba(159, 180, 215, 0.38);
  border-radius: 8px;
}

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

.database-preview-head strong {
  display: block;
  color: #ffffff;
}

.database-mini-table .positive {
  color: #8bd17c;
}

.database-mini-table .negative {
  color: #ff7b8a;
}

.database-technical {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(14, 20, 36, 0.32);
}

.database-technical summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: #dce8ff;
  cursor: pointer;
}

.database-technical summary span {
  color: #9fb4d7;
  font-size: 12px;
}

.database-technical pre {
  max-height: 300px;
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .topbar {
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  input[type="search"] {
    width: 100%;
  }

  .layout {
    display: block;
  }

  .panel {
    height: auto;
    max-height: none;
  }

  .detail-pane {
    min-height: 360px;
  }

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

  .overview-heading {
    display: block;
  }

  .overview-heading .revenue-range-tabs {
    margin-top: 12px;
  }

  .overview-main-grid,
  .overview-bottom-grid,
  .overview-metric-grid,
  .overview-server-strip,
  .system-overview-grid,
  .system-headline,
  .system-primary-grid,
  .system-stat-grid,
  .system-detail-grid,
  .database-card-grid,
  .database-remote-grid,
  .database-split,
  .write-op-grid,
  .governance-config-grid,
  .write-map-grid,
  .server-status-strip,
  .watch-list,
  .server-metric-grid,
  .server-secondary,
  .server-info-grid,
  .service-row,
  .feedback-heading,
  .feedback-metric-grid,
  .feedback-layout,
  .feedback-detail-head,
  .feedback-detail-grid,
  .feedback-user-grid,
  .status-json-grid {
    grid-template-columns: 1fr;
  }

  .server-heading {
    display: block;
  }

  .database-compact-head,
  .database-tools-head {
    display: block;
  }

  .database-compact-head p,
  .database-tools-head .database-toolbar {
    margin-top: 10px;
    text-align: left;
  }

  .database-tools-drawer summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 9px 13px;
  }

  .server-heading button {
    margin-top: 12px;
  }

  .system-detail-panel {
    grid-column: auto;
  }

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

  .template-editor-fields,
  .template-platform-options,
  .template-phone-toolbar,
  .template-editor-footer,
  .entitlement-current,
  .entitlement-form,
  .pending-field-grid,
  .safe-op-grid,
  .safe-op-grid.single {
    grid-template-columns: 1fr;
  }

  .template-message-row,
  .template-message-row.right {
    align-items: stretch;
  }

  .template-message-row textarea {
    max-width: 100%;
  }

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

  .revenue-overlay {
    padding: 10px;
  }

  .revenue-board {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .revenue-content {
    padding: 16px;
  }

  .revenue-screen {
    min-width: 0;
  }

  .revenue-heading {
    display: block;
    padding-right: 0;
  }

  .revenue-close {
    position: sticky;
    top: 10px;
    float: right;
  }

  .revenue-range-tabs {
    margin-top: 12px;
  }

  .revenue-amount {
    font-size: 40px;
  }

  .revenue-hero-grid,
  .revenue-metric-grid,
  .revenue-main-grid,
  .revenue-bottom-grid,
  .revenue-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .revenue-main-grid,
  .revenue-bottom-grid {
    grid-template-columns: 1fr;
  }

  .revenue-sections {
    display: grid;
  }

  .revenue-section {
    grid-column: 1 / -1;
  }
}
