/* GOHED Core V22 — consolidated stylesheet. Legacy cascades preserved in original order. */

/* ===== BEGIN legacy style-01.css ===== */
:root {
  --red: #ef302a;
  --red-hover: #d82721;
  --red-light: #ffeded;
  --ink: #191a1b;
  --muted: #8791a6;
  --soft: #67748c;
  --line: #e8ebf0;
  --bg: #f5f6f9;
  --white: #fff;
  --green: #15976a;
  --green-light: #e7f7ef;
  --blue: #3276d7;
  --blue-light: #eaf2ff;
  --amber: #c48416;
  --amber-light: #fff4df;
  --slate: #788499;
  --slate-light: #eff2f6;
  --round: 14px;
  --shadow: 0 5px 24px rgba(30, 39, 62, 0.025);
  --sidebar: 252px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
a {
  color: inherit;
}
input,
select,
textarea {
  outline: 0;
}
svg {
  display: block;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.9px;
}
h2 {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.tiny {
  font-size: 14px !important;
}
.small {
  font-size: 14px !important;
}
.muted {
  color: var(--muted);
}
.soft {
  color: var(--soft);
}
.red-text {
  color: var(--red);
}
.semibold {
  font-weight: 600;
}
.bold {
  font-weight: 600;
}
.mono {
  font-variant-numeric: tabular-nums;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  min-height: 125px;
  padding: 30px 25px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.brand img {
  width: 169px;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
}
.brand-sub {
  font-size: 14px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: #a4aab7;
}
.brand-divider {
  color: var(--red);
  padding: 0 5px;
}
.navigation {
  padding: 8px 11px 16px;
  overflow-y: auto;
  flex: 1;
}
.nav-section {
  margin: 0 0 16px;
}
.nav-label {
  color: #adb5c4;
  font-size: 14px;
  letter-spacing: 1.6px;
  font-weight: 600;
  padding: 0 15px 8px;
  text-transform: uppercase;
}
.nav-item {
  height: 42px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #627089;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  margin: 1px 0;
}
.nav-item svg {
  opacity: 0.85;
}
.nav-item:hover {
  background: #f7f8fa;
  color: var(--ink);
}
.nav-item.active {
  background: var(--red-light);
  color: var(--red);
}
.nav-count {
  margin-left: auto;
  border-radius: 20px;
  background: #f2f3f6;
  color: #737e91;
  padding: 2px 7px;
  font-size: 14px;
}
.nav-item.active .nav-count {
  background: #ffdad8;
  color: var(--red);
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 19px 24px 24px;
}
.online-row {
  font-size: 14px;
  letter-spacing: 0.65px;
  font-weight: 600;
  color: #4a5c71;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: var(--red);
  vertical-align: middle;
}
.dot.green {
  background: #1eae78;
}
.footer-caption {
  font-size: 14px;
  line-height: 1.75;
  color: #a3acba;
  margin-top: 9px;
}
.workspace {
  margin-left: var(--sidebar);
  width: calc(100% - var(--sidebar));
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 14px;
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  color: #969fb0;
  font-size: 14px;
}
.breadcrumbs strong {
  color: var(--ink);
  font-weight: 600;
}
.crumb-divider {
  color: #d5dbe4;
}
.demo-label {
  background: #fff3f1;
  color: var(--red);
  padding: 6px 10px;
  border-radius: 5px;
  letter-spacing: 1.1px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.topbar-link {
  border: none;
  background: none;
  color: #8a92a1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-link:hover {
  color: var(--red);
}
.icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: white;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #69758c;
}
.icon-button:hover {
  color: var(--red);
  border-color: #ffd1cc;
}
.topbar-separator {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.profile-avatar {
  display: grid;
  place-items: center;
  background: #1a2435;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100%;
  width: 35px;
  height: 35px;
}
.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}
.profile-copy strong {
  font-size: 14px;
}
.profile-copy span {
  color: var(--muted);
  font-size: 14px;
}
.mobile-toggle {
  display: none;
}
.mobile-shade {
  display: none;
}
.main {
  padding: 28px 30px 36px;
  min-height: calc(100vh - 114px);
  width: 100%;
  max-width: none;
}
.page-footer {
  padding: 0 30px 19px;
  color: #abb3c1;
  font-size: 14px;
}
.page-footer span {
  padding: 0 6px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.page-kicker {
  font-weight: 600;
  letter-spacing: 1.8px;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 6px;
}
.page-desc {
  font-size: 14px;
  color: #91a0b6;
  margin-top: 8px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  border: 1px solid transparent;
  background: var(--white);
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 14px;
  min-height: 37px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.13s;
}
.btn:hover {
  transform: none;
}
.btn.primary {
  background: var(--red);
  color: white;
}
.btn.primary:hover {
  background: var(--red-hover);
}
.btn.secondary {
  border-color: #e1e6ed;
  background: white;
  color: #5a657a;
}
.btn.danger {
  background: #fff0ef;
  color: #d82320;
  border-color: #ffd5d1;
}
.btn.green {
  background: var(--green-light);
  color: var(--green);
}
.btn.ghost {
  background: transparent;
  color: var(--red);
  padding: 6px 0;
}
.btn.sm {
  padding: 6px 10px;
  min-height: 29px;
  font-size: 14px;
  border-radius: 7px;
}
.btn.xs {
  padding: 4px 8px;
  min-height: 25px;
  font-size: 14px;
  border-radius: 6px;
}
.demo-date {
  border: 1px solid var(--line);
  background: white;
  min-height: 37px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 14px;
  color: #7d8ba3;
}
.flag {
  background: #fff5ee;
  color: #c96d3c;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 14px;
  font-weight: 600;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 15px;
}
.kpi {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--round);
  text-align: left;
  min-width: 0;
  padding: 17px 16px 15px;
  min-height: 132px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.13s;
}
.kpi:hover {
  border-color: #f3b5ae;
  transform: none;
}
.kpi-top {
  display: flex;
  gap: 7px;
  justify-content: space-between;
  align-items: center;
}
.kpi-label {
  font-size: 14px;
  font-weight: 600;
  color: #65728a;
  line-height: 1.3;
}
.kpi-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--red-light);
  color: var(--red);
}
.kpi-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.kpi-icon.amber {
  background: var(--amber-light);
  color: var(--amber);
}
.kpi-icon.green {
  background: var(--green-light);
  color: var(--green);
}
.kpi-icon.slate {
  background: var(--slate-light);
  color: var(--slate);
}
.kpi-value {
  font-size: 20px;
  letter-spacing: -0.9px;
  line-height: 1.1;
  font-weight: 600;
  margin-top: 5px;
}
.kpi-sub {
  font-size: 14px;
  color: #9ca7b9;
  margin-top: 5px;
}
.kpi-sub.urgent {
  color: var(--red);
  font-weight: 600;
}
.full {
  width: 100%;
  min-width: 0;
}
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.panel-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--round);
  min-width: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-pad {
  padding: 19px 20px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px 15px;
}
.panel-title {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.panel-title svg {
  color: var(--red);
}
.panel-sub {
  font-size: 14px;
  color: #a3adbf;
  margin-top: 4px;
}
.panel-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.panel-link {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.panel-link:hover {
  text-decoration: underline;
}
.view-flag {
  border: 1px solid #f8d5d0;
  background: #fff5f3;
  color: var(--red);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}
.data-table thead {
  background: #f8f9fb;
}
.data-table th {
  color: #8f9bb0;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 13px 16px;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td {
  border-top: 1px solid #f0f2f5;
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: middle;
  color: #516076;
  white-space: nowrap;
}
.data-table td strong {
  color: #253145;
  font-size: 14px;
}
.data-table td .subline {
  font-size: 14px;
  color: #a4aec0;
  margin-top: 3px;
}
.data-table tbody tr:hover {
  background: #fcfcfd;
}
.id-code {
  color: #283d59;
  font-weight: 600;
  font-size: 14px;
}
.pill {
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.red {
  color: #d62e28;
  background: #fff0ed;
}
.pill.amber {
  color: #a57519;
  background: #fff3dd;
}
.pill.blue {
  color: #3571cb;
  background: #ecf3ff;
}
.pill.green {
  color: #16895f;
  background: #e7f7ed;
}
.pill.slate {
  color: #718197;
  background: #f0f3f7;
}
.pill.purple {
  color: #8256b8;
  background: #f5efff;
}
.table-empty {
  padding: 30px;
  text-align: center;
  color: #96a2b3;
}
.clickable-row {
  cursor: pointer;
}
.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 20px 16px;
  align-items: center;
}
.filterbar.atop {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.filterbar .field {
  flex: 1 1 190px;
  min-width: 140px;
}
.field,
.select,
.textarea {
  border: 1px solid var(--line);
  background: #fff;
  color: #435169;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 14px;
  min-height: 37px;
  width: 100%;
}
.field::placeholder,
.textarea::placeholder {
  color: #a8b1bf;
}
.filterbar .select {
  flex: 0 1 145px;
  width: auto;
  min-width: 135px;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #485569;
}
.detail-pair {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
}
.detail-pair:last-child {
  border: 0;
}
.detail-pair span {
  font-size: 14px;
  color: #95a0b2;
}
.detail-pair strong {
  font-size: 14px;
  text-align: right;
  color: #263247;
}
.metric-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 19px;
}
.metric-block {
  border: 1px solid #edf0f4;
  border-radius: 10px;
  padding: 15px 13px;
}
.metric-block strong {
  font-size: 18px;
  letter-spacing: -0.6px;
  display: block;
  margin: 4px 0;
}
.metric-block span {
  font-size: 14px;
  color: #94a0b2;
}
.bar-group {
  padding: 0 20px 20px;
}
.bar-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 15px;
}
.bar-label {
  width: 94px;
  flex: 0 0 94px;
  color: #65748b;
  font-size: 14px;
}
.bar-track {
  height: 8px;
  background: #f0f2f5;
  border-radius: 20px;
  overflow: hidden;
  flex: 1;
  min-width: 40px;
}
.bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 20px;
}
.bar-fill.green {
  background: #2ca77a;
}
.bar-fill.amber {
  background: #f1b45e;
}
.bar-fill.blue {
  background: #729eed;
}
.bar-value {
  width: 30px;
  text-align: right;
  font-weight: 600;
  color: #56647c;
  font-size: 14px;
}
.activity-list {
  padding: 0 19px 10px;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #f0f2f6;
}
.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff1ef;
  display: grid;
  place-items: center;
  color: var(--red);
  flex-shrink: 0;
}
.activity-copy {
  flex: 1;
  min-width: 0;
}
.activity-copy strong {
  display: block;
  font-size: 14px;
  color: #233044;
}
.activity-copy span {
  display: block;
  font-size: 14px;
  color: #a0aabc;
  margin-top: 2px;
}
.activity-time {
  color: #a1abbd;
  font-size: 14px;
  white-space: nowrap;
}
.notice-box {
  background: #fff8f7;
  border: 1px solid #ffe8e3;
  border-radius: 10px;
  padding: 13px 15px;
  margin: 0 20px 19px;
  font-size: 14px;
  color: #8e5f5a;
}
.notice-box b {
  color: var(--red);
}
.attention {
  padding: 0 20px 19px;
}
.attention-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #f1f2f5;
}
.attention-card .attention-main {
  flex: 1;
  min-width: 0;
}
.attention-main strong {
  display: block;
  font-size: 14px;
}
.attention-main span {
  display: block;
  font-size: 14px;
  color: #9aa5b6;
  margin-top: 2px;
}
.attention-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--amber);
  background: var(--amber-light);
  display: grid;
  place-items: center;
}
.stats-inline {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stat-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  min-width: 125px;
}
.stat-chip span {
  display: block;
  font-size: 14px;
  color: #9aa6b6;
}
.stat-chip strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.4px;
}
.table-page {
  padding: 0 0 14px;
}
.page-card-actions {
  padding: 0 20px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.grid-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 19px;
}
.partner-tile {
  border: 1px solid #e9edf3;
  border-radius: 11px;
  padding: 15px;
  min-width: 0;
}
.tile-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.tile-note {
  font-size: 14px;
  color: #9ca6b8;
  margin-top: 4px;
}
.tile-stats {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  font-size: 14px;
  color: #65738a;
}
.tile-stats strong {
  color: #25334a;
}
.quick-head {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.system-strip .badge-note {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: #77859b;
  font-size: 14px;
}
.badge-note b {
  color: #2e3b4f;
}
.empty-state {
  padding: 45px 20px;
  text-align: center;
  color: #96a1b2;
}
.empty-state svg {
  margin: 0 auto 10px;
}
.empty-state strong {
  color: #35445a;
  display: block;
  font-size: 14px;
}
.empty-state span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.member-circle {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-right: 8px;
  width: 26px;
  height: 26px;
  background: #eef1f7;
  color: #64718a;
  font-size: 14px;
  border-radius: 100%;
  font-weight: 600;
}
.inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint {
  padding: 12px 18px;
  margin: 12px 20px 20px;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 14px;
  color: #9ba7b9;
}
.policy-box {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
}
.policy-box strong {
  font-size: 14px;
}
.policy-box p {
  font-size: 14px;
  color: #8792a7;
  margin-top: 8px;
  line-height: 1.7;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 22, 39, 0.44);
  display: flex;
  justify-content: flex-end;
}
.modal-sheet {
  width: min(560px, 100vw);
  height: 100%;
  background: white;
  box-shadow: -18px 0 65px rgba(19, 28, 42, 0.16);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-head {
  padding: 23px 25px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.modal-kicker {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}
.modal-title {
  font-size: 20px;
  font-weight: 600;
}
.modal-close {
  width: 33px;
  height: 33px;
}
.modal-body {
  padding: 23px 25px;
  flex: 1;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding: 15px 25px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-group {
  margin-bottom: 17px;
}
.textarea {
  resize: vertical;
  min-height: 100px;
}
.case-banner {
  background: #f8f9fb;
  border-radius: 11px;
  padding: 15px 17px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.case-banner h3 {
  font-size: 16px;
}
.progress-list {
  list-style: none;
  margin: 7px 0 21px;
  padding: 0;
}
.progress-list li {
  display: flex;
  gap: 11px;
  padding: 9px 0;
  font-size: 14px;
  color: #8b98ac;
}
.progress-point {
  height: 18px;
  width: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #dde2e9;
  border-radius: 100%;
  font-size: 14px;
  flex-shrink: 0;
}
.progress-point.done {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.callout {
  padding: 13px 15px;
  background: #fff5ed;
  border: 1px solid #ffe4ce;
  border-radius: 10px;
  color: #936837;
  font-size: 14px;
}
.callout.info {
  background: #eff5ff;
  border-color: #dae7ff;
  color: #5075ab;
}
.toast {
  position: fixed;
  z-index: 120;
  bottom: 23px;
  right: 24px;
  background: #1e293b;
  color: white;
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: 0 12px 40px #17243b36;
  font-size: 14px;
  max-width: 330px;
  animation: appear 0.17s ease;
}
.toast strong {
  color: #fff;
}
@keyframes appear {
  from {
    transform: translateY(9px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 1480px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-grid.three .panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 1120px) {
  :root {
    --sidebar: 222px;
  }
  .topbar {
    padding: 0 21px;
  }
  .main {
    padding: 25px 21px 30px;
  }
  .page-footer {
    padding-left: 21px;
  }
  .brand {
    padding-left: 19px;
  }
  .panel-grid,
  .panel-grid.equal {
    grid-template-columns: 1fr;
  }
  .grid-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-grid.three {
    grid-template-columns: 1fr;
  }
  .panel-grid.three .panel:last-child {
    grid-column: auto;
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-101%);
    transition: transform 0.22s;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(19, 27, 42, 0.4);
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  .mobile-toggle {
    display: grid;
  }
  .topbar {
    height: 67px;
  }
  .profile-copy,
  .topbar-separator,
  .demo-label {
    display: none;
  }
  .main {
    padding: 23px 17px 30px;
  }
  .page-footer {
    padding: 0 17px 17px;
  }
  .page-head {
    align-items: flex-start;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-chip {
    min-width: 0;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 20px;
  }
  .topbar {
    padding: 0 13px;
  }
  .breadcrumbs {
    gap: 7px;
    font-size: 14px;
  }
  .topbar-start,
  .topbar-end {
    gap: 9px;
  }
  .topbar-link {
    font-size: 14px;
  }
  .main {
    padding: 17px 12px 25px;
  }
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    margin-bottom: 18px;
  }
  .page-actions {
    justify-content: flex-start;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .kpi {
    min-height: 113px;
    padding: 12px;
  }
  .kpi-value {
    font-size: 20px;
  }
  .kpi-label {
    font-size: 14px;
  }
  .kpi-icon {
    height: 27px;
    width: 27px;
  }
  .panel-grid,
  .panel-grid.equal,
  .panel-grid.three {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .panel-head {
    padding: 15px 14px 13px;
  }
  .panel-pad {
    padding: 15px 14px;
  }
  .filterbar {
    padding: 0 14px 13px;
  }
  .filterbar.atop {
    padding: 13px 14px;
  }
  .panel-title {
    font-size: 14px;
  }
  .grid-tiles {
    grid-template-columns: 1fr;
    padding: 0 14px 15px;
  }
  .metric-blocks {
    padding: 0 14px 15px;
  }
  .data-table th,
  .data-table td {
    padding: 11px 12px;
  }
  .activity-list {
    padding: 0 13px 9px;
  }
  .attention {
    padding: 0 14px 12px;
  }
  .page-footer {
    padding-left: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-head {
    padding: 19px 17px;
  }
  .modal-body {
    padding: 18px 17px;
  }
  .modal-footer {
    padding: 14px 17px;
  }
  .topbar .profile-avatar {
    width: 30px;
    height: 30px;
  }
  .metric-block {
    padding: 10px;
  }
  .metric-block strong {
    font-size: 16px;
  }
}
/* ===== END legacy style-01.css ===== */

/* ===== BEGIN legacy style-02.css ===== */
/* GOHED HQ / Visual Layer V3
         Cosmetic-only styles on top of functional V2. No changes to business demo data.
         Typography policy: Poppins 400-600; normal 17px; minimum 14px; maximum 20px.
         Card / box borders removed. Theme switch lives in the global topbar.
      */
:root {
  --ink: #191a1b;
  --muted: #687282;
  --soft: #606a79;
  --bg: #f4f5f8;
  --white: #ffffff;
  --line: transparent;
  --surface: #ffffff;
  --surface-quiet: #f3f5f8;
  --surface-hover: #edf1f5;
  --heading: #010101;
  --hint-color: #596478;
  --shadow: 0 8px 30px rgb(24 31 47 / 3%);
  --round: 16px;
  --sidebar: 268px;
}
html {
  color-scheme: light;
}
body,
button,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}
body {
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
}
/* UI typography: all type remains between 14 and 20px; weight max 600. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--heading);
}
h1 {
  font-size: 20px;
  letter-spacing: -0.45px;
  line-height: 1.4;
}
h2,
.panel-title,
.modal-title {
  font-size: 19px;
  letter-spacing: -0.22px;
  line-height: 1.4;
}
h3 {
  font-size: 17px;
}
strong,
b,
.bold,
.semibold {
  font-weight: 600;
}
.small,
.tiny {
  font-size: 14px !important;
}
button,
input,
select,
textarea,
a {
  font-size: inherit;
}
.muted {
  color: var(--muted);
}
.soft {
  color: var(--soft);
}

/* Structural proportions and readable navigation. */
.sidebar {
  background: var(--surface);
  border: 0;
  box-shadow: 4px 0 24px rgb(20 26 40 / 2%);
}
.brand {
  min-height: 126px;
  padding: 24px 24px 14px;
}
.brand img {
  width: 172px;
  max-height: 52px;
}
.brand-sub,
.nav-label,
.footer-caption,
.online-row {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.nav-label {
  color: var(--muted);
  margin-bottom: 5px;
  padding-left: 15px;
}
.nav-section {
  margin-bottom: 15px;
}
.nav-item {
  min-height: 50px;
  height: auto;
  padding: 10px 13px;
  gap: 11px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border: 0;
}
.nav-item.active {
  font-weight: 600;
}
.nav-item:hover {
  color: var(--ink);
  background: var(--surface-hover);
}
.nav-count {
  font-size: 14px;
  padding: 2px 8px;
}
.sidebar-footer {
  border: 0;
}
.topbar {
  min-height: 84px;
  height: auto;
  background: var(--surface);
  border: 0;
  padding: 15px 26px;
  flex-wrap: wrap;
}
.topbar-start,
.topbar-end {
  gap: 12px;
}
.breadcrumbs,
.breadcrumbs strong,
.demo-label,
.topbar-link,
.profile-copy strong,
.profile-copy span {
  font-size: 14px;
}
.breadcrumbs strong {
  font-weight: 600;
}
.demo-label {
  font-weight: 600;
}
.profile-avatar {
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.topbar-separator {
  opacity: 0;
}
.topbar-link {
  padding: 9px 8px;
  color: var(--soft);
}
.icon-button {
  background: var(--surface-quiet);
  color: var(--ink);
  border: 0;
  min-width: 40px;
  min-height: 40px;
}
.icon-button:hover {
  background: var(--surface-hover);
  border: 0;
  color: var(--red);
}
.main {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 28px 26px 36px;
}
.page-head {
  gap: 20px;
  margin-bottom: 24px;
}
.page-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.page-desc {
  font-size: 16px;
  color: var(--muted);
}
.page-footer {
  font-size: 14px;
  color: var(--muted);
  padding: 0 26px 24px;
}

/* All box / card outlines removed; rely on spacing and surface separation. */
.kpi,
.panel,
.metric-block,
.stat-chip,
.partner-tile,
.policy-box,
.system-strip .badge-note,
.notice-box,
.view-flag,
.demo-date,
.field,
.select,
.textarea,
.callout,
.btn.secondary,
.btn.danger,
.case-banner,
.hint,
.pill,
.icon-button {
  border: 0 !important;
}
.kpi,
.panel,
.stat-chip,
.system-strip .badge-note {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kpi {
  padding: 20px 22px;
  min-height: 154px;
  border-radius: 16px;
}
.kpi:hover {
  box-shadow: 0 12px 36px rgb(30 38 62 / 8%);
  transform: none;
}
.kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 16px;
}
.kpi-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--soft);
}
.kpi-value {
  font-size: 20px;
  letter-spacing: -0.35px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 11px;
}
.kpi-sub {
  font-size: 14px;
  color: var(--muted);
}
.kpi-icon {
  height: 40px;
  width: 40px;
  border-radius: 11px;
}
.panel {
  border-radius: 16px;
  min-width: 0;
  width: 100%;
}
.panel-grid,
.panel-grid.equal,
.panel-grid.three {
  width: 100%;
  max-width: none;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.panel-head {
  padding: 23px 24px 18px;
}
.panel-pad {
  padding: 24px;
}
.panel-title {
  font-weight: 600;
}
.panel-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.panel-link {
  font-size: 14px;
}
.view-flag,
.flag,
.demo-date {
  font-size: 14px;
  font-weight: 500;
}
.demo-date {
  background: var(--surface);
  color: var(--soft);
  padding: 11px 14px;
}
.btn {
  font-size: 16px;
  font-weight: 600;
  min-height: 43px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
}
.btn.sm,
.btn.xs {
  font-size: 14px;
  min-height: 36px;
  padding: 8px 12px;
}
.btn.secondary {
  background: var(--surface-quiet);
  color: var(--ink);
}
.btn.danger {
  background: var(--red-light);
  color: #c82420;
}

/* Operational data tables, chips, cards, fields. */
.data-table th {
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  padding: 14px 18px;
}
.data-table td,
.data-table td strong,
.data-table td .subline {
  font-size: 16px;
  color: var(--ink);
}
.data-table td {
  border: 0;
  padding: 15px 18px;
}
.data-table td .subline {
  color: var(--muted);
  font-size: 14px;
}
.data-table thead {
  background: var(--surface-quiet);
}
.data-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface-quiet) 52%, var(--surface));
}
.data-table tbody tr:hover {
  background: var(--surface-hover);
}
.id-code {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.pill {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
}
.filterbar,
.filterbar.atop {
  gap: 12px;
  padding: 20px 24px;
  border: 0;
}
.field,
.select,
.textarea {
  background: var(--surface-quiet);
  color: var(--ink);
  font-size: 16px;
  min-height: 45px;
  border-radius: 10px;
}
.field::placeholder,
.textarea::placeholder {
  color: var(--muted);
}
.field-label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.field:focus,
.select:focus,
.textarea:focus {
  box-shadow: 0 0 0 2px var(--red);
}
.filterbar .select {
  flex: 0 1 205px;
  min-width: 170px;
}
.stat-chip {
  padding: 13px 17px;
}
.stat-chip span,
.metric-block span,
.tile-note,
.policy-box p,
.hint,
.bar-label,
.bar-value,
.activity-copy span,
.activity-time,
.attention-main span,
.detail-pair span,
.empty-state span {
  font-size: 14px;
  color: var(--muted);
}
.stat-chip strong,
.metric-block strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.metric-block {
  padding: 15px;
  background: var(--surface-quiet);
}
.grid-tiles {
  gap: 14px;
  padding: 0 24px 24px;
}
.partner-tile {
  background: var(--surface-quiet);
  padding: 19px;
}
.tile-name,
.tile-stats,
.tile-stats strong,
.quick-head,
.policy-box strong,
.empty-state strong {
  font-size: 16px;
  color: var(--ink);
}
.tile-name,
.quick-head {
  font-weight: 600;
}
.tile-stats {
  gap: 8px;
  flex-wrap: wrap;
}
.detail-pair {
  border: 0;
  gap: 14px;
  padding: 13px 0;
}
.detail-pair strong {
  font-size: 16px;
  color: var(--ink);
}
.activity-list {
  padding: 0 24px 13px;
}
.activity-row,
.attention-card {
  border: 0;
  padding: 14px 0;
}
.activity-copy strong,
.attention-main strong,
.badge-note b {
  font-size: 16px;
  color: var(--ink);
}
.notice-box,
.hint,
.policy-box {
  background: var(--surface-quiet);
  color: var(--soft);
  font-size: 14px;
}
.notice-box {
  margin: 0 24px 24px;
}
.hint {
  margin: 14px 24px 24px;
}
.quick-head {
  border: 0;
  padding: 18px 24px;
}
.system-strip .badge-note {
  font-size: 14px;
  padding: 11px 15px;
  color: var(--soft);
}
.bar-label {
  width: 140px;
  flex: 0 0 140px;
}
.bar-value {
  width: 46px;
}
.bar-track {
  background: var(--surface-quiet);
}
.case-banner {
  background: var(--surface-quiet);
}
.case-banner h3 {
  font-size: 17px;
}
.progress-list li {
  font-size: 16px;
  color: var(--soft);
}
.progress-point {
  font-size: 14px;
  border: 0;
  background: var(--surface-quiet);
  height: 24px;
  width: 24px;
}
.callout {
  font-size: 14px;
}
.modal-sheet {
  background: var(--surface);
}
.modal-head,
.modal-footer {
  border: 0;
  padding: 24px;
}
.modal-head {
  gap: 15px;
}
.modal-body {
  padding: 22px 24px;
}
.modal-footer {
  background: var(--surface);
}
.modal-title {
  font-weight: 600;
}
.modal-kicker {
  font-size: 14px;
  font-weight: 600;
}
.modal-actions {
  gap: 10px;
}
.toast {
  font-size: 14px;
}

/* Global theme control: fully interactive and persists independently of demo data. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-quiet);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.theme-toggle:hover {
  background: var(--surface-hover);
}
.theme-icon {
  color: var(--ink);
}
.theme-icon-moon {
  display: none;
}
.theme-switch-track {
  display: flex;
  align-items: center;
  padding: 3px;
  width: 39px;
  height: 23px;
  border-radius: 22px;
  background: #c4cad3;
  transition: background 0.22s ease;
}
.theme-switch-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0002;
  transform: translateX(0);
  transition: transform 0.22s ease;
}
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}
html[data-theme="dark"] .theme-icon-moon {
  display: block;
}
html[data-theme="dark"] .theme-switch-track {
  background: var(--red);
}
html[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(16px);
}

/* Right-side overlays slide in, with background fade. Supports reduced motion. */
.modal-overlay {
  background: rgb(8 14 25 / 55%);
  animation: gh-backdrop-in 0.26s ease-out both;
}
.modal-sheet {
  width: min(620px, 100vw);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  box-shadow: -14px 0 60px rgb(0 0 0 / 12%);
  animation: gh-drawer-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
}
@keyframes gh-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gh-drawer-in {
  from {
    transform: translateX(100%);
    opacity: 0.75;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-sheet {
    animation: none;
  }
}

/* Dark mode is a visual layer only; all jobs, filters, and actions remain shared. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f7fa;
  --heading: #f5f7fa;
  --muted: #acb7c7;
  --soft: #b1bdca;
  --bg: #10141b;
  --white: #1b222c;
  --surface: #1b222c;
  --surface-quiet: #28313d;
  --surface-hover: #303a48;
  --hint-color: #b1bdca;
  --line: transparent;
  --red-light: #492322;
  --green-light: #1d4038;
  --blue-light: #1b3854;
  --amber-light: #4a3922;
  --slate-light: #343f4b;
  --shadow: 0 8px 30px rgb(0 0 0 / 7%);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .workspace {
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .stat-chip,
html[data-theme="dark"] .system-strip .badge-note,
html[data-theme="dark"] .modal-sheet,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .demo-date {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="dark"] .brand img {
  background: #fff;
  padding: 5px 7px;
  border-radius: 9px;
}
html[data-theme="dark"] .nav-item {
  color: var(--muted);
}
html[data-theme="dark"] .nav-item.active {
  background: var(--red-light);
  color: #ff7772;
}
html[data-theme="dark"] .nav-item:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--ink);
}
html[data-theme="dark"] .nav-count,
html[data-theme="dark"] .member-circle {
  background: var(--surface-quiet);
  color: var(--ink);
}
html[data-theme="dark"] .demo-label,
html[data-theme="dark"] .view-flag {
  background: var(--red-light);
  color: #ff7772;
}
html[data-theme="dark"] .btn.secondary,
html[data-theme="dark"] .field,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .metric-block,
html[data-theme="dark"] .partner-tile,
html[data-theme="dark"] .policy-box,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .case-banner,
html[data-theme="dark"] .theme-toggle {
  background: var(--surface-quiet);
  color: var(--ink);
}
html[data-theme="dark"] .data-table thead {
  background: var(--surface-quiet);
}
html[data-theme="dark"] .data-table td {
  color: var(--ink);
}
html[data-theme="dark"] .data-table tbody tr:nth-child(even) {
  background: #202833;
}
html[data-theme="dark"] .data-table tbody tr:hover {
  background: var(--surface-hover);
}
html[data-theme="dark"] .profile-avatar {
  background: #f5f7fa;
  color: #141820;
}
html[data-theme="dark"] .bar-track {
  background: #343f4a;
}
html[data-theme="dark"] .notice-box,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .callout.info {
  background: var(--surface-quiet);
  color: var(--muted);
}
html[data-theme="dark"] .pill.red {
  background: #462325;
  color: #ffaaa4;
}
html[data-theme="dark"] .pill.amber {
  background: #49371e;
  color: #ffd17e;
}
html[data-theme="dark"] .pill.blue {
  background: #233850;
  color: #9ac6ff;
}
html[data-theme="dark"] .pill.green {
  background: #1d4238;
  color: #8de6bf;
}
html[data-theme="dark"] .pill.slate {
  background: #34404b;
  color: #d9e1ef;
}
html[data-theme="dark"] .pill.purple {
  background: #38294d;
  color: #dcc1ff;
}
html[data-theme="dark"] .activity-icon {
  background: var(--red-light);
}
html[data-theme="dark"] .attention-icon {
  background: var(--amber-light);
}
html[data-theme="dark"] .toast {
  background: #edf2f8;
  color: #14202d;
}
html[data-theme="dark"] .toast strong {
  color: #14202d;
}
html[data-theme="dark"] .notice-box b {
  color: #ff7772;
}
html[data-theme="dark"] .detail-pair strong,
html[data-theme="dark"] .activity-copy strong,
html[data-theme="dark"] .attention-main strong,
html[data-theme="dark"] .tile-stats strong,
html[data-theme="dark"] .badge-note b,
html[data-theme="dark"] .data-table td strong,
html[data-theme="dark"] .id-code {
  color: var(--ink);
}

/* No fixed maximum panel width. Responsive content occupies all available space. */
@media (max-width: 1460px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .panel-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 248px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-grid,
  .panel-grid.equal,
  .panel-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main {
    padding: 24px 19px;
  }
}
@media (max-width: 820px) {
  .workspace {
    width: 100%;
    margin-left: 0;
  }
  .sidebar {
    width: min(300px, 88vw);
  }
  .topbar {
    padding: 13px 18px;
  }
  .topbar-start,
  .topbar-end {
    flex-wrap: wrap;
  }
  .main {
    padding: 20px 16px;
  }
  .page-footer {
    padding: 0 16px 18px;
  }
  .theme-toggle-label {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .topbar {
    gap: 10px;
  }
  .topbar-end {
    margin-left: auto;
  }
  .topbar-link {
    font-size: 14px;
  }
  .profile-avatar {
    width: 34px;
    height: 34px;
  }
  .kpis {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  .kpi {
    min-height: 130px;
  }
  .panel-grid,
  .panel-grid.equal,
  .panel-grid.three,
  .grid-tiles,
  .stats-inline {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-head,
  .panel-pad {
    padding: 17px;
  }
  .filterbar,
  .filterbar.atop {
    padding: 15px;
  }
  .grid-tiles {
    padding: 0 15px 17px;
  }
  .activity-list {
    padding: 0 15px 15px;
  }
  .kpi-label {
    font-size: 16px;
  }
  .panel-title {
    font-size: 18px;
  }
  .data-table th,
  .data-table td {
    padding: 12px 14px;
  }
  .bar-label {
    width: 115px;
    flex-basis: 115px;
  }
  .modal-head,
  .modal-body,
  .modal-footer {
    padding: 18px;
  }
  .modal-sheet {
    width: 100vw;
  }
  .page-actions {
    justify-content: flex-start;
  }
}
/* ===== END legacy style-02.css ===== */

/* ===== BEGIN legacy style-03.css ===== */
/* GOHED HQ V4 — Cosmetic + interaction shell
         Functional demo: Business/Operations tabs, adaptive sidebar, account popover.
         Icons © Remix Design (via CDN). Logo crop is temporary until official symbol SVG arrives.
      */
:root {
  --sidebar: 320px;
  --chart-grid: #e9edf3;
  --sidebar-collapsed: 90px;
}
body,
button,
input,
select,
textarea {
  font-family: "Inter", Arial, sans-serif !important;
}
body {
  font-size: 17px;
}
.ri-icon,
i[class^="ri-"],
i[class*=" ri-"] {
  font-size: 1.375rem !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  flex-shrink: 0;
  vertical-align: middle;
}
/* Always reserve the same icon footprint. */
.nav-item > .ri-icon {
  width: 30px;
  min-width: 30px;
}
.nav-item {
  gap: 15px;
}
.sidebar {
  width: 320px;
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s;
  overflow: hidden;
  z-index: 44;
}
.workspace {
  margin-left: 320px;
  width: calc(100% - 320px);
  transition:
    margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sidebar-collapsed .workspace {
  margin-left: var(--sidebar-collapsed);
  width: calc(100% - var(--sidebar-collapsed));
}
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar.collapsed.hover-expanded {
  width: 320px;
  box-shadow: 14px 0 45px rgb(19 28 47 / 13%);
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 27px 18px 22px 25px;
  min-height: 118px;
  width: 320px;
  position: relative;
  flex-shrink: 0;
}
.brand-identity {
  position: relative;
  width: 210px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.brand-full {
  width: 191px !important;
  max-height: 62px !important;
  object-fit: contain;
  object-position: left center;
  transition:
    opacity 0.18s ease,
    transform 0.28s ease;
}
.brand-symbol-crop {
  display: none;
  width: 48px;
  height: 60px;
  position: absolute;
  top: 3px;
  left: 0;
  overflow: hidden;
  align-items: center;
  pointer-events: none;
}
.brand-symbol-crop img {
  position: absolute !important;
  left: 0;
  top: 5px;
  width: 191px !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.sidebar-pin {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: var(--surface-quiet);
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.25s;
  flex-shrink: 0;
}
.sidebar-pin:hover {
  background: var(--surface-hover);
  color: var(--red);
}
.sidebar.collapsed:not(.hover-expanded) .brand {
  width: 320px;
}
.sidebar.collapsed:not(.hover-expanded) .brand-identity {
  width: 50px;
  height: 51px;
  justify-content: center;
}
.sidebar.collapsed:not(.hover-expanded) .brand-full {
  display: none;
}
.sidebar.collapsed:not(.hover-expanded) .brand-symbol-crop {
  display: flex;
}
.sidebar.collapsed:not(.hover-expanded) .sidebar-pin {
  position: absolute;
  left: 24px;
  top: 78px;
  width: 28px;
  height: 28px;
}
.sidebar .nav-item,
.sidebar .nav-label,
.sidebar .sidebar-footer {
  transition:
    opacity 0.2s,
    color 0.2s,
    background 0.2s;
}
.sidebar-footer {
  white-space: normal;
}
.sidebar .online-row {
  white-space: nowrap;
}
/* Main typography and chrome */
.breadcrumbs strong {
  color: var(--ink);
}
.topbar {
  min-height: 84px;
  flex-wrap: nowrap;
}
.topbar-start,
.topbar-end {
  min-width: 0;
}
.topbar .profile-copy {
  display: flex;
  min-width: 0;
  gap: 0;
}
.topbar .profile-copy strong {
  font-weight: 600;
  max-width: 158px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .profile-copy span {
  font-size: 14px;
}
.topbar .admin-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.admin-trigger {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  min-height: 50px;
}
.admin-trigger:hover,
.admin-trigger[aria-expanded="true"] {
  background: var(--surface-quiet);
}
.admin-chevron {
  color: var(--muted);
}
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.profile-avatar {
  width: 43px !important;
  height: 43px !important;
  border-radius: 50%;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.availability-dot {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #26c55d;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}
.admin-popover[hidden],
.signed-out[hidden] {
  display: none !important;
}
.admin-popover {
  position: absolute;
  z-index: 110;
  top: calc(100% + 20px);
  right: 0;
  width: 326px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 55px rgba(17, 24, 39, 0.16);
  overflow: hidden;
  animation: popIn 0.18s ease both;
}
@keyframes popIn {
  from {
    transform: translateY(-7px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.admin-popover-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
}
.admin-popover-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-popover-copy strong {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-popover-copy span {
  font-size: 14px;
  color: var(--muted);
}
.admin-popover-links {
  padding: 4px 10px 12px;
}
.admin-popover-links button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
.admin-popover-links button:hover {
  background: var(--surface-quiet);
}
.admin-popover-bottom {
  padding: 13px 15px;
  background: var(--surface-quiet);
}
.logout-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  width: 100%;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.logout-button:hover {
  background: var(--red-hover);
}
.demo-accounts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.demo-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-quiet);
  padding: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.demo-account.current {
  box-shadow: inset 0 0 0 2px var(--red);
}
.demo-account > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.demo-account strong {
  font-weight: 600;
  font-size: 16px;
}
.demo-account small {
  font-size: 14px;
  color: var(--muted);
}
.settings-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.settings-line strong {
  font-size: 16px;
}
.signed-out {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.signed-out-card {
  width: min(475px, 100%);
  background: var(--surface);
  border-radius: 21px;
  padding: 44px 33px;
  text-align: center;
  box-shadow: var(--shadow);
}
.signed-out-logo img {
  width: 170px;
  max-width: 100%;
  margin: 0 auto 24px;
}
.signed-out-card > i {
  color: var(--red);
  margin-bottom: 20px;
}
.signed-out-card h2 {
  font-size: 20px;
  margin-bottom: 11px;
}
.signed-out-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 22px;
}
.bar-label-compact {
  display: none;
}
/* Business / Operations dashboard tabs */
.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 20px;
}
.dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 19px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.dashboard-tab:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.dashboard-tab.selected {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 5px 15px rgb(0 0 0 / 9%);
}
html[data-theme="dark"] .dashboard-tab.selected {
  background: var(--red);
  color: white;
}
.dashboard-tabpanel {
  animation: fadeTab 0.18s ease both;
  min-width: 0;
}
@keyframes fadeTab {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.business-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.business-kpis .kpi-value {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.business-chart-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-quiet);
  color: var(--muted);
  padding: 20px 20px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}
.demo-note .ri-icon {
  color: var(--red);
}
.demo-date select {
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.demo-date select option {
  background: var(--surface);
  color: var(--ink);
}
.business-graph {
  padding: 4px 25px 25px;
  overflow: hidden;
  min-height: 280px;
}
.business-svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 225px;
}
.biz-bars {
  display: flex;
  height: 230px;
  align-items: stretch;
  justify-content: space-around;
  gap: 12px;
  padding-top: 6px;
}
.biz-bar-col {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.biz-bar-col strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.biz-bar-rail {
  height: 175px;
  flex: 1;
  width: min(48px, 78%);
  display: flex;
  align-items: end;
  position: relative;
  border-radius: 8px 8px 0 0;
  background: var(--surface-quiet);
  overflow: hidden;
}
.biz-bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  border-radius: 8px 8px 0 0;
  transition: height 0.3s ease;
}
.biz-bar-col > span {
  font-size: 14px;
}
.donut-content {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 4px 29px 30px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 255px;
}
.business-donut {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 var(--donut-a), #aebacd var(--donut-a) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.business-donut > div {
  height: 130px;
  width: 130px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.business-donut strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.business-donut span {
  font-size: 14px;
  color: var(--muted);
}
.donut-legend {
  display: grid;
  gap: 17px;
  min-width: 130px;
}
.donut-legend > div {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
}
.donut-legend strong {
  font-weight: 600;
  margin-left: auto;
}
.legend-marker {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-marker.red {
  background: var(--red);
}
.legend-marker.grey {
  background: #aebacd;
}
.commission-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 3px 24px 23px;
}
.commission-summary strong {
  font-size: 20px;
  font-weight: 600;
}
.commission-summary span {
  font-size: 14px;
  color: var(--muted);
}
.commission-bars {
  padding: 0 24px 28px;
  display: grid;
  gap: 18px;
}
.commission-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 16px;
}
.commission-row strong {
  font-weight: 600;
}
.commission-track {
  height: 11px;
  width: 100%;
  background: var(--surface-quiet);
  border-radius: 14px;
  overflow: hidden;
}
.commission-track div {
  height: 100%;
  border-radius: 14px;
}
.commission-track .care {
  background: var(--red);
}
.commission-track .empo {
  background: #ff995d;
}
.commission-track .resq {
  background: #8fa1c0;
}
/* Full-width panel widths, dark contrast, slide-in drawers preserved. */
html[data-theme="dark"] {
  --chart-grid: #313b49;
}
html[data-theme="dark"] .business-donut > div {
  background: var(--surface);
}
html[data-theme="dark"] .admin-popover {
  box-shadow: 0 18px 60px #0007;
}
html[data-theme="dark"] .brand-full {
  background: white;
  padding: 7px 8px;
  border-radius: 8px;
}
html[data-theme="dark"] .brand-symbol-crop {
  background: none;
}
html[data-theme="dark"] .brand-symbol-crop img {
  background: none !important;
}
html[data-theme="dark"] .dashboard-tab.selected i {
  color: white;
}
/* Drawer: enter/exit by translating from the right. */
.modal-overlay {
  animation: drawerShadeIn 0.28s ease both;
}
.modal-sheet {
  animation: drawerEnter 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes drawerEnter {
  from {
    transform: translateX(102%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes drawerShadeIn {
  from {
    background: rgba(13, 22, 39, 0);
  }
  to {
    background: rgba(13, 22, 39, 0.44);
  }
}
@media (max-width: 1480px) {
  .business-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-chart-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 320px;
  }
}
@media (max-width: 820px) {
  .sidebar,
  .sidebar.collapsed,
  .sidebar.collapsed.hover-expanded {
    width: min(300px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .workspace,
  body.sidebar-collapsed .workspace {
    margin-left: 0;
    width: 100%;
    transition: none;
  }
  .brand {
    width: 100%;
    max-width: 300px;
    padding: 20px 15px 16px;
  }
  .sidebar-pin {
    width: 40px;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .topbar .profile-copy {
    display: none;
  }
  .topbar .admin-chevron {
    display: none;
  }
  .mobile-toggle {
    display: grid;
  }
  .admin-popover {
    right: 0;
  }
  .business-chart-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 13px 12px;
  }
  .dashboard-tabs {
    width: 100%;
  }
  .dashboard-tab {
    flex: 1;
    font-size: 16px;
    padding: 11px 9px;
  }
  .business-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-kpis .kpi {
    min-height: 145px;
    padding: 14px;
  }
  .business-kpis .kpi-value {
    font-size: 18px;
  }
  .business-kpis .kpi-label {
    font-size: 14px;
  }
  .business-graph {
    padding: 4px 12px 20px;
    min-height: 230px;
  }
  .business-svg {
    width: 780px;
    min-width: 780px;
    max-width: none;
    min-height: 0;
  }
  .business-graph:has(.business-svg) {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .bar-label-full {
    display: none;
  }
  .bar-label-compact {
    display: inline;
  }
  .biz-bars {
    gap: 6px;
  }
  .biz-bar-col strong {
    font-size: 14px;
    letter-spacing: -0.5px;
  }
  .donut-content {
    gap: 19px;
    padding: 8px 17px 24px;
  }
  .business-donut {
    height: 155px;
    width: 155px;
  }
  .business-donut > div {
    height: 108px;
    width: 108px;
  }
  .admin-popover {
    position: fixed;
    right: 12px;
    top: 72px;
    width: min(326px, calc(100vw - 24px));
  }
  .admin-popover-links button {
    font-size: 16px;
  }
  .demo-note {
    align-items: flex-start;
  }
}
/* SVG plot uses 14px axis and data labels; mobile scrolls chart at intrinsic resolution. */
.business-svg text {
  font-size: 14px !important;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .workspace,
  .modal-sheet,
  .modal-overlay,
  .dashboard-tabpanel {
    animation: none !important;
    transition: none !important;
  }
}
/* ===== END legacy style-03.css ===== */

/* ===== BEGIN legacy style-04.css ===== */
/* GOHED HQ V5 — Business intelligence Overview and approved folder tabs.
         This layer only styles the V5 refinements; V2/V3/V4 foundational styling remains intact.
         Graph bars are deliberately square-cornered. */
:root {
  --insight-slate: #97a3b7;
  --insight-red: #ed2124;
}
/* Folder tabs: two fixed 170px tabs, left aligned. No top border / accent strip. */
.dashboard-tabs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.dashboard-tab,
.dashboard-tab:hover,
.dashboard-tab.selected,
html[data-theme="dark"] .dashboard-tab.selected {
  flex: 0 0 170px;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  border-radius: 13px 13px 0 0;
  padding: 16px 12px;
  font-size: 17px;
  font-weight: 500;
  background: var(--surface-hover);
  color: var(--muted);
  transition:
    background 0.22s ease,
    color 0.22s ease;
}
.dashboard-tab:hover {
  background: var(--surface-quiet);
  color: var(--ink);
}
.dashboard-tab.selected,
.dashboard-tab.selected:hover,
html[data-theme="dark"] .dashboard-tab.selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.dashboard-tab.selected .ri-icon {
  color: var(--red) !important;
}
.dashboard-tabpanel {
  background: var(--surface);
  border: 0;
  border-radius: 0 18px 18px 18px;
  padding: 24px 22px;
  min-width: 0;
  box-shadow: var(--shadow);
}
/* Keep layered cards distinct from the large folder content surface, without borders. */
.dashboard-tabpanel .kpi,
.dashboard-tabpanel .panel {
  background: var(--surface-quiet);
  box-shadow: none;
  border: 0;
}
.dashboard-tabpanel .kpi:hover {
  box-shadow: 0 9px 24px rgb(30 38 62 / 9%);
}
.dashboard-tabpanel .metric-block,
.dashboard-tabpanel .notice-box,
.dashboard-tabpanel .biz-bar-rail,
.dashboard-tabpanel .insight-h-track,
.dashboard-tabpanel .insight-v-track {
  background: var(--surface);
}
.dashboard-tabpanel .data-table thead {
  background: var(--surface);
}
.dashboard-tabpanel .hint,
.dashboard-tabpanel .demo-note {
  background: var(--surface-quiet);
}
/* Top row: show the six business essentials without a fixed inner max-width. */
.business-kpis.v5-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.business-kpis.v5-kpis .kpi {
  min-height: 140px;
}
.business-kpis.v5-kpis .kpi-value {
  font-size: 20px;
}
.business-chart-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
}
.business-graph {
  min-width: 0;
}
/* Section labels */
.insight-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 29px 1px 13px;
  flex-wrap: wrap;
}
.insight-section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.insight-section-heading strong {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.insight-section-heading > span {
  font-size: 14px;
  color: var(--muted);
}
.insight-section-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}
/* KPIs inside the new business panels */
.insight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 22px 21px;
}
.insight-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 13px 12px;
}
.insight-stat > span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.insight-stat strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.insight-stat small {
  font-size: 14px;
  line-height: 1.35;
  color: var(--soft);
}
/* All charts: flat rectangular bars, NEVER rounded. */
.bar-track,
.bar-fill,
.biz-bar-rail,
.biz-bar,
.commission-track,
.commission-track div,
.insight-h-track,
.insight-h-fill,
.insight-v-track,
.insight-v-bar,
.insight-compare-bar,
.chart-bar,
.chart-fill,
.graph-bar,
.progress-bar {
  border-radius: 0 !important;
}
/* New vertical bars: used for CARE/EMPO and churn outcome comparisons. */
.insight-v-bars {
  display: flex;
  align-items: stretch;
  gap: 18px;
  justify-content: center;
  padding: 7px 24px 29px;
  min-height: 235px;
}
.insight-v-col {
  flex: 1;
  max-width: 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--soft);
}
.insight-v-col strong {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.insight-v-track {
  width: min(88px, 78%);
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.insight-v-bar {
  background: var(--insight-red);
  width: 100%;
  min-height: 0;
  transition: height 0.35s ease;
}
.insight-v-bar.alternate {
  background: var(--insight-slate);
}
.insight-v-col > span {
  font-weight: 500;
  color: var(--soft);
  text-align: center;
  font-size: 14px;
}
/* Horizontal bars for geography, payments and marketing channel attribution. */
.insight-horizontal-bars {
  display: grid;
  gap: 17px;
  margin: 0 24px 28px;
}
.insight-h-row {
  min-width: 0;
}
.insight-h-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
}
.insight-h-top span {
  color: var(--soft);
}
.insight-h-top strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.insight-h-track {
  width: 100%;
  height: 13px;
  overflow: hidden;
}
.insight-h-fill {
  height: 100%;
  background: var(--insight-red);
  transition: width 0.35s ease;
}
.insight-h-fill.alternate {
  background: var(--insight-slate);
}
/* Grouped bar comparison rows for renewals, plan mix and costs. */
.insight-chart-pad {
  padding: 0 24px 24px;
}
.insight-compare {
  display: grid;
  gap: 15px;
}
.insight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--soft);
}
.insight-legend > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.swatch.red {
  background: var(--insight-red);
}
.swatch.slate {
  background: var(--insight-slate);
}
.insight-compare-row {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) minmax(86px, max-content);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.insight-compare-row > strong {
  font-weight: 500;
  color: var(--soft);
  font-size: 14px;
}
.insight-compare-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}
.insight-compare-row > span {
  font-size: 14px;
  color: var(--soft);
  text-align: right;
  white-space: nowrap;
}
.insight-compare-bar {
  height: 12px;
  min-height: 0;
}
.insight-compare-bar.red {
  background: var(--insight-red);
}
.insight-compare-bar.slate {
  background: var(--insight-slate);
}
/* Context and definitions; avoid presenting simulated contribution as real net profit. */
.insight-footnote {
  margin: 0 24px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.insight-explainer {
  margin: 0 24px 20px;
  display: grid;
  gap: 0;
}
.insight-explainer > div {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--chart-grid);
}
.insight-explainer > div:last-child {
  border-bottom: 0;
}
.insight-explainer span {
  font-size: 16px;
  color: var(--soft);
}
.insight-explainer strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.insight-section-heading + .panel-grid {
  margin-top: 0;
}
/* Match prior 14–20px UI text rule. */
@media (max-width: 1600px) {
  .business-chart-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1260px) {
  .business-kpis.v5-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .business-chart-grid,
  .dashboard-tabpanel .panel-grid,
  .dashboard-tabpanel .panel-grid.equal {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .dashboard-tabpanel {
    padding: 18px 15px;
    border-radius: 0 15px 15px 15px;
  }
  .insight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .dashboard-tabs {
    width: 100%;
    gap: 5px;
  }
  .dashboard-tab,
  .dashboard-tab:hover,
  .dashboard-tab.selected,
  html[data-theme="dark"] .dashboard-tab.selected {
    flex: 0 0 170px;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    font-size: 16px;
    padding: 14px 10px;
  }
  .dashboard-tabpanel {
    padding: 15px 11px;
  }
  .business-kpis.v5-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .business-kpis.v5-kpis .kpi {
    padding: 12px;
    min-height: 136px;
  }
  .insight-section-heading {
    margin-top: 24px;
  }
  .insight-section-heading strong {
    font-size: 18px;
  }
  .insight-stats {
    margin: 0 13px 18px;
    gap: 8px;
  }
  .insight-stat {
    padding: 11px;
  }
  .insight-stat strong {
    font-size: 18px;
  }
  .insight-chart-pad {
    padding: 0 13px 18px;
  }
  .insight-horizontal-bars {
    margin: 0 13px 20px;
  }
  .insight-v-bars {
    padding: 8px 13px 20px;
    gap: 10px;
  }
  .insight-compare-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
  }
  .insight-compare-row > span {
    grid-column: 2;
    text-align: left;
  }
  .insight-footnote {
    margin: 0 13px 19px;
  }
  .insight-explainer {
    margin: 0 13px 16px;
  }
  .insight-explainer span {
    font-size: 14px;
  }
  .insight-explainer strong {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insight-h-fill,
  .insight-v-bar,
  .dashboard-tab {
    transition: none !important;
  }
}
/* Vertical charts show only colored data bars; do not display pale background columns. */
.biz-bar-rail,
.dashboard-tabpanel .biz-bar-rail,
.insight-v-track,
.dashboard-tabpanel .insight-v-track {
  background: transparent !important;
}
/* ===== END legacy style-04.css ===== */

/* ===== BEGIN legacy style-05.css ===== */
/* GOHED HQ V6 — Greyscale RESQ geolocation and dispatch workspace */
/* Match the three equal KPI columns: map spans two, queue spans one. */
.geo-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  align-items: stretch;
  min-width: 0;
}
.geo-ops-panel {
  grid-column: span 2;
}
.geo-ops-queue {
  grid-column: span 1;
}
.geo-ops-grid > .panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.geo-ops-panel .panel-head {
  padding-bottom: 8px;
}
.geo-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 19px 13px;
  flex-wrap: wrap;
}
.geo-filter-group,
.geo-control-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.geo-chip,
.geo-icon-btn {
  border: 0;
  background: var(--surface-quiet, #f2f3f5);
  color: var(--muted, #8490a0);
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.geo-chip:hover,
.geo-icon-btn:hover {
  background: var(--surface-hover, #e7e9ef);
  color: var(--ink);
}
.geo-chip.active {
  background: var(--ink);
  color: var(--surface, #fff);
}
html[data-theme="dark"] .geo-chip.active {
  background: var(--red);
  color: #fff;
}
.geo-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.geo-icon-btn.active {
  color: var(--red);
}
.geo-region-select {
  min-height: 37px;
  max-width: 150px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-quiet, #f2f3f5);
  color: var(--ink);
  padding: 6px 10px;
  font:
    600 14px Inter,
    sans-serif;
}
.geo-map-frame {
  position: relative;
  background: #e6e8ea;
  overflow: hidden;
  min-width: 0;
}
.geo-map-ops {
  height: 345px;
  margin: 0 19px;
  border-radius: 10px;
}
.geo-map-command {
  height: 780px;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
}
.geo-map-mini {
  height: 170px;
  border-radius: 9px;
}
.geo-map {
  height: 100%;
  width: 100%;
  min-height: 0;
  position: relative;
  background: #e5e8eb;
  z-index: 0;
  isolation: isolate;
}
.geo-map .leaflet-tile-pane {
  filter: grayscale(100%) saturate(0%) contrast(0.92) brightness(1.055);
}
html[data-theme="dark"] .geo-map .leaflet-tile-pane {
  filter: grayscale(100%) saturate(0%) contrast(0.87) brightness(0.73);
}
.geo-map .leaflet-control-attribution {
  font-family: Inter, sans-serif;
  font-size: 11px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: #60656b !important;
}
.geo-map .leaflet-control-attribution a {
  color: #46494e !important;
}
.geo-map .leaflet-control-zoom a {
  font-size: 20px !important;
  color: #010101 !important;
  border-radius: 0 !important;
}
.geo-map .leaflet-container,
.geo-map .leaflet-control {
  font-family: Inter, sans-serif;
}
.geo-map .leaflet-marker-icon {
  background: transparent;
  border: 0 !important;
}
.geo-map-frame .geo-map-stamp {
  position: absolute;
  left: 12px;
  top: 11px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.91);
  color: #353c44;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}
.geo-map-frame .geo-map-stamp i {
  color: var(--red);
}
.geo-pin-dot,
.geo-panel-pin {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  transform: translateY(0);
  border-radius: 50%;
  color: white;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.geo-pin-dot i,
.geo-panel-pin i {
  font-size: 1.375rem !important;
  line-height: 1;
}
.geo-pin-dot.new {
  background: #ed2124;
}
.geo-pin-dot.escalated {
  background: #d24a18;
}
.geo-pin-dot.assigned {
  background: #3773c8;
}
.geo-pin-dot.route {
  background: #2779d7;
}
.geo-pin-dot.site {
  background: #d99c31;
}
.geo-pin-dot.service {
  background: #7356c3;
}
.geo-pin-dot.review {
  background: #875eab;
}
.geo-pin-dot.selected {
  transform: scale(1.25);
  box-shadow:
    0 0 0 5px rgba(237, 33, 36, 0.21),
    0 3px 16px rgba(0, 0, 0, 0.3);
}
.geo-panel-pin {
  background: #149e6f;
  border-radius: 10px;
  width: 32px;
  height: 32px;
}
.geo-panel-pin.offline {
  background: #a4a8b0;
}
.geo-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 20px 16px;
  color: var(--muted);
  font-size: 14px;
}
.geo-legend > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.geo-legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: #ed2124;
  border-radius: 50%;
}
.geo-legend-dot.escalated {
  background: #d24a18;
}
.geo-legend-dot.assigned {
  background: #3773c8;
}
.geo-legend-dot.route {
  background: #2779d7;
}
.geo-legend-dot.site {
  background: #d99c31;
}
.geo-legend-dot.service {
  background: #7356c3;
}
.geo-legend-dot.review {
  background: #875eab;
}
.geo-legend-dot.panel {
  background: #149e6f;
}
.geo-queue-header {
  padding: 19px 20px 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.geo-queue-header h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}
.geo-queue-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.geo-queue-scroll {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}
.geo-ops-queue .geo-queue-scroll {
  max-height: 423px;
  flex: 1;
  padding: 0 12px;
}
.geo-queue-item {
  padding: 12px 13px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  margin: 3px 0 7px;
  background: var(--surface-quiet, #f7f8fa);
  display: grid;
  gap: 5px;
  outline-offset: 2px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.geo-queue-item:hover {
  background: var(--surface-hover, #eceef1);
}
.geo-queue-item.selected {
  background: var(--red-light, #ffeded);
  box-shadow: inset 3px 0 0 var(--red);
}
.geo-queue-top,
.geo-queue-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.geo-queue-top strong {
  font-size: 14px;
  font-weight: 600;
}
.geo-queue-title {
  font-size: 16px;
  font-weight: 600;
}
.geo-queue-area {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.geo-queue-bottom .pill {
  font-size: 14px;
}
.geo-queue-open,
.geo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.geo-queue-open:hover,
.geo-link:hover {
  text-decoration: underline;
}
.geo-queue-footer {
  padding: 15px 18px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-quiet, #f6f7f8);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}
.geo-empty {
  padding: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.geo-command-panel {
  margin: 16px 0 18px;
  overflow: visible !important;
}
.geo-command-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 20px 20px 8px;
}
.geo-mode-label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
/* Full-bleed workspace map; queue is positioned OVER the map, not beside it. */
.geo-command-grid {
  position: relative;
  display: block;
  padding: 0 18px;
  min-width: 0;
  isolation: isolate;
}
.geo-command-grid > .geo-map-frame {
  width: 100%;
}
/* Floating, internally scrollable case rail with comfortable map breathing room. */
.geo-resq-rail {
  position: absolute;
  top: 22px;
  right: 40px;
  bottom: 22px;
  width: min(355px, 38%);
  z-index: 750;
  background: var(--surface, #fff);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 12px 42px rgba(15, 23, 42, 0.19);
}
.geo-rail-head {
  padding: 17px 17px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
}
.geo-rail-head span {
  color: var(--muted);
  font-size: 14px;
}
.geo-resq-rail .geo-queue-scroll {
  flex: 1;
  max-height: none;
  padding: 0 8px 11px;
}
.geo-command-panel .geo-legend {
  padding-bottom: 9px;
}
.geo-disclaimer {
  font-size: 14px;
  color: var(--muted);
  padding: 2px 20px 18px;
}
.geo-case-block {
  margin-top: 19px;
  background: var(--surface-quiet, #f6f7f9);
  padding: 12px;
  border-radius: 12px;
}
.geo-case-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.geo-case-block .geo-map-frame .geo-map-stamp {
  font-size: 12px;
  padding: 6px 8px;
}
.geo-case-block .geo-link {
  margin-top: 10px;
}
.geo-view-expanded {
  overflow: hidden !important;
}
.geo-command-panel.geo-fullscreen {
  position: fixed;
  top: 13px;
  bottom: 13px;
  left: 13px;
  right: 13px;
  margin: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border-radius: 15px;
  box-shadow: 0 15px 65px rgba(0, 0, 0, 0.28);
}
.geo-command-panel.geo-fullscreen .geo-command-grid {
  flex: 1;
  min-height: 0;
  display: block;
}
.geo-command-panel.geo-fullscreen .geo-map-frame,
.geo-command-panel.geo-fullscreen .geo-map-command {
  height: 100%;
  min-height: 0;
}
.geo-command-panel.geo-fullscreen .geo-resq-rail .geo-queue-scroll {
  max-height: none;
  flex: 1;
}
.geo-command-panel.geo-fullscreen .geo-disclaimer {
  padding-bottom: 10px;
}
/* Offline view retains interactive pins and visibly identifies itself as a schematic. */
.geo-map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e7eaed;
  z-index: 0;
}
.geo-map.geo-tiles-loaded .geo-map-fallback {
  display: none;
}
.geo-schematic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}
.geo-fallback-city {
  position: absolute;
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #8e969f;
  pointer-events: none;
}
.geo-fallback-city.center {
  top: 38%;
  left: 44%;
}
.geo-fallback-city.west {
  top: 62%;
  left: 10%;
}
.geo-fallback-city.east {
  top: 31%;
  right: 8%;
}
.geo-fallback-city.north {
  top: 11%;
  left: 52%;
}
.geo-fallback-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #4d5661;
  font-size: 12px;
  background: #ffffffc7;
  padding: 4px 7px;
  border-radius: 4px;
}
.geo-fallback-pins {
  position: absolute;
  inset: 0;
}
.geo-schematic-pin {
  position: absolute;
  transform: translate(-50%, -80%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #ed2124;
  color: #fff;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.geo-schematic-pin.new {
  background: #ed2124;
}
.geo-schematic-pin.escalated {
  background: #d24a18;
}
.geo-schematic-pin.assigned {
  background: #3773c8;
}
.geo-schematic-pin.route {
  background: #2779d7;
}
.geo-schematic-pin.site {
  background: #d99c31;
}
.geo-schematic-pin.service {
  background: #7356c3;
}
.geo-schematic-pin.review {
  background: #875eab;
}
.geo-schematic-pin.panel {
  background: #149e6f;
  z-index: 1;
}
.geo-schematic-pin:not(.panel) {
  z-index: 2;
}
.geo-schematic-pin.selected {
  z-index: 3;
  outline: 5px solid rgba(237, 33, 36, 0.22);
}
.geo-map:not(.geo-tiles-loaded) .leaflet-container {
  background: transparent;
}
.geo-map:not(.geo-tiles-loaded) .leaflet-pane {
  z-index: 1;
}
@media (max-width: 1380px) {
  .geo-resq-rail {
    width: min(320px, 40%);
  }
}
@media (max-width: 1130px) {
  .geo-ops-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .geo-ops-panel,
  .geo-ops-queue {
    grid-column: 1/-1;
  }
  .geo-ops-queue .geo-queue-scroll {
    max-height: 320px;
  }
  .geo-map-command {
    height: 720px;
  }
  .geo-resq-rail {
    top: 16px;
    right: 32px;
    bottom: 16px;
    width: min(300px, 42%);
  }
}
/* On narrow screens a floating overlay would obscure the map; stack the queue below instead. */
@media (max-width: 900px) {
  .geo-command-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }
  .geo-map-command {
    height: 540px;
    flex: 0 0 auto;
  }
  .geo-resq-rail {
    position: static;
    width: 100%;
    height: 330px;
    flex: 0 0 auto;
    box-shadow: none;
    background: var(--surface-quiet, #f7f8fa);
  }
  .geo-command-panel.geo-fullscreen .geo-command-grid {
    display: flex;
    flex-direction: column;
  }
  .geo-command-panel.geo-fullscreen .geo-map-frame {
    height: auto;
    flex: 1 1 auto;
    min-height: 220px;
  }
  .geo-command-panel.geo-fullscreen .geo-resq-rail {
    height: 190px;
    flex: 0 0 190px;
  }
}
@media (max-width: 650px) {
  .geo-control-bar {
    padding: 10px 12px;
  }
  .geo-chip {
    padding: 7px 9px;
  }
  .geo-icon-btn span {
    display: none;
  }
  .geo-command-head {
    padding: 16px 12px 6px;
  }
  .geo-command-grid {
    padding: 0 9px;
  }
  .geo-map-command {
    height: 470px;
  }
  .geo-map-ops {
    height: 315px;
    margin: 0 10px;
  }
  .geo-map-stamp {
    font-size: 12px !important;
    max-width: calc(100% - 22px);
  }
  .geo-command-panel.geo-fullscreen {
    inset: 0;
    border-radius: 0;
  }
  .geo-map-frame .geo-map-stamp i {
    display: none;
  }
  .geo-fallback-city {
    font-size: 12px;
  }
  .geo-legend {
    gap: 10px;
    padding: 10px 12px 14px;
  }
  .geo-queue-title {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .geo-chip,
  .geo-icon-btn,
  .geo-queue-item,
  .geo-pin-dot {
    transition: none;
  }
}

/* V7 folder tabs: fixed 170px, left aligned, no red line or border. */
.resq-folder-tabs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 0 0 0;
  margin-top: 19px;
}
.resq-folder-tab {
  flex: 0 0 170px;
  width: 170px;
  max-width: calc(50% - 3px);
  border: 0;
  border-radius: 13px 13px 0 0;
  background: var(--surface-quiet, #e6e8ed);
  color: var(--muted, #777d89);
  font:
    500 17px Inter,
    sans-serif;
  padding: 17px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.resq-folder-tab.selected {
  background: var(--surface, #fff);
  color: var(--ink, #010101);
  font-weight: 600;
}
.resq-folder-tab i {
  font-size: 1.375rem;
  color: inherit;
}
.resq-folder-tab.selected i {
  color: var(--red, #ed2124);
}
.resq-folder-tab:hover:not(.selected) {
  background: var(--surface-hover, #dce0e6);
}
.resq-folder-content {
  background: var(--surface, #fff);
  border-radius: 0 14px 14px 14px;
  padding: 13px 0 1px;
  min-width: 0;
}
.resq-folder-content .geo-command-panel {
  margin: 0 0 8px;
  box-shadow: none;
}
.resq-folder-content .resq-case-list-panel {
  margin: 0;
  box-shadow: none;
}
.resq-case-list-panel .filterbar {
  padding: 15px 20px;
}
.resq-case-list-panel .hint {
  padding: 0 20px 16px;
}
.resq-case-list-panel tr.geo-case-selected {
  background: var(--red-light, #fff1f1);
}
.resq-folder-content .geo-command-panel.geo-fullscreen {
  padding-top: 16px;
}
/* Keep the local illustrative SVG as a fallback when external Leaflet is unavailable. */
.geo-map-fallback img.geo-schematic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.geo-map .leaflet-image-layer {
  filter: grayscale(100%) !important;
}
.geo-map.geo-tiles-loaded .geo-map-fallback {
  display: none;
}
.geo-map-frame .geo-map-stamp {
  z-index: 850;
}
/* The queue stays floating above a 780px full-width map on desktop. */
@media (max-width: 650px) {
  .resq-folder-tab {
    font-size: 16px;
    padding: 15px 8px;
  }
  .resq-folder-content {
    border-radius: 0 10px 10px 10px;
  }
}

/* GOHED HQ V7 — Operations layout V2. Dispatch Attention full width; three lower cards. */
.ops-attention-full {
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
}
.ops-attention-full > .panel {
  width: 100%;
  min-width: 0;
}
.ops-secondary-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}
.ops-secondary-grid > .panel {
  width: 100%;
  min-width: 0;
}
.ops-secondary-grid .panel-head {
  min-width: 0;
}
.ops-secondary-grid .panel-head > div {
  min-width: 0;
}
.ops-secondary-grid .metric-blocks {
  gap: 8px;
}
.ops-secondary-grid .metric-block {
  min-width: 0;
  padding: 13px 10px;
}
.ops-secondary-grid .metric-block span {
  overflow-wrap: anywhere;
}
.ops-secondary-grid .bar-row .bar-label {
  flex-basis: 96px;
  width: 96px;
}
@media (max-width: 1510px) and (min-width: 1121px) {
  .ops-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-secondary-grid > .panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 1120px) {
  .ops-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-secondary-grid > .panel:last-child {
    grid-column: auto;
  }
}

/* V7.2: true greyscale road basemap, no inset borders, preserve status marker colors. */
.geo-map .leaflet-tile-pane {
  filter: grayscale(1) saturate(0) contrast(0.96) brightness(1.035);
}
html[data-theme="dark"] .geo-map .leaflet-tile-pane {
  filter: grayscale(1) saturate(0) brightness(0.74);
}
.geo-map .leaflet-tile-container img {
  image-rendering: auto;
}
.geo-map.geo-tiles-loaded .geo-map-fallback {
  display: none !important;
}
.geo-map-frame .geo-map-stamp {
  z-index: 850;
}
.geo-map .leaflet-control-attribution {
  max-width: calc(100% - 6px);
  line-height: 1.25;
}
/* ===== END legacy style-05.css ===== */

/* ===== BEGIN legacy style-06.css ===== */
/* GOHED HQ V8 — RESQ system intake + exception-based dispatch. No visual redesign of V7.2. */
.intake-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface-quiet);
  border: 0;
  border-radius: 14px;
  padding: 23px 26px;
  margin-bottom: 17px;
  box-shadow: 0 5px 24px rgba(30, 39, 62, 0.03);
}
.intake-flow-copy {
  min-width: 0;
  flex: 1;
}
.intake-flow-kicker {
  display: block;
  letter-spacing: 0.07em;
  font-size: 14px;
  font-weight: 600;
  color: var(--red, #ed2124);
  margin-bottom: 9px;
}
.intake-flow-copy strong {
  display: block;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink, #010101);
}
.intake-flow-copy p {
  font-size: 14px;
  color: var(--muted, #6f7987);
  max-width: 740px;
  margin-top: 7px;
  line-height: 1.6;
}
.intake-flow-stats {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.intake-flow-stats > span {
  min-width: 110px;
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  text-align: left;
  border-radius: 11px;
  background: var(--surface-quiet, #f6f7f9);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 14px;
}
.intake-flow-stats b {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink, #010101);
}
.intake-flow-stats .attention-count b {
  color: var(--red, #ed2124);
}
.intake-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 7px;
  background: var(--surface-quiet, #f6f7f9);
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.intake-status.ok {
  background: rgba(26, 159, 107, 0.095);
  color: #159668;
}
.intake-status.needs {
  background: rgba(237, 33, 36, 0.09);
  color: #c93235;
}
.intake-status.override {
  background: rgba(43, 116, 214, 0.095);
  color: #3974be;
}
.intake-cell {
  display: grid;
  gap: 5px;
}
.intake-cell > span:last-child {
  color: var(--muted);
  font-size: 14px;
}
.exception-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 15px 0 8px;
  flex-wrap: wrap;
}
.exception-header b {
  font-size: 16px;
  font-weight: 600;
}
.exception-header span {
  font-size: 14px;
  color: var(--muted);
}
.intake-all-clear {
  padding: 13px 0;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.intake-summary {
  background: var(--surface-quiet, #f6f7f9);
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
}
.intake-summary-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.intake-summary-head b {
  font-size: 17px;
  font-weight: 600;
}
.intake-summary .detail-pair {
  padding: 8px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
.intake-summary details {
  margin-top: 12px;
  font-size: 14px;
}
.intake-summary summary {
  cursor: pointer;
  font-weight: 600;
}
.intake-audit-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  font-size: 14px;
}
.intake-audit-row span {
  color: var(--muted);
}
.intake-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}
.intake-check input {
  margin-top: 4px;
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
[data-theme="dark"] .intake-flow,
[data-theme="dark"] .intake-summary {
  background: var(--surface, #20252e);
}
[data-theme="dark"] .intake-flow-stats > span {
  background: var(--surface-quiet, #2a303a);
}
[data-theme="dark"] .intake-status.ok {
  color: #80d2ae;
}
[data-theme="dark"] .intake-status.needs {
  color: #ff999a;
}
[data-theme="dark"] .intake-status.override {
  color: #9cc8ff;
}
@media (max-width: 1300px) {
  .intake-flow {
    align-items: flex-start;
    flex-direction: column;
  }
  .intake-flow-stats {
    width: 100%;
    justify-content: stretch;
  }
  .intake-flow-stats > span {
    flex: 1 1 130px;
  }
}
@media (max-width: 650px) {
  .intake-flow {
    padding: 18px 15px;
  }
  .intake-flow-copy strong {
    font-size: 17px;
  }
  .intake-flow-stats > span {
    min-width: 0;
    flex: 1 1 105px;
  }
  .intake-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ===== END legacy style-06.css ===== */

/* ===== BEGIN legacy style-07.css ===== */
/* GOHED V9 - Auto Dispatch / panel job offers (design baseline remains V8). */
.v9-autodispatch-strip {
  background: var(--surface, #fff);
  border: 0;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 5px 24px rgba(25, 30, 45, 0.035);
}
.v9-autodispatch-strip > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.v9-autodispatch-strip strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.v9-autodispatch-strip span {
  color: var(--muted, #7a8490);
  font-size: 14px;
}
.v9-autodispatch-end {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.v9-autodispatch-end .v9-pending-count {
  color: var(--red, #ed2124);
  font-weight: 600;
}
.case-banner {
  flex-wrap: wrap;
  align-items: flex-start;
}
.case-banner > .pill {
  flex: 0 0 auto;
}
.v9-dispatch-summary {
  padding: 17px 16px;
  background: var(--surface-quiet, #f5f6f9);
  border-radius: 12px;
  margin: 14px 0;
}
.v9-dispatch-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.v9-dispatch-title b {
  font-size: 17px;
  font-weight: 600;
}
.v9-dispatch-summary details {
  margin-top: 12px;
}
.v9-dispatch-summary summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.v9-attempt {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(110, 120, 130, 0.12);
}
.v9-attempt b {
  font-size: 14px;
  font-weight: 600;
}
.v9-attempt span {
  font-size: 14px;
  color: var(--muted, #777);
}
.modal-footer {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 10px;
}
.modal-footer .btn {
  flex: 0 1 auto;
  white-space: normal;
  line-height: 1.35;
}
body:has(.modal-overlay) #toast .toast {
  bottom: auto;
  top: 80px;
  left: 24px;
  right: auto;
  pointer-events: none;
}
.v9-offer-notice {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(236, 174, 58, 0.12);
  border-radius: 8px;
  color: var(--ink, #010101);
}
[data-theme="dark"] .v9-autodispatch-strip,
[data-theme="dark"] .v9-dispatch-summary {
  background: var(--surface, #20252e);
}
@media (max-width: 800px) {
  .v9-autodispatch-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .v9-autodispatch-end {
    justify-content: space-between;
  }
}
/* ===== END legacy style-07.css ===== */

/* ===== BEGIN legacy style-08.css ===== */
/* GOHED HQ V10 — integrated operator console; visual simulation only.
         Inter 14–20px, 400–600. No bordered boxes. Responsive and theme-aware. */
.call-surface {
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  color: var(--ink);
}
.call-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 19px 23px;
  background: var(--surface);
  border-radius: 16px;
  margin: 0 0 15px;
}
.call-status-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.call-status-strip > div:first-child > i {
  color: var(--red);
  font-size: 1.375rem;
}
.call-status-strip strong {
  font-size: 17px;
  font-weight: 600;
}
.call-status-strip span {
  color: var(--muted);
  font-size: 14px;
}
.call-status-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.call-status-picker label {
  font-size: 14px;
  color: var(--soft);
  font-weight: 500;
}
.call-status-picker select {
  min-width: 150px;
  width: auto;
}
.call-incoming {
  padding: 22px 24px;
  margin-bottom: 15px;
}
.call-incoming-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.call-incoming-header strong {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.call-incoming-header strong i {
  font-size: 1.375rem;
  color: var(--red);
}
.call-incoming-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.call-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.call-sample {
  min-width: 0;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  border: 0;
  background: var(--surface-quiet);
  border-radius: 12px;
  padding: 17px 13px;
  transition:
    background 0.18s,
    transform 0.18s;
  color: var(--ink);
}
.call-sample:not(:disabled):hover {
  background: var(--surface-hover);
  transform: none;
}
.call-sample-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.call-sample-symbol i {
  font-size: 1.375rem;
}
.call-sample > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.call-sample strong {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.call-sample small {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.call-sample > i {
  font-size: 1.375rem;
  color: var(--soft);
}
.call-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 15px;
  align-items: stretch;
  margin: 0 0 15px;
}
.call-console-grid > .call-surface {
  padding: 23px 22px;
  min-height: 560px;
}
.call-block-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.call-block-title > i {
  font-size: 1.375rem;
  color: var(--red);
}
.call-block-title strong {
  font-size: 18px;
  font-weight: 600;
}
.call-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 30px;
  background: var(--surface-quiet);
  padding: 7px 10px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}
.call-state-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #949ca8;
  border-radius: 50%;
}
.call-state.red .call-state-dot {
  background: #ef302a;
}
.call-state.green .call-state-dot {
  background: #18ab75;
}
.call-state.amber .call-state-dot {
  background: #da991a;
}
.call-state.blue .call-state-dot {
  background: #3986dd;
}
.call-person {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.call-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--ink);
  font-weight: 600;
  font-size: 20px;
}
.call-person h3 {
  font-size: 18px;
  margin: 0 0 2px;
}
.call-person p {
  color: var(--soft);
  font-size: 14px;
  margin: 0 0 2px;
}
.call-match {
  color: var(--muted);
  font-size: 14px;
}
.call-match.matched {
  color: var(--green);
}
.call-pairs {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--chart-grid);
  border-bottom: 1px solid var(--chart-grid);
}
.call-pairs > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  font-size: 14px;
}
.call-pairs span {
  color: var(--soft);
}
.call-pairs b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.call-quiet-note,
.call-muted {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.call-lookup {
  margin-top: 19px;
  display: grid;
  gap: 10px;
}
.call-caller-card label,
.call-log-card label,
.call-transfer label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: 6px;
}
.call-lookup .select,
.call-log-card .select,
.call-transfer .select {
  width: 100%;
}
.call-lookup > button {
  justify-self: start;
}
.call-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 !important;
  line-height: 1.5;
  cursor: pointer;
}
.call-confirm input {
  margin-top: 5px;
  accent-color: var(--red);
}
.call-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.call-member-actions .btn {
  flex: 1;
  white-space: normal;
}
.call-linked-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
  padding: 13px;
  background: var(--surface-quiet);
  border-radius: 10px;
  font-size: 14px;
}
.call-live-center {
  background: var(--surface-quiet);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 32px 15px;
  margin-bottom: 16px;
  min-height: 235px;
  text-align: center;
}
.call-voice-icon {
  width: 76px;
  height: 76px;
  background: var(--surface-hover);
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 9px;
}
.call-voice-icon.ringing {
  background: var(--red-light);
  color: var(--red);
}
.call-voice-icon.connected {
  background: var(--green-light);
  color: var(--green);
}
.call-voice-icon > i {
  font-size: 1.375rem;
}
.call-live-center h3 {
  font-size: 20px;
  font-weight: 600;
}
.call-live-center p {
  font-size: 16px;
  color: var(--soft);
}
.call-live-center small {
  font-size: 14px;
  color: var(--muted);
}
.call-voice-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.call-voice-controls .btn {
  flex: 1;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
}
.call-btn.success {
  background: #16a26e;
  color: #fff;
}
.call-transfer {
  padding: 18px 0 12px;
  border-top: 1px solid var(--chart-grid);
}
.call-transfer .call-block-title {
  margin-bottom: 12px;
}
.call-transfer .select {
  margin-bottom: 12px;
}
.call-transfer-notice {
  border-radius: 9px;
  background: var(--surface-quiet);
  padding: 13px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 11px;
  color: var(--soft);
}
.call-transfer-notice strong {
  color: var(--ink);
}
.call-simulator-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 12px;
}
.call-simulator-note i {
  font-size: 1.375rem;
  color: var(--soft);
}
.call-log-card label {
  margin: 13px 0 7px;
}
.call-log-card .textarea {
  min-height: 148px;
}
.call-save {
  width: 100%;
  margin-top: 13px;
  justify-content: center;
}
.call-event-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
  font-weight: 600;
  font-size: 16px;
}
.call-event-heading span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.call-events {
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 12px;
}
.call-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.call-event > i {
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}
.call-event > span {
  flex: 1;
  min-width: 0;
}
.call-event > small {
  font-size: 14px;
  color: var(--muted);
}
.call-history {
  overflow: hidden;
}
.call-history-top {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.call-history-top .call-block-title {
  margin-bottom: 0;
}
.call-history-top .select {
  max-width: 235px;
}
.call-history-note {
  max-width: 260px;
  line-height: 1.5;
  color: var(--soft);
}
.call-modal-link {
  background: var(--surface-quiet);
  color: var(--soft);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 13px;
}
.call-modal-link i {
  color: var(--red);
  font-size: 1.375rem;
  vertical-align: middle;
  margin-right: 5px;
}
@media (max-width: 1480px) {
  .call-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-log-card {
    grid-column: 1/-1;
  }
  .call-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-console-grid > .call-surface {
    min-height: 0;
  }
}
@media (max-width: 980px) {
  .call-console-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .call-log-card {
    grid-column: auto;
  }
  .call-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .call-status-strip,
  .call-incoming {
    padding: 16px;
  }
  .call-console-grid > .call-surface {
    padding: 17px 15px;
  }
  .call-samples {
    grid-template-columns: minmax(0, 1fr);
  }
  .call-voice-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .call-voice-controls .btn {
    flex: auto;
  }
  .call-member-actions {
    flex-direction: column;
  }
  .call-state {
    margin-left: 0;
  }
  .call-history-top {
    padding: 17px;
  }
  .call-history-top .select {
    max-width: none;
    width: 100%;
  }
  .call-live-center {
    min-height: 210px;
  }
}
/* ===== END legacy style-08.css ===== */

/* ===== BEGIN legacy style-09.css ===== */
/* V11: dark sidebar, stable icon positions and sticky header. */
.sidebar,
html[data-theme="dark"] .sidebar {
  background: #202833;
  color: #e7ecf3;
  box-shadow: none !important;
}
.sidebar .navigation {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar .navigation::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.sidebar .nav-label {
  color: #99a7bb;
  white-space: nowrap;
}
.sidebar .nav-item {
  color: #c2ccda;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.sidebar .nav-item:hover {
  background: #303a48;
  color: #fff;
}
.sidebar .nav-item.active,
html[data-theme="dark"] .sidebar .nav-item.active {
  background: var(--red);
  color: #fff;
}
.sidebar .nav-count {
  background: #354050;
  color: #cbd5e1;
}
.sidebar .nav-item.active .nav-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.sidebar .sidebar-pin {
  background: #303a48;
  color: #e7ecf3;
}
.sidebar .sidebar-pin:hover {
  background: #3c4858;
  color: #fff;
}
.sidebar.collapsed:not(.hover-expanded) .navigation {
  padding: 8px 11px 16px;
}
.sidebar.collapsed:not(.hover-expanded) .nav-item {
  width: 54px;
  overflow: hidden;
  justify-content: flex-start;
}
.sidebar.collapsed:not(.hover-expanded) .nav-item > span {
  visibility: hidden;
}
.sidebar.collapsed:not(.hover-expanded) .nav-label {
  visibility: hidden;
}
.sidebar .nav-item > .ri-icon {
  flex: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 43;
}
.topbar .profile-copy strong {
  max-width: 210px;
}
@media (max-width: 560px) {
  .topbar .profile-copy {
    display: none;
  }
}
/* ===== END legacy style-09.css ===== */

/* ===== BEGIN legacy style-10.css ===== */
/* V12 sidebar and global control refinements */
html,
body,
button,
input,
select,
textarea {
  font-size: 16px !important;
}
button,
.btn,
button.btn.sm,
button.btn.xs {
  font-size: 16px !important;
  border-radius: 6px !important;
}
.sidebar {
  background: #e8eaf0 !important;
}
html[data-theme="dark"] .sidebar {
  background: #202833 !important;
}
.sidebar .navigation,
.sidebar.collapsed:not(.hover-expanded) .navigation {
  padding: 10px 20px;
  overflow-y: auto;
  flex: 1;
}
.sidebar .nav-item,
.sidebar.collapsed:not(.hover-expanded) .nav-item {
  padding: 6px 10px;
  font-size: 16px;
  min-height: 44px;
  height: 44px;
}
.sidebar .nav-item {
  color: #627089;
}
.sidebar .nav-item:hover {
  background: #dce0e8;
  color: #263247;
}
.sidebar .nav-item.active {
  background: var(--red);
  color: #fff;
}
.sidebar .nav-label {
  text-transform: none;
  letter-spacing: 0.3px;
  color: #8791a3;
}
.sidebar .nav-count {
  background: #dce0e8;
  color: #627089;
}
.sidebar .nav-item.active .nav-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
html[data-theme="dark"] .sidebar .nav-item {
  color: #c2ccda;
}
html[data-theme="dark"] .sidebar .nav-item.active {
  background: var(--red);
  color: #fff;
}
.sidebar .sidebar-pin {
  background: #dce0e8;
  color: #627089;
}
.sidebar.collapsed:not(.hover-expanded) .sidebar-pin {
  opacity: 0;
  pointer-events: none;
}
.sidebar.collapsed:hover .sidebar-pin,
.sidebar.collapsed:focus-within .sidebar-pin {
  opacity: 1;
  pointer-events: auto;
}
.sidebar .brand,
.sidebar.collapsed:not(.hover-expanded) .brand {
  width: 320px;
  height: 118px;
  min-height: 118px;
  padding: 27px 18px 22px 25px;
  flex-direction: row;
}
.sidebar .brand-identity.v12-brand,
.sidebar.collapsed:not(.hover-expanded) .brand-identity.v12-brand {
  position: relative;
  display: block;
  width: 210px;
  height: 65px;
  flex: none;
}
.sidebar .brand img.v12-symbol {
  position: absolute;
  left: 0;
  top: 8px;
  width: 48px !important;
  height: 48px !important;
  max-height: none !important;
  max-width: none !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}
.sidebar .brand img.v12-wordmark {
  position: absolute;
  left: 60px;
  top: 8px;
  width: 140px !important;
  height: 48px !important;
  max-height: none !important;
  max-width: none !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  object-fit: contain;
}
.v12-wordmark-light {
  display: none;
}
html[data-theme="dark"] .v12-wordmark-dark {
  display: none;
}
html[data-theme="dark"] .v12-wordmark-light {
  display: block;
}
.sidebar.collapsed:not(.hover-expanded) .v12-wordmark {
  visibility: hidden;
}
.sidebar.collapsed:not(.hover-expanded) .nav-item {
  width: 50px;
}
/* ===== END legacy style-10.css ===== */

/* ===== BEGIN legacy style-11.css ===== */
/* V13 refinements */
.sidebar .nav-label {
  font-size: 16px;
  letter-spacing: 0;
}
.sidebar .nav-item {
  color: #191a1b;
}
.sidebar .nav-item.active {
  color: #fff;
}
.sidebar .brand,
.sidebar.collapsed:not(.hover-expanded) .brand {
  padding: 0px 20px 20px 20px;
  height: var(--v13-brand-height, 101px);
  min-height: var(--v13-brand-height, 101px);
}
.sidebar .brand img.v12-symbol {
  width: 40px !important;
  height: 40px !important;
  top: 0px;
  left: 0px;
}
.sidebar .brand img.v12-wordmark {
  height: 40px !important;
  left: 54px;
}
.sidebar .sidebar-pin,
.sidebar .sidebar-pin:hover,
.sidebar .sidebar-pin:active {
  background: transparent !important;
  box-shadow: none;
  border: 0;
}
.sidebar.collapsed:not(:hover):not(:focus-within) .sidebar-pin {
  opacity: 0;
  pointer-events: none;
}
.sidebar.collapsed:hover .sidebar-pin,
.sidebar.collapsed:focus-within .sidebar-pin {
  opacity: 1;
  pointer-events: auto;
}
/* ===== END legacy style-11.css ===== */

/* ===== BEGIN legacy style-12.css ===== */
/* V14 requested visual refinements */
:root {
  --bg: #e0e2e8;
  --surface-quiet: #f3f5fb;
}
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) .workspace {
  background: #e0e2e8;
}
.sidebar .nav-item {
  background: #dce0e8;
  margin: 6px 0;
}
.sidebar .nav-item.active,
html[data-theme="dark"] .sidebar .nav-item.active {
  background: var(--red);
  color: #fff;
}
.sidebar .nav-item:hover,
html[data-theme="dark"] .sidebar .nav-item:hover:not(.active) {
  color: #ffffff;
}
.sidebar .brand,
.sidebar.collapsed:not(.hover-expanded) .brand {
  padding: 20px 20px 20px 20px;
}
.sidebar.collapsed .sidebar-pin {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.sidebar.collapsed .brand-identity {
  cursor: pointer;
}
.sidebar.collapsed .brand-identity:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
/* ===== END legacy style-12.css ===== */

/* ===== BEGIN legacy style-13.css ===== */
/* V15 dashboard styling */
.sidebar .nav-item:hover:not(.active),
html[data-theme="dark"] .sidebar .nav-item:hover:not(.active) {
  background: #fff;
  color: #191a1b;
}
.sidebar .nav-item.active:hover {
  background: var(--red);
  color: #fff;
}
.business-kpis.v5-kpis .kpi-value,
.business-kpis.v5-kpis .kpi-value > span {
  font-family: "Roboto Mono", monospace !important;
  font-size: 40px !important;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.business-kpis.v5-kpis .kpi-value .kpi-currency {
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 2px;
}
.business-kpis.v5-kpis .kpi-icon {
  color: #191a1b !important;
  background: #e8eaf0 !important;
}
.kpi:hover {
  box-shadow: none !important;
}
.business-kpis.v5-kpis .kpi-revenue,
.business-kpis.v5-kpis .kpi-revenue:hover {
  background: var(--red) !important;
  color: #fff !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-label,
.business-kpis.v5-kpis .kpi-revenue .kpi-value,
.business-kpis.v5-kpis .kpi-revenue .kpi-sub {
  color: #fff !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-icon {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
.topbar,
.topbar .breadcrumbs,
.topbar .breadcrumbs strong,
.topbar .profile-copy strong,
.topbar .profile-avatar,
.topbar .theme-toggle-label {
  font-size: 16px !important;
}
.breadcrumb-brand,
#dashboard-crumb {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
#dashboard-crumb:empty {
  display: none;
}
.dashboard-tabs .dashboard-tab {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
h1 {
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.demo-note {
  position: relative;
}
.dismiss-demo-note {
  display: grid;
  place-items: center;
  flex: none;
  margin-left: auto;
  padding: 6px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.demo-note.is-dismissing {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
body.demo-note-dismissed .demo-note {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .demo-note.is-dismissing {
    transition: none;
  }
}
/* ===== END legacy style-13.css ===== */

/* ===== BEGIN legacy style-14.css ===== */
/* V16 layout and information controls */
.topbar {
  min-height: 70px;
  height: auto;
  padding: 8px 20px;
}
.main {
  padding: 20px 20px 30px;
}
.sidebar .brand-identity.v12-brand {
  transform: translateY(20px);
}
.sidebar .sidebar-pin {
  transform: translateY(-10px);
}
.sidebar.collapsed.hover-expanded .sidebar-pin {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.kpi {
  text-align: right;
}
.kpi > div {
  width: 100%;
}
.kpi .kpi-sub {
  font-size: 16px;
  justify-content: flex-end;
}
.kpi .kpi-top {
  justify-content: flex-end;
  gap: 10px;
}
.kpi .kpi-icon {
  order: -1;
}
.business-kpis.v5-kpis .kpi-value {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.business-kpis.v5-kpis .kpi-value > span {
  flex: none;
}
.page-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.title-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: help;
}
.title-info:hover,
.title-info:focus-visible {
  color: var(--ink);
}
.page-help-tooltip {
  position: fixed;
  z-index: 200;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 15px;
  background: #191a1b;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 18px #0002;
}
.page-help-tooltip[hidden] {
  display: none;
}
/* ===== END legacy style-14.css ===== */

/* ===== BEGIN legacy style-15.css ===== */
/* V17 consolidated final cosmetic overrides */
::selection {
  background: #101010;
  color: #fff;
}
.sidebar .brand-identity.v12-brand {
  transform: translateY(10px);
}
.sidebar .brand img.v12-symbol {
  width: 40px !important;
  height: 40px !important;
  top: -3px;
  left: 5px;
}
.sidebar .brand img.v12-wordmark {
  height: 38px !important;
  left: 60px;
}
.sidebar .sidebar-pin {
  transform: translateY(-5px);
}
.sidebar .sidebar-pin:hover,
.sidebar .sidebar-pin:focus-visible {
  background: transparent !important;
  color: #191a1b !important;
}
.topbar .admin-trigger {
  padding: 0;
  background: transparent !important;
  border: 0;
  gap: 0;
}
.topbar .admin-trigger .profile-copy,
.topbar .admin-trigger .admin-chevron {
  display: none !important;
}
.admin-popover-copy {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
#popover-role {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.workspace {
  position: relative;
}
.admin-greeting {
  position: absolute;
  top: 84px;
  right: 20px;
  padding: 0;
  text-align: right;
  color: var(--ink);
}
.main:not(:has(.dashboard-tabs)) {
  padding-top: 90px;
}
@media (max-width: 1120px) {
  .admin-greeting {
    position: static;
    padding: 16px 20px 0;
  }
  .main:not(:has(.dashboard-tabs)) {
    padding-top: 20px;
  }
}
#greeting-name {
  font-size: 18px;
  font-weight: 500;
}
.greeting-meta {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--muted);
}
#current-page,
#dashboard-crumb {
  font-weight: 500 !important;
  color: var(--ink) !important;
}
.kpi .kpi-top {
  justify-content: flex-start;
  text-align: left;
}
.kpi .kpi-sub svg,
.kpi .kpi-sub .ri-arrow-right-line {
  display: none;
}
.business-kpis.v5-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.business-kpis.v5-kpis .kpi {
  padding: 16px;
}
.kpi-figure-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}
.business-kpis.v5-kpis .kpi-value {
  margin: 0;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font:
    500 14px Inter,
    sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--muted);
}
.kpi-delta.up {
  color: #147b58;
}
.kpi-delta.down {
  color: #bf3434;
}
.kpi-revenue .kpi-delta {
  color: #fff !important;
}
.kpi:hover {
  box-shadow: none !important;
}
.page-help-tooltip {
  box-shadow: none !important;
  padding: 12px 15px 17px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.activity-list {
  padding: 0 !important;
}
.modal-sheet,
.modal-body,
.activity-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-sheet::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.activity-list::-webkit-scrollbar {
  display: none;
}
.modal-overlay.is-closing {
  animation: gh-backdrop-out 0.32s ease both;
  pointer-events: none;
}
.modal-overlay.is-closing .modal-sheet {
  animation: gh-drawer-out 0.32s cubic-bezier(0.4, 0, 0.6, 1) both;
}
@keyframes gh-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes gh-drawer-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
.gh-select-native {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.gh-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font:
    400 16px Inter,
    sans-serif;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.gh-select-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.gh-select-popup {
  position: fixed;
  z-index: 240;
  padding: 6px;
  background: #fff;
  color: #191a1b;
  border: 1px solid #dce0e8;
  border-radius: 6px;
  box-shadow: none;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: none;
}
.gh-select-popup[hidden] {
  display: none;
}
.gh-select-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  font:
    400 16px Inter,
    sans-serif;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}
.gh-select-option:hover,
.gh-select-option:focus {
  background: #f3f5fb;
}
.gh-select-option[aria-selected="true"] {
  font-weight: 500;
}
html[data-theme="dark"] {
  --bg: #10141b;
  --surface: #1b222c;
  --surface-quiet: #28323f;
  --surface-hover: #354253;
  --line: #394555;
  --ink: #f1f4f8;
  --heading: #f1f4f8;
  --muted: #b8c2d0;
  --chart-grid: #394555;
}
html[data-theme="dark"] .sidebar {
  background: #202833 !important;
}
html[data-theme="dark"] .sidebar .nav-item {
  background: #2b3543 !important;
  color: #e4eaf1 !important;
}
html[data-theme="dark"] .sidebar .nav-item:hover:not(.active) {
  background: #3a4759 !important;
  color: #fff !important;
}
html[data-theme="dark"] .sidebar .nav-item.active {
  background: var(--red) !important;
  color: #fff !important;
}
html[data-theme="dark"] .sidebar .nav-item svg,
html[data-theme="dark"] .sidebar .nav-item i {
  color: inherit !important;
}
html[data-theme="dark"] .sidebar .sidebar-pin,
html[data-theme="dark"] .sidebar .sidebar-pin:hover {
  color: #eef2f7 !important;
  background: transparent !important;
}
html[data-theme="dark"] .sidebar .nav-label {
  color: #a3afbf !important;
}
html[data-theme="dark"] .business-kpis .kpi,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-chip {
  background: var(--surface-quiet) !important;
  color: var(--ink);
}
html[data-theme="dark"] .business-kpis .kpi-revenue {
  background: var(--red) !important;
  color: #fff !important;
}
html[data-theme="dark"] .kpi:not(.kpi-revenue) .kpi-icon {
  background: #394555 !important;
  color: #f1f4f8 !important;
}
html[data-theme="dark"] .kpi:not(.kpi-revenue) .kpi-label,
html[data-theme="dark"] .kpi:not(.kpi-revenue) .kpi-sub {
  color: var(--muted) !important;
}
html[data-theme="dark"] .kpi:not(.kpi-revenue) .kpi-value {
  color: var(--ink) !important;
}
html[data-theme="dark"] .kpi-delta.up {
  color: #7ee0b4;
}
html[data-theme="dark"] .kpi-delta.down {
  color: #ffaaa4;
}
html[data-theme="dark"] .admin-popover,
html[data-theme="dark"] .gh-select-popup {
  background: #28323f !important;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .gh-select-option:hover,
html[data-theme="dark"] .gh-select-option:focus {
  background: #354253;
}
html[data-theme="dark"] .admin-popover-head,
html[data-theme="dark"] .admin-popover-footer {
  background: transparent;
}
html[data-theme="dark"] .admin-popover-links button {
  color: var(--ink);
}
html[data-theme="dark"] .admin-popover-links button:hover {
  background: var(--surface-hover);
}
html[data-theme="dark"] .page-help-tooltip {
  background: #eef2f7;
  color: #191a1b;
}
html[data-theme="dark"] .demo-note,
html[data-theme="dark"] .panel-sub,
html[data-theme="dark"] .field,
html[data-theme="dark"] .select {
  color: var(--muted);
}
@media (max-width: 1850px) {
  .business-kpis.v5-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .business-kpis.v5-kpis {
    grid-template-columns: 1fr;
  }
  .greeting-meta {
    gap: 5px 12px;
  }
  .kpi-figure-row {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.is-closing,
  .modal-overlay.is-closing .modal-sheet {
    animation: none;
  }
}
/* ===== END legacy style-15.css ===== */

/* ===== BEGIN legacy style-16.css ===== */
/* V18 final presentation refinements */
.sidebar .brand img.v12-wordmark {
  top: 10px;
}
.business-kpis.v5-kpis .kpi {
  padding: 20px 30px 20px 20px;
}
.business-kpis.v5-kpis .kpi-top {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.kpi-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}
.kpi-title-group .kpi-icon {
  flex-shrink: 0;
}
.business-kpis.v5-kpis .kpi:not(.kpi-revenue) .kpi-label {
  color: var(--muted);
}
.business-kpis.v5-kpis .kpi-delta {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted) !important;
  gap: 5px;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-delta {
  color: #fff !important;
}
.business-kpis.v5-kpis .kpi-figure-row {
  justify-content: flex-end;
}
.kpi .kpi-sub {
  width: 100%;
  border-top: 1px dashed rgba(111, 121, 135, 0.3);
  padding-top: 10px;
  margin-top: 12px;
}
.kpi.kpi-revenue .kpi-sub {
  border-top-color: rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .kpi .kpi-sub {
  border-top-color: rgba(184, 194, 208, 0.3);
}
html[data-theme="dark"] .kpi.kpi-revenue .kpi-sub {
  border-top-color: rgba(255, 255, 255, 0.35);
}
.demo-date {
  padding: 0 !important;
}
.gh-select-trigger .ri-arrow-down-s-line {
  font-size: 20px;
  line-height: 1;
}
.admin-greeting {
  z-index: 45;
}
.greeting-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font:
    500 18px Inter,
    sans-serif;
  cursor: pointer;
  text-align: right;
}
.greeting-trigger > i {
  font-size: 20px;
  transition: transform 0.18s;
}
.greeting-trigger[aria-expanded="true"] > i {
  transform: rotate(180deg);
}
.greeting-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.greeting-meta {
  position: absolute;
  right: 0;
  top: calc(100% + 0px);
  z-index: 1;
  padding: 14px 16px;
  margin: 0;
  width: max-content;
  max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  gap: 6px 16px;
}
.greeting-meta[hidden] {
  display: none !important;
}
.greeting-meta small {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1120px) {
  .admin-greeting {
    position: relative;
    top: auto;
    right: auto;
  }
  .greeting-meta {
    right: 20px;
  }
}
/* ===== END legacy style-16.css ===== */

/* ===== BEGIN legacy style-17.css ===== */
/* V19 dashboard layout and overlay corrections */
h1 {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
}
.kpi .kpi-sub {
  border-top: 1px dashed rgba(111, 121, 135, 0.6);
}
.kpi.kpi-revenue .kpi-sub {
  border-top-color: rgba(255, 255, 255, 0.6);
}
html[data-theme="dark"] .kpi .kpi-sub {
  border-top-color: rgba(184, 194, 208, 0.6);
}
html[data-theme="dark"] .kpi.kpi-revenue .kpi-sub {
  border-top-color: rgba(255, 255, 255, 0.6);
}
.admin-greeting {
  z-index: 30;
}
.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 30;
}
.dashboard-toolbar .dashboard-tabs {
  flex-shrink: 0;
  margin: 0;
}
.dashboard-toolbar .admin-greeting {
  position: relative;
  top: auto;
  right: auto;
  padding: 0;
  padding-bottom: 14px;
  margin-left: auto;
  margin-right: 30px;
  align-self: center;
}
.greeting-meta {
  width: fit-content;
  min-width: 300px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 4px 14px rgba(25, 26, 27, 0.1);
  white-space: nowrap;
}
.topbar {
  z-index: 43;
}
.business-chart-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.dashboard-tabpanel > .kpis,
.dashboard-tabpanel > .panel-grid,
.dashboard-tabpanel > .geo-ops-grid,
.dashboard-tabpanel > .ops-secondary-grid {
  gap: 14px;
  margin: 0 0 14px;
}
.dashboard-tabpanel > .ops-attention-full,
.dashboard-tabpanel > .panel,
.dashboard-tabpanel > .demo-note,
.dashboard-tabpanel > .page-head {
  margin-bottom: 20px;
}
.dashboard-tabpanel .insight-section-heading {
  margin: 20px 0;
}
.dashboard-tabpanel .panel-grid > .panel,
.dashboard-tabpanel .ops-secondary-grid > .panel,
.dashboard-tabpanel .ops-attention-full > .panel {
  margin-bottom: 0;
}
.dashboard-tabpanel > .panel-grid:last-child,
.dashboard-tabpanel > .ops-secondary-grid:last-child {
  margin-bottom: 0;
}
.dashboard-tabpanel .v19-growth-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
}
.v19-growth-grid > .panel {
  height: 320px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.v19-growth-grid > .v19-square {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1;
}
.v19-growth-grid .panel-head {
  padding: 20px 20px 10px;
  flex: none;
  min-height: 54px;
}
.v19-growth-grid .panel-title {
  font-size: 16px;
  gap: 7px;
}
.v19-growth-grid .panel-link {
  font-size: 14px;
  white-space: nowrap;
}
.v19-growth-grid .business-graph {
  flex: 1;
  min-height: 0;
  padding: 5px 20px 20px;
}
.v19-growth-grid .business-graph > svg {
  width: 100%;
  height: 100%;
}
.v19-growth-grid .biz-bars {
  height: 100%;
  padding: 12px 0 0;
  margin: 0;
  min-height: 0;
}
.v19-growth-grid .biz-bar-rail {
  height: auto;
  min-height: 0;
}
.v19-distribution .donut-content {
  flex: 1;
  min-height: 0;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.v19-distribution .business-donut {
  width: 164px;
  height: 164px;
  flex: none;
}
.v19-distribution .business-donut > div {
  width: 118px;
  height: 118px;
}
.v19-distribution .donut-legend {
  display: flex;
  gap: 20px;
  width: auto;
}
.v19-distribution .donut-legend > div {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.v19-commission .commission-summary {
  padding: 6px 20px;
  margin: 0;
  flex: none;
}
.v19-commission .insight-v-bars {
  padding: 10px 20px 20px;
  margin: 0;
  flex: 1;
  min-height: 0;
  height: auto;
  gap: 24px;
}
.v19-commission .insight-v-track {
  height: auto;
  flex: 1;
  min-height: 0;
}
.v19-commission .insight-v-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Never fade a drawer or its parent while it slides offscreen. */
.modal-overlay.is-closing {
  animation: none;
  opacity: 1;
  pointer-events: none;
}
.modal-overlay.is-closing .modal-sheet {
  opacity: 1;
  animation: gh-v19-drawer-out 0.32s cubic-bezier(0.4, 0, 0.6, 1) both;
}
@keyframes gh-v19-drawer-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(calc(100% + 70px));
    opacity: 1;
  }
}
@media (max-width: 1200px) {
  .dashboard-toolbar {
    flex-wrap: wrap;
  }
  .dashboard-toolbar .admin-greeting {
    padding: 10px 0;
  }
  .dashboard-toolbar .greeting-meta {
    right: 0;
  }
  .v19-growth-grid .panel-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .dashboard-tabpanel .v19-growth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v19-growth-grid > .v19-square {
    justify-self: center;
  }
  .business-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 400px) {
  .greeting-meta {
    min-width: 0;
    white-space: normal;
  }
  .v19-growth-grid > .v19-square {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  .v19-growth-grid .panel-link {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.is-closing .modal-sheet {
    animation: none;
  }
}
/* ===== END legacy style-17.css ===== */

/* ===== BEGIN legacy style-18.css ===== */
/* V20 — dashboard scope, responsive cards, and independent backdrop exit. */
.admin-greeting[hidden] {
  display: none !important;
}
.main:not(:has(.dashboard-tabs)) {
  padding-top: 20px;
}
.business-kpis.v5-kpis .kpi-revenue {
  background: #fff !important;
  border: 3px solid var(--red) !important;
  color: #191a1b !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-label,
.business-kpis.v5-kpis .kpi-revenue .kpi-sub,
.business-kpis.v5-kpis .kpi-revenue .kpi-delta {
  color: #6f7987 !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-value {
  color: #191a1b !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-icon {
  background: #e8eaf0 !important;
  color: #191a1b !important;
}
.business-kpis.v5-kpis .kpi-revenue .kpi-sub {
  border-top-color: rgba(111, 121, 135, 0.6) !important;
}
html .business-kpis.v5-kpis .kpi:hover {
  background: #dce0e8 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .business-kpis.v5-kpis .kpi-revenue {
  background: #fff !important;
}
html[data-theme="dark"] .business-kpis.v5-kpis .kpi:hover .kpi-label,
html[data-theme="dark"] .business-kpis.v5-kpis .kpi:hover .kpi-sub,
html[data-theme="dark"] .business-kpis.v5-kpis .kpi:hover .kpi-value,
html[data-theme="dark"] .business-kpis.v5-kpis .kpi:hover .kpi-delta {
  color: #191a1b !important;
}
.dashboard-tabpanel .v19-growth-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}
.v19-growth-grid > .v19-square {
  width: 100%;
  aspect-ratio: auto;
}
@media (max-width: 1850px) {
  .dashboard-tabpanel .v19-growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dashboard-tabpanel .v19-growth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.v19-growth-grid .biz-bar-col {
  min-width: 0;
}
.v19-growth-grid .bar-label-full {
  display: none;
}
.v19-growth-grid .bar-label-compact {
  display: inline;
}
.modal-sheet {
  box-shadow: none !important;
}
.modal-overlay,
.modal-overlay.is-closing {
  background: transparent !important;
  animation: none !important;
  opacity: 1 !important;
  isolation: isolate;
}
.modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: -1;
  animation: gh-v20-dim-in 0.16s ease-out both;
}
.modal-overlay.is-closing::before {
  animation: gh-v20-dim-out 0.16s ease-in both;
}
@keyframes gh-v20-dim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gh-v20-dim-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay::before,
  .modal-overlay.is-closing::before {
    animation: none;
  }
}
.gh-number,
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"] {
  font-family: "Roboto Mono", monospace !important;
  font-variant-numeric: tabular-nums;
}
/* ===== END legacy style-18.css ===== */

/* ===== BEGIN legacy style-19.css ===== */
/* V21 — shared clickable cards, stationary hover, and toast presentation. */
html .kpi,
html .business-kpis.v5-kpis .kpi,
.call-sample,
.panel[data-page],
.panel[data-action],
.panel[role="button"] {
  border-radius: 14px !important;
}
html .kpi:hover,
html .business-kpis.v5-kpis .kpi:hover {
  background: #eceff5 !important;
  box-shadow: none !important;
  transform: none;
}
html .business-kpis.v5-kpis .kpi-revenue:hover {
  background: #fff !important;
  border-color: var(--red) !important;
}
html[data-theme="dark"] .business-kpis.v5-kpis .kpi-revenue:hover .kpi-label,
html[data-theme="dark"] .business-kpis.v5-kpis .kpi-revenue:hover .kpi-sub,
html[data-theme="dark"] .business-kpis.v5-kpis .kpi-revenue:hover .kpi-delta {
  color: #6f7987 !important;
}
html[data-theme="dark"] .kpi:hover {
  color: #191a1b;
}
html[data-theme="dark"] .kpi:hover .kpi-label,
html[data-theme="dark"] .kpi:hover .kpi-sub,
html[data-theme="dark"] .kpi:hover .kpi-value {
  color: #191a1b !important;
}
#toast .toast,
body:has(.modal-overlay) #toast .toast {
  top: auto;
  bottom: 23px;
  left: 24px;
  right: auto;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  padding: 20px;
  max-width: min(330px, calc(100vw - 48px));
}
#toast .toast strong {
  font-weight: 400;
}
.half-year-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.panel-head:has(.half-year-controls) {
  flex-wrap: wrap;
  align-items: center;
}
.v19-growth-grid .v19-growth .business-graph {
  overflow: hidden;
  min-width: 0;
}
.v19-growth-grid .v19-growth .business-svg {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 230px;
  min-height: 0;
}
/* ===== END legacy style-19.css ===== */

/* ===== BEGIN legacy style-20.css ===== */
/* V22: shared dashboard figure typography. */
.insight-stat strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.biz-bar-col strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.business-svg text {
  font-size: 16px !important;
  font-weight: 400;
}
.half-year-controls { position: relative; }
.half-year-controls .gh-select-trigger { white-space: nowrap; }
/* ===== END legacy style-20.css ===== */

