/* Visible Pixel Blast effect for the admin overview workspace. */
.admin-section[data-panel="overview"].active {
  --hero-x: 72%;
  --hero-y: 28%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 94px);
  padding: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
  border: 1px solid rgba(93, 240, 206, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(3, 38, 31, 0.82) 0%, rgba(7, 84, 67, 0.56) 42%, rgba(232, 249, 244, 0.5) 100%),
    radial-gradient(circle at 72% 20%, rgba(88, 255, 216, 0.28), transparent 28%),
    radial-gradient(circle at 10% 78%, rgba(5, 90, 70, 0.42), transparent 30%),
    #eaf8f3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 24px 60px rgba(8, 64, 50, 0.12);
}

.admin-section[data-panel="overview"] .overview-hero {
  --hero-x: 72%;
  --hero-y: 28%;
}

.admin-section[data-panel="overview"].active > .pixel-blast-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  border-radius: 16px;
}

.admin-section[data-panel="overview"].active > .pixel-blast-layer::before {
  content: "";
  position: absolute;
  inset: -12%;
  opacity: 0.46;
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(97, 255, 219, 0.42), rgba(97, 255, 219, 0.14) 5%, rgba(97, 255, 219, 0) 13%),
    radial-gradient(circle at 74% 18%, rgba(255, 234, 150, 0.18), rgba(255, 234, 150, 0) 12%);
}

.admin-section[data-panel="overview"].active > .pixel-blast-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.86;
  background-image:
    radial-gradient(circle, rgba(127, 255, 226, 0.98) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 232, 151, 0.86) 0 1px, transparent 2px),
    linear-gradient(rgba(118, 255, 224, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 224, 0.28) 1px, transparent 1px);
  background-position: 0 0, 24px 18px, 0 0, 0 0;
  background-size: 74px 74px, 108px 108px, 42px 42px, 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82) 68%, rgba(0, 0, 0, 0.2));
  animation: heroGridDrift 16s linear infinite;
}

.admin-section[data-panel="overview"] .pixel-core {
  position: absolute;
  left: var(--hero-x);
  top: var(--hero-y);
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: rgba(144, 255, 228, 0.84);
  box-shadow:
    0 0 0 1px rgba(144, 255, 228, 0.38),
    0 0 16px rgba(144, 255, 228, 0.68),
    18px 12px 0 rgba(144, 255, 228, 0.36),
    -22px 18px 0 rgba(255, 232, 151, 0.28),
    34px -18px 0 rgba(144, 255, 228, 0.3),
    -48px -16px 0 rgba(255, 255, 255, 0.18),
    58px 26px 0 rgba(144, 255, 228, 0.18);
  transform: translate(-50%, -50%);
  animation: heroPixelPulse 2.8s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .pixel-scan {
  display: none;
}

.admin-section[data-panel="overview"] .pixel-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: rgba(128, 255, 224, 1);
  box-shadow:
    0 0 24px rgba(128, 255, 224, 0.95),
    20px 16px 0 rgba(128, 255, 224, 0.36),
    -18px 26px 0 rgba(255, 232, 156, 0.28),
    34px -22px 0 rgba(255, 255, 255, 0.18);
  animation: heroPixelFloat 7s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .node-1 { left: 14%; top: 22%; animation-delay: -0.6s; }
.admin-section[data-panel="overview"] .node-2 { left: 23%; top: 68%; animation-delay: -2.4s; }
.admin-section[data-panel="overview"] .node-3 { left: 36%; top: 18%; animation-delay: -3.1s; }
.admin-section[data-panel="overview"] .node-4 { left: 47%; top: 78%; animation-delay: -1.4s; background: rgba(255, 224, 135, 0.8); }
.admin-section[data-panel="overview"] .node-5 { left: 58%; top: 28%; animation-delay: -4.8s; }
.admin-section[data-panel="overview"] .node-6 { left: 68%; top: 62%; animation-delay: -2.9s; }
.admin-section[data-panel="overview"] .node-7 { left: 77%; top: 18%; animation-delay: -5.6s; background: rgba(255, 255, 255, 0.9); }
.admin-section[data-panel="overview"] .node-8 { left: 84%; top: 48%; animation-delay: -1.1s; }
.admin-section[data-panel="overview"] .node-9 { left: 91%; top: 74%; animation-delay: -3.9s; background: rgba(255, 224, 135, 0.78); }
.admin-section[data-panel="overview"] .node-10 { left: 31%; top: 44%; animation-delay: -6.2s; }

.admin-section[data-panel="overview"] .metric-grid,
.admin-section[data-panel="overview"] .overview-hero,
.admin-section[data-panel="overview"] .todo-center,
.admin-section[data-panel="overview"] .overview-hero > div:not(.pixel-blast-layer),
.admin-section[data-panel="overview"] .hero-orb {
  position: relative;
  z-index: 4;
}

.admin-section[data-panel="overview"] .metric-grid {
  margin: 0 0 2px;
}

.admin-section[data-panel="overview"] .overview-hero {
  min-height: clamp(560px, calc(100vh - 300px), 720px);
  border-color: rgba(122, 255, 224, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(3, 38, 31, 0.12);
}

.admin-section[data-panel="overview"] .todo-center {
  min-height: clamp(560px, calc(100vh - 300px), 720px);
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  width: min(860px, 82%);
  padding-left: 26px;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  display: inline-flex;
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(32px, 2.7vw, 42px);
  line-height: 1.16;
}

.admin-section[data-panel="overview"] .overview-hero p:last-child {
  max-width: 660px;
  font-size: 15px;
  line-height: 1.9;
}

.admin-section[data-panel="overview"] .metric-card:hover,
.admin-section[data-panel="overview"] .metric-card.is-pixel-active,
.admin-section[data-panel="overview"] .todo-card:hover,
.admin-section[data-panel="overview"] .todo-card.is-pixel-active,
.admin-section[data-panel="overview"] .secondary-btn:hover,
.admin-section[data-panel="overview"] .secondary-btn.is-pixel-active {
  z-index: 6;
}

.admin-section[data-panel="overview"].active.is-linked-focus > .pixel-blast-layer::before {
  opacity: 0.5;
}

.admin-section[data-panel="overview"].active.is-linked-focus .pixel-core {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(144, 255, 228, 0.5),
    0 0 22px rgba(144, 255, 228, 0.82),
    18px 12px 0 rgba(144, 255, 228, 0.42),
    -22px 18px 0 rgba(255, 232, 151, 0.34),
    34px -18px 0 rgba(144, 255, 228, 0.38),
    -48px -16px 0 rgba(255, 255, 255, 0.24);
}

.admin-section[data-panel="overview"] .metric-card {
  border-color: rgba(122, 255, 224, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 255, 249, 0.82));
  color: #073f30;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 34px rgba(3, 38, 31, 0.1);
}

.admin-section[data-panel="overview"] .metric-card span,
.admin-section[data-panel="overview"] .metric-card small {
  color: #537369;
}

.admin-section[data-panel="overview"] .metric-card strong {
  color: #073f30;
  text-shadow: none;
}

.admin-section[data-panel="overview"] .todo-center {
  border: 1px solid rgba(122, 255, 224, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 255, 250, 0.82));
  color: #073f30;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 36px rgba(3, 38, 31, 0.1);
}

.admin-section[data-panel="overview"] .todo-center h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #073f30;
}

.admin-section[data-panel="overview"] .todo-center h3::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #21d6b2, #0b755b);
  box-shadow: 0 8px 18px rgba(33, 214, 178, 0.22);
}

.admin-section[data-panel="overview"] .todo-center p,
.admin-section[data-panel="overview"] .todo-content p {
  color: #60766d;
}

.admin-section[data-panel="overview"] .todo-content strong {
  color: #0f2f25;
}

.admin-section[data-panel="overview"] .todo-content span,
.admin-section[data-panel="overview"] .todo-card.bill .todo-content span,
.admin-section[data-panel="overview"] .todo-card.lead .todo-content span,
.admin-section[data-panel="overview"] .todo-card.ticket .todo-content span {
  color: #7dffe0;
}

.admin-section[data-panel="overview"] .todo-card.lead .todo-content span {
  color: #ef4444;
}

.admin-section[data-panel="overview"] .todo-card.ticket .todo-content span {
  color: #0284c7;
}

.admin-section[data-panel="overview"] .todo-card.bill .todo-content span {
  color: #059669;
}

.admin-section[data-panel="overview"] .todo-card {
  position: relative;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: 18px 16px 16px;
  border: 1px solid rgba(122, 255, 224, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 255, 250, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(3, 38, 31, 0.07);
  overflow: hidden;
}

.admin-section[data-panel="overview"] .todo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #24c9a7;
}

.admin-section[data-panel="overview"] .todo-card.lead::before {
  background: #ff4d4f;
}

.admin-section[data-panel="overview"] .todo-card.ticket::before {
  background: #19a7df;
}

.admin-section[data-panel="overview"] .todo-card.bill::before {
  background: #23c75f;
}

.admin-section[data-panel="overview"] .todo-card + .todo-card {
  border-top: 1px solid rgba(122, 255, 224, 0.24);
}

.admin-section[data-panel="overview"] .todo-count {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 8px;
  border: 1px solid rgba(17, 107, 74, 0.12);
  border-radius: 10px;
  overflow: visible;
  background: linear-gradient(145deg, rgba(239, 255, 249, 0.92), rgba(255, 255, 255, 0.62));
  color: #073f30;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-section[data-panel="overview"] .todo-count span {
  color: #68867b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.admin-section[data-panel="overview"] .todo-count strong {
  color: #052f24;
  font-size: 26px;
  line-height: 1;
}

.admin-section[data-panel="overview"] .todo-content {
  grid-column: 2;
  min-width: 0;
  padding-right: 92px;
}

.admin-section[data-panel="overview"] .todo-content span,
.admin-section[data-panel="overview"] .todo-content strong {
  display: block;
}

.admin-section[data-panel="overview"] .todo-content span {
  margin-bottom: 5px;
  line-height: 1.2;
}

.admin-section[data-panel="overview"] .todo-content strong {
  font-size: 17px;
  line-height: 1.45;
}

.admin-section[data-panel="overview"] .todo-content p {
  margin-top: 7px;
  max-width: 240px;
  line-height: 1.65;
}

.admin-section[data-panel="overview"] .todo-priority {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 70px;
  padding: 6px 9px;
  border: 1px solid rgba(17, 107, 74, 0.12);
  border-radius: 999px;
  background: rgba(231, 250, 244, 0.92);
  color: #0b755b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.admin-section[data-panel="overview"] .secondary-btn,
.admin-section[data-panel="overview"] .table-btn {
  border-color: rgba(17, 107, 74, 0.18);
  background: rgba(239, 250, 246, 0.86);
  color: #073f30;
  backdrop-filter: blur(10px);
}

.admin-section[data-panel="overview"] .todo-card .table-btn {
  grid-column: 2;
  justify-self: stretch;
  min-height: 38px;
  border-color: rgba(17, 107, 74, 0.16);
  font-weight: 900;
}

.admin-section[data-panel="overview"] .todo-list.empty {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(17, 107, 74, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.admin-section[data-panel="overview"] .todo-empty-state {
  max-width: 240px;
  text-align: center;
}

.admin-section[data-panel="overview"] .todo-empty-state span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(33, 214, 178, 0.28);
  border-radius: 999px;
  background: rgba(221, 255, 247, 0.82);
  color: #0b755b;
  font-size: 12px;
  font-weight: 900;
}

.admin-section[data-panel="overview"] .todo-empty-state strong {
  display: block;
  color: #073f30;
  font-size: 17px;
}

.admin-section[data-panel="overview"] .todo-empty-state p {
  margin: 8px 0 0;
  color: #60766d;
  font-size: 13px;
  line-height: 1.7;
}

.admin-section[data-panel="overview"] .hero-status-board {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  gap: 8px;
  width: min(430px, calc(100% - 56px));
  padding: 8px;
  border: 1px solid rgba(122, 255, 224, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(3, 42, 35, 0.68), rgba(16, 111, 91, 0.28));
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(3, 38, 31, 0.18);
  transform: translateX(-50%);
}

.admin-section[data-panel="overview"] .hero-status-board article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-width: 108px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid rgba(122, 255, 224, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(122, 255, 224, 0.05));
  color: #effffb;
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.admin-section[data-panel="overview"] .hero-status-board article::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffe0;
  box-shadow: 0 0 16px rgba(125, 255, 224, 0.8);
}

.admin-section[data-panel="overview"] .hero-status-board article::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 255, 224, 0.55), transparent);
}

.admin-section[data-panel="overview"] .hero-status-board span,
.admin-section[data-panel="overview"] .hero-status-board small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(239, 255, 251, 0.76);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-section[data-panel="overview"] .hero-status-board strong {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.admin-section[data-panel="overview"] .hero-workflow {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(94px, 1fr));
  gap: 14px;
  width: min(760px, 64%);
  padding: 16px;
  border: 1px solid rgba(122, 255, 224, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(2, 39, 33, 0.5), rgba(13, 108, 87, 0.18)),
    radial-gradient(circle at 18% 24%, rgba(125, 255, 224, 0.16), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255, 232, 151, 0.12), transparent 24%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 48px rgba(3, 38, 31, 0.18);
  transform: translate(-50%, -50%);
}

.admin-section[data-panel="overview"] .hero-workflow::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(125, 255, 224, 0), rgba(125, 255, 224, 0.76), rgba(255, 232, 151, 0.54), rgba(125, 255, 224, 0));
  box-shadow: 0 0 18px rgba(125, 255, 224, 0.32);
  pointer-events: none;
}

.admin-section[data-panel="overview"] .workflow-node {
  position: relative;
  display: grid;
  min-height: 126px;
  padding: 15px 12px 13px;
  border: 1px solid rgba(122, 255, 224, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: #effffb;
  text-align: center;
  place-items: center;
  align-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(3, 38, 31, 0.12);
}

.admin-section[data-panel="overview"] .workflow-node::before {
  content: "";
  position: absolute;
  inset: 8px 8px auto auto;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: rgba(125, 255, 224, 0.85);
  box-shadow: 0 0 14px rgba(125, 255, 224, 0.7);
}

.admin-section[data-panel="overview"] .workflow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border: 1px solid rgba(125, 255, 224, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(225, 255, 248, 0.18), rgba(125, 255, 224, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(28, 220, 180, 0.12);
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #9dffea;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-section[data-panel="overview"] .workflow-node strong,
.admin-section[data-panel="overview"] .workflow-node small {
  display: block;
  position: relative;
  z-index: 1;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.admin-section[data-panel="overview"] .workflow-node small {
  margin-top: 5px;
  color: rgba(233, 255, 250, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.admin-section[data-panel="overview"] .workflow-node:hover,
.admin-section[data-panel="overview"] .workflow-node.is-pixel-active {
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(82, 255, 216, 0.12));
}

.pixel-linked {
  position: relative;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.pixel-linked::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: rgba(125, 255, 225, 0);
  box-shadow:
    -10px 12px 0 rgba(125, 255, 225, 0),
    14px 18px 0 rgba(255, 225, 136, 0);
  pointer-events: none;
  transition: 180ms ease;
}

.pixel-linked:hover,
.pixel-linked:focus-visible,
.pixel-linked.is-pixel-active {
  border-color: rgba(52, 215, 182, 0.55) !important;
  box-shadow:
    0 18px 42px rgba(8, 91, 72, 0.12),
    0 0 0 1px rgba(89, 255, 219, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.pixel-linked:hover::after,
.pixel-linked:focus-visible::after,
.pixel-linked.is-pixel-active::after {
  background: rgba(125, 255, 225, 0.9);
  box-shadow:
    -10px 12px 0 rgba(125, 255, 225, 0.42),
    14px 18px 0 rgba(255, 225, 136, 0.34);
}

.admin-section[data-panel="overview"] .metric-card.pixel-linked:hover,
.admin-section[data-panel="overview"] .metric-card.pixel-linked:focus-within,
.admin-section[data-panel="overview"] .metric-card.pixel-linked.is-pixel-active {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(229, 255, 248, 0.72), rgba(107, 255, 219, 0.22));
}

.admin-section[data-panel="overview"] .todo-card.pixel-linked:hover,
.admin-section[data-panel="overview"] .todo-card.pixel-linked.is-pixel-active {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(217, 255, 245, 0.78));
  color: #073f30;
}

.topbar-actions .pixel-linked:hover,
.topbar-actions .pixel-linked.is-pixel-active,
.todo-center .pixel-linked:hover,
.todo-center .pixel-linked.is-pixel-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(229, 255, 248, 0.38), rgba(107, 255, 219, 0.18));
}

.admin-section[data-panel="overview"] .todo-card .table-btn:hover,
.admin-section[data-panel="overview"] .todo-card .table-btn.is-pixel-active {
  border-color: rgba(6, 95, 74, 0.4);
  background: linear-gradient(135deg, #075f4a, #0aa77f);
  color: #ffffff;
}

@keyframes heroLightSweep {
  0%, 100% { transform: translate3d(-2%, 0, 0); opacity: 0.42; }
  50% { transform: translate3d(4%, -2%, 0); opacity: 0.62; }
}

@keyframes heroGridDrift {
  0% { background-position: 0 0, 24px 18px, 0 0, 0 0; }
  100% { background-position: 74px 74px, 132px 126px, 84px 42px, 84px 42px; }
}

@keyframes heroPixelPulse {
  0%, 100% { opacity: 0.58; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.86; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes heroScan {
  0%, 18% { transform: translateX(0) skewX(-14deg); }
  58%, 100% { transform: translateX(760%) skewX(-14deg); }
}

@keyframes heroPixelFloat {
  0%, 100% { opacity: 0.42; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(10px, -14px, 0); }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    min-height: auto;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 420px);
  }

  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center {
    min-height: 500px;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: min(760px, 78%);
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    white-space: nowrap;
    font-size: clamp(28px, 2.4vw, 36px);
  }

  .admin-section[data-panel="overview"] .hero-status-board {
    left: 50%;
    bottom: 22px;
    width: min(430px, calc(100% - 44px));
    grid-template-columns: repeat(3, minmax(108px, 1fr));
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    top: 45%;
    width: min(660px, 66%);
    gap: 10px;
    padding: 12px;
  }

  .admin-section[data-panel="overview"] .workflow-node {
    min-height: 112px;
    padding: 12px 9px;
  }

  .admin-section[data-panel="overview"] .workflow-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr;
  }

  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center {
    min-height: auto;
  }

  .admin-section[data-panel="overview"] .hero-status-board {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    transform: none;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: 100%;
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 22px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .admin-section[data-panel="overview"] .hero-workflow::before {
    display: none;
  }
}

.admin-section[data-panel="overview"] [data-overview-target],
.admin-section[data-panel="overview"] .todo-card[data-todo-target] {
  cursor: pointer;
}

.admin-section[data-panel="overview"] [data-overview-target]:focus-visible,
.admin-section[data-panel="overview"] .todo-card[data-todo-target]:focus-visible {
  outline: 2px solid rgba(125, 255, 224, 0.85);
  outline-offset: 3px;
}

.admin-section[data-panel="overview"] .metric-card.clickable-card:hover,
.admin-section[data-panel="overview"] .metric-card.clickable-card:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 255, 246, 0.86)) !important;
  box-shadow:
    0 16px 34px rgba(8, 91, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.admin-section[data-panel="overview"] .workflow-node.clickable-card,
.admin-section[data-panel="overview"] .hero-status-board article.clickable-card {
  border-color: rgba(151, 255, 232, 0.3);
}

.admin-section[data-panel="overview"] .workflow-node.clickable-card:hover,
.admin-section[data-panel="overview"] .workflow-node.clickable-card:focus-visible,
.admin-section[data-panel="overview"] .hero-status-board article.clickable-card:hover,
.admin-section[data-panel="overview"] .hero-status-board article.clickable-card:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(82, 255, 216, 0.16)) !important;
  border-color: rgba(151, 255, 232, 0.64) !important;
}

.admin-section[data-panel="overview"] .todo-card.clickable-card:hover,
.admin-section[data-panel="overview"] .todo-card.clickable-card:focus-visible {
  padding-inline: 12px;
  border-radius: 12px;
}

/* Keep the hero status cards inside the visible workspace on shorter screens. */
.admin-section[data-panel="overview"] .hero-status-board {
  bottom: clamp(88px, 10vh, 128px);
}

.admin-section[data-panel="overview"] .hero-workflow {
  left: auto;
  right: 32px;
  top: 32px;
  width: min(760px, 56%);
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  transform: none;
}

.admin-section[data-panel="overview"] .workflow-node {
  min-height: 104px;
  padding: 12px 10px 10px;
}

.admin-section[data-panel="overview"] .workflow-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  width: 20px;
  height: 20px;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  font-size: 13px;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-section[data-panel="overview"] .workflow-node small {
  font-size: 10px;
  white-space: nowrap;
  word-break: keep-all;
}

@media (min-width: 1381px) {
  .admin-section[data-panel="overview"] .hero-status-board {
    left: 50%;
    right: auto;
    bottom: 88px;
    width: min(430px, calc(100% - 56px));
    transform: translateX(-50%);
  }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .admin-section[data-panel="overview"] .hero-workflow {
    left: auto;
    right: 24px;
    top: 24px;
    width: min(620px, 58%);
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    gap: 9px;
    padding: 10px;
    transform: none;
  }

  .admin-section[data-panel="overview"] .workflow-node {
    min-height: 92px;
    padding: 10px 8px 9px;
  }
}

@media (max-height: 760px) and (min-width: 1121px) {
  .admin-section[data-panel="overview"] .hero-workflow {
    top: 20px;
  }

  .admin-section[data-panel="overview"] .workflow-node {
    min-height: 84px;
  }

  .admin-section[data-panel="overview"] .workflow-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .admin-section[data-panel="overview"] .workflow-node small {
    display: none;
  }
}

/* Final placement: keep the mini status board above the hero title. */
.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  padding-bottom: 0;
}

.admin-section[data-panel="overview"] .hero-status-board {
  left: 76px;
  right: auto;
  top: 126px;
  bottom: auto;
  width: min(430px, calc(100% - 152px));
  transform: none;
}

@media (min-width: 1381px) {
  .admin-section[data-panel="overview"] .hero-status-board {
    left: 76px;
    right: auto;
    top: 126px;
    bottom: auto;
    width: min(430px, calc(100% - 152px));
    transform: none;
  }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    padding-bottom: 0;
  }

  .admin-section[data-panel="overview"] .hero-status-board {
    left: 66px;
    right: auto;
    top: 116px;
    bottom: auto;
    width: min(400px, calc(100% - 132px));
    transform: none;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"] .hero-status-board {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }
}

/* Final workflow placement: make the business flow a top band, not a floating title overlay. */
.admin-section[data-panel="overview"] .hero-workflow {
  left: 54px;
  right: 54px;
  top: 28px;
  width: auto;
  grid-template-columns: repeat(5, minmax(106px, 1fr));
  gap: 10px;
  padding: 10px;
  transform: none;
}

.admin-section[data-panel="overview"] .workflow-node {
  min-height: 76px;
  padding: 9px 10px;
}

.admin-section[data-panel="overview"] .workflow-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  width: 18px;
  height: 18px;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  font-size: 12px;
}

.admin-section[data-panel="overview"] .workflow-node small {
  margin-top: 3px;
  font-size: 10px;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  max-width: min(620px, 58%);
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .admin-section[data-panel="overview"] .hero-workflow {
    left: 42px;
    right: 42px;
    top: 24px;
    width: auto;
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    gap: 8px;
    padding: 9px;
    transform: none;
  }

  .admin-section[data-panel="overview"] .workflow-node {
    min-height: 70px;
    padding: 8px;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"] .hero-workflow {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }
}

/* Compact information hero: reduce empty space and keep content in stable zones. */
.admin-section[data-panel="overview"] .overview-hero {
  min-height: clamp(360px, calc(100vh - 470px), 460px);
  padding: 34px 44px;
  background-position: center 42%;
}

.admin-section[data-panel="overview"] .hero-status-board {
  display: none;
}

.admin-section[data-panel="overview"] .hero-workflow {
  left: 28px;
  right: 28px;
  top: 22px;
  width: auto;
  grid-template-columns: repeat(5, minmax(106px, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(2, 39, 33, 0.78), rgba(12, 98, 80, 0.38)),
    radial-gradient(circle at 18% 24%, rgba(125, 255, 224, 0.18), transparent 28%);
  transform: none;
}

.admin-section[data-panel="overview"] .workflow-node {
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  column-gap: 8px;
  padding: 8px 10px;
  text-align: left;
}

.admin-section[data-panel="overview"] .workflow-icon {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  margin: 0;
}

.admin-section[data-panel="overview"] .workflow-node strong,
.admin-section[data-panel="overview"] .workflow-node small {
  max-width: 100%;
}

.admin-section[data-panel="overview"] .hero-orb {
  right: 44px;
  top: 108px;
  width: 300px;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(3, 42, 35, 0.86), rgba(17, 112, 91, 0.42));
  border-color: rgba(122, 255, 224, 0.28);
}

.admin-section[data-panel="overview"] .hero-orb span {
  border: 1px solid rgba(122, 255, 224, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  max-width: min(620px, calc(100% - 380px));
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .admin-section[data-panel="overview"] .overview-hero {
    min-height: 390px;
    padding: 32px 38px;
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    left: 24px;
    right: 24px;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
  }

  .admin-section[data-panel="overview"] .hero-orb {
    right: 38px;
    top: 98px;
    width: 270px;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    max-width: min(580px, calc(100% - 340px));
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"] .overview-hero {
    padding: 28px;
  }

  .admin-section[data-panel="overview"] .hero-orb {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 18px 0 0;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    max-width: none;
  }
}

/* Full-screen Pixel Blast treatment for the login page. */
.auth-view {
  --auth-x: 72%;
  --auth-y: 22%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(6, 95, 74, 0.16), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(125, 255, 224, 0.18), transparent 24%),
    linear-gradient(120deg, #e7f8f3 0%, #fbfdfc 45%, #e8f6f1 100%) !important;
}

.auth-view::before,
.auth-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-view::before {
  opacity: 0.74;
  background-image:
    radial-gradient(circle, rgba(11, 117, 91, 0.36) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(201, 162, 39, 0.34) 0 1px, transparent 1.8px),
    linear-gradient(rgba(18, 191, 144, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 191, 144, 0.13) 1px, transparent 1px);
  background-position: 0 0, 34px 28px, 0 0, 0 0;
  background-size: 86px 86px, 132px 132px, 54px 54px, 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.22) 72%, transparent);
  animation: authGridFlow 18s linear infinite;
}

.auth-view::after {
  inset: -18%;
  opacity: 0.86;
  background:
    radial-gradient(circle at var(--auth-x) var(--auth-y), rgba(99, 255, 218, 0.38), rgba(99, 255, 218, 0.12) 10%, transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(5, 93, 72, 0.2), transparent 22%),
    linear-gradient(112deg, transparent 0%, rgba(105, 255, 222, 0.22) 44%, rgba(255, 255, 255, 0) 58%);
  filter: blur(0.4px);
  animation: authGlowFloat 8s ease-in-out infinite;
}

.auth-card {
  position: relative;
  z-index: 2;
  border-color: rgba(160, 232, 216, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 255, 250, 0.58)) !important;
  box-shadow:
    0 34px 86px rgba(3, 43, 34, 0.18),
    0 0 0 1px rgba(118, 255, 224, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(125, 255, 224, 0.18);
  border-radius: 10px;
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 14%;
  top: 12%;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: rgba(125, 255, 224, 0.9);
  box-shadow:
    86px 44px 0 rgba(125, 255, 224, 0.32),
    220px 108px 0 rgba(255, 232, 151, 0.28),
    420px 28px 0 rgba(255, 255, 255, 0.24),
    620px 188px 0 rgba(125, 255, 224, 0.28),
    840px 84px 0 rgba(125, 255, 224, 0.2),
    980px 252px 0 rgba(255, 232, 151, 0.2);
  pointer-events: none;
  animation: authPixelPulse 3.8s ease-in-out infinite;
}

.auth-copy,
.auth-form {
  position: relative;
  z-index: 2;
}

.auth-brand-lockup {
  position: relative;
  z-index: 3;
  display: grid;
  width: 118px;
  height: 78px;
  margin: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(178, 255, 237, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(230, 255, 249, 0.68));
  box-shadow:
    0 18px 40px rgba(3, 38, 31, 0.22),
    0 0 0 1px rgba(125, 255, 224, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.auth-brand-lockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(125, 255, 224, 0.18) 42%, transparent 58%),
    linear-gradient(rgba(6, 95, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 95, 74, 0.05) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  pointer-events: none;
}

.auth-brand-lockup img {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 58px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.03);
}

.auth-copy {
  border-right: 1px solid rgba(125, 255, 224, 0.2);
}

.auth-copy::before {
  inset: 24px !important;
  z-index: 1;
  border-color: rgba(178, 255, 237, 0.24) !important;
  background:
    linear-gradient(rgba(125, 255, 224, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 224, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.9));
}

.auth-copy::after {
  right: 44px !important;
  top: 42px !important;
  z-index: 2;
  min-width: 210px;
  padding: 14px 16px !important;
  border-color: rgba(180, 255, 238, 0.3) !important;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(3, 43, 36, 0.46), rgba(97, 255, 219, 0.12)) !important;
  color: rgba(239, 255, 251, 0.9) !important;
  content: "SECURE NODE  01A\A 合作申请 · 账单核验 · 服务响应" !important;
  white-space: pre;
  line-height: 1.75;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(3, 38, 31, 0.16);
}

.auth-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(125, 255, 224, 0.36);
  background: rgba(3, 43, 36, 0.36);
  color: #9dffea !important;
}

.auth-copy h1 {
  text-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(125, 255, 224, 0.16) !important;
}

.auth-form {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(126, 255, 224, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 254, 251, 0.78)) !important;
  backdrop-filter: blur(22px);
}

.auth-form::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(17, 184, 145, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 184, 145, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.auth-form::before {
  background: linear-gradient(180deg, transparent, rgba(17, 184, 145, 0.38), transparent) !important;
}

.auth-form .section-head::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -154px;
  width: 230px;
  height: 230px;
  opacity: 0.055;
  background: url("./assets/chenyao-logo.png") center / contain no-repeat;
  pointer-events: none;
  filter: saturate(1.2);
}

.auth-form .section-head,
.auth-form .form-grid,
.auth-form .button-row {
  position: relative;
  z-index: 1;
}

.auth-form input {
  border-color: rgba(9, 73, 53, 0.16) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(3, 43, 34, 0.04);
}

.auth-form input:focus {
  border-color: rgba(18, 191, 144, 0.62) !important;
  box-shadow:
    0 0 0 3px rgba(89, 255, 219, 0.15),
    0 14px 30px rgba(3, 43, 34, 0.08);
  outline: none;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 184, 145, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(229, 255, 248, 0.9), rgba(255, 255, 255, 0.7));
  color: #0b755b;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible,
.password-toggle-btn.is-visible {
  border-color: rgba(18, 191, 144, 0.46);
  background: linear-gradient(135deg, #075f4a, #12bf90);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(3, 43, 34, 0.12),
    0 0 0 3px rgba(89, 255, 219, 0.14);
  outline: none;
}

.password-toggle-btn svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.password-toggle-btn .icon-eye-off {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye-off {
  display: block;
}

.login-state {
  border: 1px solid rgba(17, 184, 145, 0.14);
  background:
    linear-gradient(135deg, rgba(229, 255, 248, 0.92), rgba(243, 255, 251, 0.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@keyframes authGridFlow {
  0% { background-position: 0 0, 34px 28px, 0 0, 0 0; }
  100% { background-position: 86px 43px, 166px 94px, 54px 54px, 54px 54px; }
}

@keyframes authGlowFloat {
  0%, 100% { transform: translate3d(-1%, 0, 0); opacity: 0.7; }
  50% { transform: translate3d(2%, -1%, 0); opacity: 0.95; }
}

@keyframes authPixelPulse {
  0%, 100% { opacity: 0.42; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.9; transform: translate3d(8px, -10px, 0) scale(1.12); }
}

@media (max-width: 980px) {
  .auth-card::after {
    display: none;
  }

  .auth-copy::after {
    right: 28px !important;
    top: 28px !important;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .auth-brand-lockup {
    width: 104px;
    height: 70px;
    margin-bottom: 18px;
  }

  .auth-brand-lockup img {
    width: 78px;
    height: 52px;
  }
}

/* Overview reset: a compact banner and two clearly separated work panels. */
.admin-section[data-panel="overview"].active {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 258px auto !important;
  gap: 18px !important;
  min-height: calc(100vh - 72px) !important;
  padding: 18px 22px 30px !important;
  align-content: start !important;
  background: #f3f8f6 !important;
}

.admin-section[data-panel="overview"] .overview-hero {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 258px !important;
  min-height: 258px !important;
  padding: 30px 34px !important;
  overflow: hidden !important;
  border: 1px solid #c8ddd6 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(90deg, rgba(5, 58, 45, 0.9) 0%, rgba(5, 58, 45, 0.68) 38%, rgba(5, 58, 45, 0.12) 72%, rgba(255, 255, 255, 0.03) 100%),
    url("./assets/login-energy-hero.png") center 48% / cover no-repeat !important;
  box-shadow: 0 12px 30px rgba(18, 66, 52, 0.09) !important;
}

.admin-section[data-panel="overview"] .overview-hero::before {
  opacity: 0.22 !important;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.38) 58%, transparent 88%) !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  width: min(610px, 70%) !important;
  max-width: 610px !important;
  padding: 0 0 0 22px !important;
  border: 0 !important;
  border-left: 3px solid #65e0bd !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #8af0d2 !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  width: auto !important;
  margin: 0 0 12px !important;
  color: #ffffff !important;
  font-size: 34px !important;
  line-height: 1.18 !important;
  white-space: nowrap !important;
  text-shadow: 0 3px 16px rgba(0, 25, 18, 0.24) !important;
}

.admin-section[data-panel="overview"] .overview-hero p:last-child {
  max-width: 590px !important;
  margin: 0 !important;
  color: rgba(239, 251, 247, 0.82) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.admin-section[data-panel="overview"] .hero-orb,
.admin-section[data-panel="overview"] .hero-workflow,
.admin-section[data-panel="overview"] .hero-status-board {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-dashboard-grid {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel,
.admin-section[data-panel="overview"] .todo-center {
  min-width: 0 !important;
  min-height: 274px !important;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid #d8e6e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(20, 67, 52, 0.055) !important;
  backdrop-filter: none !important;
}

.admin-section[data-panel="overview"] .overview-panel-heading,
.admin-section[data-panel="overview"] .todo-center > .section-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  min-height: 48px !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #e3ece9 !important;
}

.admin-section[data-panel="overview"] .overview-panel-heading span,
.admin-section[data-panel="overview"] .todo-eyebrow {
  display: block !important;
  margin: 0 0 4px !important;
  color: #159b78 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.admin-section[data-panel="overview"] .overview-panel-heading h3,
.admin-section[data-panel="overview"] .todo-center .section-head h3 {
  margin: 0 !important;
  color: #123c32 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

.admin-section[data-panel="overview"] .overview-panel-heading p,
.admin-section[data-panel="overview"] .todo-center .section-head p {
  margin: 0 !important;
  color: #82968f !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  align-content: center !important;
  min-height: 82px !important;
  padding: 13px 14px !important;
  border: 1px solid #e2ece8 !important;
  border-radius: 7px !important;
  background: #f8fbfa !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-card::before {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-card > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  color: #6b837b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-card > strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 2px 0 0 !important;
  color: #123c32 !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.admin-section[data-panel="overview"] .overview-summary-panel .metric-card > small {
  grid-column: 2 !important;
  grid-row: 3 !important;
  margin-top: 5px !important;
  color: #80948d !important;
  font-size: 10px !important;
}

.admin-section[data-panel="overview"] .todo-center #refreshTodoBtn {
  min-width: 58px !important;
  height: 32px !important;
  padding: 0 13px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-list {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 174px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e2ece8 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-list-summary {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 12px !important;
  border: 0 !important;
  border-right: 1px solid #e2ece8 !important;
  border-radius: 0 !important;
  background: #f3f8f6 !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-list-track {
  display: grid !important;
  grid-template-columns: 1fr !important;
  min-width: 0 !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-card {
  display: grid !important;
  grid-template-columns: 3px minmax(0, 1fr) auto 12px !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7efec !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-card:last-child {
  border-bottom: 0 !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-card:hover {
  padding: 8px 12px !important;
  background: #f7fbfa !important;
  transform: none !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-content {
  width: 100% !important;
  min-width: 0 !important;
  gap: 2px !important;
  padding: 0 !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-content span {
  color: #159b78 !important;
  font-size: 10px !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-content strong {
  overflow: hidden !important;
  color: #173f35 !important;
  font-size: 13px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-compact-meta {
  min-width: 50px !important;
  gap: 2px !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-compact-meta > strong {
  color: #123c32 !important;
  font-size: 18px !important;
}

.admin-section[data-panel="overview"] .todo-center .todo-compact-meta > span {
  color: #159b78 !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  .admin-section[data-panel="overview"] .overview-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-section[data-panel="overview"] .todo-center .todo-list-track {
    grid-template-columns: repeat(var(--todo-count), minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-section[data-panel="overview"].active {
    grid-template-rows: 220px auto !important;
    padding: 12px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero {
    height: 220px !important;
    min-height: 220px !important;
    padding: 24px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: 100% !important;
    max-width: none !important;
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    font-size: 26px !important;
    white-space: normal !important;
  }

  .admin-section[data-panel="overview"] .overview-summary-panel .metric-grid,
  .admin-section[data-panel="overview"] .todo-center .todo-list-track {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-view::before,
  .auth-view::after,
  .auth-card::after {
    animation: none;
  }
}

/* Login refinement: make the brand mark feel integrated instead of pasted on. */
.auth-view {
  background:
    radial-gradient(circle at var(--auth-x) var(--auth-y), rgba(91, 255, 217, 0.24), transparent 26%),
    radial-gradient(circle at 14% 78%, rgba(2, 58, 48, 0.18), transparent 28%),
    linear-gradient(115deg, #dff5ef 0%, #f8fcfa 38%, #e4f4ef 72%, #d9f2eb 100%) !important;
}

.auth-view::before {
  opacity: 0.56;
  background-image:
    radial-gradient(circle, rgba(33, 214, 178, 0.34) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 229, 142, 0.26) 0 1px, transparent 1.8px),
    linear-gradient(rgba(6, 95, 74, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 95, 74, 0.08) 1px, transparent 1px);
  background-size: 96px 96px, 148px 148px, 64px 64px, 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.auth-view::after {
  opacity: 0.78;
  background:
    radial-gradient(circle at var(--auth-x) var(--auth-y), rgba(95, 255, 218, 0.3), rgba(95, 255, 218, 0.1) 9%, transparent 24%),
    radial-gradient(circle at 76% 82%, rgba(0, 135, 255, 0.1), transparent 24%),
    linear-gradient(112deg, transparent 0%, rgba(80, 255, 215, 0.16) 44%, transparent 60%);
}

.auth-card {
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 255, 249, 0.48)) !important;
  box-shadow:
    0 34px 90px rgba(3, 43, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.auth-card::before {
  inset: 18px;
  border-color: rgba(125, 255, 224, 0.12);
}

.auth-card::after {
  opacity: 0.66;
  filter: blur(0.2px);
}

.auth-brand-lockup {
  position: absolute;
  left: 42px;
  top: 38px;
  display: flex;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 7px 13px 7px 8px;
  gap: 9px;
  align-items: center;
  border-color: rgba(190, 255, 240, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(112, 255, 222, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(2, 34, 28, 0.14);
  backdrop-filter: blur(16px);
}

.auth-brand-lockup::before {
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(125, 255, 224, 0.16) 45%, transparent 62%);
}

.auth-brand-lockup::after {
  content: "辰耀星能";
  position: relative;
  z-index: 1;
  color: rgba(239, 255, 251, 0.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-brand-lockup img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 34%;
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: saturate(1.35) contrast(1.08) drop-shadow(0 0 10px rgba(109, 255, 224, 0.2));
}

.auth-copy {
  padding-top: 92px !important;
}

.auth-copy::after {
  top: 34px !important;
  right: 36px !important;
  min-width: 188px;
  opacity: 0.82;
  background:
    linear-gradient(145deg, rgba(4, 43, 36, 0.32), rgba(97, 255, 219, 0.09)) !important;
}

.auth-copy h1 {
  max-width: 640px;
}

.auth-form::after {
  opacity: 0.28;
}

.auth-form .section-head::after {
  right: -28px;
  bottom: -178px;
  width: 300px;
  height: 300px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}

@media (max-width: 980px) {
  .auth-brand-lockup {
    left: 28px;
    top: 28px;
    height: 42px;
  }

  .auth-copy {
    padding-top: 86px !important;
  }
}

/* Stronger React Bits inspired login background: visible energy field. */
.auth-view {
  background:
    linear-gradient(90deg, rgba(2, 33, 28, 0.88) 0%, rgba(4, 78, 64, 0.34) 28%, rgba(235, 255, 249, 0.78) 58%, rgba(250, 253, 252, 0.94) 100%),
    radial-gradient(circle at var(--auth-x) var(--auth-y), rgba(80, 255, 215, 0.44), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(0, 142, 255, 0.16), transparent 28%),
    url("./assets/overview-wind-field.jpg") center 58% / cover no-repeat !important;
}

.auth-view::before {
  opacity: 0.86;
  background-image:
    radial-gradient(circle, rgba(118, 255, 224, 0.9) 0 1.7px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 232, 151, 0.7) 0 1px, transparent 1.8px),
    linear-gradient(rgba(118, 255, 224, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 224, 0.2) 1px, transparent 1px);
  background-position: 0 0, 26px 22px, 0 0, 0 0;
  background-size: 82px 82px, 128px 128px, 46px 46px, 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9) 38%, rgba(0, 0, 0, 0.28) 82%, transparent);
  animation: authGridFlow 16s linear infinite;
}

.auth-view::after {
  inset: -14%;
  opacity: 0.92;
  background:
    radial-gradient(circle at var(--auth-x) var(--auth-y), rgba(92, 255, 218, 0.48), rgba(92, 255, 218, 0.18) 9%, transparent 22%),
    radial-gradient(circle at 24% 28%, rgba(3, 66, 55, 0.42), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.38), transparent 20%),
    linear-gradient(116deg, transparent 0%, rgba(87, 255, 219, 0.28) 44%, rgba(255, 255, 255, 0.08) 55%, transparent 66%);
  animation: authGlowFloat 7s ease-in-out infinite;
}

.auth-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(231, 255, 249, 0.5)) !important;
  backdrop-filter: blur(24px) saturate(1.08);
}

.auth-copy {
  background:
    linear-gradient(180deg, rgba(2, 32, 27, 0.18) 0%, rgba(2, 32, 27, 0.36) 42%, rgba(2, 42, 35, 0.9) 100%),
    linear-gradient(90deg, rgba(2, 38, 31, 0.62), rgba(2, 38, 31, 0.08) 64%, transparent),
    url("./assets/overview-wind-field.jpg") center 58% / cover no-repeat !important;
}

.auth-copy::before {
  background:
    radial-gradient(circle at 62% 30%, rgba(102, 255, 221, 0.16), transparent 30%),
    linear-gradient(rgba(125, 255, 224, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 224, 0.14) 1px, transparent 1px) !important;
  background-size: auto, 44px 44px, 44px 44px !important;
}

/* Login polish pass: clearer hierarchy and more deliberate controls. */
.auth-card {
  min-height: 640px;
  overflow: hidden;
  border-color: rgba(182, 232, 221, 0.5) !important;
}

.auth-copy h1 {
  margin-top: 6px;
  font-size: clamp(48px, 4.5vw, 76px);
  line-height: 1.04;
}

.auth-copy p:last-child {
  width: min(620px, 100%);
  margin-top: 20px;
  padding-left: 16px;
  border-left: 3px solid rgba(125, 255, 224, 0.72);
}

.auth-form {
  padding: 70px 58px;
  border-left: 1px solid rgba(17, 184, 145, 0.12);
}

.auth-form .section-head {
  margin-bottom: 30px;
}

.auth-form .section-head h3 {
  color: #073f30;
  font-size: 26px;
  line-height: 1.2;
}

.auth-form .section-head p {
  margin-top: 10px;
  color: #5f766d;
  line-height: 1.85;
}

.auth-form label > span {
  margin-bottom: 9px;
  color: #083f31;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  height: 54px;
  border-radius: 12px !important;
  font-size: 16px;
}

.password-toggle-btn {
  right: 11px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.auth-form .button-row {
  margin-top: 22px;
}

.auth-form .primary-btn {
  min-width: 168px;
  height: 52px;
  padding-inline: 24px;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, #064c3b 0%, #078161 54%, #12bf90 100%);
  box-shadow:
    0 16px 30px rgba(5, 95, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.auth-form .primary-btn:hover,
.auth-form .primary-btn:focus-visible {
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 22px 38px rgba(5, 95, 74, 0.26),
    0 0 0 4px rgba(89, 255, 219, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  outline: none;
}

.auth-form .primary-btn:active {
  transform: translateY(0);
}

.login-state {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-inline: 14px;
  color: #075f4a;
}

.login-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #12bf90;
  box-shadow: 0 0 14px rgba(18, 191, 144, 0.62);
}

@media (max-width: 980px) {
  .auth-card {
    min-height: 0;
  }

  .auth-form {
    padding: 34px;
    border-left: 0;
  }
}

/* Final overview containment fix: workflow buttons must never be clipped. */
.admin-section[data-panel="overview"] .overview-hero {
  display: grid !important;
  grid-template-columns: minmax(420px, 1fr) minmax(240px, 320px) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 22px 28px !important;
  align-items: start !important;
  min-height: 560px !important;
  padding: 34px 34px 28px !important;
  overflow: hidden !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: auto !important;
  max-width: 680px !important;
  min-width: 0 !important;
  padding-left: 0 !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .overview-hero p:last-child {
  max-width: 620px !important;
}

.admin-section[data-panel="overview"] .hero-orb {
  position: relative !important;
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: start !important;
  justify-self: stretch !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.admin-section[data-panel="overview"] .hero-workflow {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(126px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.admin-section[data-panel="overview"] .hero-workflow::before {
  left: 38px !important;
  right: 38px !important;
}

.admin-section[data-panel="overview"] .workflow-node {
  min-width: 0 !important;
  min-height: 94px !important;
  padding: 13px 10px 12px !important;
  box-sizing: border-box !important;
}

.admin-section[data-panel="overview"] .workflow-icon {
  width: 36px !important;
  height: 36px !important;
  margin-bottom: 8px !important;
  border-radius: 11px !important;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.admin-section[data-panel="overview"] .workflow-node strong,
.admin-section[data-panel="overview"] .workflow-node small {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.admin-section[data-panel="overview"] .workflow-node small {
  font-size: 12px !important;
}

.admin-section[data-panel="overview"] .hero-status-board {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: end !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.admin-section[data-panel="overview"] .hero-status-board article {
  min-width: 0 !important;
  min-height: 74px !important;
  padding: 11px 10px !important;
  box-sizing: border-box !important;
}

.admin-section[data-panel="overview"] .hero-status-board span,
.admin-section[data-panel="overview"] .hero-status-board small {
  min-width: 0 !important;
  max-width: 100% !important;
}

.admin-section[data-panel="overview"] .hero-status-board strong {
  font-size: 25px !important;
}

@media (max-width: 1500px) {
  .admin-section[data-panel="overview"] .overview-hero {
    grid-template-columns: minmax(360px, 1fr) minmax(220px, 300px) !important;
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    grid-template-columns: repeat(5, minmax(112px, 1fr)) !important;
  }

  .admin-section[data-panel="overview"] .workflow-node strong {
    font-size: 14px !important;
  }
}

@media (max-width: 1280px) {
  .admin-section[data-panel="overview"] .overview-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    min-height: auto !important;
  }

  .admin-section[data-panel="overview"] .hero-orb,
  .admin-section[data-panel="overview"] .hero-status-board,
  .admin-section[data-panel="overview"] .hero-workflow {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .admin-section[data-panel="overview"] .hero-orb {
    max-width: 380px !important;
  }

  .admin-section[data-panel="overview"] .hero-status-board {
    max-width: 430px !important;
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

/* Keep the overview workspace clean: effects stay inside the hero, not across the page. */
.admin-section[data-panel="overview"].active {
  border-color: #e3ebe8 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"].active > .pixel-blast-layer {
  display: none !important;
}

.admin-section[data-panel="overview"] .metric-card,
.admin-section[data-panel="overview"] .todo-center {
  background: #ffffff !important;
  backdrop-filter: none !important;
}

/* White overview hero: keep the workflow clear without the dark photo treatment. */
.admin-section[data-panel="overview"] .overview-hero {
  border: 1px solid #e0eae6 !important;
  background: #ffffff !important;
  color: #0b3f31 !important;
  box-shadow: 0 18px 42px rgba(14, 66, 52, 0.07) !important;
}

.admin-section[data-panel="overview"] .overview-hero::before,
.admin-section[data-panel="overview"] .overview-hero::after,
.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  border-color: #bfe3d9 !important;
  background: #eef9f5 !important;
  color: #08785d !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  color: #0a392d !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child > p:last-child {
  color: #647a71 !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-orb,
.admin-section[data-panel="overview"] .hero-status-board,
.admin-section[data-panel="overview"] .hero-workflow {
  border-color: #dce9e4 !important;
  background: #f7fbf9 !important;
  color: #0b3f31 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-orb span,
.admin-section[data-panel="overview"] .hero-status-board article {
  border-color: #dce9e4 !important;
  background: #ffffff !important;
  color: #0b3f31 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-status-board span,
.admin-section[data-panel="overview"] .hero-status-board small {
  color: #71847d !important;
}

.admin-section[data-panel="overview"] .hero-status-board strong {
  color: #0a6049 !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-status-board article::before {
  background: #25bc91 !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-status-board article::after {
  background: #dce9e4 !important;
}

.admin-section[data-panel="overview"] .hero-workflow::before {
  background: #d7e7e1 !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .workflow-node {
  border-color: #dbe8e3 !important;
  background: #ffffff !important;
  color: #0b3f31 !important;
  box-shadow: 0 8px 20px rgba(14, 66, 52, 0.05) !important;
}

.admin-section[data-panel="overview"] .workflow-node::before {
  background: #31c99d !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .workflow-icon {
  border-color: #bfe5da !important;
  background: #eaf8f3 !important;
  color: #078261 !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  stroke: #078261 !important;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  color: #0a3b2e !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .workflow-node small {
  color: #6b8178 !important;
}

.admin-section[data-panel="overview"] .workflow-node:hover,
.admin-section[data-panel="overview"] .workflow-node.is-pixel-active {
  border-color: #8bd6c2 !important;
  background: #f0faf6 !important;
}

/* Photo-led overview hero: restrained grid and particles, without the large sweep glow. */
.admin-section[data-panel="overview"] .overview-hero {
  border-color: rgba(58, 147, 123, 0.32) !important;
  background:
    linear-gradient(90deg, rgba(3, 48, 39, 0.9) 0%, rgba(5, 76, 62, 0.7) 42%, rgba(17, 105, 85, 0.22) 76%, rgba(242, 251, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 45, 36, 0.08), rgba(2, 45, 36, 0.48)),
    url("./assets/login-energy-hero.png") center 44% / cover no-repeat !important;
  color: #ffffff !important;
  box-shadow: 0 18px 44px rgba(10, 61, 48, 0.14) !important;
}

.admin-section[data-panel="overview"] .overview-hero::before {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(85, 229, 195, 0.08), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px) !important;
}

.admin-section[data-panel="overview"] .overview-hero::after {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer {
  display: block !important;
  opacity: 0.72 !important;
  mix-blend-mode: screen !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer::before,
.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-scan,
.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-core {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer::after {
  display: block !important;
  opacity: 0.54 !important;
  background-image:
    radial-gradient(circle, rgba(126, 255, 226, 0.9) 0 1.5px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 224, 135, 0.58) 0 1px, transparent 1.5px),
    linear-gradient(rgba(118, 255, 224, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 224, 0.15) 1px, transparent 1px) !important;
  background-position: 0 0, 24px 18px, 0 0, 0 0 !important;
  background-size: 82px 82px, 118px 118px, 46px 46px, 46px 46px !important;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.2)) !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-node {
  width: 7px !important;
  height: 7px !important;
  opacity: 0.7 !important;
  background: rgba(132, 255, 227, 0.9) !important;
  box-shadow: 0 0 16px rgba(132, 255, 227, 0.55) !important;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  border-color: rgba(126, 255, 226, 0.48) !important;
  background: rgba(3, 61, 49, 0.44) !important;
  color: #a7ffe9 !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  color: #ffffff !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.2) !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child > p:last-child {
  color: rgba(240, 255, 250, 0.84) !important;
}

.admin-section[data-panel="overview"] .hero-orb,
.admin-section[data-panel="overview"] .hero-status-board,
.admin-section[data-panel="overview"] .hero-workflow {
  border-color: rgba(139, 239, 214, 0.3) !important;
  background: rgba(3, 54, 44, 0.52) !important;
  color: #effffb !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.admin-section[data-panel="overview"] .hero-orb span,
.admin-section[data-panel="overview"] .hero-status-board article,
.admin-section[data-panel="overview"] .workflow-node {
  border-color: rgba(139, 239, 214, 0.28) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #effffb !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.admin-section[data-panel="overview"] .hero-workflow::before,
.admin-section[data-panel="overview"] .hero-status-board article::after {
  background: rgba(139, 239, 214, 0.38) !important;
}

.admin-section[data-panel="overview"] .workflow-icon {
  border-color: rgba(139, 239, 214, 0.4) !important;
  background: rgba(176, 255, 235, 0.12) !important;
  color: #a3ffe7 !important;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  stroke: #a3ffe7 !important;
}

.admin-section[data-panel="overview"] .workflow-node strong,
.admin-section[data-panel="overview"] .hero-status-board strong {
  color: #ffffff !important;
}

.admin-section[data-panel="overview"] .workflow-node small,
.admin-section[data-panel="overview"] .hero-status-board span,
.admin-section[data-panel="overview"] .hero-status-board small {
  color: rgba(234, 255, 249, 0.74) !important;
}

.admin-section[data-panel="overview"] .workflow-node:hover,
.admin-section[data-panel="overview"] .workflow-node.is-pixel-active {
  border-color: rgba(151, 255, 228, 0.62) !important;
  background: rgba(95, 224, 190, 0.2) !important;
}

/* Bright operations overview: keep the technology texture without a heavy green slab. */
.admin-section[data-panel="overview"].active {
  min-height: calc(100vh - 72px) !important;
  padding: 18px 22px 26px !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  grid-template-rows: auto 520px !important;
  align-content: start !important;
  align-items: stretch !important;
  gap: 18px !important;
  background: linear-gradient(180deg, #f8fbfa 0%, #edf5f2 100%) !important;
}

.admin-section[data-panel="overview"] .metric-grid {
  gap: 12px !important;
}

.admin-section[data-panel="overview"] .metric-card {
  min-height: 94px !important;
  border: 1px solid #dce9e5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(22, 64, 51, 0.055) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

.admin-section[data-panel="overview"] .metric-card:hover {
  transform: translateY(-2px) !important;
  border-color: #b9dcd1 !important;
  box-shadow: 0 14px 32px rgba(22, 64, 51, 0.09) !important;
}

.admin-section[data-panel="overview"] .overview-hero {
  grid-column: 1 !important;
  grid-row: 2 !important;
  height: 520px !important;
  min-height: 520px !important;
  padding: 38px 40px !important;
  align-items: flex-start !important;
  overflow: hidden !important;
  border: 1px solid #cfe2dc !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(17, 62, 51, 0.18) 0%, rgba(17, 62, 51, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
    url("./assets/login-energy-hero.png") center 45% / cover no-repeat !important;
  color: #123c31 !important;
  box-shadow: 0 18px 42px rgba(25, 71, 57, 0.08) !important;
}

.admin-section[data-panel="overview"] .overview-hero::before {
  display: block !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(13, 66, 53, 0.08)),
    linear-gradient(rgba(14, 137, 105, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 137, 105, 0.05) 1px, transparent 1px) !important;
  background-size: auto, 46px 46px, 46px 46px !important;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.08) 62%, transparent 92%) !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  position: relative !important;
  z-index: 6 !important;
  width: min(535px, 64%) !important;
  padding: 24px 26px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.91) !important;
  box-shadow: 0 18px 46px rgba(19, 57, 47, 0.16) !important;
  backdrop-filter: blur(12px) !important;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid #b9ddd2 !important;
  border-radius: 999px !important;
  background: #edf8f4 !important;
  color: #08775c !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  margin-top: 14px !important;
  color: #123c31 !important;
  font-size: 34px !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child > p:last-child {
  max-width: 540px !important;
  margin-top: 12px !important;
  color: #60776f !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.admin-section[data-panel="overview"] .hero-orb,
.admin-section[data-panel="overview"] .hero-status-board {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer {
  opacity: 0.28 !important;
  mix-blend-mode: multiply !important;
  pointer-events: none !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer::after {
  opacity: 0.28 !important;
  background-image:
    radial-gradient(circle, rgba(14, 145, 111, 0.72) 0 1.2px, transparent 1.5px),
    linear-gradient(rgba(14, 145, 111, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 145, 111, 0.08) 1px, transparent 1px) !important;
  background-position: 0 0, 0 0, 0 0 !important;
  background-size: 90px 90px, 46px 46px, 46px 46px !important;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.42) 54%, transparent 82%) !important;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-node {
  width: 5px !important;
  height: 5px !important;
  opacity: 0.32 !important;
  background: #39b996 !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .hero-workflow {
  position: absolute !important;
  z-index: 7 !important;
  left: 28px !important;
  right: 28px !important;
  bottom: 26px !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: auto !important;
  padding: 11px !important;
  border: 1px solid rgba(191, 218, 209, 0.9) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #123c31 !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 16px 34px rgba(27, 74, 60, 0.11) !important;
}

.admin-section[data-panel="overview"] .hero-workflow::before {
  display: none !important;
}

.admin-section[data-panel="overview"] .workflow-node {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  align-content: center !important;
  min-width: 0 !important;
  min-height: 72px !important;
  padding: 11px !important;
  border: 1px solid #dbe9e4 !important;
  border-radius: 10px !important;
  background: rgba(249, 252, 251, 0.96) !important;
  color: #123c31 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .workflow-node:hover,
.admin-section[data-panel="overview"] .workflow-node.is-pixel-active {
  transform: translateY(-2px) !important;
  border-color: #86cbb7 !important;
  background: #f0faf6 !important;
  box-shadow: 0 8px 18px rgba(17, 113, 87, 0.1) !important;
}

.admin-section[data-panel="overview"] .workflow-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #bcded4 !important;
  border-radius: 10px !important;
  background: #eaf7f3 !important;
  color: #0b8d6b !important;
}

.admin-section[data-panel="overview"] .workflow-icon svg {
  width: 21px !important;
  height: 21px !important;
  stroke: #0b8d6b !important;
}

.admin-section[data-panel="overview"] .workflow-node strong,
.admin-section[data-panel="overview"] .workflow-node small {
  grid-column: 2 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .workflow-node strong {
  color: #173d33 !important;
  font-size: 14px !important;
}

.admin-section[data-panel="overview"] .workflow-node small {
  color: #71857e !important;
  font-size: 11px !important;
}

.admin-section[data-panel="overview"] .todo-center {
  grid-column: 2 !important;
  grid-row: 2 !important;
  height: 520px !important;
  min-height: 0 !important;
  padding: 22px !important;
  overflow: hidden !important;
  border: 1px solid #d8e8e3 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 18px 42px rgba(25, 71, 57, 0.075) !important;
}

.admin-section[data-panel="overview"] .todo-list {
  max-height: 386px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

.admin-section[data-panel="overview"] .todo-card {
  position: relative !important;
  gap: 8px 10px !important;
  padding: 12px 0 !important;
  cursor: pointer !important;
  transition: background-color 160ms ease, transform 160ms ease !important;
}

.admin-section[data-panel="overview"] .todo-card:hover {
  transform: translateX(2px) !important;
  background: rgba(239, 249, 245, 0.62) !important;
}

.admin-section[data-panel="overview"] .todo-card .table-btn {
  display: none !important;
}

.admin-section[data-panel="overview"] .todo-content p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.55 !important;
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    grid-template-rows: auto 500px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center {
    height: 500px !important;
    min-height: 500px !important;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .admin-section[data-panel="overview"] .metric-card {
    min-width: 0 !important;
    padding-right: 10px !important;
  }

  .admin-section[data-panel="overview"] .metric-card > div > span {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: min(500px, 70%) !important;
    padding: 21px 22px 20px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    font-size: 31px !important;
  }

  .admin-section[data-panel="overview"] .workflow-node {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    column-gap: 6px !important;
    min-height: 62px !important;
    padding: 7px !important;
  }

  .admin-section[data-panel="overview"] .workflow-icon {
    grid-row: 1 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .admin-section[data-panel="overview"] .workflow-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .admin-section[data-panel="overview"] .workflow-node strong {
    grid-row: 1 !important;
    align-self: center !important;
    overflow: visible !important;
    font-size: 12px !important;
    text-overflow: clip !important;
  }

  .admin-section[data-panel="overview"] .workflow-node small {
    display: none !important;
  }

  .admin-section[data-panel="overview"] .todo-center {
    padding: 18px !important;
  }

  .admin-section[data-panel="overview"] .todo-content strong {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .admin-section[data-panel="overview"] .todo-content p {
    -webkit-line-clamp: 1 !important;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 520px auto !important;
  }

  .admin-section[data-panel="overview"] .overview-hero {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .admin-section[data-panel="overview"] .todo-center {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 360px !important;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .admin-section[data-panel="overview"].active {
    display: block !important;
    padding: 14px !important;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 14px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero {
    height: 660px !important;
    min-height: 660px !important;
    margin-bottom: 14px !important;
    padding: 28px 24px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: 100% !important;
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    font-size: 30px !important;
  }

  .admin-section[data-panel="overview"] .hero-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
  }
}

/* Streamlined operations dashboard: one summary layer and one action layer. */
.admin-section[data-panel="overview"].active {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  grid-template-rows: auto 380px !important;
  gap: 16px !important;
  padding: 20px 24px 28px !important;
}

.admin-section[data-panel="overview"] .metric-grid {
  gap: 0 !important;
  overflow: hidden !important;
  padding: 0 10px !important;
  border: 1px solid #dce8e4 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 28px rgba(22, 64, 51, 0.055) !important;
}

.admin-section[data-panel="overview"] .metric-card {
  min-height: 86px !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border: 0 !important;
  border-right: 1px solid #e3ece9 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color 160ms ease !important;
}

.admin-section[data-panel="overview"] .metric-card:last-child {
  border-right: 0 !important;
}

.admin-section[data-panel="overview"] .metric-card:hover,
.admin-section[data-panel="overview"] .metric-card.is-pixel-active {
  transform: none !important;
  border-color: #e3ece9 !important;
  background: #f4faf7 !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-hero {
  height: 380px !important;
  min-height: 380px !important;
  padding: 30px 32px !important;
  align-items: flex-end !important;
  background:
    linear-gradient(90deg, rgba(9, 56, 45, 0.48) 0%, rgba(9, 56, 45, 0.18) 46%, rgba(255, 255, 255, 0.02) 100%),
    url("./assets/login-energy-hero.png") center 52% / cover no-repeat !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  width: min(520px, 62%) !important;
  margin: 0 !important;
  padding: 20px 22px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.93) !important;
  box-shadow: 0 14px 36px rgba(19, 57, 47, 0.14) !important;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  min-height: 25px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  margin-top: 11px !important;
  font-size: 31px !important;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child > p:last-child {
  margin-top: 9px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.admin-section[data-panel="overview"] .hero-workflow {
  display: none !important;
}

.admin-section[data-panel="overview"] .todo-center {
  height: 380px !important;
  min-height: 380px !important;
  padding: 20px !important;
}

.admin-section[data-panel="overview"] .todo-center .section-head {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.admin-section[data-panel="overview"] #refreshTodoBtn {
  display: none !important;
}

.admin-section[data-panel="overview"] .todo-list {
  max-height: 278px !important;
  margin-top: 12px !important;
  gap: 0 !important;
}

.admin-section[data-panel="overview"] .todo-card {
  padding: 10px 0 !important;
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: minmax(0, 1fr) 330px !important;
    grid-template-rows: auto 360px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center {
    height: 360px !important;
    min-height: 360px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: min(490px, 68%) !important;
    padding: 18px 20px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    font-size: 28px !important;
  }

  .admin-section[data-panel="overview"] .todo-list {
    max-height: 258px !important;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 360px auto !important;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .admin-section[data-panel="overview"] .metric-card {
    border: 1px solid #e3ece9 !important;
    border-radius: 10px !important;
  }

  .admin-section[data-panel="overview"] .todo-center {
    height: auto !important;
    min-height: 320px !important;
  }

  .admin-section[data-panel="overview"] .todo-list {
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-section[data-panel="overview"] .overview-hero {
    height: 370px !important;
    min-height: 370px !important;
    padding: 20px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: 100% !important;
  }

  .admin-section[data-panel="overview"] .overview-hero h2 {
    white-space: normal !important;
    font-size: 26px !important;
  }
}

/* Compact overview task rail. Keep this last so legacy effect passes cannot squeeze it. */
.admin-section[data-panel="overview"].active {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px) !important;
  grid-template-rows: auto 440px !important;
  gap: 18px !important;
}

.admin-section[data-panel="overview"] .overview-hero,
.admin-section[data-panel="overview"] .todo-center {
  height: 440px !important;
  min-height: 440px !important;
}

.admin-section[data-panel="overview"] .todo-center {
  padding: 24px !important;
  overflow: visible !important;
  border-radius: 8px !important;
}

.admin-section[data-panel="overview"] .todo-center .section-head {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  margin-bottom: 14px !important;
}

.admin-section[data-panel="overview"] .todo-list {
  max-height: none !important;
  margin-top: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}

.admin-section[data-panel="overview"] .todo-card {
  grid-template-columns: 4px minmax(0, 1fr) auto 14px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 76px !important;
  padding: 12px 2px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(220, 233, 229, 0.86) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .todo-card:hover {
  padding-right: 8px !important;
  transform: none !important;
  background: rgba(238, 249, 246, 0.72) !important;
}

.admin-section[data-panel="overview"] .todo-content strong {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .todo-count,
.admin-section[data-panel="overview"] .todo-priority,
.admin-section[data-panel="overview"] .todo-card .table-btn {
  display: none !important;
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: minmax(0, 1fr) 350px !important;
    grid-template-rows: auto 420px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center {
    height: 420px !important;
    min-height: 420px !important;
  }

  .admin-section[data-panel="overview"] .todo-center {
    padding: 22px 20px !important;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 420px auto !important;
  }

  .admin-section[data-panel="overview"] .todo-center {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Integrated overview: one clean hero with a horizontal action rail. */
.admin-section[data-panel="overview"].active {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 520px !important;
  gap: 20px !important;
}

.admin-section[data-panel="overview"] .metric-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.admin-section[data-panel="overview"] .metric-grid .metric-card {
  min-width: 0 !important;
}

.admin-section[data-panel="overview"] .metric-grid .metric-saving strong {
  font-size: 25px !important;
  font-variant-numeric: tabular-nums !important;
}

.admin-section[data-panel="overview"] .overview-hero {
  position: relative !important;
  display: block !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  height: 520px !important;
  min-height: 520px !important;
  padding-bottom: 146px !important;
}

.admin-section[data-panel="overview"] .overview-hero > .todo-center {
  position: absolute !important;
  grid-column: auto !important;
  grid-row: auto !important;
  right: 28px !important;
  bottom: 24px !important;
  left: 28px !important;
  z-index: 8 !important;
  display: grid !important;
  grid-template-columns: 156px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  width: auto !important;
  height: 106px !important;
  min-height: 106px !important;
  padding: 14px 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(206, 226, 220, 0.92) !important;
  border-radius: 8px !important;
  background: rgba(250, 253, 252, 0.94) !important;
  box-shadow: 0 16px 38px rgba(4, 54, 42, 0.16) !important;
  backdrop-filter: blur(16px) !important;
}

.admin-section[data-panel="overview"] .overview-hero > .todo-center .section-head {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-left: 3px solid #12b98d !important;
}

.admin-section[data-panel="overview"] .overview-hero > .todo-center .section-head h3 {
  margin: 0 0 5px !important;
  color: #123c32 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.admin-section[data-panel="overview"] .overview-hero > .todo-center .section-head p {
  margin: 0 !important;
  color: #718b83 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.admin-section[data-panel="overview"] .overview-hero > .todo-center #refreshTodoBtn {
  display: none !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-list {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  min-width: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dfebe7 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-list-summary {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-right: 1px solid #dfebe7 !important;
  border-radius: 0 !important;
  background: #f5faf8 !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-list-summary > span {
  color: #789087 !important;
  font-size: 11px !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-list-summary > strong {
  color: #123c32 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-list-summary small {
  color: #789087 !important;
  font-size: 11px !important;
}

.admin-section[data-panel="overview"] .todo-list-track {
  display: grid !important;
  grid-template-columns: repeat(var(--todo-count), minmax(0, 1fr)) !important;
  min-width: 0 !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-card {
  display: grid !important;
  grid-template-columns: 3px minmax(0, 1fr) auto 12px !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid #e4eeeb !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-card:last-child {
  border-right: 0 !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-card:hover {
  padding: 10px 12px !important;
  background: #f7fbfa !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-accent {
  align-self: stretch !important;
  width: 3px !important;
  min-height: 44px !important;
  border-radius: 3px !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-content {
  gap: 4px !important;
  width: 100% !important;
  padding: 0 !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-content span {
  width: 100% !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-content strong {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-compact-meta {
  min-width: 48px !important;
  gap: 3px !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-compact-meta > strong {
  font-size: 20px !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-compact-meta > span {
  font-size: 10px !important;
  white-space: nowrap !important;
}

.admin-section[data-panel="overview"] .overview-hero .todo-chevron {
  font-size: 19px !important;
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-rows: auto 500px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero {
    height: 500px !important;
    min-height: 500px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > .todo-center {
    right: 18px !important;
    bottom: 18px !important;
    left: 18px !important;
    grid-template-columns: 136px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 980px) {
  .admin-section[data-panel="overview"] .overview-hero > .todo-center {
    grid-template-columns: 1fr !important;
    height: 112px !important;
  }

  .admin-section[data-panel="overview"] .overview-hero > .todo-center .section-head {
    display: none !important;
  }

  .admin-section[data-panel="overview"] .overview-hero .todo-list {
    height: 100% !important;
  }
}
