:root {
  --paper: #f4f5f1;
  --surface: #fffdfa;
  --ink: #181a20;
  --muted: #747b86;
  --line: #e2ded6;
  --purple: #4f46a5;
  --purple-soft: #ecebff;
  --blue: #2056c7;
  --blue-soft: #eaf1ff;
  --orange: #ea580c;
  --orange-soft: #fff1e8;
  --gray-soft: #f3f4f6;
  --amber: #c2710c;
  --amber-soft: #fdf3e0;
  --green: #0f8a6a;
  --green-soft: #e8f7f1;
  --red-soft: #f4d8d1;
  --radius: 8px;
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.person,
.person *,
.panel,
.panel *,
.adminPanel,
.adminPanel *,
.notice,
.notice *,
.kpi,
.battleItem {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(320px, 1fr);
  gap: 36px;
  padding: 34px;
  align-items: center;
}

.phone {
  width: min(100%, 430px);
  height: min(900px, calc(100vh - 68px));
  min-height: 720px;
  background: var(--surface);
  border: 1px solid rgba(32, 35, 31, .12);
  border-radius: 32px;
  box-shadow: 0 22px 55px rgba(64, 35, 86, .18);
  overflow: hidden;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 112px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #1d1d1b;
  z-index: 2;
}

.login, .app {
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  padding: 58px 18px 28px;
}

.hidden { display: none !important; }
.eyebrow { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 600; }
h1, h2, p { margin: 0; }
h1 { margin-top: 5px; font-size: 25px; line-height: 1.22; font-weight: 800; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.7; font-weight: 400; }

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: white;
  color: var(--ink);
}

.primary, .secondary {
  border-radius: var(--radius);
  min-height: 44px;
  padding: 11px 14px;
  font-weight: 700;
}

.primary {
  width: 100%;
  margin-top: 16px;
  color: white;
  background: var(--purple);
}

.secondary {
  color: var(--ink);
  background: #efe9f3;
  border: 1px solid var(--line);
}

.hint { margin-top: 14px; font-size: 12px; }

.topbar, .sectionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account {
  min-width: 86px;
  border-radius: var(--radius);
  background: #eee6f2;
  padding: 8px 10px;
  color: var(--ink);
  text-align: right;
}
.account b { display: block; }
.account span { display: block; color: var(--muted); font-size: 12px; }

.notice {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 14px;
  border: 1px solid #d5c8ad;
  border-radius: var(--radius);
  background: #fbf0d8;
  padding: 12px;
}
.notice b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: white;
}
.notice span { line-height: 1.55; }

.overviewHero {
  margin: 16px 0 10px;
  border-radius: 18px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #181a20 0%, #2a3040 100%);
  box-shadow: 0 16px 36px rgba(24, 26, 32, .22);
  overflow: hidden;
  position: relative;
}

.overviewHero::after {
  content: none;
}

.heroTop,
.heroMain {
  position: relative;
  z-index: 1;
}

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

.heroScope {
  display: block;
  color: #ffbf92;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.overviewHero h2 {
  margin-top: 4px;
  color: white;
  font-size: 22px;
  line-height: 1.18;
}

.overviewHero p {
  margin-top: 7px;
  color: #b7bfcc;
  font-size: 12px;
  line-height: 1.5;
}

.heroStamp {
  flex: 0 0 auto;
  max-width: 104px;
  border: 1px solid rgba(255, 143, 82, .48);
  border-radius: var(--radius);
  background: rgba(234, 88, 12, .15);
  color: #ffc6a4;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
}

.heroMain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.heroV span,
.heroReward span {
  display: block;
  color: #9da6b8;
  font-size: 11px;
  font-weight: 800;
}

.heroV strong {
  display: block;
  margin-top: 4px;
  font-size: 38px;
  line-height: .95;
  font-weight: 950;
  letter-spacing: 0;
}

.heroV em,
.heroReward em {
  display: block;
  margin-top: 7px;
  color: #9ea6b6;
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.heroReward {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.075);
  padding: 10px;
}

.heroReward strong {
  display: block;
  margin-top: 5px;
  color: #cdbbff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.kpis, .battle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.pageNav {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 18px;
  padding: 8px;
  border: 1px solid rgba(107, 63, 160, .18);
  border-radius: 18px;
  background: rgba(255, 250, 254, .94);
  box-shadow: 0 8px 20px rgba(64, 35, 86, .10);
}

.pageNav:has(#adminNavButton:not(.hidden)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pageNav button {
  min-height: 52px;
  border-radius: 14px;
  background: #f2e9f8;
  color: var(--purple);
  display: grid;
  place-items: center;
  gap: 3px;
}

.pageNav button b {
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.pageNav button span {
  font-size: 11px;
  line-height: 1;
  color: #7c6791;
  font-weight: 600;
}

.pageNav button.active {
  color: white;
  background: var(--purple);
}

.pageNav button.active span {
  color: rgba(255, 255, 255, .82);
}

.kpi, .battleItem {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 10px;
}
.kpi span, .battleItem span { display: block; color: var(--muted); font-size: 11px; }
.kpi b, .battleItem b { display: block; margin-top: 8px; font-size: 21px; line-height: 1.05; }
.kpi em, .battleItem em { display: block; margin-top: 5px; color: var(--purple); font-style: normal; font-size: 11px; }
.statCard {
  min-height: 92px;
  box-shadow: 0 8px 20px rgba(24,26,32,.04);
}
.statCard.acc1 b { color: var(--orange); }
.statCard.acc2 b { color: var(--purple); }
.statCard.acc3 b { color: var(--blue); }
.statCard.acc4 b { color: var(--ink); }

.people { display: grid; gap: 10px; margin: 10px 0 18px; }
.pagePanel { margin-top: 0; }

.overviewHead,
.actionHead {
  margin-top: 20px;
  margin-bottom: 10px;
  align-items: flex-end;
}

.overviewHead::before,
.actionHead::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 20px;
  border-radius: 99px;
  align-self: center;
  background: var(--green);
}

.actionHead::before {
  background: var(--orange);
}

.overviewHead > div,
.actionHead > div {
  min-width: 0;
  flex: 1;
}

.overviewHead span,
.actionHead span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

#scopeLabel {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef1f5;
  color: #596171;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.opportunityBoard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.oppCard {
  border: 1px solid #d9eadf;
  border-radius: var(--radius);
  background: white;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
  box-shadow: inset 4px 0 0 var(--green), 0 8px 20px rgba(24,26,32,.04);
}

.oppCard.reach { box-shadow: inset 4px 0 0 var(--orange), 0 8px 20px rgba(24,26,32,.04); }
.oppCard.stretch { box-shadow: inset 4px 0 0 var(--blue), 0 8px 20px rgba(24,26,32,.04); }

.oppCard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.oppCard b {
  font-size: 27px;
  line-height: 1.1;
  font-weight: 950;
  color: var(--ink);
}

.oppCard em {
  color: #5e6671;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
  margin-top: 12px;
}

.compactToolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.rosterList,
.awardList,
.honorList {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 15px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(64, 35, 86, .08);
}

.actionPerson,
.rosterPerson,
.awardPerson,
.honorPerson {
  cursor: pointer;
}

.priorityCard {
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 68%);
  padding: 14px;
  min-width: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(180, 83, 9, .09);
}

.priorityCard.done {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 68%);
}

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

.priorityTop > div {
  min-width: 0;
}

.priorityName {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.priorityTop em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.priorityTop > b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
}

.priorityGap {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--orange);
}

.priorityGap span,
.priorityGap em {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.priorityGap strong {
  font-size: 34px;
  line-height: .95;
  font-weight: 950;
  letter-spacing: 0;
}

.priorityCard.done .priorityGap {
  color: var(--blue);
}

.priorityDesc {
  margin-top: 10px;
  border-radius: var(--radius);
  background: #fff1e8;
  border: 1px solid #ffd2b3;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.priorityCard.done .priorityDesc {
  background: var(--blue-soft);
  border-color: #bfdbfe;
}

.priorityDesc b {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.priorityDesc span {
  color: #6f3d19;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.priorityCard.done .priorityDesc span {
  color: #244c8f;
}

.priorityBar {
  height: 8px;
  margin-top: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: #f2e4d8;
}

.priorityBar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--orange);
}

.priorityCard.done .priorityBar {
  background: #dbeafe;
}

.priorityCard.done .priorityBar i {
  background: var(--blue);
}

.priorityMeta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #6a6470;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.priorityMeta b {
  color: var(--ink);
}

.referenceOrder {
  margin-top: 10px;
  border-radius: var(--radius);
  background: #f8f4ec;
  border: 1px dashed #dcc8a5;
  color: #725226;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 750;
}

.priorityCard p {
  margin-top: 10px;
  color: #4b4650;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

.person + .person {
  margin-top: 12px;
}
.personTop { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.personName { display: flex; gap: 9px; align-items: center; min-width: 0; }
.personName > div:last-child { min-width: 0; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.tag, .pill {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 11px;
}
.tag.hot { color: #8a2d20; background: var(--red-soft); }
.tag.reward { color: #855012; background: var(--amber-soft); }

.personMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.personMeta span {
  border-radius: 999px;
  background: #f0edf2;
  color: #615468;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 750;
}

.ownerBadge {
  border-radius: 999px;
  background: var(--blue-soft) !important;
  color: var(--blue) !important;
  border: 1px solid #c8d6ec;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
}

.rosterCompactTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.detailHint {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f4f0f7;
  color: #65536d;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

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

.rosterCompactMetrics div {
  min-width: 0;
  border-radius: var(--radius);
  background: #fbfafc;
  border: 1px solid var(--line);
  padding: 8px;
}

.rosterCompactMetrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.rosterCompactMetrics b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.rosterOpportunityChips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.opportunityChip {
  min-width: 0;
  min-height: 58px;
  border-radius: var(--radius);
  border: 1px solid #e3dce7;
  background: #fbfaff;
  padding: 7px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 3px 6px;
  align-items: center;
}

.opportunityChip b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7b7284;
  color: white;
  font-size: 11px;
  line-height: 1;
  grid-row: span 2;
}

.opportunityChip em,
.opportunityChip strong {
  min-width: 0;
  line-height: 1.2;
  font-style: normal;
  overflow-wrap: anywhere;
}

.opportunityChip em {
  color: #625a68;
  font-size: 10px;
  font-weight: 850;
}

.opportunityChip strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 950;
}

.opportunityChip.hot {
  background: #fff5ea;
  border-color: #ecc08b;
}

.opportunityChip.hot b {
  background: var(--orange);
}

.opportunityChip.warm {
  background: var(--amber-soft);
  border-color: #e8c89b;
}

.opportunityChip.warm b {
  background: var(--amber);
}

.opportunityChip.done {
  background: var(--blue-soft);
  border-color: #c8d6ec;
}

.opportunityChip.done b {
  background: var(--blue);
}

.rosterOpportunityEmpty,
.rosterNextAction {
  margin-top: 10px;
  border-radius: var(--radius);
  background: #f7f4f8;
  border: 1px solid #e2dce6;
  color: #5d5364;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 750;
}

.rosterNextAction {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.rosterNextAction b {
  color: var(--purple);
  font-weight: 950;
}

.priorityOwner {
  margin-top: 8px;
  display: flex;
}

.newcomerTrueup {
  margin-top: 10px;
  border-radius: var(--radius);
  background: #eef7fb;
  border: 1px solid #c8d6ec;
  color: #244c8f;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
}

.priorityToggle {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid #d9c8e5;
  background: #fbf7ff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(64, 35, 86, .06);
}

.priorityToggle.close {
  background: white;
  color: #6b5b72;
}

.reminderPanel {
  margin-top: 12px;
  border-radius: var(--radius);
  background: #fbfaf7;
  border: 1px solid #e5ded2;
  padding: 10px;
  box-shadow: inset 4px 0 0 rgba(188, 119, 36, .42);
}

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

.reminderTitle b {
  font-size: 15px;
  font-weight: 900;
}

.reminderTitle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reminderGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reminder {
  min-width: 0;
  border-radius: var(--radius);
  background: white;
  border: 1px solid #e2ddd5;
  padding: 8px;
  display: grid;
  grid-template-columns: 30px 78px 1fr;
  gap: 8px;
  align-items: center;
}

.reminder span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #6f7782;
  font-size: 13px;
  font-weight: 900;
}

.reminder b {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.reminder em {
  color: #4c4055;
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.reminder.warm {
  border-color: #e8c89b;
  background: #fff6ea;
}

.reminder.warm span {
  background: var(--amber);
}

.reminder.blue {
  border-color: #b8d8ec;
  background: var(--blue-soft);
}

.reminder.blue span {
  background: var(--blue);
}

.reminder.purple {
  border-color: #b8d8ec;
  background: var(--blue-soft);
}

.reminder.purple span {
  background: var(--blue);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics > div { min-width: 0; }
.metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.metrics b { font-size: 13px; font-weight: 800; }
.reason {
  color: #42413d;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 450;
  white-space: normal;
}
.product {
  margin-top: 10px;
  border-radius: var(--radius);
  background: #f5effa;
  padding: 9px 10px;
  color: #4d3b5b;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  white-space: normal;
}

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

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

.rosterBusiness div,
.rankGrid div {
  min-width: 0;
  border-radius: var(--radius);
  background: #fbfafc;
  border: 1px solid var(--line);
  padding: 8px;
}

.rosterBusiness span,
.rankGrid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

.rosterBusiness b,
.rankGrid b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.miniTrend {
  min-height: 42px;
  border-radius: var(--radius);
  background: #f5f1f7;
  border: 1px solid #e4dbe9;
  padding: 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4px;
  margin-top: 10px;
}

.trendNode {
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: 44px auto auto;
  gap: 3px;
  align-items: end;
  text-align: center;
}

.miniTrend i {
  width: 100%;
  min-width: 6px;
  height: var(--h);
  border-radius: 99px 99px 3px 3px;
  background: var(--purple);
  opacity: .78;
}

.trendNode em,
.trendNode b {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-style: normal;
  font-size: 9px;
  line-height: 1.05;
}

.trendNode em {
  color: var(--muted);
  font-weight: 750;
}

.trendNode b {
  color: #4b4052;
  font-weight: 850;
}

.miniTrend.empty {
  color: var(--muted);
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.rankLine {
  color: #4d4653;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

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

.profileLine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.profileFacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profileFacts span {
  max-width: 100%;
  border-radius: 999px;
  background: #f0edf2;
  color: #615468;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profileFacts b {
  margin-right: 4px;
  color: #887893;
  font-weight: 850;
}

.awardChips,
.doneChips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.awardProgressGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.awardProgressGrid > span {
  min-width: 0;
  border: 1px solid #e3dce7;
  border-radius: var(--radius);
  background: #fbfaff;
  padding: 8px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 6px;
  align-items: center;
}

.awardProgressGrid > span.tieredAward {
  grid-column: 1 / -1;
}

.awardProgressGrid > span.done {
  background: var(--blue-soft);
  border-color: #c8d6ec;
}

.awardProgressGrid > span > b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7b7284;
  color: white;
  font-size: 11px;
  grid-row: span 2;
}

.awardProgressGrid > span.done > b {
  background: var(--blue);
}

.awardProgressGrid > span > em,
.awardProgressGrid > span > strong,
.awardProgressGrid > span > u {
  min-width: 0;
  font-style: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.awardProgressGrid > span > em {
  color: #5b5263;
  font-size: 11px;
  font-weight: 850;
}

.awardProgressGrid > span > strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.awardProgressGrid > span > u {
  grid-column: 1 / -1;
  color: #6b6270;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 750;
}

.awardTrack {
  grid-column: 1 / -1;
  position: relative;
  height: 15px;
  margin-top: 2px;
}

.awardTrack.tiered {
  height: 33px;
  margin-top: 3px;
}

.awardTrack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 5px;
  border-radius: 999px;
  background: #ece5ee;
}

.awardTrack > small {
  position: absolute;
  left: 0;
  top: 7px;
  display: block;
  width: var(--w);
  max-width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--purple);
  z-index: 1;
}

.awardTrack mark {
  position: absolute;
  left: var(--x);
  top: 3px;
  z-index: 2;
  padding: 0;
  background: transparent;
  color: #7c7283;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.awardTrack mark:first-of-type {
  transform: translateX(-18%);
}

.awardTrack mark:last-of-type {
  transform: translateX(-82%);
}

.awardTrack mark i {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto;
  border: 2px solid #fbfaff;
  border-radius: 50%;
  background: #b9b0bf;
  box-shadow: 0 0 0 1px #d9d1de;
}

.awardTrack mark.done i {
  background: var(--purple);
  box-shadow: 0 0 0 1px rgba(79, 70, 165, .25);
}

.awardTrack mark.next i {
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(194, 113, 12, .14);
}

.awardTrack mark abbr {
  display: block;
  margin-top: 5px;
  color: #6d6274;
  text-decoration: none;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.awardTrack mark.done abbr {
  color: var(--purple);
}

.awardTrack mark.next abbr {
  color: var(--amber);
}

.tierMarkers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tierMarkers mark {
  border-radius: 999px;
  background: #f3edf7;
  color: #6a5078;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
}

.rosterMore {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid #d9c8e5;
  background: #fbf7ff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(64, 35, 86, .06);
}

.rosterMore.close {
  background: white;
  color: #6b5b72;
}

.awardChip,
.doneChips span {
  min-height: 42px;
  border: 1px solid #e3dce7;
  border-radius: var(--radius);
  background: #fbfaff;
  padding: 7px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: #5b5263;
}

.awardChip b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7b7284;
  color: white;
  font-size: 11px;
}

.awardChip em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
}

.awardChip.done {
  background: var(--blue-soft);
  border-color: #c8d6ec;
}

.awardChip.done b {
  background: var(--blue);
}
.bar { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: #ece5ee; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--purple); }

.awardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 0 0;
  border-top: 6px solid #efe7da;
}

.awardHeader b {
  font-size: 15px;
  font-weight: 800;
}

.awardToggle {
  border: 1px solid #d4c4aa;
  border-radius: 999px;
  background: #fbf2df;
  color: #7a5522;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.awardToggle.open {
  background: #7a5522;
  color: white;
  border-color: #7a5522;
}

.awardGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  overflow: visible;
  padding-bottom: 0;
  width: 100%;
  min-width: 0;
}

.awardGrid[hidden] {
  display: none;
}

.award {
  min-height: auto;
  min-width: 178px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-soft);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(86px, .9fr) minmax(0, 1.1fr);
  gap: 8px 10px;
  align-items: start;
}

.awardTop {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.awardTop b {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.awardTop span {
  flex: 0 0 auto;
  color: #5f6874;
  background: #e6e8eb;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
}

.award strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.award em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.award.purple {
  border-color: #b8d8ec;
  background: var(--blue-soft);
}

.award.purple .awardTop span {
  color: var(--blue);
  background: #d8edf9;
}

.award.warm {
  border-color: #e8c89b;
  background: #fff4e6;
}

.award.warm .awardTop span {
  color: #855012;
  background: var(--amber-soft);
}

.award.blue {
  border-color: #c8d6ec;
  background: var(--blue-soft);
}

.award.blue .awardTop span {
  color: var(--blue);
  background: #d8edf9;
}

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

.awardTabs button {
  min-height: 58px;
  border-radius: var(--radius);
  border: 1px solid #ddd2e6;
  background: white;
  color: #5b4b68;
  padding: 8px 6px;
  display: grid;
  gap: 4px;
  place-items: center;
}

.awardTabs button b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--purple);
  font-size: 12px;
}

.awardTabs button span {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
}

.awardTabs button.active {
  color: white;
  background: var(--purple);
  border-color: var(--purple);
}

.awardTabs button.active b {
  background: white;
  color: var(--purple);
}

.awardPerson,
.honorPerson {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 13px;
  box-shadow: 0 10px 24px rgba(64, 35, 86, .08);
}

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

.awardPersonTop h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.awardPersonTop span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.awardPersonTop > b {
  flex: 0 0 auto;
  color: #855012;
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
}

.awardPersonTop > b.doneText {
  color: var(--blue);
  background: var(--blue-soft);
}

.awardPersonGrid,
.detailGrid,
.honorStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

.awardPersonGrid div,
.detailGrid div,
.honorStat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfafc;
  padding: 9px;
}

.awardPersonGrid span,
.detailGrid span,
.honorStat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.awardPersonGrid b,
.detailGrid b,
.honorStat b {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.awardPerson p,
.honorPerson p {
  margin-top: 10px;
  color: #4b4450;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

.awardDetailCard {
  display: grid;
  gap: 10px;
}

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

.awardBadges span {
  border-radius: 999px;
  background: #f3edf7;
  color: #5b4b68;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

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

.awardDetailRows b {
  overflow-wrap: anywhere;
}

.awardRule,
.awardSuggestion {
  border-radius: var(--radius);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.awardRule {
  background: #fbfaf7;
  border: 1px solid #e5ded2;
  color: #5f5145;
}

.awardSuggestion {
  background: #fff6ea;
  border: 1px dashed #e7c18b;
  color: #725226;
}

.honorStat b {
  font-size: 22px;
}

.honorStat em {
  display: block;
  margin-top: 4px;
  color: var(--purple);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.honorSummary {
  border: 1px solid #d9c8e5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fbf7ff 0%, #f3f8fb 100%);
  padding: 13px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(64, 35, 86, .08);
}

.honorSummary span,
.honorSectionHead span,
.trainingBadge {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}

.honorSummary b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.honorSummary p {
  margin-top: 6px;
  color: #4b4650;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.honorSummary strong {
  border-radius: var(--radius);
  background: white;
  border: 1px solid #e2d8ea;
  padding: 9px;
  color: var(--purple);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.honorSection {
  margin-top: 13px;
}

.honorSectionHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
}

.honorSectionHead h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.honorSectionHead > b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 5px 8px;
  font-size: 12px;
}

.honorRankList {
  display: grid;
  gap: 10px;
}

.honorMetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.honorMetrics div {
  min-width: 0;
  border-radius: var(--radius);
  background: #fbfafc;
  border: 1px solid var(--line);
  padding: 8px;
}

.honorMetrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.honorMetrics b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.trainingBadge {
  margin-top: 9px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid #c8d6ec;
  color: #244c8f;
  padding: 8px 9px;
}

.honorAction {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

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

.doneChips span {
  display: block;
  grid-template-columns: 1fr;
  min-height: 32px;
  text-align: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c8d6ec;
  font-size: 11px;
  font-weight: 800;
}

.detailView {
  padding-bottom: 20px;
}

.backButton {
  min-height: 40px;
  border-radius: var(--radius);
  background: #eee6f2;
  color: var(--purple);
  padding: 8px 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.detailHero,
.detailSection {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(64, 35, 86, .08);
}

.detailSection h2 {
  margin-bottom: 10px;
}

.actionBox {
  border-radius: var(--radius);
  background: #fff4e6;
  border: 1px solid #e8c89b;
  padding: 12px;
}

.actionBox b,
.actionBox span {
  display: block;
}

.actionBox span {
  margin-top: 5px;
  color: #855012;
  font-size: 13px;
  font-weight: 800;
}

.actionBox p {
  margin-top: 8px;
  color: #4f4335;
  font-size: 13px;
}

.detailAwards {
  display: grid;
  gap: 9px;
}

.emptyState {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfafc;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.panel, .adminPanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(64, 35, 86, .08);
}

.adminPanel { margin-top: 14px; }
.uploadBox { display: grid; gap: 8px; margin-top: 12px; }
.adminActions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.checks { display: grid; gap: 8px; margin-top: 12px; }
.check { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; }
.check b { color: var(--purple); }
.risk { margin-top: 10px; font-size: 13px; }

.side h2 { font-size: 38px; line-height: 1.12; margin: 12px 0 18px; }
.side p { max-width: 560px; }
.side ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.side li { border-left: 4px solid var(--purple); background: rgba(255, 250, 254, .72); padding: 12px 14px; border-radius: 0 var(--radius) var(--radius) 0; }

@media (max-width: 860px) {
  body { background: var(--surface); }
  .shell { display: block; padding: 0; }
  .phone { width: 100%; height: 100vh; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .phone::before, .side { display: none; }
  .login, .app { padding: 24px 18px 30px; }
}

@media (max-width: 360px) {
  .kpis, .battle, .metrics, .awardPersonGrid, .detailGrid { grid-template-columns: 1fr; }
  .reminderGrid { grid-template-columns: 1fr; }
  .pageNav { gap: 5px; padding: 6px; }
  .pageNav button { min-height: 48px; }
  .pageNav button b { font-size: 13px; }
  .pageNav button span { font-size: 10px; }
  .awardChips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awardTabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rosterMiddle { grid-template-columns: 1fr; }
}
