#pontCrawlerDashboard {
  position: relative;
  z-index: 20;
  width: min(1040px, calc(100vw - 42px));
  max-width: 100%;
  box-sizing: border-box;
  margin: 50px auto 12px;
  border: 1px solid rgba(139, 16, 38, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fafbfc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  transition: none;
  max-height: 240px;
}
#pontCrawlerDashboard[hidden] { display: none !important; }
#pontCrawlerDashboard:has(.pcd-classifications) { overflow: visible; }

@media (min-width: 761px) {
  #pontCrawlerDashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483000;
    width: min(1040px, calc(100vw - 42px));
    max-height: min(300px, calc(100dvh - 40px));
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  }

  #pontCrawlerDashboard.is-closing {
    transform: translate(-50%, calc(-50% - 8px)) !important;
  }
}

body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-overlay,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-overlay,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-overlay {
  transform: translateY(50px) !important;
}

body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img {
  transform: translateY(50px) !important;
}

body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-copy,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-copy,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-copy {
  top: 0 !important;
  transform: translateX(-50%) translateY(470px) !important;
}

body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard[hidden]) > img,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard[hidden]) > img,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard[hidden]) > img {
  transform: translateY(150px) !important;
}

body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard[hidden]) .banner-copy,
body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard[hidden]) .banner-copy,
body.pont-mode-search .page-banner:has(#pontCrawlerDashboard[hidden]) .banner-copy {
  transform: translateX(-50%) translateY(-120px) !important;
}

.pcd-show {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  z-index: 2147483001 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  width: 82px;
  height: 82px;
  padding: 0;
  margin: 0 0 0 8px;
  border: 0;
  border-radius: 0;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pcd-show img {
  position: relative;
  z-index: 2;
  display: block;
  width: 82px;
  height: 82px;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  overflow: visible;
  pointer-events: none;
}

#pontCrawlerDashboard.is-closing {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}
.pcd-summary {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(120px, 1fr));
  border-bottom: 1px solid #e5e7eb;
}
.pcd-summary > div { min-height: 50px; padding: 8px 12px; border-right: 1px solid #e5e7eb; box-sizing: border-box; }
.pcd-summary > div:last-child { border-right: 0; }
.pcd-kicker { display: block; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.pcd-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: #16a34a; font-size: 13px; font-weight: 800; }
.pcd-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pcd-label { display: block; color: #334155; font-size: 10px; }
.pcd-value { display: block; margin-top: 1px; font-size: 17px; line-height: 1; font-weight: 850; }
.pcd-zone { display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 8px; }
.pcd-zone:focus-visible { outline: 2px solid #b51226; outline-offset: -2px; }
.pcd-flag { font-size: 18px; }
.pcd-zone strong { display: block; font-size: 13px; }
.pcd-zone small, .pcd-summary small { color: #64748b; font-size: 9px; }
.pcd-robots-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px 0; font-size: 10px; font-weight: 850; }
.pcd-legend { display: flex; gap: 12px; color: #334155; font-size: 9px; font-weight: 600; }
.pcd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pcd-robots-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.pcd-robots { display: grid; grid-template-columns: repeat(16, minmax(62px, 1fr)); min-width: 1000px; padding: 3px 8px 8px; }
.pcd-robot {
  position: relative; overflow: visible;
  border: 0; background: transparent; color: #111827; padding: 4px;
  text-align: center; cursor: default; border-radius: 10px;
}
.pcd-robot[data-state="stopped"] { cursor: pointer; }
.pcd-robot:focus-visible { outline: 2px solid #b51226; outline-offset: 2px; }
.pcd-number { color: #b51226; font-weight: 900; font-size: 9px; }
.pcd-icon {
  position: relative; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px;
  margin: 2px auto; border: 0; border-radius: 9px;
  overflow: visible; background: transparent; box-shadow: none;
}
.pcd-icon img { position: relative; z-index: 3; display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: contain; }
.pcd-state { display: block; font-size: 9px; font-weight: 750; }
.pcd-tasks { display: block; color: #64748b; font-size: 8px; margin-top: 1px; }
.pcd-robot[data-state="active"] { color: #22b94d; }
.pcd-robot[data-state="analysis"] { color: #8b5fc1; }
.pcd-robot[data-state="slow"] { color: #f59e0b; }
.pcd-robot[data-state="stopped"] { color: #dc2626; }
.pcd-robot[data-state="waiting"] { color: #94a3b8; }
.pcd-robot[data-state="active"] .pcd-icon img { animation: pcd-pulse 1.8s ease-in-out infinite; }
.pcd-hide {
  float: right; margin: 0 10px 7px; border: 1px solid #e5e7eb; border-radius: 999px;
  padding: 5px 10px; background: #fff; color: #111827; font-size: 10px; font-weight: 750; cursor: pointer;
}
.pcd-popover {
  position: absolute; z-index: 5; width: min(240px, calc(100% - 32px)); padding: 14px;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18); color: #111827;
}
.pcd-popover strong, .pcd-popover span { display: block; }
.pcd-popover span { margin: 7px 0; color: #475569; font-size: 13px; }
.pcd-popover button { border: 0; border-radius: 999px; padding: 8px 12px; background: #b51226; color: #fff; font-weight: 750; cursor: pointer; }
.pcd-classifications {
  position: absolute; z-index: 30; top: 52px; left: 12px;
  display: flex; flex-direction: column;
  width: min(520px, calc(100% - 24px)); max-height: min(60vh, 520px);
  overflow-x: hidden; overflow-y: auto;
  padding: 8px; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  pointer-events: auto;
}
.pcd-classifications button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: #111827; text-align: left; cursor: pointer;
}
.pcd-classifications button:hover, .pcd-classifications button:focus-visible { background: #fff1f2; outline: none; }
.pcd-classifications strong { font-size: 12px; }
.pcd-classifications span { color: #64748b; font-size: 10px; white-space: nowrap; }
.pcd-unavailable { padding: 22px; text-align: center; font-weight: 750; }
@keyframes pcd-pulse { 50% { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(34, 185, 77, .25); } }
@media (max-width: 760px) {
  #pontCrawlerDashboard {
    width: calc(100vw - 24px);
    max-width: 100%;
    position: relative;
    z-index: 2147482500 !important;
    isolation: isolate;
    max-height: none !important;
    overflow: visible !important;
  }
  #pontCrawlerDashboard .pcd-content {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    border-radius: inherit;
    background: linear-gradient(180deg, #fff, #fafbfc);
  }
  body.pont-mode-local-web .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
  body.pont-mode-web-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img,
  body.pont-mode-search .page-banner:has(#pontCrawlerDashboard:not([hidden])) > img {
    transform: translateY(150px) !important;
  }
  body:not(.pr-article-modal-open) .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-overlay {
    z-index: 10 !important;
  }
  body:not(.pr-article-modal-open) .page-banner:has(#pontCrawlerDashboard:not([hidden])) .banner-copy {
    display: none !important;
  }
  .pcd-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcd-summary > div { padding: 11px 12px; }
  .pcd-summary > div:first-child { grid-column: 1 / -1; }
  .pcd-legend { display: none; }
  .pcd-robots-scroll {
    display: block !important;
    width: 100%;
    min-height: 112px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .pcd-robots {
    display: flex !important;
    flex-flow: row nowrap !important;
    min-width: max-content !important;
    width: max-content !important;
    min-height: 105px;
  }
  .pcd-robot {
    position: relative !important;
    z-index: 1;
    flex: 0 0 72px !important;
    min-width: 72px;
    min-height: 100px;
    max-height: none !important;
    overflow: visible !important;
  }
  .pcd-icon {
    position: relative !important;
    z-index: 3 !important;
    display: grid !important;
    width: 64px !important;
    height: 64px !important;
    overflow: visible !important;
  }
  .pcd-icon img {
    position: relative !important;
    z-index: 4 !important;
    overflow: visible !important;
  }
  .pcd-classifications {
    top: 104px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: min(55vh, 460px);
  }
  .pcd-classifications button {
    flex: 0 0 auto;
    min-height: 44px;
    align-items: flex-start;
  }
  .pcd-classifications strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .pcd-classifications span {
    flex: 0 0 auto;
    white-space: normal;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pontCrawlerDashboard, .pcd-robot[data-state="active"] .pcd-icon img { transition: none; animation: none; }
}
