    :root {
      --glass-bg: rgba(16, 30, 52, 0.78);
      --glass-bg-strong: rgba(17, 32, 58, 0.96);
      --glass-border: rgba(160, 190, 255, 0.15);
      --glass-border-strong: rgba(160, 190, 255, 0.28);
      --tone-purple: #7c5cff;
      --tone-blue: #56a8ff;
      --tone-green: #39d6a7;
      --tone-orange: #ffb24b;
      --tone-danger: #ff667f;
      --tone-success: #31d17d;
      --tone-gold: #f2c766;
      --tone-silver: #bbcae7;
      --tone-bronze: #cb8e64;
      --home-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
    }

    .main {
      bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    }

    .tab-content {
      padding: 16px 0 32px;
    }

    .tab-bar {
      height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
      padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
      justify-content: space-between;
      overflow: hidden;
    }

    .tab-btn {
      position: relative;
      flex: 1 1 20%;
      min-width: 0;
      text-transform: uppercase;
      letter-spacing: .05em;
      font-size: 10px;
    }

    .tab-badge {
      position: absolute;
      top: 8px;
      right: 16px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 999px;
      background: var(--tone-danger);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      display: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 18px rgba(255,102,127,0.34);
    }

    .section-kicker {
      font-size: 11px;
      color: #bfd7ff;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .header-action-group {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .ghost-btn,
    .tiny-btn {
      border: 1px solid rgba(160,190,255,.14);
      background: rgba(255,255,255,.05);
      color: var(--text);
      border-radius: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .ghost-btn {
      padding: 10px 14px;
      font-size: 13px;
    }

    .tiny-btn {
      padding: 10px 12px;
      font-size: 13px;
      border: none;
    }

    .tiny-btn.primary {
      background: linear-gradient(135deg, var(--primary), #1294c8);
      color: #04111b;
      font-weight: 800;
    }

    .glass-panel,
    .home-rep-card,
    .request-card-front,
    .leader-card,
    .profile-metric-tile {
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(86,168,255,.08), transparent 28%),
        linear-gradient(180deg, rgba(23,31,48,.92), rgba(11,17,28,.94));
      border: 1px solid var(--glass-border);
      border-radius: 22px;
      box-shadow: var(--home-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .glass-panel {
      padding: 18px;
      min-width: 0;
    }

    .empty-state-panel {
      text-align: center;
      color: var(--muted);
      padding: 34px 18px;
    }

    .home-shell,
    .leaderboard-shell,
    .team-shell,
    .requests-shell,
    .alerts-list,
    .home-rep-list,
    .team-card-list,
    .leaderboard-list,
    .profile-history-list {
      display: grid;
      gap: 14px;
    }

    .home-shell > *,
    .leaderboard-shell > *,
    .team-shell > *,
    .requests-shell > *,
    .goals-shell > * {
      min-width: 0;
    }

    .hero-panel {
      position: relative;
      overflow: hidden;
      padding: 22px 18px 18px;
      display: grid;
      gap: 16px;
      background:
        radial-gradient(circle at 12% 18%, rgba(38,227,193,.12), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(139,115,255,.24), transparent 26%),
        linear-gradient(155deg, rgba(18,21,45,.98) 0%, rgba(10,16,28,.96) 60%, rgba(8,14,24,.98) 100%);
      border: 1px solid rgba(122, 150, 255, .16);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 20px 48px rgba(3, 8, 18, .34);
    }

    .hero-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(115deg, rgba(255,255,255,.06), transparent 22%, transparent 74%, rgba(56,189,248,.08)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 84px);
      mix-blend-mode: screen;
      opacity: .58;
      pointer-events: none;
    }

    .hero-panel::after {
      content: "";
      position: absolute;
      right: -36px;
      top: -52px;
      width: 196px;
      height: 196px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(124,92,255,.28), transparent 68%);
      pointer-events: none;
    }

    .hero-title {
      position: relative;
      z-index: 1;
      font-size: 30px;
      font-weight: 900;
      letter-spacing: -1px;
      margin-bottom: 8px;
      line-height: 1;
    }

    .hero-subtitle {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
    }

    .hero-big-row {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-top: 18px;
    }

    .hero-big-number {
      font-size: 54px;
      line-height: .92;
      letter-spacing: -2px;
      font-weight: 900;
    }

    .hero-big-label,
    .hero-callout span,
    .quick-pill-sub,
    .alert-copy,
    .ring-total,
    .rep-sub,
    .request-note,
    .leader-meta,
    .leader-subscore,
    .history-copy,
    .history-meta,
    .profile-role {
      color: var(--muted);
    }

    .hero-callout {
      min-width: 132px;
      text-align: right;
    }

    .hero-callout strong {
      display: block;
      font-size: 16px;
      margin-bottom: 4px;
    }

    .quick-pill-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .quick-pill {
      position: relative;
      display: grid;
      gap: 4px;
      min-height: 80px;
      padding: 14px 14px 12px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(26,32,46,.94), rgba(19,25,36,.92));
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
      overflow: hidden;
    }

    .quick-pill::before {
      content: "";
      position: absolute;
      left: 14px;
      right: 14px;
      top: 0;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: rgba(255,255,255,.12);
    }

    .quick-pill-label,
    .ring-label,
    .profile-section-title,
    .inline-goal-field label,
    .rep-progress-row label,
    .metric-mini-item label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin: 0 0 6px;
    }

    .quick-pill-value {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -.04em;
    }

    .alert-card {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
    }

    .alert-card.warn {
      border-color: rgba(246,179,72,.18);
      background: rgba(246,179,72,.08);
    }

    .alert-card.danger {
      border-color: rgba(255,102,127,.18);
      background: rgba(255,102,127,.08);
    }

    .alert-card.success {
      border-color: rgba(49,209,125,.18);
      background: rgba(49,209,125,.08);
    }

    .alert-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: rgba(255,255,255,.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
      flex-shrink: 0;
      color: var(--text);
    }

    .alert-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .alert-copy {
      font-size: 13px;
      line-height: 1.45;
    }

    .rings-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .ring-card {
      padding: 14px 12px 14px;
      border-radius: 22px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.08), transparent 28%),
        linear-gradient(180deg, rgba(19,27,42,.94), rgba(12,18,30,.96));
      border: 1px solid rgba(160,190,255,.10);
      text-align: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }

    .ring-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
      text-align: left;
    }

    .ring-status {
      font-size: 10px;
      font-weight: 800;
      color: #d6e6ff;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .ring-wrap {
      position: relative;
      width: 98px;
      height: 98px;
      margin: 0 auto 10px;
    }

    .ring-svg {
      width: 98px;
      height: 98px;
      transform: rotate(-90deg);
    }

    .ring-track {
      fill: none;
      stroke: rgba(255,255,255,.08);
      stroke-width: 8;
    }

    .ring-progress {
      fill: none;
      stroke-width: 8;
      stroke-linecap: round;
    }

    .ring-progress.purple { stroke: var(--tone-purple); }
    .ring-progress.blue { stroke: var(--tone-blue); }
    .ring-progress.green { stroke: var(--tone-green); }
    .ring-progress.orange { stroke: var(--tone-orange); }

    .ring-card-empty .ring-progress {
      stroke-opacity: .16;
    }

    .ring-card-empty .ring-track {
      stroke: rgba(255,255,255,.14);
    }

    .ring-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .ring-center strong {
      font-size: 22px;
      line-height: 1;
    }

    .ring-center span {
      color: var(--muted);
      font-size: 11px;
      margin-top: 4px;
    }

    .home-rep-card {
      position: relative;
      padding: 14px;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
      box-shadow: 0 10px 22px rgba(2, 8, 18, 0.16);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .home-rep-card::after {
      content: "";
      position: absolute;
      inset: auto 16px 0;
      height: 1px;
      background: linear-gradient(90deg, rgba(124,92,255,.35), rgba(124,92,255,0));
      opacity: .4;
      pointer-events: none;
    }

    .home-rep-card.expanded {
      border-color: rgba(124,92,255,.30);
      box-shadow: 0 16px 28px rgba(8, 14, 28, 0.24);
    }

    .rep-summary {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 8px 12px;
      align-items: start;
      cursor: pointer;
    }

    .rep-summary > :nth-child(2) {
      min-width: 0;
    }

    .rep-avatar,
    .profile-avatar {
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(124,92,255,.92), rgba(86,168,255,.88));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 18px rgba(86,168,255,.18);
      font-weight: 900;
      flex-shrink: 0;
    }

    .rep-avatar {
      width: 40px;
      height: 40px;
      font-size: 14px;
    }

    .rep-name {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -.02em;
      overflow-wrap: anywhere;
    }

    .rep-sub {
      font-size: 11px;
      margin-top: 4px;
      line-height: 1.45;
    }

    .rep-location-copy {
      margin-top: 3px;
      font-size: 10px;
      line-height: 1.35;
      color: rgba(160, 190, 255, .62);
      overflow-wrap: anywhere;
    }

    .rep-meta-stack {
      display: flex;
      grid-column: 1 / -1;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding-top: 2px;
    }

    .att-pill,
    .status-pill,
    .leader-tag,
    .achievement-chip,
    .mini-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .att-pill {
      background: rgba(124,92,255,.14);
      color: #ddd7ff;
    }

    .status-pill {
      background: rgba(255,255,255,.08);
      color: var(--muted);
    }

    .status-pill.active {
      background: rgba(49,209,125,.16);
      color: #cbffe1;
    }

    .status-pill.leave {
      background: rgba(246,179,72,.16);
      color: #ffe0ad;
    }

    .rep-progress-group,
    .metric-mini-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .rep-progress-row,
    .metric-mini-item {
      display: grid;
      grid-template-columns: 50px 1fr auto auto;
      gap: 8px;
      align-items: center;
    }

    .progress-track,
    .metric-bar {
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      overflow: hidden;
    }

    .progress-fill,
    .metric-bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
    }

    .progress-fill.purple,
    .metric-bar span.purple { background: linear-gradient(90deg, #6f58ff, #8b73ff); }
    .progress-fill.blue,
    .metric-bar span.blue { background: linear-gradient(90deg, #3a92ff, #6ac1ff); }
    .progress-fill.green,
    .metric-bar span.green { background: linear-gradient(90deg, #2fc77b, #5de2aa); }
    .progress-fill.orange,
    .metric-bar span.orange { background: linear-gradient(90deg, #ff9e32, #ffc15f); }

    .progress-value {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
    }

    .sparkline {
      display: flex;
      align-items: flex-end;
      gap: 4px;
      height: 26px;
      padding-left: 6px;
    }

    .sparkline-bar {
      width: 6px;
      border-radius: 999px 999px 2px 2px;
      background: rgba(255,255,255,.18);
    }

    .sparkline-bar.up { background: linear-gradient(180deg, rgba(57,214,167,.82), rgba(57,214,167,.34)); }
    .sparkline-bar.down { background: linear-gradient(180deg, rgba(255,102,127,.82), rgba(255,102,127,.34)); }
    .sparkline-bar.flat { background: linear-gradient(180deg, rgba(86,168,255,.78), rgba(86,168,255,.28)); }

    .trend-chip {
      background: rgba(255,255,255,.08);
      color: var(--muted);
    }

    .trend-chip.up {
      background: rgba(49,209,125,.16);
      color: #cbffe1;
    }

    .trend-chip.down {
      background: rgba(255,102,127,.16);
      color: #ffd1da;
    }

    .inline-goal-panel {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(160,190,255,.10);
      display: none;
    }

    .home-rep-card.expanded .inline-goal-panel {
      display: block;
    }

    .inline-goal-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .inline-goal-field {
      padding: 10px;
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
    }

    .inline-goal-field input {
      width: 100%;
      background: rgba(4, 12, 24, .48);
      border: 1px solid rgba(160,190,255,.12);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 18px;
      font-weight: 800;
      text-align: center;
    }

    .inline-goal-actions,
    .rep-pill-row,
    .leader-chip-row,
    .profile-pill-row,
    .profile-badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .swipe-shell {
      position: relative;
      overflow: hidden;
      border-radius: 24px;
    }

    .swipe-actions {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      gap: 8px;
      padding: 10px;
      background: linear-gradient(90deg, rgba(6,16,29,.18), rgba(6,16,29,.02));
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
    }

    .swipe-action {
      width: 82px;
      border: none;
      border-radius: 18px;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      cursor: pointer;
    }

    .swipe-action.edit { background: linear-gradient(180deg, #3a92ff, #2374d9); }
    .swipe-action.delete { background: linear-gradient(180deg, #ff6b7a, #ea455a); }
    .swipe-action.approve { background: linear-gradient(180deg, #2ec77a, #1fab63); }
    .swipe-action.deny { background: linear-gradient(180deg, #ff9e32, #ef6c2d); }

    .swipe-front {
      position: relative;
      z-index: 1;
      transform: translateX(0);
      transition: transform .18s ease;
      touch-action: pan-y;
    }

    .swipe-shell.open .swipe-actions {
      opacity: 1;
      pointer-events: auto;
    }

    .swipe-shell.open .swipe-front {
      transform: translateX(-176px);
    }

    .team-card-front,
    .request-card-front,
    .leader-card {
      padding: 14px;
    }

    .requests-summary-banner,
    .leader-banner {
      padding: 16px 16px 14px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(49,209,125,.18), rgba(57,214,167,.08));
      border: 1px solid rgba(49,209,125,.18);
    }

    .leader-banner {
      display: grid;
      gap: 14px;
      background:
        radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(34,211,238,.12), transparent 30%),
        linear-gradient(135deg, rgba(20,31,59,.92), rgba(12,19,31,.98));
      box-shadow: 0 18px 38px rgba(4, 10, 24, 0.28);
    }

    .leader-banner-copy {
      min-width: 0;
    }

    .requests-summary-banner strong,
    .leader-banner strong {
      display: block;
      font-size: 18px;
      margin-bottom: 6px;
    }

    .requests-summary-banner span,
    .leader-banner span {
      color: #cbffe1;
      font-size: 13px;
      line-height: 1.45;
    }

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

    .leader-banner-stat {
      min-width: 0;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(8,18,23,.26);
      border: 1px solid rgba(118,255,183,.10);
    }

    .leader-banner-stat span {
      display: block;
      margin-bottom: 6px;
      font-size: 10px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(203,255,225,.72);
    }

    .leader-banner-stat strong {
      margin: 0;
      font-size: 18px;
      line-height: 1.1;
      color: #f6fffb;
      overflow-wrap: anywhere;
    }

    .request-card-front {
      display: grid;
      gap: 14px;
      background:
        radial-gradient(circle at top right, rgba(57,214,167,.10), transparent 28%),
        linear-gradient(180deg, rgba(20,28,41,.96), rgba(11,17,28,.94));
    }

    .request-card-front.request-card-approved {
      border-color: rgba(49,209,125,.18);
    }

    .request-card-front.request-card-denied {
      border-color: rgba(255,102,127,.20);
    }

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

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

    .request-date-block {
      min-width: 0;
      padding: 12px 13px;
      border-radius: 16px;
      background: rgba(8,15,27,.58);
      border: 1px solid rgba(160,190,255,.10);
      display: grid;
      gap: 6px;
    }

    .request-date-block span {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(191,215,255,.58);
    }

    .request-date-block strong {
      font-size: 15px;
      line-height: 1.1;
      letter-spacing: -.03em;
      overflow-wrap: anywhere;
    }

    .request-chip-row {
      margin-top: -2px;
    }

    .req-note {
      padding: 12px 13px;
      border-radius: 16px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(160,190,255,.10);
      font-size: 13px;
      line-height: 1.5;
      color: #d8e3f8;
    }

    .request-action-row {
      justify-content: flex-start;
      margin-top: 0;
    }

    .leaderboard-control-panel {
      display: grid;
      gap: 16px;
      background:
        radial-gradient(circle at top left, rgba(124,92,255,.10), transparent 28%),
        linear-gradient(180deg, rgba(18,25,40,.92), rgba(11,17,28,.96));
    }

    .leaderboard-control-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .leader-top {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
    }

    .leader-rank {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 900;
      color: #05101d;
      background: #c9d7f0;
    }

    .leader-rank.gold { background: var(--tone-gold); }
    .leader-rank.silver { background: var(--tone-silver); }
    .leader-rank.bronze { background: var(--tone-bronze); }

    .leader-name {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .leader-score {
      text-align: right;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -.04em;
    }

    .kpi-leader-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .kpi-leader-list {
      display: grid;
      gap: 10px;
    }

    .kpi-leader-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
    }

    .kpi-leader-row.is-top {
      background: linear-gradient(135deg, rgba(242,199,102,.16), rgba(255,255,255,.06));
      border-color: rgba(242,199,102,.22);
    }

    .kpi-rank {
      min-width: 42px;
      height: 42px;
      padding: 0 10px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 900;
      color: #05101d;
      background: #c9d7f0;
    }

    .kpi-rank.gold { background: var(--tone-gold); }
    .kpi-rank.silver { background: var(--tone-silver); }
    .kpi-rank.bronze { background: var(--tone-bronze); }

    .kpi-leader-name {
      font-size: 15px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .kpi-leader-value {
      text-align: right;
      font-size: 18px;
      font-weight: 900;
      letter-spacing: -.03em;
      color: #f5f7ff;
    }

    .leader-tag {
      background: rgba(255,255,255,.08);
      color: var(--muted);
    }

    .leader-tag.streak {
      background: rgba(49,209,125,.16);
      color: #cbffe1;
    }

    .leader-tag.watch {
      background: rgba(255,102,127,.16);
      color: #ffd1da;
    }

    .achievement-chip {
      background: rgba(124,92,255,.14);
      color: #e1dbff;
    }

    .profile-sheet {
      max-width: 760px;
      max-height: 94vh;
      padding-bottom: 24px;
    }

    .profile-hero {
      padding: 6px 2px 0;
    }

    .profile-top {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 14px;
      align-items: center;
      margin-bottom: 16px;
    }

    .profile-avatar {
      width: 74px;
      height: 74px;
      font-size: 24px;
      border-radius: 24px;
    }

    .profile-name {
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -1px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .profile-section-title {
      margin-top: 18px;
      margin-bottom: 12px;
    }

    .profile-metric-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .profile-metric-tile {
      padding: 14px;
    }

    .profile-metric-tile strong {
      display: block;
      font-size: 28px;
      letter-spacing: -.04em;
      margin: 8px 0 4px;
    }

    .profile-metric-tile span {
      color: var(--muted);
      font-size: 12px;
    }

    .profile-history-list {
      max-height: 250px;
      overflow-y: auto;
      padding-right: 4px;
    }

    .history-row {
      padding: 12px 0;
      border-bottom: 1px solid rgba(160,190,255,.08);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
    }

    .history-row:last-child {
      border-bottom: none;
    }

    .history-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .history-points {
      font-size: 12px;
      font-weight: 800;
      color: var(--warning);
      white-space: nowrap;
    }

    body {
      background:
        radial-gradient(circle at top left, rgba(108,63,255,.20), transparent 24%),
        radial-gradient(circle at 85% 0%, rgba(34,211,238,.14), transparent 22%),
        radial-gradient(circle at 18% 100%, rgba(57,214,167,.10), transparent 28%),
        linear-gradient(180deg, #070b12 0%, #0b1019 46%, #0a0f18 100%);
    }

    .header {
      background: rgba(13, 17, 23, .82);
      border-bottom: 1px solid rgba(160,190,255,.08);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .header-title {
      color: #f5f7ff;
      letter-spacing: -.03em;
    }

    .main {
      background:
        radial-gradient(circle at top left, rgba(108,63,255,.14), transparent 24%),
        radial-gradient(circle at top right, rgba(34,211,238,.10), transparent 20%),
        radial-gradient(circle at bottom, rgba(57,214,167,.08), transparent 28%),
        linear-gradient(180deg, #090c14 0%, #0d1117 100%);
    }

    .tab-content {
      padding: 14px 16px 32px;
    }

    .tab-bar {
      background: rgba(17, 24, 39, .92);
      border-top: 1px solid rgba(160,190,255,.10);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .tab-btn {
      color: #6b7280;
      text-transform: none;
      letter-spacing: 0;
      font-weight: 600;
    }

    .tab-btn.active {
      color: var(--tone-purple);
    }

    .hero-panel {
      background:
        radial-gradient(circle at top left, rgba(38,227,193,.10), transparent 24%),
        radial-gradient(circle at 82% 10%, rgba(124,92,255,.22), transparent 24%),
        linear-gradient(160deg, #151939 0%, #0c1422 58%, #0b1019 100%);
      border-color: rgba(124,92,255,.22);
      padding: 18px 16px 16px;
    }

    .hero-hello {
      position: relative;
      z-index: 1;
      color: #b9b0d8;
      font-size: 11px;
      margin-bottom: 4px;
    }

    .hero-title {
      font-size: 18px;
      line-height: 1.1;
      margin-bottom: 12px;
    }

    .hero-score-card {
      position: relative;
      z-index: 1;
      margin-bottom: 12px;
      padding: 14px 16px;
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(108,63,255,.92), rgba(27,178,255,.92));
      box-shadow: 0 18px 34px rgba(47, 86, 255, .22);
    }

    .hero-score-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: end;
    }

    .hero-score-label {
      font-size: 11px;
      color: rgba(255,255,255,.72);
      margin-bottom: 4px;
    }

    .hero-score-value {
      font-size: 54px;
      line-height: .9;
      font-weight: 900;
      letter-spacing: -.08em;
    }

    .hero-score-delta {
      margin-top: 6px;
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 999px;
      background: rgba(125,255,179,.16);
      color: #cbffe1;
      font-size: 11px;
      font-weight: 700;
    }

    .hero-goal-block {
      text-align: right;
      min-width: 84px;
    }

    .hero-goal-value {
      font-size: 30px;
      line-height: .95;
      font-weight: 800;
    }

    .hero-goal-sub {
      margin-top: 4px;
      font-size: 11px;
      color: rgba(255,255,255,.68);
    }

    .quick-pill-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .quick-pill {
      min-height: 74px;
      padding: 12px 12px 11px;
      border-radius: 16px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.10), transparent 36%),
        linear-gradient(180deg, rgba(25,34,50,.98), rgba(16,23,36,.96));
      border: 1px solid rgba(255,255,255,.06);
      text-align: left;
    }

    .quick-pill:nth-child(1) .quick-pill-value { color: #7dffb3; }
    .quick-pill:nth-child(2) .quick-pill-value { color: #f5a623; }
    .quick-pill:nth-child(3) .quick-pill-value { color: #a78bfa; }
    .quick-pill:nth-child(1)::before { background: linear-gradient(90deg, #39d6a7, #7dffb3); }
    .quick-pill:nth-child(2)::before { background: linear-gradient(90deg, #ffb24b, #f5a623); }
    .quick-pill:nth-child(3)::before { background: linear-gradient(90deg, #7c5cff, #a78bfa); }

    .quick-pill-label {
      font-size: 10px;
      letter-spacing: .04em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .quick-pill-value {
      font-size: 22px;
      line-height: 1;
    }

    .quick-pill-sub {
      font-size: 11px;
      color: rgba(191, 215, 255, .62);
    }

    .alert-card {
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-radius: 16px;
      background: #1e2430;
      border-color: rgba(255,255,255,.06);
    }

    .alert-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      flex-shrink: 0;
      background: #f5a623;
      box-shadow: 0 0 0 3px rgba(245,166,35,.12);
    }

    .alert-dot.red {
      background: #ef4444;
      box-shadow: 0 0 0 3px rgba(239,68,68,.12);
    }

    .alert-dot.green {
      background: #31d17d;
      box-shadow: 0 0 0 3px rgba(49,209,125,.12);
    }

    .alert-dot.amber {
      background: #f5a623;
      box-shadow: 0 0 0 3px rgba(245,166,35,.12);
    }

    .alert-badge {
      margin-left: auto;
      min-width: 24px;
      height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: #f5a623;
      color: #05101d;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 900;
    }

    .ring-card {
      background: #161b27;
      border-color: rgba(255,255,255,.05);
    }

    .ring-center strong {
      font-size: 20px;
    }

    .ring-total-value {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .ring-label {
      color: #dbe6ff;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .ring-detail {
      color: #8ea0bc;
      font-size: 12px;
      line-height: 1.35;
    }

    .rep-card-main {
      cursor: pointer;
    }

    .rep-avatar.purple,
    .profile-avatar.purple {
      background: linear-gradient(135deg, #6c3fff, #a78bfa);
    }

    .rep-avatar.orange,
    .profile-avatar.orange {
      background: linear-gradient(135deg, #f5a623, #f6d365);
    }

    .rep-avatar.blue,
    .profile-avatar.blue {
      background: linear-gradient(135deg, #0ab4ff, #38bdf8);
    }

    .rep-avatar.green,
    .profile-avatar.green {
      background: linear-gradient(135deg, #10b981, #7dffb3);
    }

    .rep-log-state {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      background: rgba(255,255,255,.06);
      color: #aeb7c8;
    }

    .rep-log-state.pending {
      color: #8b8fa2;
    }

    .rep-log-state.logging {
      background: rgba(108,63,255,.16);
      color: #d7c7ff;
    }

    .rep-log-state.logged {
      background: rgba(49,209,125,.16);
      color: #cbffe1;
    }

    .rep-stat-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 12px;
      align-items: stretch;
    }

    .rep-stat-tile {
      min-width: 0;
      min-height: 86px;
      padding: 11px 11px 10px;
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.08), transparent 34%),
        linear-gradient(180deg, rgba(15, 22, 34, 0.98), rgba(10, 16, 28, 0.95));
      border: 1px solid rgba(160,190,255,.10);
      display: grid;
      gap: 8px;
      overflow: hidden;
      align-content: start;
    }

    .rep-stat-tile.tone-purple { box-shadow: inset 0 1px 0 rgba(124,92,255,.10); }
    .rep-stat-tile.tone-blue { box-shadow: inset 0 1px 0 rgba(86,168,255,.10); }
    .rep-stat-tile.tone-green { box-shadow: inset 0 1px 0 rgba(57,214,167,.10); }
    .rep-stat-tile.tone-orange { box-shadow: inset 0 1px 0 rgba(255,178,75,.10); }

    .rep-stat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-width: 0;
    }

    .rep-stat-value-row {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .rep-stat-value {
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 0;
    }

    .rep-stat-label {
      color: #8b93a7;
      font-size: 9px;
      margin-bottom: 0;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .rep-stat-foot {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .rep-stat-spark {
      min-width: 0;
      overflow: hidden;
      flex: 1 1 auto;
    }

    .rep-stat-chip {
      display: inline-flex;
      align-items: center;
      padding: 2px 6px;
      border-radius: 999px;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .06em;
      background: rgba(255,255,255,.08);
      color: #aeb7c8;
      white-space: nowrap;
    }

    .rep-stat-trend {
      font-size: 9px;
      font-weight: 800;
      color: #9ca3af;
      white-space: nowrap;
    }

    .rep-stat-trend.up { color: #7dffb3; }
    .rep-stat-trend.down { color: #f87171; }
    .rep-stat-trend.flat { color: #93c5fd; }
    .rep-stat-chip.up { background: rgba(49,209,125,.14); color: #cbffe1; }
    .rep-stat-chip.down { background: rgba(255,102,127,.14); color: #ffd1da; }
    .rep-stat-chip.flat { background: rgba(86,168,255,.14); color: #d6e6ff; }

    .rep-stat-foot-copy {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: rgba(191,215,255,.55);
      white-space: nowrap;
    }

    .sparkline.compact {
      gap: 2px;
      height: 12px;
      padding-left: 0;
      min-width: 0;
    }

    .sparkline.compact .sparkline-bar {
      width: 3px;
      border-radius: 3px 3px 0 0;
    }

    .rep-progress-footer {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
      margin-top: 10px;
    }

    .team-card-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
    }

    .team-card-score {
      min-width: 82px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(8, 15, 27, .62);
      border: 1px solid rgba(160,190,255,.10);
      display: grid;
      gap: 4px;
      justify-items: end;
      text-align: right;
    }

    .team-card-score strong {
      font-size: 22px;
      line-height: .95;
      letter-spacing: -.05em;
    }

    .team-card-score span,
    .team-card-footer-copy span {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(191,215,255,.58);
    }

    .team-card-pills {
      margin-top: 12px;
    }

    .team-stat-grid {
      margin-top: 10px;
    }

    .team-card-footer {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(160,190,255,.08);
    }

    .team-card-footer-copy {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }

    .team-card-footer-copy strong {
      font-size: 13px;
      color: #eff5ff;
      white-space: nowrap;
    }

    .team-card-front,
    .request-card-front,
    .home-rep-card {
      background: linear-gradient(180deg, rgba(15,22,34,.98), rgba(10,16,28,.98));
      border-color: rgba(160,190,255,.14);
    }

    .leader-banner {
      background: linear-gradient(90deg, rgba(26,42,26,.92), rgba(13,32,16,.96));
      border-color: rgba(49,209,125,.20);
    }

    .leader-banner span {
      color: #c7f9d9;
    }

    .leader-card {
      background: linear-gradient(180deg, rgba(18,26,40,.92), rgba(11,17,28,.88));
    }

    .leader-meta {
      color: #8b93a7;
      font-size: 12px;
    }

    .leader-score {
      color: #f5f7ff;
      min-width: 40px;
    }

    .profile-sheet {
      max-width: 560px;
      background: linear-gradient(180deg, #0d1117, #090c14);
    }

    .profile-page {
      display: grid;
      gap: 14px;
    }

    .profile-hero-card {
      text-align: center;
      background: linear-gradient(180deg, #1a1040, #0d1117);
      border-color: rgba(124,92,255,.18);
    }

    .profile-back-link {
      align-self: flex-start;
      background: none;
      border: none;
      color: #8b93a7;
      font-size: 12px;
      cursor: pointer;
      margin-bottom: 12px;
      padding: 0;
    }

    .profile-avatar.large {
      width: 72px;
      height: 72px;
      font-size: 26px;
      margin: 0 auto 12px;
    }

    .profile-pill-positive {
      background: rgba(49,209,125,.16);
      color: #cbffe1;
    }

    .history-points.warning {
      color: #f5a623;
    }

    .history-points.success {
      color: #7dffb3;
    }

    .mobile-more-sheet {
      max-width: 560px;
    }

    .more-grid {
      display: grid;
      gap: 10px;
      margin-top: 10px;
    }

    .more-action {
      width: 100%;
      text-align: left;
      border: 1px solid rgba(160,190,255,.10);
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      color: var(--text);
      padding: 14px;
      cursor: pointer;
    }

    .more-action strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px;
    }

    .more-action span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .more-action.danger strong {
      color: #ffb4bf;
    }

    .notification-center-sheet {
      max-width: 620px;
    }

    .notification-center-shell {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }

    .notification-panel-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .notification-send-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .notification-field {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .notification-field-full {
      grid-column: 1 / -1;
    }

    .notification-field textarea {
      min-height: 96px;
      resize: vertical;
    }

    .notification-history-card .section-header {
      font-size: 17px;
      line-height: 1.2;
    }

    .notification-history-card .inline-goal-actions {
      justify-content: flex-start;
    }

    .tab-content {
      max-width: 560px;
      margin: 0 auto;
    }

    #login-overlay {
      overflow-y: auto;
    }

    .login-shell {
      max-width: 460px;
      margin: 0 auto;
    }

    .mobile-static-field {
      padding: 13px 14px;
      background: rgba(6, 14, 24, 0.68);
      border: 1px solid rgba(160,190,255,.12);
      border-radius: 14px;
      color: var(--text);
      font-size: 15px;
      font-weight: 700;
    }

    .goals-shell,
    .attendance-shell {
      display: grid;
      gap: 14px;
    }

    .attendance-summary-bar {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      padding: 10px;
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, rgba(86,168,255,.10), transparent 34%),
        linear-gradient(180deg, rgba(15,22,34,.92), rgba(10,16,28,.92));
      border: 1px solid rgba(160,190,255,.10);
    }

    .attendance-summary-item {
      min-width: 0;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(160,190,255,.08);
      display: grid;
      gap: 4px;
    }

    .attendance-summary-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: rgba(191,215,255,.62);
    }

    .attendance-summary-value {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.1;
      color: #f5f7ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .attendance-summary-value.accent-orange { color: #ffb24b; }
    .attendance-summary-value.accent-purple { color: #a78bfa; }

    .compact-pill-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .compact-pill {
      text-align: center;
    }

    .quick-pill-value.compact {
      font-size: 16px;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mobile-form-stack {
      display: grid;
      gap: 14px;
    }

    .goal-entry-panel {
      position: relative;
      overflow: hidden;
      padding: 18px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(57,214,167,.10), transparent 24%),
        linear-gradient(180deg, rgba(28,31,45,.94), rgba(20,24,35,.92));
    }

    .goal-entry-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 100% 0%, rgba(124,92,255,.12), transparent 24%),
        radial-gradient(circle at 0% 100%, rgba(86,168,255,.08), transparent 24%);
      pointer-events: none;
    }

    .hero-command-grid,
    .leaderboard-control-grid {
      display: grid;
      gap: 14px;
      position: relative;
      z-index: 1;
    }

    .hero-command-copy,
    .hero-signal-stack {
      min-width: 0;
    }

    .hero-signal-stack {
      display: grid;
      gap: 10px;
      align-content: start;
      padding: 14px;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(11,18,32,.78), rgba(9,15,27,.58));
      border: 1px solid rgba(138, 167, 255, .10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }

    .hero-signal-label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(186, 202, 255, .72);
    }

    .hero-command-ribbon {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .hero-command-chip {
      min-width: 0;
      display: grid;
      gap: 6px;
      padding: 12px 12px 10px;
      border-radius: 16px;
      background: rgba(8, 14, 26, .44);
      border: 1px solid rgba(160,190,255,.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

    .hero-command-chip-label {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: rgba(185, 201, 244, .58);
    }

    .hero-command-chip-value {
      font-size: 14px;
      line-height: 1.1;
      letter-spacing: -.03em;
      color: #eef3ff;
      overflow-wrap: anywhere;
    }

    .goal-entry-panel::after {
      content: "";
      position: absolute;
      inset: 0 auto auto 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, rgba(124,92,255,.35), rgba(86,168,255,.1), transparent 80%);
      pointer-events: none;
    }

    .goal-entry-head {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
      align-items: start;
      gap: 14px;
      margin-bottom: 12px;
    }

    .goal-entry-head .section-header {
      margin-bottom: 0;
    }

    .goal-entry-head .mini-chip {
      align-self: flex-start;
    }

    .goal-readonly-note {
      margin: 0 0 10px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(86,168,255,.16);
      background: rgba(86,168,255,.08);
      color: #d6e6ff;
      font-size: 13px;
      line-height: 1.5;
    }

    .goal-entry-toolbar {
      margin-bottom: 4px;
    }

    /* ─── Goal context summary (Rep / Date / Territory / Store) ─────── */
    .goal-context-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin: 0;
    }

    .goal-context-card {
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(8, 15, 27, .56);
      border: 1px solid rgba(160, 190, 255, .14);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .goal-context-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: rgba(160, 190, 255, .50);
    }

    .goal-context-card strong {
      font-size: 14px;
      font-weight: 700;
      color: #dbe6ff;
      letter-spacing: -.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* ─── Goal minimum panel (0 of 6 met chips) ─────────────────────── */
    .goal-minimum-panel {
      margin-top: 12px;
      padding: 12px;
      border-radius: 18px;
      border: 1px solid rgba(160, 190, 255, .10);
      background: rgba(11, 18, 28, .42);
    }

    .goal-minimum-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .goal-minimum-head .mini-chip {
      flex-shrink: 0;
      margin-top: 2px;
    }

    .goal-minimum-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .goal-min-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      gap: 6px;
      min-height: 52px;
      padding: 8px 9px;
      border-radius: 14px;
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(160, 190, 255, .10);
      border-left-width: 3px;
      transition: border-color .18s ease, background .18s ease;
    }

    .goal-min-card strong {
      font-size: 12px;
      font-weight: 700;
      color: #dbe6ff;
      letter-spacing: -.01em;
    }

    .goal-min-label {
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(160, 190, 255, .55);
      white-space: nowrap;
    }

    .goal-min-card.purple { border-left-color: var(--tone-purple); }
    .goal-min-card.blue   { border-left-color: var(--tone-blue); }
    .goal-min-card.orange { border-left-color: var(--tone-orange); }
    .goal-min-card.green  { border-left-color: var(--tone-green); }

    .goal-min-card.met {
      background: rgba(49, 209, 125, .10);
      border-color: rgba(49, 209, 125, .25);
      border-left-color: var(--tone-success);
    }

    .goal-min-card.met .goal-min-label {
      color: var(--tone-success);
    }

    /* ─── Monthly Targets setter panel ──────────────────────────────── */
    .goal-targets-panel {
      padding-top: 4px;
    }

    .goal-targets-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 4px;
    }

    .goal-targets-head .mini-chip {
      flex-shrink: 0;
      margin-top: 4px;
    }

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

    .goal-dock-card {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(9, 15, 27, .54);
      border: 1px solid rgba(160,190,255,.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

    .goal-dock-card strong {
      font-size: 13px;
      line-height: 1.15;
      color: #edf2ff;
      letter-spacing: -.02em;
      overflow-wrap: anywhere;
    }

    .goal-entry-panel .form-group label {
      display: block;
      margin-bottom: 8px;
    }

    .goal-entry-panel input,
    .goal-entry-panel select,
    .goal-entry-panel .mobile-static-field {
      min-height: 52px;
      border-radius: 16px;
      background: rgba(8, 15, 27, .74);
      border-color: rgba(120,157,201,.18);
    }

    .goal-entry-metric-grid {
      gap: 12px;
    }

    .goal-entry-panel .goal-metric-card {
      min-height: 102px;
      padding: 13px 12px 11px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.10), transparent 36%),
        linear-gradient(180deg, rgba(37,41,55,.92), rgba(28,33,46,.9));
      border-color: rgba(160,190,255,.12);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

.goal-entry-panel .goal-input {
  padding: 2px 0 0;
  min-height: 34px;
  font-size: 24px;
  color: #dbe6ff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.goal-entry-panel .goal-input::placeholder {
  color: rgba(138, 156, 189, .28);
  font-size: 18px;
  font-weight: 600;
}

.goal-entry-panel .goal-input::-webkit-outer-spin-button,
.goal-entry-panel .goal-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

    .goal-save-btn {
      width: 100%;
      min-height: 56px;
      border-radius: 16px;
      font-size: 18px;
      letter-spacing: -.02em;
      box-shadow: 0 18px 34px rgba(18,148,200,.18);
    }

    .goal-summary-panel {
      padding-top: 16px;
    }

    .goal-summary-pills {
      margin-bottom: 14px;
    }

    .goal-toolbar-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .goal-mtd-section {
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid rgba(160,190,255,.10);
    }

    .goal-mtd-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
      padding-bottom: 2px;
    }

    .goal-mtd-header .section-header {
      font-size: clamp(24px, 4vw, 30px);
      line-height: 1;
      letter-spacing: -.05em;
      margin-bottom: 0;
      max-width: 8ch;
    }

    .goal-mtd-controls {
      display: grid;
      gap: 8px;
      justify-items: end;
    }

    .goal-month-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .goal-month-nav input {
      min-height: 40px;
      border-radius: 12px;
      background: rgba(8,15,27,.74);
      border: 1px solid rgba(160,190,255,.14);
      color: #f5f7ff;
      padding: 0 10px;
    }

    .goal-mtd-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .goal-mtd-card {
      position: relative;
      overflow: hidden;
      min-height: 132px;
      padding: 14px 12px 12px;
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.10), transparent 36%),
        linear-gradient(180deg, rgba(23,30,45,.92), rgba(14,19,30,.9));
      border: 1px solid rgba(160,190,255,.10);
      display: grid;
      gap: 8px;
      align-content: start;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

    .goal-mtd-card::before {
      content: "";
      position: absolute;
      left: 14px;
      right: 14px;
      top: 0;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: rgba(255,255,255,.16);
    }

    .goal-mtd-card.purple::before {
      background: linear-gradient(90deg, #6f58ff, #8b73ff);
    }

    .goal-mtd-card.blue::before {
      background: linear-gradient(90deg, #3a92ff, #6ac1ff);
    }

    .goal-mtd-card.green::before {
      background: linear-gradient(90deg, #2fc77b, #5de2aa);
    }

    .goal-mtd-card.orange::before {
      background: linear-gradient(90deg, #ff9e32, #ffc15f);
    }

    .goal-mtd-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .goal-mtd-label {
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .03em;
    }

    .goal-mtd-percent {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      background: rgba(255,255,255,.08);
      color: #edf3ff;
      white-space: nowrap;
      flex: 0 0 auto;
    }

    .goal-mtd-percent.purple {
      background: rgba(124,92,255,.18);
      color: #e5deff;
    }

    .goal-mtd-percent.blue {
      background: rgba(86,168,255,.18);
      color: #d7ebff;
    }

    .goal-mtd-percent.green {
      background: rgba(57,214,167,.18);
      color: #d2ffef;
    }

    .goal-mtd-percent.orange {
      background: rgba(255,178,75,.18);
      color: #ffe6bf;
    }

    .goal-mtd-value {
      font-size: clamp(22px, 3vw, 28px);
      font-weight: 900;
      letter-spacing: -.04em;
      color: #f5f7ff;
      line-height: 1;
    }

    .goal-mtd-copy {
      font-size: 12px;
      color: #8b93a7;
      line-height: 1.45;
      margin-top: auto;
    }

    .goal-mtd-progress {
      height: 8px;
    }

    .goal-metric-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .goal-metric-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
      transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    .goal-metric-card.saved {
      border-color: rgba(49,209,125,.30);
      box-shadow: 0 12px 24px rgba(49,209,125,.12);
    }

    .goal-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }

    .goal-card-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
    }

    .goal-card-sub {
      font-size: 11px;
      color: #8b93a7;
      margin-top: 3px;
    }

    .goal-input {
      text-align: left;
      font-size: 38px;
      line-height: 1;
      padding: 0;
      min-height: 44px;
    }

    .session-card-list {
      display: grid;
      gap: 10px;
    }

    .session-card {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
    }

    .session-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 4px;
    }

    .session-copy {
      font-size: 12px;
      color: #8b93a7;
      line-height: 1.4;
    }

    .session-value {
      font-size: 18px;
      font-weight: 900;
      color: #dce3f4;
      white-space: nowrap;
    }

    .session-value.warning {
      color: #f5a623;
    }

    .session-value.success {
      color: #7dffb3;
    }

    .attendance-preset-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .attendance-preset {
      border: 1px solid rgba(160,190,255,.10);
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      color: #dce3f4;
      font-size: 13px;
      font-weight: 700;
      padding: 12px 10px;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, color .18s ease;
    }

    .attendance-preset.active {
      border-color: rgba(124,92,255,.34);
      background: rgba(124,92,255,.16);
      color: #e1dbff;
    }

    .mobile-points-row .points-btn,
    .mobile-points-row .points-input {
      border-radius: 16px;
      min-height: 56px;
    }

    .mobile-points-row .points-btn {
      background: rgba(255,255,255,.05);
      border-color: rgba(160,190,255,.10);
    }

    .mobile-points-row .points-input {
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.10);
    }

    @media (max-width: 540px) {
      .hero-big-number {
        font-size: 46px;
      }

      .hero-command-grid {
        gap: 12px;
      }

      .hero-signal-stack {
        padding: 12px;
      }

      .hero-command-ribbon {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .hero-command-chip {
        padding: 10px 12px;
      }

      .goal-entry-head {
        align-items: stretch;
        grid-template-columns: 1fr;
      }

      .goal-entry-head .alert-copy,
      .home-announcement-panel .alert-copy {
        display: none;
      }

      .goal-head-status {
        gap: 6px;
        padding: 12px 14px;
      }

      .goal-head-status .goal-entry-status-copy {
        font-size: 11px;
      }

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

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

      .goal-dock-grid > :nth-child(3) {
        grid-column: 1 / -1;
      }

      .goal-minimum-head .alert-copy {
        display: none;
      }

      .goal-entry-panel {
        padding: 16px;
      }

      .goal-entry-panel .goal-metric-card {
        min-height: 96px;
      }

      .leader-banner-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
      }

      .leader-banner-stat {
        padding: 10px;
        border-radius: 16px;
      }

      .leader-banner-stat strong {
        font-size: 15px;
      }

      .inline-goal-grid,
      .goal-toolbar-grid,
      .attendance-preset-grid {
        grid-template-columns: 1fr;
      }

      .goal-mtd-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .goal-mtd-header .section-header {
        max-width: none;
      }

      .quick-pill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 380px) {
      .goal-metric-grid,
      .goal-mtd-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (min-width: 1024px) {
      .tab-bar {
        height: auto;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 16px;
      }

      .tab-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 16px;
        font-size: 14px;
      }

      .tab-content {
        max-width: 1320px;
        margin: 0 auto;
        padding-bottom: 48px;
      }

      .leaderboard-list.kpi-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .tab-badge {
        position: static;
        margin-left: auto;
        box-shadow: none;
      }

      .login-shell {
        max-width: 1160px;
        margin: 0 auto;
        grid-template-columns: minmax(0, 1.08fr) minmax(400px, 460px);
        align-items: stretch;
      }

      .home-shell {
        grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
        gap: 20px;
      }

      .home-shell > :nth-child(1) {
        grid-column: 1 / -1;
      }

      .home-shell > :nth-child(2) {
        grid-column: 1;
      }

      .home-shell > :nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        position: sticky;
        top: 28px;
      }

      .home-shell > :nth-child(4) {
        grid-column: 1 / -1;
      }

      .home-rep-list,
      .leaderboard-list,
      .session-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }

      .team-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .leaderboard-shell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
      }

      .leader-banner {
        position: static;
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
        align-items: end;
        gap: 18px;
      }

      .team-shell,
      .requests-shell,
      .goals-shell {
        grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
        align-items: start;
        gap: 18px;
      }

      .attendance-shell {
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        align-items: start;
        gap: 18px;
      }

      .team-shell > :first-child,
      .requests-shell > :first-child,
      .attendance-shell > :first-child {
        position: sticky;
        top: 28px;
      }

      .attendance-shell > :nth-child(1) {
        grid-row: 1 / span 2;
      }

      .goals-shell > :first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        position: static;
      }

      .goals-shell > :nth-child(2) {
        grid-column: 1;
        position: sticky;
        top: 28px;
        align-self: start;
      }

      .goals-shell > :nth-child(3) {
        grid-column: 2;
      }

      .goals-shell > :nth-child(4) {
        grid-column: 2;
      }

      .goal-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .goal-context-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .attendance-preset-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .goal-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .goal-entry-actions {
        grid-template-columns: minmax(0, 1fr) auto auto;
      }

      .goal-save-btn {
        width: auto;
        min-width: 220px;
      }

      .profile-sheet {
        max-width: 980px;
      }

      .more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 1239px) and (min-width: 1024px) {
      .home-rep-list,
      .team-card-list,
      .leaderboard-list.kpi-mode {
        grid-template-columns: 1fr;
      }

      .leader-banner {
        grid-template-columns: 1fr;
      }
    }

    @media (min-width: 1400px) {
      .leaderboard-list.kpi-mode {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .leader-mvp-card {
        grid-column: span 2;
      }
    }

    .home-announcement-panel {
      align-self: start;
      overflow: hidden;
      align-content: start;
      min-height: 148px;
      background:
        radial-gradient(circle at top right, rgba(124,92,255,.14), transparent 24%),
        linear-gradient(180deg, rgba(22,28,40,.92), rgba(13,18,28,.9));
    }

    .manager-insights-grid,
    .calendar-strip {
      display: grid;
      gap: 12px;
    }

    .manager-insights-grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      margin-top: 14px;
    }

    .manager-store-card,
    .calendar-day-card,
    .coach-trend-card {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(160,190,255,.12);
    }

    .manager-store-top {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .manager-store-value {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -.03em;
    }

    .manager-store-meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .calendar-shell {
      margin: 0 0 14px;
    }

    .calendar-strip {
      grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    }

    .calendar-day-card {
      min-height: 96px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 6px;
    }

    .calendar-day-card span,
    .calendar-day-card small {
      color: var(--muted);
    }

    .calendar-day-card strong {
      font-size: 22px;
      line-height: 1;
      letter-spacing: -.04em;
    }

    .calendar-day-card.active {
      border-color: rgba(86,168,255,.24);
      box-shadow: 0 16px 28px rgba(16, 33, 59, .18);
    }

    .calendar-day-card.pending {
      border-color: rgba(255,178,75,.32);
      box-shadow: 0 16px 28px rgba(50, 23, 4, .18);
    }

    .coach-trend-card {
      display: grid;
      gap: 12px;
    }

    .coach-trend-card .sparkline {
      min-height: 34px;
      align-items: end;
    }

    .notification-center-shell,
    .more-shell,
    .coaching-hub-shell {
      display: grid;
      gap: 16px;
    }

    .notification-status-panel,
    .notification-send-panel,
    .export-import-card,
    .badge-award-shell,
    .coaching-overview-card,
    .coaching-priority-panel,
    .coaching-plan-panel,
    .coaching-trend-panel,
    .coaching-history-panel {
      padding: 16px;
    }

    .notification-history-head,
    .badge-award-top,
    .leaderboard-scope-row,
    .goal-head-status {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .notification-send-grid,
    .badge-award-grid,
    .manual-mtd-grid,
    .coaching-grid,
    .coaching-grid-secondary {
      display: grid;
      gap: 12px;
    }

    .notification-send-grid,
    .badge-award-grid,
    .manual-mtd-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-field span,
    .leaderboard-scope-field span {
      display: block;
      margin-bottom: 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: rgba(160, 190, 255, .62);
    }

    .notification-field input,
    .notification-field textarea,
    .notification-field select,
    .leaderboard-scope-field select {
      width: 100%;
      border-radius: 14px;
      background: rgba(10,16,28,.82);
      border: 1px solid rgba(160,190,255,.14);
      color: #f5f7ff;
    }

    .notification-field textarea {
      resize: vertical;
      min-height: 108px;
    }

    .badge-sheet {
      max-width: 860px;
    }

    .badge-history-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(17,24,38,.74);
      border: 1px solid rgba(160,190,255,.12);
    }

    .more-tab-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }

    .leaderboard-scope-field {
      min-width: min(100%, 260px);
    }

    .leaderboard-month-field {
      min-width: min(100%, 320px);
    }

    .leader-month-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .leader-month-nav input {
      min-height: 40px;
      border-radius: 12px;
      background: rgba(10,16,28,.82);
      border: 1px solid rgba(160,190,255,.14);
      color: #f5f7ff;
      padding: 0 10px;
      flex: 1 1 auto;
    }

    .leaderboard-filter-pills {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .leaderboard-control-grid {
      grid-template-columns: minmax(0, 1fr);
      align-items: end;
    }

    .goal-workspace-switch {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4px;
      margin: 4px 0 8px;
      padding: 4px;
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(9,15,27,.88), rgba(12,19,33,.72));
      border: 1px solid rgba(160,190,255,.10);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 10px 24px rgba(4, 8, 18, .18);
    }

    .goal-workspace-pill {
      position: relative;
      min-height: 38px;
      border: 1px solid transparent;
      border-radius: 14px;
      background: transparent;
      color: rgba(174, 189, 222, .72);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .goal-workspace-pill::after {
      content: "";
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 7px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(34,211,238,.9));
      opacity: 0;
      transform: scaleX(.35);
      transform-origin: center;
      transition: opacity .18s ease, transform .18s ease;
    }

    .goal-workspace-pill.active {
      background:
        linear-gradient(180deg, rgba(26,35,58,.96), rgba(16,24,40,.94));
      border-color: rgba(124,92,255,.14);
      color: #f6f8ff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 18px rgba(40, 58, 110, .18);
      transform: translateY(-1px);
    }

    .goal-workspace-pill.active::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .leader-mvp-card {
      overflow: hidden;
      position: relative;
      border-color: rgba(242,199,102,.24);
      background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.18), transparent 14%),
        radial-gradient(circle at top right, rgba(242,199,102,.26), transparent 30%),
        radial-gradient(circle at bottom left, rgba(124,92,255,.16), transparent 34%),
        linear-gradient(160deg, rgba(54,37,7,.96), rgba(18,24,38,.98) 55%, rgba(9,15,27,.98));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 24px 54px rgba(9, 12, 24, .34);
    }

    .leader-mvp-card.is-empty {
      border-color: rgba(124,92,255,.22);
      background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.12), transparent 14%),
        radial-gradient(circle at top right, rgba(124,92,255,.28), transparent 30%),
        radial-gradient(circle at bottom left, rgba(30,214,255,.14), transparent 34%),
        linear-gradient(160deg, rgba(25,28,46,.96), rgba(15,20,34,.98) 58%, rgba(9,15,27,.98));
    }

    .leader-mvp-orbit {
      position: absolute;
      inset: auto -10% -30% auto;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(242,199,102,.18), transparent 56%);
      filter: blur(10px);
      pointer-events: none;
    }

    .leader-mvp-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
    }

    .leader-mvp-copy,
    .coaching-overview-copy {
      min-width: 0;
    }

    .leader-mvp-title {
      font-size: 26px;
      line-height: 1;
      letter-spacing: -.05em;
      margin: 4px 0 10px;
    }

    .leader-mvp-name {
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .leader-mvp-track {
      display: grid;
      gap: 8px;
      margin-top: 14px;
    }

    .leader-mvp-track-label {
      font-size: 10px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: rgba(225,231,255,.62);
    }

    .leader-mvp-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .leader-mvp-score {
      display: grid;
      gap: 8px;
      justify-items: end;
      text-align: right;
      min-width: 142px;
    }

    .leader-mvp-score strong {
      font-size: clamp(30px, 5vw, 40px);
      line-height: 1;
      letter-spacing: -.06em;
      text-shadow: 0 10px 28px rgba(242,199,102,.26);
    }

    .leader-mvp-card.is-empty .leader-mvp-score strong {
      color: rgba(220,228,255,.74);
      text-shadow: 0 10px 28px rgba(124,92,255,.18);
    }

    .leader-mvp-score span:last-child,
    .leader-mvp-score em {
      color: rgba(225,231,255,.72);
      font-size: 12px;
      font-style: normal;
    }

    .leader-mvp-crown {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 58px;
      min-height: 28px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 10px;
      line-height: 1;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: #211405;
      background: linear-gradient(135deg, #f2c766, #ffd67f);
      box-shadow: 0 10px 22px rgba(242,199,102,.18);
    }

    .leader-mvp-card.is-empty .leader-mvp-crown {
      color: #dfd6ff;
      background: rgba(124,92,255,.18);
      box-shadow: 0 10px 22px rgba(124,92,255,.18);
    }

    .goal-control-shell {
      display: grid;
      gap: 16px;
    }

    .goal-entry-hero {
      position: relative;
      overflow: hidden;
      padding: 18px;
      border-radius: 20px;
      background:
        radial-gradient(circle at top right, rgba(34,211,238,.10), transparent 28%),
        linear-gradient(180deg, rgba(10, 18, 30, .54), rgba(8, 14, 24, .68));
      border: 1px solid rgba(160, 190, 255, .10);
    }

    .goal-entry-status-copy,
    .goal-session-brief {
      font-size: 12px;
      line-height: 1.45;
      color: rgba(219,230,255,.74);
    }

    .goal-entry-actions {
      display: grid;
      gap: 12px;
      align-items: center;
    }

    .goal-secondary-panel {
      display: none;
    }

    .goal-secondary-panel.active {
      display: grid;
    }

    .goal-head-status {
      display: grid;
      gap: 10px;
      padding: 14px 16px;
      border-radius: 20px;
      background: rgba(8, 15, 27, .48);
      border: 1px solid rgba(160,190,255,.12);
      align-content: start;
    }

    .goal-head-status .mini-chip {
      background: rgba(124,92,255,.16);
      color: #e5deff;
    }

    .goal-card-foot {
      display: flex;
      justify-content: flex-start;
      margin-top: 10px;
    }

    .goal-summary-panel,
    .goal-targets-panel,
    .goal-session-panel {
      align-content: start;
    }

.goal-target-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      color: rgba(225,231,255,.76);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .04em;
  text-transform: uppercase;
}

.goal-target-chip.success {
  background: rgba(49,209,125,.18);
  color: #9cffc8;
}

.goal-target-chip.warning {
  background: rgba(245,166,35,.16);
  color: #ffd99a;
}

.metric-saved-badge {
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.metric-saved-badge.success {
  color: #07140d;
  background: linear-gradient(180deg, #9cffc8, #31d17d);
  border-color: rgba(173,255,211,.36);
  box-shadow: 0 10px 20px rgba(49,209,125,.22);
  transform: translateY(-1px);
}

.goal-card-min {
  color: rgba(160,190,255,.68);
  font-weight: 700;
}

.goal-metric-card.met-minimum {
  border-color: rgba(49,209,125,.25);
  box-shadow: inset 0 0 0 1px rgba(49,209,125,.08);
}

.goal-metric-card.below-minimum {
  border-color: rgba(245,166,35,.25);
  box-shadow: inset 0 0 0 1px rgba(245,166,35,.08);
}

.goal-minimum-head .mini-chip.success {
  background: rgba(49,209,125,.16);
  color: #9cffc8;
  border-color: rgba(49,209,125,.28);
}

    .manual-mtd-field {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(17,24,38,.74);
      border: 1px solid rgba(160,190,255,.12);
    }

    .goal-import-panel,
    .manual-mtd-panel,
    .goal-session-panel,
    .manager-insights-panel,
    .kpi-leader-card {
      display: grid;
      gap: 14px;
    }

    .manual-mtd-field-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 8px;
    }

    .manual-mtd-caption {
      font-size: 12px;
      line-height: 1.4;
      color: rgba(160,190,255,.68);
    }

    .manual-mtd-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .coaching-sheet {
      max-width: 1080px;
    }

    .coaching-overview-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .coaching-overview-identity {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      min-width: 0;
    }

    .coaching-overview-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

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

    .coaching-stat-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(17,24,38,.74);
      border: 1px solid rgba(160,190,255,.10);
      display: grid;
      gap: 6px;
    }

    .coaching-stat-card span,
    .coaching-stat-card small {
      color: rgba(160,190,255,.7);
    }

    .coaching-stat-card strong {
      font-size: 22px;
      letter-spacing: -.04em;
    }

    .coaching-grid {
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    }

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

    .coaching-focus-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .coaching-focus-card {
      display: grid;
      gap: 8px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(17,24,38,.76);
      border: 1px solid rgba(160,190,255,.12);
    }

    .coaching-focus-card.purple { border-color: rgba(124,92,255,.22); }
    .coaching-focus-card.blue { border-color: rgba(86,168,255,.22); }
    .coaching-focus-card.green { border-color: rgba(49,209,125,.22); }
    .coaching-focus-card.orange { border-color: rgba(245,166,35,.22); }

    .coaching-focus-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .coaching-focus-label {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .03em;
      text-transform: uppercase;
      color: rgba(225,231,255,.78);
    }

    .coaching-focus-copy {
      font-size: 12px;
      line-height: 1.4;
      color: rgba(160,190,255,.72);
    }

    .coaching-focus-value {
      font-size: 28px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -.05em;
    }

    .coaching-impact-list {
      display: grid;
      gap: 8px;
      margin-top: 14px;
    }

    .coaching-impact-item {
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,.04);
      color: rgba(225,231,255,.78);
      font-size: 13px;
      line-height: 1.45;
    }

    .coaching-plan-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .coaching-note-field {
      grid-column: 1 / -1;
    }

    .coaching-plan-grid textarea {
      min-height: 120px;
      resize: vertical;
    }

    .profile-location-copy {
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.45;
      color: rgba(160,190,255,.68);
    }

    @media (min-width: 900px) {
      .profile-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .notification-panel-top {
        flex-direction: column;
      }

      .notification-send-grid,
      .badge-award-grid,
      .manual-mtd-grid,
      .coaching-grid,
      .coaching-grid-secondary,
      .coaching-plan-grid,
      .leader-mvp-shell {
        grid-template-columns: minmax(0, 1fr);
      }

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

      .leader-mvp-score {
        justify-items: start;
        text-align: left;
      }

      .team-card-head,
      .request-card-top,
      .request-date-band,
      .goal-month-nav,
      .leader-month-nav {
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
        align-items: stretch;
      }

      .goal-mtd-controls {
        justify-items: stretch;
      }

      .goal-entry-actions {
        grid-template-columns: minmax(0, 1fr);
      }

      .leaderboard-control-head {
        flex-direction: column;
      }

      .leaderboard-control-grid {
        gap: 10px;
      }

      .goal-workspace-switch {
        position: sticky;
        top: 74px;
        z-index: 4;
        padding: 8px;
        border-radius: 16px;
        background: rgba(8, 13, 24, .82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
      }

      .notification-field-full {
        grid-column: auto;
      }
    }

    @media (min-width: 1280px) {
      .leaderboard-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .leaderboard-list.kpi-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .session-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1520px) {
      .coaching-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
      }
    }

    @media (min-width: 1024px) {
      .requests-shell .team-card-list,
      .team-shell .team-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .hero-command-grid {
        grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr);
        align-items: stretch;
      }

      .hero-command-ribbon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .leaderboard-control-grid {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
      }

      .goal-workspace-switch {
        display: none;
      }

      .goal-secondary-panel {
        display: grid !important;
      }
    }

    @media (hover: hover) and (pointer: fine) {
      .swipe-shell {
        overflow: visible;
      }

      .swipe-actions {
        inset: 14px 14px auto auto;
        align-items: center;
        background: none;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
        z-index: 2;
      }

      .swipe-shell:hover .swipe-actions,
      .swipe-shell:focus-within .swipe-actions,
      .swipe-shell.open .swipe-actions {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

      .swipe-front,
      .swipe-shell.open .swipe-front {
        transform: none;
      }

      .swipe-action {
        width: auto;
        min-width: 74px;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 14px;
        box-shadow: 0 14px 30px rgba(3, 8, 19, .26);
      }
    }

    @media (min-width: 1440px) {
      .tab-content {
        max-width: 1400px;
      }

      .leaderboard-list.kpi-mode {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .requests-shell .team-card-list,
      .team-shell .team-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1680px) {
      .requests-shell .team-card-list,
      .team-shell .team-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
