.admin-body {
  min-height: 100vh;
  background: #080410;
  color: #f5f1fa;
}
.admin-login {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(112, 44, 203, .24), transparent 32%),
    #080310;
  transition: opacity .35s ease, visibility .35s;
}
.admin-login.hidden-login { visibility: hidden; opacity: 0; pointer-events: none; }
.admin-login-grid {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(169,108,238,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,108,238,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 65%);
}
.admin-login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 455px);
  padding: 38px;
  border: 1px solid rgba(201,153,255,.18);
  border-radius: 27px;
  background: linear-gradient(155deg, rgba(27,14,47,.97), rgba(11,5,20,.98));
  box-shadow: 0 40px 120px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
}
.admin-login-card .brand { margin-bottom: 38px; }
.admin-lock {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid rgba(190,124,255,.25);
  border-radius: 18px;
  background: rgba(154,71,229,.11);
  color: #c791f4;
}
.admin-lock svg { width: 26px; }
.admin-login-card h1 { margin: 0; font-size: 28px; letter-spacing: -1.2px; }
.admin-login-card > p { margin: 10px 0 25px; color: #8d8497; font-family: var(--font-hi); font-size: 12px; line-height: 1.7; }
.admin-login-step .phone-input { margin-bottom: 14px; }
.admin-login-step .phone-input {
  min-height: 60px;
  border-color: rgba(193, 125, 255, .28);
  border-radius: 15px;
}
.admin-login-step .phone-input input {
  min-height: 58px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #d69cff;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 1px;
}
.admin-login-step .phone-input input::placeholder {
  color: #776c82 !important;
  -webkit-text-fill-color: #776c82 !important;
}
.admin-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 12px; }
.admin-otp input {
  width: 100%;
  height: 51px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,.03);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
}
.admin-otp input:focus { border-color: #a95cf2; box-shadow: 0 0 0 3px rgba(169,92,242,.08); }
.demo-code { margin: 0 0 14px; color: #6f6679; font-size: 9px; text-align: center; }
.demo-code strong { color: #b886e7; letter-spacing: 1px; }
.login-security { display: flex; justify-content: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.login-security span { display: flex; align-items: center; gap: 6px; color: #625a6b; font-size: 8px; }
.login-security svg { width: 12px; color: #8e6aac; }

.admin-app {
  display: grid;
  visibility: hidden;
  min-height: 100vh;
  grid-template-columns: 245px minmax(0, 1fr);
  opacity: 0;
  transition: opacity .35s ease;
}
.admin-app.active { visibility: visible; opacity: 1; }
.admin-sidebar {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 245px;
  flex-direction: column;
  padding: 22px 15px;
  border-right: 1px solid rgba(255,255,255,.065);
  background: #0b0614;
}
.admin-brand { padding: 0 8px 24px; border-bottom: 1px solid var(--line); }
.admin-brand .brand-mark { width: 36px; height: 36px; }
.admin-brand strong { font-size: 15px; }
.admin-brand small { font-size: 7px; letter-spacing: 1px; }
.admin-brand .brand-wordmark,
.admin-login-card .brand-wordmark { gap: 5px; font-size: 15px; }
.admin-brand .brand-wordmark span:last-child::after,
.admin-login-card .brand-wordmark span:last-child::after { width: 3px; height: 3px; right: -5px; }
.admin-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; padding-top: 20px; }
.admin-nav > small { margin: 13px 10px 6px; color: #494151; font-size: 7px; font-weight: 700; letter-spacing: 1.4px; }
.nav-item {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #77707f;
  cursor: pointer;
  font-family: var(--font-hi);
  font-size: 10px;
  text-align: left;
  transition: all .2s ease;
}
.nav-item svg { width: 16px; }
.nav-item span { flex: 1; }
.nav-item em { min-width: 20px; padding: 3px 5px; border-radius: 999px; background: rgba(255,255,255,.04); color: #7c7385; font-size: 7px; font-style: normal; text-align: center; }
.nav-item:hover { color: #b9afc3; background: rgba(255,255,255,.025); }
.nav-item.active { border-color: rgba(177,110,246,.15); background: linear-gradient(90deg, rgba(155,76,230,.14), rgba(128,54,197,.04)); color: #d4bbeb; }
.nav-item.active svg { color: #bd7af5; }
.nav-item.active::before { position: absolute; top: 10px; bottom: 10px; left: -16px; width: 2px; border-radius: 2px; background: #af61ed; box-shadow: 0 0 12px #a94aef; content: ""; }
.sidebar-help { margin-top: 15px; padding: 15px; border: 1px solid rgba(74,220,142,.11); border-radius: 13px; background: rgba(31,159,90,.045); }
.sidebar-help > span { display: grid; width: 31px; height: 31px; margin-bottom: 10px; place-items: center; border-radius: 9px; background: rgba(38,199,111,.1); color: #62d99a; }
.sidebar-help svg { width: 15px; }
.sidebar-help strong, .sidebar-help small { display: block; }
.sidebar-help strong { font-size: 9px; }
.sidebar-help small { margin-top: 3px; color: #5e6c64; font-size: 7px; }
.sidebar-help a { display: inline-block; margin-top: 11px; color: #58bf86; font-size: 8px; font-weight: 600; }
.admin-logout { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 12px; border: 0; background: transparent; color: #615968; cursor: pointer; font-size: 9px; }
.admin-logout svg { width: 14px; }

.admin-main { grid-column: 2; min-width: 0; }
.admin-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,4,16,.82);
  backdrop-filter: blur(20px);
}
.topbar-title { display: flex; align-items: center; gap: 13px; }
.sidebar-toggle { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.topbar-title > div { display: flex; flex-direction: column; gap: 4px; }
.breadcrumb { color: #554d5e; font-size: 8px; }
.breadcrumb b { color: #867790; font-weight: 500; }
.topbar-title h1 { margin: 0; font-family: var(--font-hi); font-size: 15px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.firebase-state { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(244,183,64,.12); border-radius: 10px; background: rgba(244,183,64,.035); }
.firebase-state > span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(244,183,64,.6); }
.firebase-state div { display: flex; flex-direction: column; }
.firebase-state small { color: #69606f; font-size: 7px; }
.firebase-state strong { color: #b49d72; font-size: 8px; }
.icon-button { position: relative; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #8b8294; }
.icon-button svg { width: 15px; }
.icon-button em { position: absolute; top: -4px; right: -3px; display: grid; width: 15px; height: 15px; place-items: center; border: 2px solid #080410; border-radius: 50%; background: #a54bef; color: #fff; font-size: 6px; font-style: normal; }
.admin-profile { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.admin-profile > span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(189,124,247,.2); border-radius: 10px; background: linear-gradient(145deg, #7f3ac1, #4c1f7d); font-size: 9px; font-weight: 700; }
.admin-profile div { display: flex; flex-direction: column; gap: 2px; }
.admin-profile strong { font-size: 9px; }
.admin-profile small { color: #615869; font-size: 7px; }
.admin-profile > svg { width: 13px; color: #4e4656; }
.admin-content { padding: 30px; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: viewIn .3s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.overview-heading, .data-view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.overview-heading h2, .data-view-header h2 { margin: 0; font-family: var(--font-hi); font-size: 28px; letter-spacing: -1.1px; }
.overview-heading p, .data-view-header p { margin: 6px 0 0; color: #716879; font-family: var(--font-hi); font-size: 10px; }
.overview-heading .section-label, .data-view-header .section-label { margin-bottom: 7px; font-size: 7px; }
.overview-actions { display: flex; gap: 8px; }
.admin-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}
.admin-button svg { width: 14px; }
.admin-button.secondary { background: rgba(255,255,255,.025); color: #8d8496; }
.admin-button.primary { border-color: rgba(190,128,250,.24); background: linear-gradient(145deg, #9a4be1, #6c2db9); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 10px 25px rgba(102,37,170,.19); }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
}
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-top > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }
.metric-top svg { width: 16px; }
.metric-top em { padding: 4px 6px; border-radius: 999px; font-size: 7px; font-style: normal; }
.admin-metric.purple .metric-top span { background: rgba(168,85,247,.11); color: #c185f6; }
.admin-metric.purple .metric-top em { background: rgba(168,85,247,.07); color: #ae75db; }
.admin-metric.blue .metric-top span { background: rgba(78,168,255,.1); color: #77bdfb; }
.admin-metric.blue .metric-top em { background: rgba(78,168,255,.06); color: #68a8df; }
.admin-metric.green .metric-top span { background: rgba(39,209,127,.1); color: #61d99d; }
.admin-metric.green .metric-top em { background: rgba(39,209,127,.06); color: #55bc88; }
.admin-metric.amber .metric-top span { background: rgba(244,183,64,.1); color: #e9b657; }
.admin-metric.amber .metric-top em { background: rgba(244,183,64,.06); color: #bc9551; }
.admin-metric > small { display: block; margin-top: 17px; color: #716879; font-size: 8px; }
.admin-metric > strong { display: block; margin-top: 5px; font-size: 25px; letter-spacing: -.8px; }
.admin-metric > p { margin: 8px 0 0; color: #544c5c; font-size: 7px; }
.admin-metric > p b { color: #887394; font-weight: 600; }

.overview-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
.admin-panel { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.024), rgba(255,255,255,.007)); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-header > div { display: flex; flex-direction: column; gap: 3px; }
.panel-header strong { font-size: 10px; }
.panel-header small { color: #5f5666; font-size: 7px; }
.panel-header select, .panel-header button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.02);
  color: #746b7d;
  font-size: 7px;
}
.panel-header button { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.panel-header button svg { width: 11px; }
.chart-summary { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px 0; }
.chart-summary > div:first-child { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 8px; }
.chart-summary small { grid-column: 1 / -1; color: #5d5565; font-size: 7px; }
.chart-summary strong { font-size: 21px; }
.chart-summary em { color: #57bd87; font-size: 7px; font-style: normal; }
.chart-legend { display: flex; gap: 12px; color: #6a6171; font-size: 7px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.legend-purple { background: #9b4fe4; }
.legend-blue { background: #397eb9; }
.bar-chart { position: relative; display: flex; height: 185px; align-items: flex-end; justify-content: space-around; gap: 9px; padding: 25px 20px 22px; }
.chart-grid-lines { position: absolute; inset: 18px 20px 30px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid-lines span { border-top: 1px dashed rgba(255,255,255,.045); }
.bar-group { position: relative; z-index: 1; display: flex; width: 9%; height: 100%; align-items: flex-end; justify-content: center; gap: 3px; }
.bar { display: block; width: 8px; min-height: 5px; border-radius: 3px 3px 1px 1px; }
.bar.request { background: linear-gradient(#aa5beb, #6d2ea9); box-shadow: 0 0 12px rgba(164,81,231,.12); }
.bar.match { background: linear-gradient(#4a9ed8, #255d89); }
.bar-group small { position: absolute; bottom: -15px; color: #4e4655; font-size: 6px; }
.category-performance { padding: 7px 18px 12px; }
.category-performance > div { display: grid; grid-template-columns: 22px 31px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.category-performance > div:last-child { border: 0; }
.cat-rank { color: #47404d; font-size: 7px; font-weight: 600; }
.cat-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; }
.cat-icon svg { width: 13px; }
.cat-icon.violet { background: rgba(168,85,247,.09); color: #b97bec; }
.cat-icon.blue { background: rgba(78,168,255,.09); color: #6bb5ef; }
.cat-icon.amber { background: rgba(244,183,64,.09); color: #d7a94d; }
.cat-icon.green { background: rgba(39,209,127,.09); color: #57c68d; }
.cat-icon.pink { background: rgba(247,120,186,.09); color: #d87aaa; }
.category-performance > div > span:nth-child(3) { display: flex; flex-direction: column; gap: 2px; }
.category-performance strong { font-size: 8px; }
.category-performance small { color: #544c5b; font-size: 6px; }
.category-performance em { color: #716779; font-size: 7px; font-style: normal; }
.recent-panel { margin-top: 12px; overflow: hidden; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #5e5665; font-size: 7px; font-weight: 600; letter-spacing: .3px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: #a59cab; font-family: var(--font-hi); font-size: 8px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(163,84,235,.025); }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #321d4a; color: #c48bee; font-family: var(--font); font-size: 7px; font-weight: 700; }
.table-user span:last-child { display: flex; flex-direction: column; gap: 2px; }
.table-user strong { color: #c5bccd; font-size: 8px; font-weight: 600; }
.table-user small { color: #514959; font-size: 6px; }
.table-id { color: #8c66ad; font-family: var(--font); font-size: 7px; font-weight: 600; }
.table-service { display: inline-flex; padding: 5px 7px; border-radius: 6px; background: rgba(162,79,231,.07); color: #a878ca; }
.table-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 999px; font-size: 7px; }
.table-status::before { width: 5px; height: 5px; border-radius: 50%; content: ""; }
.table-status.new, .table-status.pending { background: rgba(244,183,64,.06); color: #b58e4a; }
.table-status.new::before, .table-status.pending::before { background: #e5ad42; }
.table-status.verified, .table-status.completed, .table-status.assigned { background: rgba(39,209,127,.06); color: #50ae7d; }
.table-status.verified::before, .table-status.completed::before, .table-status.assigned::before { background: #45ce85; }
.table-status.contacted { background: rgba(78,168,255,.06); color: #5895c5; }
.table-status.contacted::before { background: #4b9dd8; }
.table-status.cancelled, .table-status.inactive { background: rgba(255,111,134,.06); color: #ad6371; }
.table-status.cancelled::before, .table-status.inactive::before { background: #e2697e; }
.table-action { display: flex; gap: 5px; }
.table-action button, .table-action a { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); color: #716778; cursor: pointer; }
.table-action svg { width: 12px; }
.table-action button:hover, .table-action a:hover { border-color: rgba(180,112,245,.25); color: #b982e5; }
.empty-table { padding: 45px 15px; color: #5e5666; text-align: center; }
.compact-table table { min-width: 760px; }

.data-view-header { margin-bottom: 22px; }
.table-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.admin-search { display: flex; min-height: 40px; flex: 1; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.admin-search svg { width: 14px; color: #5d5465; }
.admin-search input { width: 100%; border: 0; outline: none; background: transparent; color: #b9b0c1; font-size: 9px; }
.admin-search input::placeholder { color: #514959; }
.table-toolbar select, .filter-reset {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,.02);
  color: #756c7e;
  font-size: 8px;
}
.table-toolbar select { min-width: 125px; color-scheme: dark; }
.filter-reset { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.filter-reset svg { width: 12px; }
.data-panel { overflow: hidden; }
.table-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line); color: #6c6374; font-size: 8px; }
.table-meta b { color: #a477ca; }
.table-meta small { color: #4f4756; font-size: 7px; }
.assignment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.assignment-card { padding: 18px; }
.assignment-top { display: flex; align-items: center; justify-content: space-between; }
.assignment-top .table-id { font-size: 8px; }
.assignment-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 22px; }
.assignment-person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.assignment-person .table-avatar { width: 38px; height: 38px; margin-bottom: 7px; border-radius: 11px; }
.assignment-person strong { font-size: 8px; }
.assignment-person small { margin-top: 2px; color: #5c5363; font-size: 6px; }
.pair-line { display: flex; align-items: center; width: 55px; color: #804fa8; }
.pair-line::before, .pair-line::after { flex: 1; border-top: 1px dashed rgba(173,96,237,.2); content: ""; }
.pair-line svg { width: 15px; margin: 0 4px; }
.assignment-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.assignment-info div { padding: 10px; border: 1px solid rgba(255,255,255,.05); border-radius: 9px; background: rgba(255,255,255,.012); }
.assignment-info small, .assignment-info strong { display: block; }
.assignment-info small { color: #544c5b; font-size: 6px; }
.assignment-info strong { margin-top: 4px; color: #a198a8; font-size: 8px; }
.assignment-progress { margin-top: 16px; }
.progress-label { display: flex; justify-content: space-between; color: #625969; font-size: 7px; }
.progress-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.05); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8241c6, #ba6ff4); }
.commission-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.commission-summary article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.commission-summary article > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: rgba(157,74,229,.09); color: #b778e9; }
.commission-summary svg { width: 16px; }
.commission-summary div { display: flex; flex-direction: column; gap: 4px; }
.commission-summary small { color: #615869; font-size: 7px; }
.commission-summary strong { font-size: 14px; }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.location-card { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.014); }
.location-card > div { display: flex; align-items: center; gap: 10px; }
.location-card span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: rgba(157,74,229,.08); color: #a868d7; }
.location-card svg { width: 14px; }
.location-card strong, .location-card small { display: block; }
.location-card strong { font-size: 8px; }
.location-card small { margin-top: 3px; color: #534b5a; font-size: 6px; }
.location-card em { padding: 4px 6px; border-radius: 999px; background: rgba(39,209,127,.06); color: #4da877; font-size: 6px; font-style: normal; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.setting-card { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; padding: 20px; }
.setting-card > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: rgba(158,77,229,.09); color: #b776e5; }
.setting-card svg { width: 19px; }
.setting-card > div { display: flex; flex-direction: column; gap: 4px; }
.setting-card strong { font-size: 10px; }
.setting-card small { color: #5c5363; font-size: 7px; }
.setting-card em { align-self: start; padding: 5px 7px; border-radius: 999px; font-size: 6px; font-style: normal; }
.setting-status.active { background: rgba(39,209,127,.07); color: #4fad79; }
.setting-status.pending { background: rgba(244,183,64,.07); color: #b18a48; }
.setting-card button, .setting-card a { grid-column: 2; width: fit-content; padding: 0; border: 0; background: transparent; color: #855daa; cursor: pointer; font-size: 7px; }
.admin-toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  display: flex;
  visibility: hidden;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(92,220,151,.18);
  border-radius: 10px;
  background: rgba(15,27,21,.96);
  color: #a5c9b6;
  box-shadow: 0 15px 45px rgba(0,0,0,.4);
  font-size: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all .2s ease;
}
.admin-toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.admin-toast svg { width: 14px; color: #52cd8a; }

@media (max-width: 1120px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .assignment-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-main { grid-column: 1; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 25px 0 70px rgba(0,0,0,.5); }
  .sidebar-toggle { display: grid; }
  .admin-content { padding: 20px; }
  .admin-topbar { padding-inline: 18px; }
  .admin-profile div, .admin-profile > svg, .firebase-state { display: none; }
  .commission-summary { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .admin-login { padding: 10px; }
  .admin-login-card { padding: 28px 20px; }
  .admin-login-card h1 { font-size: 24px; }
  .admin-topbar { min-height: 66px; }
  .topbar-title h1 { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .breadcrumb { display: none; }
  .admin-content { padding: 16px 12px; }
  .overview-heading, .data-view-header { display: block; }
  .overview-actions, .data-view-header > .admin-button { margin-top: 15px; }
  .admin-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-metric { padding: 14px; }
  .admin-metric > strong { font-size: 21px; }
  .admin-metric > p { display: none; }
  .table-toolbar { flex-wrap: wrap; }
  .admin-search { flex-basis: 100%; }
  .table-toolbar select { flex: 1; min-width: 0; }
  .table-meta small { display: none; }
  .assignment-grid, .settings-grid { grid-template-columns: 1fr; }
  .commission-summary { grid-template-columns: 1fr 1fr; }
  .commission-summary article { padding: 13px; }
  .location-grid { grid-template-columns: 1fr; }
  .chart-summary { align-items: flex-start; }
  .chart-legend { flex-direction: column; gap: 5px; }
}

/* Readability pass for day-to-day admin use. */
.admin-login-card > p { font-size: 14px; color: #aaa1b3; }
.demo-code { font-size: 12px; color: #948a9f; }
.login-security span { font-size: 11px; color: #82788c; }
.admin-brand small { font-size: 9px; }
.admin-nav > small { font-size: 10px; color: #6d6377; }
.nav-item { font-size: 14px; color: #aaa1b3; }
.nav-item em { font-size: 10px; }
.sidebar-help strong { font-size: 12px; }
.sidebar-help small { font-size: 10px; color: #78847d; }
.sidebar-help a { font-size: 11px; }
.admin-logout { font-size: 12px; }
.breadcrumb { font-size: 11px; color: #766c80; }
.topbar-title h1 { font-size: 18px; }
.firebase-state small { font-size: 10px; }
.firebase-state strong { font-size: 11px; }
.icon-button em { font-size: 9px; }
.admin-profile > span { font-size: 11px; }
.admin-profile strong { font-size: 12px; }
.admin-profile small { font-size: 10px; color: #81778a; }
.overview-heading h2,
.data-view-header h2 { font-size: 32px; }
.overview-heading p,
.data-view-header p { font-size: 15px; color: #aaa1b3; }
.overview-heading .section-label,
.data-view-header .section-label { font-size: 10px; }
.admin-button { font-size: 13px; }
.metric-top em { font-size: 10px; }
.admin-metric > small { font-size: 13px; color: #aaa1b3; }
.admin-metric > strong { font-size: 29px; }
.admin-metric > p { font-size: 11px; color: #948a9e; }
.panel-header strong { font-size: 14px; }
.panel-header small { font-size: 11px; color: #948a9e; }
.panel-header select,
.panel-header button { font-size: 10px; }
.chart-summary small { font-size: 10px; color: #81778a; }
.chart-summary em,
.chart-legend { font-size: 10px; }
.bar-group small { font-size: 9px; color: #716878; }
.cat-rank { font-size: 10px; }
.category-performance strong { font-size: 11px; }
.category-performance small { font-size: 9px; color: #756c7e; }
.category-performance em { font-size: 10px; }
th { font-size: 11px; color: #948a9e; }
td { font-size: 13px; color: #c4bbc9; }
.table-avatar { font-size: 10px; }
.table-user strong { font-size: 13px; }
.table-user small { font-size: 11px; color: #948a9e; }
.table-id { font-size: 11px; }
.table-service,
.table-status { font-size: 10px; }
.admin-search input { font-size: 14px; }
.table-toolbar select,
.filter-reset { font-size: 11px; }
.table-meta { font-size: 12px; }
.table-meta small { font-size: 11px; color: #948a9e; }
.assignment-top .table-id { font-size: 11px; }
.assignment-person strong { font-size: 11px; }
.assignment-person small { font-size: 9px; color: #756c7e; }
.assignment-info small { font-size: 9px; color: #756c7e; }
.assignment-info strong { font-size: 11px; }
.progress-label { font-size: 10px; }
.commission-summary small { font-size: 10px; }
.location-card strong { font-size: 11px; }
.location-card small { font-size: 9px; color: #756c7e; }
.location-card em { font-size: 9px; }
.setting-card strong { font-size: 13px; }
.setting-card small { font-size: 10px; color: #756c7e; }
.setting-card em,
.setting-card button,
.setting-card a { font-size: 10px; }
.admin-toast { font-size: 11px; }

@media (max-width: 620px) {
  .nav-item { font-size: 14px; }
  .overview-heading h2,
  .data-view-header h2 { font-size: 28px; }
  .admin-metric > small { font-size: 12px; }
  .admin-metric > strong { font-size: 24px; }
}
