/* Partner dashboard presentation matched to PrimeX Team. Content and behavior remain unchanged. */
html {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #06080d;
}

body:not(.auth-locked) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(112, 168, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 12% 90%, rgba(216, 181, 69, 0.075), transparent 34rem),
    #06080d;
  background-attachment: fixed;
}

.app-shell {
  --team-bg: #06080d;
  --team-surface: #0c111a;
  --team-surface-2: #111824;
  --team-line: rgba(255, 255, 255, 0.085);
  --team-gold: #d8b545;
  --team-gold-light: #f3d976;
  --team-blue: #70a8ff;
  --team-green: #61d7a1;
  --team-violet: #a889f7;
  --team-text: #f4f5f8;
  --team-muted: #8f98a8;
  --team-muted-2: #657083;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--team-text);
  background: transparent;
}

.app-shell .site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: block;
  width: 268px;
  min-height: 100vh;
  padding: 26px 22px;
  border: 0;
  border-right: 1px solid var(--team-line);
  background: linear-gradient(rgba(8, 12, 18, 0.96), rgba(8, 12, 18, 0.98));
  backdrop-filter: none;
}

.notification-center { position: absolute; top: 20px; right: 18px; z-index: 80; }
.notification-toggle { display: grid; place-items: center; position: relative; width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid rgba(216,181,69,.3); border-radius: 50%; color: var(--team-gold-light); background: rgba(216,181,69,.07); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.notification-toggle:hover { border-color: rgba(243,217,118,.6); background: rgba(216,181,69,.13); transform: translateY(-1px); }
.notification-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-unread-dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border: 2px solid #0b121e; border-radius: 50%; background: #f04455; box-shadow: 0 0 0 2px rgba(240,68,85,.16); }
.notification-unread-dot[hidden] { display: none; }

.push-alert-bar { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; margin: 0 0 24px; padding: 11px 12px; border: 1px solid rgba(112,168,255,.18); border-radius: 8px; background: rgba(112,168,255,.045); }
.push-alert-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(112,168,255,.26); border-radius: 8px; color: var(--team-blue); background: rgba(112,168,255,.08); }
.push-alert-symbol svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-alert-copy { display: grid; min-width: 0; gap: 2px; }
.push-alert-copy strong { color: var(--team-text); font-size: .75rem; }
.push-alert-copy small { overflow: hidden; color: var(--team-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.push-alert-action { min-width: 110px; min-height: 36px; margin: 0; padding: 0 13px; border: 1px solid rgba(216,181,69,.38); border-radius: 7px; color: #080d16; background: linear-gradient(135deg,var(--team-gold-light),var(--team-gold)); font: 800 .63rem Montserrat,sans-serif; cursor: pointer; }
.push-alert-action:disabled { cursor: default; opacity: .52; }
.push-alert-bar.is-enabled { border-color: rgba(97,215,161,.22); background: rgba(97,215,161,.045); }
.push-alert-bar.is-enabled .push-alert-symbol { border-color: rgba(97,215,161,.28); color: var(--team-green); background: rgba(97,215,161,.08); }
.push-alert-bar.is-enabled .push-alert-action { border-color: rgba(143,152,168,.25); color: #c8ced9; background: #121a27; }
.push-alert-bar.is-unavailable { opacity: .7; }

body.notification-drawer-open { overflow: hidden; }
.notification-layer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.notification-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; opacity: 0; background: rgba(2,5,10,.64); cursor: default; transition: opacity .22s ease; }
.notification-drawer { position: absolute; top: 0; right: 0; display: grid; grid-template-rows: auto minmax(0,1fr); width: min(390px,100%); height: 100%; color: #f4f5f8; background: #090f19; border-left: 1px solid rgba(255,255,255,.1); box-shadow: -24px 0 70px rgba(0,0,0,.46); transform: translateX(102%); transition: transform .24s ease; }
.notification-layer.is-open { pointer-events: auto; }
.notification-layer.is-open .notification-backdrop { opacity: 1; }
.notification-layer.is-open .notification-drawer { transform: translateX(0); }
.notification-drawer > header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.085); }
.notification-drawer > header > span { display: grid; gap: 3px; }
.notification-drawer > header small { color: #d8b545; font: 800 .55rem Montserrat,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.notification-drawer > header strong { color: #f4f5f8; font: 750 1rem Montserrat,sans-serif; }
.notification-close { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; color: #c8ced9; background: #101826; cursor: pointer; }
.notification-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.notification-history { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.notification-history-item { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: start; gap: 11px; width: 100%; min-height: 74px; margin: 0; padding: 15px 18px; border: 0; border-bottom: 1px solid rgba(255,255,255,.075); border-radius: 0; color: #f4f5f8; background: transparent; text-align: left; cursor: pointer; }
.notification-history-item:hover { background: rgba(112,168,255,.055); }
.notification-kind-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #657083; }
.notification-history-item.is-unread .notification-kind-dot { background: #f04455; box-shadow: 0 0 0 4px rgba(240,68,85,.1); }
.notification-item-copy { display: grid; min-width: 0; gap: 4px; }
.notification-item-copy strong { overflow: hidden; font: 750 .72rem Montserrat,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy small { color: #8f98a8; font: 500 .63rem Montserrat,sans-serif; line-height: 1.45; }
.notification-history-item time { padding-top: 1px; color: #657083; font: 650 .53rem Montserrat,sans-serif; white-space: nowrap; }
.notification-empty { display: grid; place-items: center; align-content: center; min-height: 240px; padding: 30px; color: #657083; text-align: center; }
.notification-empty strong { color: #c8ced9; font-size: .78rem; }
.notification-empty span { margin-top: 6px; font-size: .62rem; }

.app-shell .site-header .brand {
  padding: 3px 6px 25px;
}

.app-shell .site-header .brand img {
  width: 163px;
}

.app-shell .site-header .brand em {
  padding: 0.27rem 0.42rem;
  border-color: rgba(216, 181, 69, 0.38);
  color: var(--team-gold-light);
  background: rgba(216, 181, 69, 0.08);
  font-size: 0.48rem;
}

.app-shell .header-copy {
  gap: 3px;
  padding: 18px 6px 0;
  border: 0;
  border-top: 1px solid var(--team-line);
}

.app-shell .header-copy span {
  color: #c8ced9;
  font-size: 0.68rem;
}

.app-shell .header-copy small {
  color: var(--team-muted-2);
  font-size: 0.56rem;
}

.app-shell main {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0 0 0 268px;
  padding: 34px clamp(20px, 3vw, 48px) 64px;
}

.app-shell .view,
.app-shell .metric-grid,
.app-shell .filters,
.app-shell .result-panel {
  min-width: 0;
  max-width: 100%;
}

.app-shell .hero {
  display: block;
  min-height: 0;
  margin: 0 0 26px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .hero::after,
.app-shell .hero-network {
  display: none;
}

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

.app-shell .hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 550;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.app-shell .eyebrow {
  color: var(--team-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.app-shell .report-tabs {
  position: fixed;
  top: 150px;
  bottom: auto;
  left: 16px;
  z-index: 45;
  display: grid;
  width: 236px;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
}

.app-shell .tab {
  min-height: 62px;
  gap: 11px;
  padding: 9px 11px;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  color: #7e899b;
  font-size: 0.73rem;
}

.app-shell .tab i {
  width: 34px;
  height: 34px;
  border-color: transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
}

.app-shell .tab small {
  color: var(--team-muted-2);
  font-size: 0.56rem;
  font-weight: 500;
}

.app-shell .tab b {
  color: var(--team-muted-2);
  font-size: 0.5rem;
}

.app-shell .tab.active {
  border-color: rgba(216, 181, 69, 0.13);
  color: var(--team-gold);
  background: linear-gradient(90deg, rgba(216, 181, 69, 0.09), rgba(216, 181, 69, 0.02));
}

.app-shell .tab.active::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  content: "";
  background: var(--team-gold);
  box-shadow: 0 0 12px rgba(216, 181, 69, 0.45);
}

.app-shell .apply-button {
  min-height: 38px;
  padding: 0 13px;
  border-color: rgba(216, 181, 69, 0.28);
  border-radius: 10px;
  color: #17130a;
  background: linear-gradient(135deg, var(--team-gold-light), var(--team-gold));
  font-size: 0.65rem;
  font-weight: 700;
}

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

.app-shell #overviewView .metric-grid {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  contain: inline-size;
  grid-template-columns: 1fr;
  gap: 8px;
}

.app-shell #overviewView {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  contain: inline-size;
}

.app-shell #overviewView .daily-panel-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.app-shell .loading-card {
  min-height: 155px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  box-shadow: none;
}

.app-shell .filters,
.app-shell .result-panel {
  padding: 20px;
  border: 1px solid var(--team-line);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 55%), var(--team-surface);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.13);
}

.app-shell .filters {
  margin-bottom: 13px;
}

.app-shell .filter-grid {
  gap: 10px;
}

.app-shell .filter-grid[hidden] {
  display: none;
}

.app-shell .filter-grid > [hidden] {
  display: none !important;
}

.app-shell .filter-toggle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--team-text);
  font: inherit;
  text-align: left;
}

.app-shell .filter-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .filter-icon circle {
  fill: #080d14;
  stroke: currentColor;
  stroke-width: 1.8;
}

.app-shell .filter-trigger-copy {
  display: none;
}

.app-shell .filter-chevron {
  display: block;
}

.app-shell .filter-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(215, 178, 65, 0.36);
  border-radius: 11px;
  background: rgba(215, 178, 65, 0.07);
  color: var(--team-gold-light);
}

.app-shell .filter-grid:not([hidden]) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--team-line);
}

.app-shell .result-panel .filters:has(.filter-grid[hidden]) {
  display: none;
}

.app-shell .result-panel .filters {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .result-summary .filter-toggle {
  width: 56px;
  min-height: 38px;
  flex: 0 0 auto;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--team-line);
  background: rgba(255, 255, 255, 0.02);
}

.app-shell .result-summary .filter-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(215, 178, 65, 0.1);
}

.app-shell .result-summary .filter-icon svg {
  width: 15px;
  height: 15px;
}

.app-shell .filter-date-range {
  margin-left: auto;
  color: var(--team-muted);
  font-size: 0.6rem;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .app-shell .result-summary {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .app-shell .filter-date-range {
    font-size: 0.54rem;
  }
}

.app-shell .filter-grid label {
  color: var(--team-muted);
  font-size: 0.6rem;
}

.app-shell .filter-grid input,
.app-shell .filter-grid select {
  min-height: 42px;
  border-color: var(--team-line);
  border-radius: 10px;
  background: #080d14;
  font-size: 0.72rem;
}

.app-shell .result-summary {
  border-color: var(--team-line);
}

.app-shell .result-summary span {
  font-size: 0.75rem;
  font-weight: 700;
}

.app-shell #reportView,
.app-shell #reportView .filters,
.app-shell #reportView .filter-grid,
.app-shell #reportView .result-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.app-shell #reportView .filter-grid > * {
  min-width: 0;
  max-width: 100%;
}

.app-shell .report-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

.app-shell .report-history {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  padding-top: 16px;
}

.app-shell .activity-stat-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 16px;
}

.app-shell .activity-stat-grid[hidden] {
  display: none;
}

.app-shell #reportView .activity-stat-grid,
.app-shell #reportView .report-history,
.app-shell #reportView .report-pagination {
  transition: opacity 180ms ease-out;
}

.app-shell #reportView.is-loading .activity-stat-grid,
.app-shell #reportView.is-loading .report-history,
.app-shell #reportView.is-loading .report-pagination {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell #reportView .activity-stat-grid,
  .app-shell #reportView .report-history,
  .app-shell #reportView .report-pagination { transition: none; }
}

.app-shell #reportView.activity-view .activity-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell .activity-stat-grid > .report-history,
.app-shell .activity-stat-grid > .report-pagination {
  grid-column: 1 / -1;
}

.app-shell .activity-stat-grid > .report-history {
  margin: 0 0 5px 9px;
  padding: 10px 0 2px 12px;
  border-left: 1px solid rgba(216, 181, 69, 0.34);
}

.app-shell .activity-stat-grid > .report-pagination {
  padding: 8px 0 6px 12px;
}

.app-shell .activity-stat-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 14px;
  align-items: center;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 14px;
  color: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  font: inherit;
  text-align: left;
}

.app-shell .activity-stat-card span,
.app-shell .activity-stat-card strong,
.app-shell .activity-stat-card small {
  min-width: 0;
  grid-column: 1;
  overflow-wrap: anywhere;
}

.app-shell .activity-stat-card span {
  padding-right: 72px;
  color: var(--team-muted);
  font-size: 0.61rem;
  font-weight: 650;
}

.app-shell .activity-stat-card strong {
  color: var(--team-text);
  font-size: 1.2rem;
  line-height: 1.15;
}

.app-shell .activity-stat-card small {
  color: var(--team-muted-2);
  font-size: 0.55rem;
}

.app-shell .activity-stat-card em {
  grid-row: 1 / 4;
  grid-column: 2;
  color: var(--team-gold-light);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.app-shell .activity-stat-card .activity-stat-unit {
  position: absolute;
  top: 11px;
  right: 11px;
  display: block;
  padding: 3px 7px;
  border: 1px solid rgba(73, 202, 154, 0.42);
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  color: #75e0b8;
  background: rgba(73, 202, 154, 0.09);
}

.app-shell .activity-stat-card.selected {
  border-color: rgba(216, 181, 69, 0.42);
  background: linear-gradient(90deg, rgba(216, 181, 69, 0.08), rgba(255, 255, 255, 0.012));
}

.app-shell .activity-stat-card.static {
  cursor: default;
}

.app-shell #reportView.commission-view .activity-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-shell #reportView.commission-view .commission-total-card {
  grid-column: 1 / -1;
  min-height: 104px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  align-content: center;
  border-color: rgba(216, 181, 69, 0.34);
  background: linear-gradient(100deg, rgba(216, 181, 69, 0.1), rgba(255, 255, 255, 0.012));
}

.app-shell #reportView.commission-view .commission-total-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell #reportView.commission-view .commission-category-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-shell #reportView.commission-view .commission-mini-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 181, 69, 0.18);
}

.app-shell #reportView.commission-view .commission-mini-grid .commission-mini-card {
  grid-column: auto;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 10px;
}

.app-shell #reportView.commission-view .commission-mini-grid .commission-mini-card span {
  font-size: 0.52rem;
}

.app-shell #reportView.commission-view .commission-mini-grid .commission-mini-card strong {
  font-size: 0.78rem;
}

.app-shell .commission-table-component {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.app-shell #reportView.commission-view .report-history {
  padding-top: 6px;
}

.app-shell #reportView.commission-view .commission-table-component {
  margin-top: 0;
}

.app-shell .commission-table-component > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-shell .commission-table-component > header span {
  color: var(--team-white);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-shell .commission-table-component > header small {
  color: var(--team-muted);
  font-size: 0.56rem;
}

.app-shell .commission-table {
  min-width: 980px;
}

.app-shell .commission-table th,
.app-shell .commission-table td {
  white-space: nowrap;
}

.app-shell #reportView.commission-view .commission-total-card strong {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.app-shell #reportView.commission-view .commission-mini-card {
  grid-column: span 2;
  min-height: 96px;
  padding-block: 15px;
}

.app-shell #reportView.commission-view .commission-category-card {
  min-height: 123px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  padding: 21px 18px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.app-shell #reportView.commission-view .commission-category-card .activity-stat-unit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  grid-row: auto;
  grid-column: auto;
  color: #75e0b8;
}

.app-shell #reportView.commission-view .commission-category-card span,
.app-shell #reportView.commission-view .commission-category-card strong,
.app-shell #reportView.commission-view .commission-category-card small {
  width: 100%;
  grid-column: 1;
  text-align: center;
  overflow-wrap: normal;
}

.app-shell #reportView.commission-view .commission-category-card span {
  padding-right: 0;
}

.app-shell #reportView.commission-view .commission-category-card strong,
.app-shell #reportView.commission-view .commission-mini-card strong {
  font-size: 1.5rem;
}

.app-shell #reportView.commission-view .commission-category-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  letter-spacing: -0.035em;
  text-overflow: clip;
  white-space: nowrap;
}

.app-shell #reportView.commission-view .commission-category-card.type-direct {
  border-color: rgba(224, 179, 45, 0.48);
  background: rgba(224, 179, 45, 0.08);
}

.app-shell #reportView.commission-view .commission-category-card.type-direct strong { color: var(--team-gold-light); }

.app-shell #reportView.commission-view .commission-category-card.type-binary {
  border-color: rgba(82, 147, 235, 0.5);
  background: rgba(82, 147, 235, 0.09);
}

.app-shell #reportView.commission-view .commission-category-card.type-binary strong { color: #8bbcff; }

.app-shell #reportView.commission-view .commission-category-card.type-matching {
  border-color: rgba(73, 202, 154, 0.5);
  background: rgba(73, 202, 154, 0.09);
}

.app-shell #reportView.commission-view .commission-category-card.type-matching strong { color: #75e0b8; }

.app-shell #reportView.commission-view .commission-category-card.type-other {
  border-color: rgba(151, 158, 173, 0.38);
  background: rgba(151, 158, 173, 0.06);
}

.app-shell #reportView.commission-view .commission-category-card.type-other strong { color: var(--team-muted); }

@media (max-width: 780px) {
  .app-shell #reportView.commission-view .activity-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell #reportView.commission-view .commission-mini-card {
    grid-column: span 1;
  }

  .app-shell #reportView.commission-view .commission-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 10px;
  }

  .app-shell #reportView.commission-view .commission-category-card {
    min-height: 88px;
    padding: 18px 5px 10px;
  }

  .app-shell #reportView.commission-view .commission-category-card .activity-stat-unit {
    top: 6px;
    right: 6px;
    padding: 2px 4px;
    font-size: 0.42rem;
  }

  .app-shell #reportView.commission-view .commission-category-card span {
    font-size: 0.48rem;
  }

  .app-shell #reportView.commission-view .commission-category-card strong {
    font-size: clamp(0.72rem, 3vw, 1rem);
  }

  .app-shell #reportView.commission-view .commission-category-card small {
    font-size: 0.44rem;
  }
}

.app-shell .report-pagination[hidden] {
  display: none;
}

.app-shell .report-pagination button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--team-line);
  border-radius: 9px;
  color: #d7dbe3;
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
}

.app-shell .report-pagination button:disabled {
  cursor: default;
  opacity: 0.38;
}

.app-shell .report-pagination span {
  min-width: 76px;
  color: var(--team-muted);
  font-size: 0.62rem;
  text-align: center;
}

.app-shell table {
  font-size: 0.72rem;
}

.app-shell th,
.app-shell td {
  padding: 12px 10px;
  border-color: var(--team-line);
}

.app-shell th {
  color: var(--team-muted);
  font-size: 0.58rem;
}

.app-shell .mobile-nav {
  display: none;
}

@media (max-width: 1120px) {
  .app-shell .site-header { width: 238px; }
  .app-shell main { margin-left: 238px; }
  .app-shell .report-tabs { width: 206px; }
  .app-shell .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .app-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .app-shell .site-header {
    position: sticky;
    top: 0;
    display: flex;
    width: 100%;
    min-height: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--team-line);
    background: rgba(6, 8, 13, 0.9);
    backdrop-filter: blur(18px);
  }

  .notification-center { top: 50%; right: 14px; transform: translateY(-50%); }
  .notification-toggle { width: 40px; height: 40px; }

  .notification-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(78dvh, 680px);
    border: 1px solid rgba(255,255,255,.1);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    transform: translateY(102%);
  }

  .notification-layer.is-open .notification-drawer { transform: translateY(0); }
  .notification-drawer::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); transform: translateX(-50%); }
  .notification-drawer > header { min-height: 72px; padding: 20px 16px 12px; }
  .notification-history-item { padding: 14px 16px; }

  .app-shell .site-header .brand {
    padding: 0;
  }

  .app-shell .site-header .brand img {
    width: 86px;
  }

  .app-shell .site-header .brand em {
    font-size: 0.42rem;
  }

  .app-shell .header-copy,
  .app-shell .report-tabs {
    display: none;
  }

  .app-shell main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 24px 16px calc(112px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .push-alert-bar { grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; margin-bottom: 18px; padding: 9px; }
  .push-alert-symbol { width: 34px; height: 34px; }
  .push-alert-copy strong { font-size: .68rem; }
  .push-alert-copy small { font-size: .56rem; }
  .push-alert-action { min-width: 94px; min-height: 34px; padding: 0 10px; font-size: .57rem; }

  .app-shell .hero {
    margin-bottom: 22px;
  }

  .app-shell #reportView .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell #reportView .filter-grid > :nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .app-shell .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 1fr);
    padding: 5px 7px env(safe-area-inset-bottom);
    border-top: 1px solid var(--team-line);
    background: rgba(7, 10, 15, 0.94);
    backdrop-filter: blur(18px);
  }

  .app-shell .mobile-nav button {
    align-content: center;
    gap: 4px;
    color: var(--team-muted-2);
    font-size: 0.56rem;
  }

  .app-shell .mobile-nav i {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    font-size: 1.05rem;
  }

  .app-shell .mobile-nav button.active {
    color: var(--team-gold-light);
  }
}

@media (max-width: 620px) {
  .app-shell .hero h1 {
    font-size: 2.15rem;
  }

  .app-shell .loading-card {
    min-height: 140px;
    padding: 16px;
  }

  .app-shell .filters,
  .app-shell .result-panel {
    padding: 16px;
  }

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

  .app-shell .report-pagination {
    justify-content: space-between;
    gap: 8px;
  }
}

/* Keep the Activity date toolbar and expanded filter controls on one baseline. */
.app-shell #reportView.activity-view .activity-date-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 45px;
  align-items: end;
}

.app-shell #reportView.activity-view .activity-date-controls input,
.app-shell #reportView.activity-view .activity-date-controls .filter-toggle {
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  min-height: 45px;
  max-height: 45px;
}

.app-shell #reportView.activity-view .activity-date-controls .filter-toggle {
  min-width: 45px;
  padding: 3px;
  justify-content: center;
}

.app-shell #reportView.activity-view .activity-date-controls .filter-icon {
  width: 37px;
  height: 37px;
  flex-basis: 37px;
}

.app-shell #reportView.activity-view .filter-grid {
  align-items: end;
}

.app-shell #reportView.activity-view .filter-grid label {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-rows: auto 45px;
  gap: 7px;
}

.app-shell #reportView.activity-view .filter-grid input,
.app-shell #reportView.activity-view .filter-grid select,
.app-shell #reportView.activity-view .filter-grid .apply-button {
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  min-height: 45px;
  max-height: 45px;
  margin: 0;
}

.app-shell #reportView.activity-view .filter-grid input,
.app-shell #reportView.activity-view .filter-grid select {
  padding: 10px 12px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.app-shell #reportView.commission-view .filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell #reportView.commission-view #primaryUserField {
  grid-column: 1;
  grid-row: 1;
}

.app-shell #reportView.commission-view #sponsorField {
  grid-column: 2;
  grid-row: 1;
}

.app-shell #reportView.commission-view #typeField {
  grid-column: 1;
  grid-row: 2;
}

.app-shell #reportView.commission-view #excludeField {
  grid-column: 2;
  grid-row: 2;
}

.app-shell #reportView.commission-view #perPageField {
  grid-column: 1;
  grid-row: 3;
}

.app-shell #reportView.commission-view .apply-button {
  grid-column: 2;
  grid-row: 3;
}

@media (max-width: 390px) {
  .app-shell main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-shell .loading-card {
    min-width: 0;
    padding: 13px;
  }

  .app-shell .filter-grid {
    grid-template-columns: 1fr;
  }

  .app-shell #reportView .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .app-shell #reportView .filter-grid #primaryUserField,
  .app-shell #reportView .filter-grid #excludeField {
    grid-column: auto;
  }
}

.app-shell #overviewView .daily-week-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  opacity: 1;
  transition: opacity 180ms ease-out;
}

.app-shell #overviewView .daily-week-grid.is-loading { opacity: 0.18; }

@media (prefers-reduced-motion: reduce) {
  .app-shell #overviewView .daily-week-grid { transition: none; }
}

.app-shell .daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.app-shell .daily-summary-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 154px;
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--team-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(224, 179, 45, 0.07), rgba(255, 255, 255, 0.012));
}

.app-shell .daily-summary-card span {
  color: var(--team-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.app-shell .daily-summary-card strong {
  margin-top: 10px;
  color: var(--team-white);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.app-shell .daily-summary-note {
  margin: -9px 0 0;
  color: var(--team-muted);
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}

.app-shell .daily-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 8px;
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--team-line);
}

.app-shell .daily-date-button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 8px 5px;
  color: var(--team-muted-2);
  font: inherit;
  border: 1px solid var(--team-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-shell .daily-date-button:hover,
.app-shell .daily-date-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(224, 179, 45, 0.5);
}

.app-shell .daily-date-button.active {
  color: #17130a;
  border-color: transparent;
  background: linear-gradient(145deg, #f8dd73, #dfae22);
}

.app-shell .daily-date-button small {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-shell .daily-date-button strong {
  font-size: 1.08rem;
}

.app-shell .daily-day-panels,
.app-shell .daily-selected-day {
  min-width: 0;
}

.app-shell .daily-selected-day[hidden] {
  display: none;
}

.app-shell .daily-selected-day h3 {
  margin: 0 0 12px;
  color: var(--team-white);
  font-size: 0.86rem;
}

.app-shell .daily-selected-day h3 span {
  margin-left: 7px;
  color: var(--team-muted);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-shell .daily-day-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
}

.app-shell .daily-day-metric {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  padding: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid var(--team-line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.032), rgba(224, 179, 45, 0.025));
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.app-shell .daily-currency-unit {
  position: absolute;
  top: 11px;
  right: 11px;
  display: block;
  padding: 3px 7px;
  border: 1px solid rgba(73, 202, 154, 0.2);
  border-radius: 999px;
  color: #75e0b8;
  background: rgba(73, 202, 154, 0.09);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.app-shell .daily-day-metric > span {
  padding-right: 54px;
}

@media (max-width: 900px) {
  .app-shell .daily-day-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
  }
}

.app-shell .daily-day-metric:hover,
.app-shell .daily-day-metric:focus-visible,
.app-shell .daily-day-metric.active {
  transform: translateY(-2px);
  border-color: rgba(224, 179, 45, 0.58);
  background: linear-gradient(135deg, rgba(224, 179, 45, 0.095), rgba(255, 255, 255, 0.025));
}

.app-shell .daily-day-metric span {
  display: block;
  color: var(--team-muted-2);
  font-size: 0.7rem;
  font-weight: 800;
}

.app-shell .daily-day-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--team-text);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.app-shell .daily-day-metric small {
  display: block;
  margin-top: 14px;
  color: var(--team-gold-light);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-shell .daily-detail {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--team-line);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
}

.app-shell .daily-detail[hidden] { display: none; }

.app-shell .daily-detail h4 {
  margin: 0 0 12px;
  color: var(--team-white);
  font-size: 0.84rem;
}

.app-shell .daily-detail-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.app-shell .daily-detail table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.app-shell .commission-detail-scroll table {
  width: max-content;
  min-width: 100%;
}

.app-shell .commission-detail-scroll th,
.app-shell .commission-detail-scroll td {
  min-width: 120px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.app-shell .daily-detail th,
.app-shell .daily-detail td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--team-line);
  overflow-wrap: anywhere;
}

.app-shell .daily-detail th {
  color: var(--team-gold-light);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.app-shell .daily-detail td { color: var(--team-muted-2); }

.app-shell .commission-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  color: var(--team-gold-light);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(224, 179, 45, 0.5);
  border-radius: 999px;
  background: rgba(224, 179, 45, 0.08);
}

.app-shell .commission-type-badge.type-binary { color: #8bbcff; border-color: rgba(82, 147, 235, 0.55); background: rgba(82, 147, 235, 0.09); }
.app-shell .commission-type-badge.type-matching { color: #75e0b8; border-color: rgba(73, 202, 154, 0.55); background: rgba(73, 202, 154, 0.09); }
.app-shell .commission-type-badge.type-other { color: var(--team-muted-2); border-color: rgba(151, 158, 173, 0.42); background: rgba(151, 158, 173, 0.06); }

.app-shell .activity-table-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--team-line);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
}

.app-shell #reportView.activity-view > .result-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell #reportView.activity-view .result-summary { display: none; }
.app-shell #reportView.activity-view .result-summary > div { display: none; }
.app-shell #reportView.activity-view .filters { display: block; }

.app-shell .activity-date-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0 2px;
}

.app-shell .activity-date-controls .filter-toggle {
  min-width: 46px;
  min-height: 45px;
  padding-inline: 12px;
}

.app-shell .activity-date-controls .filter-chevron { display: none; }

.app-shell .activity-date-controls[hidden] { display: none; }

.app-shell .commission-date-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 2px;
}

.app-shell .commission-date-presets[hidden] { display: none; }

.app-shell .commission-date-presets button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--team-line);
  border-radius: 9px;
  color: var(--team-muted);
  background: rgba(255, 255, 255, 0.02);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 750;
}

.app-shell .commission-date-presets button.active {
  border-color: rgba(216, 181, 69, 0.48);
  color: var(--team-gold-light);
  background: rgba(216, 181, 69, 0.1);
}

.app-shell .activity-date-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--team-muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.app-shell .activity-date-controls input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--team-text);
  font: inherit;
  color-scheme: dark;
  border: 1px solid var(--team-line);
  border-radius: 11px;
  background: #080d14;
}

.app-shell .activity-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.app-shell .activity-table th {
  padding: 12px 10px;
  color: var(--team-gold-light);
  font-size: 0.6rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--team-line);
  background: rgba(224, 179, 45, 0.035);
}

.app-shell .activity-table td {
  min-width: 112px;
  padding: 13px 10px;
  color: var(--team-text);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--team-line);
}

.app-shell .activity-table tbody tr:last-child td { border-bottom: 0; }
.app-shell .activity-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.014); }

.app-shell .activity-date { color: var(--team-white); font-size: 0.65rem; }
.app-shell .activity-date + small { display: block; margin-top: 5px; color: var(--team-muted); font-size: 0.52rem; }

.app-shell .activity-details {
  display: grid;
  min-width: 190px;
  gap: 4px;
  color: var(--team-white);
  line-height: 1.45;
}

.app-shell .activity-details strong {
  color: var(--team-white);
  font-weight: 700;
}

.app-shell .activity-details-leadership .activity-detail-note {
  margin: 12px 0;
  color: var(--team-white);
  font-size: 0.58rem;
}

.app-shell .activity-type,
.app-shell .activity-status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 8px;
  border: 1px solid rgba(224, 179, 45, 0.45);
  border-radius: 999px;
  color: var(--team-gold-light);
  background: rgba(224, 179, 45, 0.08);
  font-size: 0.52rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-shell .activity-status { color: var(--team-muted-2); border-color: var(--team-line); background: rgba(255,255,255,0.025); }
.app-shell .activity-status.status-success,
.app-shell .activity-status.status-registered,
.app-shell .activity-status.status-active { color: #75e0b8; border-color: rgba(73,202,154,.45); background: rgba(73,202,154,.08); }
.app-shell .activity-status.status-debit { color: #f0c85b; border-color: rgba(224,179,45,.45); background: rgba(224,179,45,.08); }
.app-shell .activity-amount { color: var(--team-gold-light); font-size: 0.7rem; white-space: pre-line; }

@media (max-width: 620px) {
  .app-shell .activity-table { min-width: 820px; }
  .app-shell .activity-table th,
  .app-shell .activity-table td { padding: 11px 9px; }
}


@media (max-width: 620px) {
  .app-shell #overviewView .daily-week-grid {
    gap: 14px;
  }

  .app-shell .daily-summary-grid {
    gap: 9px;
  }

  .app-shell .daily-summary-card {
    min-height: 112px;
    padding: 17px 10px;
    border-radius: 14px;
  }

  .app-shell .daily-summary-card span {
    font-size: 0.68rem;
  }

  .app-shell .daily-summary-card strong {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
  }

  .app-shell .daily-date-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    padding-top: 15px;
  }

  .app-shell .daily-date-button { min-height: 58px; padding-inline: 2px; border-radius: 10px; }

  .app-shell .daily-day-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-shell .daily-day-metric {
    min-height: 98px;
    padding: 13px 11px;
  }

  .app-shell .daily-currency-unit {
    top: 7px;
    right: 7px;
    padding: 2px 5px;
    font-size: 0.46rem;
  }

  .app-shell #reportView.activity-view .activity-stat-unit {
    top: 7px;
    right: 7px;
    padding: 2px 5px;
    font-size: 0.46rem;
  }

  .app-shell .daily-day-metric span {
    font-size: 0.62rem;
  }

  .app-shell .daily-day-metric strong {
    font-size: clamp(0.86rem, 4vw, 1.08rem);
  }

  .app-shell .daily-day-metric small {
    margin-top: 10px;
    font-size: 0.5rem;
  }

  .app-shell .daily-detail { padding: 11px; }

  .app-shell .daily-detail table { min-width: 560px; }
}

/* Daily username report — revision 2026-09-02. */
.app-shell .daily-user-report {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(360px, 1.25fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(216, 174, 61, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216, 174, 61, .08), rgba(12, 20, 31, .94));
}

.app-shell .daily-user-report-copy { display: grid; gap: 3px; }
.app-shell .daily-user-report-copy small { color: var(--gold); font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-shell .daily-user-report-copy strong { color: var(--text); font-size: .98rem; }
.app-shell .daily-user-report-copy span,
.app-shell #dailyUserReportStatus { color: var(--muted); font-size: .72rem; }
.app-shell .daily-user-report-form { display: grid; gap: 7px; }
.app-shell .daily-user-report-form > label { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.app-shell .daily-user-report-controls { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 9px; }
.app-shell .daily-user-search { position: relative; min-width: 0; }
.app-shell .daily-user-report-controls input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #080d14; color: var(--text); font: inherit; }
.app-shell .daily-user-report-controls input[aria-expanded="true"] { border-color: rgba(216, 174, 61, .72); box-shadow: 0 0 0 3px rgba(216, 174, 61, .09); }
.app-shell .daily-username-suggestions { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow: auto; padding: 6px; border: 1px solid rgba(216, 174, 61, .32); border-radius: 13px; background: #0a111b; box-shadow: 0 18px 46px rgba(0, 0, 0, .46); }
.app-shell .daily-username-suggestion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.app-shell .daily-username-suggestion:hover,
.app-shell .daily-username-suggestion:focus-visible { outline: none; background: rgba(216, 174, 61, .12); }
.app-shell .daily-username-suggestion strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.app-shell .daily-username-suggestion span { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .daily-username-suggestion small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--gold2); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.app-shell .daily-username-empty { padding: 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.app-shell .daily-user-clear { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; }
.app-shell #dailyUserReportStatus { min-height: 18px; margin: 0; }
.app-shell #dailyUserReportStatus.is-error { color: var(--red); }
.app-shell #dailyUserReportStatus.is-empty,
.app-shell .daily-summary-note.is-user-report { color: var(--gold2); }

@media (max-width: 780px) {
  .app-shell .daily-user-report { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .app-shell .daily-user-report-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .app-shell .daily-user-report-controls .daily-user-clear { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .app-shell .daily-user-report-controls { grid-template-columns: 1fr; }
  .app-shell .daily-user-report-controls .apply-button,
  .app-shell .daily-user-report-controls .daily-user-clear { width: 100%; grid-column: auto; }
}
