.project-scan-page {
  position: relative;
  min-height: 100vh;
  padding: 26px 0 54px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .10), transparent 34%),
    linear-gradient(180deg, #06111f 0%, #081323 100%);
}

.project-scan-page-loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(10px);
}

.project-scan-page-loading[hidden],
.project-scan-page:not(.is-page-loading) .project-scan-page-loading {
  display: none !important;
}

.project-scan-page-loading-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid rgba(56, 189, 248, .38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 27, 47, .96), rgba(2, 8, 23, .96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(125, 211, 252, .08) inset;
  color: #bfdbfe;
  text-align: center;
}

.project-scan-page-loading-card strong {
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 950;
}

.project-scan-page-loading-card span:last-child {
  color: #93a4bb;
  font-size: 14px;
  font-weight: 800;
}

.project-scan-page-spinner {
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border: 5px solid rgba(148, 163, 184, .30);
  border-top-color: #38bdf8;
  border-right-color: #22c55e;
  border-radius: 999px;
  background: transparent;
  animation: projectScanSpinner .82s linear infinite;
}

.project-scan-shell {
  display: grid;
  width: min(1728px, calc(100vw - 88px));
  gap: 16px;
}

.project-scan-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 27, 47, .94), rgba(6, 17, 31, .74));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
}

.project-scan-header span {
  display: block;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-scan-header h1 {
  margin: 6px 0 8px;
  max-width: 760px;
  font-size: clamp(2rem, 2.2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.project-scan-header p {
  max-width: 980px;
  margin: 0;
  color: #b6c7dc;
  font-size: 1.02rem;
}

.project-scan-terminal-link,
.project-scan-toolbar button,
.project-scan-detail-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(56, 189, 248, .42);
  border-radius: 8px;
  background: #0b2742;
  color: #e0f2fe;
  font-weight: 950;
  cursor: pointer;
}

.project-scan-toolbar button[data-scan-refresh] {
  position: relative;
  gap: 8px;
  overflow: hidden;
}

.project-scan-toolbar button[data-scan-refresh].is-loading,
.project-scan-toolbar button[data-scan-refresh].is-loading:disabled {
  border-color: rgba(56, 189, 248, .70);
  background: #0a304e;
  color: #f0f9ff;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .10) inset, 0 10px 26px rgba(14, 165, 233, .14);
  opacity: 1;
  cursor: wait;
}

.project-scan-button-spinner {
  display: none;
  box-sizing: border-box;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(226, 232, 240, .34);
  border-top-color: #38bdf8;
  border-right-color: #22c55e;
  border-radius: 999px;
  background: transparent;
  transform-origin: 50% 50%;
  animation: projectScanSpinner .82s linear infinite;
}

.project-scan-toolbar button[data-scan-refresh].is-loading .project-scan-button-spinner,
.project-scan-toolbar button[data-scan-refresh][aria-busy="true"] .project-scan-button-spinner {
  display: inline-block;
}

.project-scan-toolbar button[data-scan-refresh].is-loading::after,
.project-scan-toolbar button[data-scan-refresh][aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(186, 230, 253, .12), rgba(255, 255, 255, 0));
  animation: projectScanButtonSweep 1.25s ease-in-out infinite;
  pointer-events: none;
}

.project-scan-terminal-link:hover,
.project-scan-toolbar button:hover,
.project-scan-detail-card a:hover {
  border-color: rgba(103, 232, 249, .70);
  background: #0e3557;
}

.project-scan-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 8px;
  background: rgba(13, 27, 47, .86);
}

.project-scan-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-scan-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-scan-toolbar input,
.project-scan-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(2, 6, 23, .72);
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  line-height: 1.2;
  padding: 0 12px;
}

.project-scan-toolbar button {
  white-space: nowrap;
}

.project-scan-advanced-filters {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(2, 6, 23, .36);
}

.project-scan-advanced-filters summary,
.project-scan-param-details summary {
  list-style: none;
}

.project-scan-advanced-filters summary::-webkit-details-marker,
.project-scan-param-details summary::-webkit-details-marker {
  display: none;
}

.project-scan-advanced-filters summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.project-scan-advanced-filters summary::after,
.project-scan-param-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.project-scan-advanced-filters[open] summary::after,
.project-scan-param-details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.project-scan-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
}

.project-scan-page input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  box-sizing: border-box;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, .38);
  border-radius: 5px;
  background: rgba(2, 6, 23, .72);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .62) inset;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.project-scan-page input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #eff6ff;
  border-bottom: 2px solid #eff6ff;
  transform: rotate(-45deg) scale(0);
  transform-origin: 45% 58%;
  transition: transform .14s ease;
}

.project-scan-page input[type="checkbox"]:checked {
  border-color: rgba(56, 189, 248, .90);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .20) inset, 0 0 0 3px rgba(56, 189, 248, .10);
}

.project-scan-page input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.project-scan-page input[type="checkbox"]:indeterminate::before {
  width: 9px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  transform: scale(1);
}

.project-scan-page input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .72);
  outline-offset: 2px;
}

.project-scan-page input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.project-scan-interval-combine {
  display: grid;
  grid-template-columns: repeat(4, minmax(46px, 1fr));
  gap: 7px;
}

.project-scan-interval-combine label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.project-scan-interval-combine label:has(input:checked) {
  border-color: rgba(56, 189, 248, .56);
  background: rgba(8, 47, 73, .50);
  color: #e0f2fe;
}

.project-scan-interval-combine input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  min-height: 14px;
  height: 14px;
  border-radius: 4px;
}

.project-scan-interval-combine input[type="checkbox"]::before {
  width: 7px;
  height: 4px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.project-scan-column-panel[hidden] {
  display: none;
}

.project-scan-column-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 8px;
  background: rgba(2, 6, 23, .72);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, .08);
}

.project-scan-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-scan-panel-head button,
.project-scan-column-panel > button,
.project-scan-param-details button {
  width: max-content;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 8px;
  background: rgba(11, 39, 66, .78);
  color: #dff6ff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.project-scan-column-grid {
  display: grid;
  gap: 14px;
}

.project-scan-column-section {
  display: grid;
  gap: 8px;
}

.project-scan-column-section h3 {
  margin: 0;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-scan-column-section > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.project-scan-checkline {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(15, 23, 42, .58);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.project-scan-checkline input {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  align-self: center;
}

.project-scan-checkline input:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.project-scan-checkline.is-selected,
.project-scan-checkline:has(input:checked) {
  border-color: rgba(56, 189, 248, .38);
  background: rgba(8, 47, 73, .46);
  color: #f8fafc;
}

.project-scan-param-details {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .38);
}

.project-scan-param-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.project-scan-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.project-scan-param-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-scan-param-grid input {
  min-height: 42px;
}

.project-scan-toolbar input:focus,
.project-scan-toolbar select:focus,
.project-scan-watchlist-panel input:focus,
.project-scan-watchlist-panel select:focus {
  outline: 2px solid rgba(56, 189, 248, .55);
  outline-offset: 1px;
  border-color: rgba(56, 189, 248, .70);
}

.project-scan-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(4, 12, 24, .62);
}

.project-scan-type-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 8px;
  background: rgba(15, 23, 42, .70);
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.project-scan-type-filter button:hover,
.project-scan-type-filter button:focus-visible {
  border-color: rgba(56, 189, 248, .55);
  background: rgba(8, 47, 73, .34);
  color: #e0f2fe;
  outline: 0;
}

.project-scan-type-filter button.is-active {
  border-color: rgba(56, 189, 248, .72);
  background: rgba(11, 39, 66, .92);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .20);
}

.project-scan-type-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  color: #93c5fd;
  font-size: 12px;
  line-height: 1;
}

.project-scan-type-filter button.is-active span {
  background: rgba(56, 189, 248, .22);
  color: #e0f2fe;
}

.project-scan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-scan-results-pane {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.project-scan-results-pane > * {
  min-width: 0;
}

.project-scan-watchlist-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  min-width: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 8px;
  background: rgba(7, 12, 18, .72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(148, 163, 184, .06);
  scrollbar-color: rgba(56, 189, 248, .58) rgba(2, 6, 23, .64);
  scrollbar-width: thin;
}

.project-scan-watchlist-side-head {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.project-scan-watchlist-side-head span {
  color: #38bdf8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-scan-watchlist-side-head strong {
  color: #cbd5e1;
  font-size: 1.05rem;
  font-weight: 950;
}

.project-scan-watchlist-inner {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.project-scan-watchlist-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.project-scan-watchlist-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-scan-watchlist-panel input,
.project-scan-watchlist-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 8px;
  background: rgba(2, 6, 23, .68);
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  padding: 0 12px;
}

.project-scan-watchlist-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 8px;
  background: rgba(11, 39, 66, .74);
  color: #e0f2fe;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
}

.project-scan-watchlist-panel button:hover:not(:disabled),
.project-scan-watchlist-panel button:focus-visible {
  border-color: rgba(103, 232, 249, .66);
  background: rgba(14, 53, 87, .92);
  outline: 0;
}

.project-scan-watchlist-panel button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.project-scan-watchlist-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.project-scan-watchlist-body article {
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 8px;
  background: rgba(15, 23, 42, .62);
}

.project-scan-watchlist-kicker,
.project-scan-watchlist-name span {
  color: #93a4bb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-scan-watchlist-name {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.project-scan-watchlist-name strong {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 950;
}

.project-scan-watchlist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 36px;
  align-items: center;
  margin: 8px 0 10px;
}

.project-scan-watchlist-chips a,
.project-scan-watchlist-chips span,
.project-scan-watchlist-chips small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 999px;
  background: rgba(8, 47, 73, .25);
  color: #dff6ff;
  font-size: 12px;
  font-weight: 950;
}

.project-scan-watchlist-chips em {
  color: #93a4bb;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.project-scan-watchlist-status {
  min-height: 38px;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(56, 189, 248, .30);
  border-radius: 8px;
  background: rgba(8, 47, 73, .24);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
}

.project-scan-watchlist-status.is-error {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(120, 53, 15, .18);
  color: #fde68a;
}

.project-scan-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.project-scan-summary article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 8px;
  background: rgba(7, 12, 18, .82);
}

.project-scan-summary span {
  display: block;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-scan-summary strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1.8rem;
  line-height: 1;
}

.project-scan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px dashed rgba(56, 189, 248, .34);
  border-radius: 8px;
  background: rgba(8, 47, 73, .24);
  color: #bfdbfe;
  font-weight: 900;
}

.project-scan-status.is-loading::before {
  content: "";
  box-sizing: border-box;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(148, 163, 184, .32);
  border-top-color: #38bdf8;
  border-right-color: #22c55e;
  border-radius: 999px;
  background: transparent;
  animation: projectScanSpinner .82s linear infinite;
}

.project-scan-status.is-error {
  border-color: rgba(248, 113, 113, .45);
  background: rgba(127, 29, 29, .20);
  color: #fecaca;
}

.project-scan-table-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(7, 12, 18, .66);
  overflow: hidden;
}

.project-scan-table-card.has-visible-results::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 132px;
  z-index: 4;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(148, 163, 184, .32);
  border-top-color: #38bdf8;
  border-right-color: #22c55e;
  border-radius: 999px;
  background: transparent;
  animation: projectScanSpinner .82s linear infinite;
  pointer-events: none;
}

.project-scan-table-card.has-visible-results::after {
  content: "Güncelleniyor";
  position: absolute;
  top: 9px;
  right: 12px;
  z-index: 4;
  min-height: 30px;
  padding: 6px 10px 6px 30px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 999px;
  background: rgba(2, 8, 23, .86);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  box-shadow: 0 10px 26px rgba(2, 6, 23, .28);
  pointer-events: none;
}

.project-scan-table-scroll {
  overflow-x: auto;
  scrollbar-color: rgba(56, 189, 248, .58) rgba(2, 6, 23, .64);
  scrollbar-width: thin;
}

.project-scan-table {
  width: 100%;
  min-width: max(1180px, calc(var(--project-scan-visible-columns, 10) * 128px));
  border-collapse: collapse;
}

.project-scan-table th,
.project-scan-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  text-align: left;
  vertical-align: middle;
}

.project-scan-table th {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(13, 27, 47, .86);
  position: sticky;
  top: 0;
  z-index: 1;
}

.project-scan-select-col {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center;
}

.project-scan-table th.project-scan-select-col,
.project-scan-table td.project-scan-select-col {
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
  vertical-align: middle;
}

.project-scan-select-all {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  min-height: 34px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 950;
}

.project-scan-table input[type="checkbox"],
.project-scan-select-all input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}

.project-scan-table th button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.project-scan-table th button:hover,
.project-scan-table th button:focus-visible {
  color: #e0f2fe;
  outline: 0;
}

.project-scan-table th button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-scan-table th button[data-scan-sort-column] [data-scan-sort-marker] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .76);
  color: #64748b;
  font-size: 11px;
  line-height: 1;
}

.project-scan-table th button[data-scan-sort-column] [data-scan-sort-marker]:empty {
  min-width: 0;
  width: 0;
  padding: 0;
  background: transparent;
}

.project-scan-table th button.is-sorted {
  color: #e0f2fe;
}

.project-scan-table th button.is-sorted [data-scan-sort-marker] {
  border: 1px solid rgba(56, 189, 248, .44);
  background: rgba(8, 47, 73, .58);
  color: #7dd3fc;
}

.project-scan-table th button.is-secondary [data-scan-sort-marker] {
  border-color: rgba(148, 163, 184, .30);
  background: rgba(15, 23, 42, .88);
  color: #bfdbfe;
}

.project-scan-table tbody tr {
  transition: background .16s ease;
}

.project-scan-table tbody tr:hover {
  background: rgba(56, 189, 248, .06);
}

.project-scan-loading-row:hover {
  background: transparent;
}

.project-scan-loading-row td {
  padding: 30px 14px;
}

.project-scan-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 146px;
  color: #bfdbfe;
  text-align: center;
}

.project-scan-loading strong {
  color: #e0f2fe;
  font-size: 1.02rem;
  font-weight: 950;
}

.project-scan-loading span:last-child {
  color: #93a4bb;
  font-size: 13px;
  font-weight: 800;
}

.project-scan-spinner {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(148, 163, 184, .32);
  border-top-color: #38bdf8;
  border-right-color: #22c55e;
  border-radius: 999px;
  background: transparent;
  animation: projectScanSpinner .82s linear infinite;
}

.project-scan-project {
  display: grid;
  gap: 4px;
}

.project-scan-project strong,
.project-scan-score strong {
  color: #f8fafc;
  font-weight: 950;
}

.project-scan-project span,
.project-scan-muted {
  color: #93a4bb;
  font-size: 13px;
  font-weight: 800;
}

.project-scan-timeframes {
  display: block;
  width: max-content;
  max-width: 140px;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 999px;
  background: rgba(8, 47, 73, .22);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.project-scan-cell-label {
  display: block;
  margin-top: 5px;
  max-width: 160px;
  color: #93a4bb;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.project-scan-positive {
  color: #4ade80;
  font-weight: 950;
}

.project-scan-negative {
  color: #fb7185;
  font-weight: 950;
}

.project-scan-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .74);
  font-size: 13px;
  font-weight: 950;
}

.project-scan-pill.strong,
.project-scan-pill.positive {
  border-color: rgba(34, 197, 94, .38);
  color: #86efac;
  background: rgba(22, 101, 52, .16);
}

.project-scan-pill.neutral {
  border-color: rgba(245, 158, 11, .38);
  color: #fde68a;
  background: rgba(120, 53, 15, .18);
}

.project-scan-pill.negative,
.project-scan-pill.danger {
  border-color: rgba(239, 68, 68, .40);
  color: #fca5a5;
  background: rgba(127, 29, 29, .20);
}

.project-scan-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.project-scan-row-actions a,
.project-scan-row-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 8px;
  background: rgba(11, 39, 66, .72);
  color: #dff6ff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.project-scan-detail[hidden] {
  display: none;
}

.project-scan-detail {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.project-scan-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, .66);
  backdrop-filter: blur(8px);
}

.project-scan-detail-card {
  position: relative;
  width: min(760px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 8px;
  background: #081323;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .48);
}

.project-scan-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(15, 23, 42, .76);
  color: #e2e8f0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.project-scan-detail-card h2 {
  margin: 0 52px 6px 0;
  font-size: 2rem;
  line-height: 1.1;
}

.project-scan-detail-card p {
  color: #b6c7dc;
}

.project-scan-detail-timeframes {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 8px;
  background: rgba(8, 47, 73, .22);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 900;
}

.project-scan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.project-scan-detail-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(2, 6, 23, .54);
  color: #93a4bb;
  font-weight: 850;
}

.project-scan-detail-grid b {
  color: #f8fafc;
  font-size: 1.08rem;
}

.project-scan-timeframe-breakdown {
  margin: 16px 0;
}

.project-scan-timeframe-breakdown h3 {
  margin-bottom: 10px;
}

.project-scan-timeframe-breakdown > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.project-scan-timeframe-breakdown article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 8px;
  background: rgba(8, 47, 73, .16);
}

.project-scan-timeframe-breakdown strong {
  color: #e0f2fe;
  font-size: 1rem;
  font-weight: 950;
}

.project-scan-timeframe-breakdown span,
.project-scan-timeframe-breakdown small {
  color: #b6c7dc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.project-scan-signal-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.project-scan-signal-list li {
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 8px;
  background: rgba(8, 47, 73, .18);
  color: #dbeafe;
  font-weight: 850;
}

@media (max-width: 1760px) {
  .project-scan-toolbar {
    grid-template-columns: minmax(260px, 1fr) minmax(120px, auto);
  }

  .project-scan-advanced-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-scan-toolbar > button {
    width: 100%;
  }

  .project-scan-watchlist-controls {
    grid-template-columns: 1fr;
  }

  .project-scan-watchlist-controls label {
    grid-column: auto;
  }

  .project-scan-watchlist-controls button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .project-scan-shell {
    width: min(100% - 28px, 1180px);
  }

  .project-scan-header {
    grid-template-columns: 1fr 1fr;
  }

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

  .project-scan-advanced-grid {
    grid-template-columns: 1fr;
  }

  .project-scan-workspace {
    grid-template-columns: 1fr;
  }

  .project-scan-watchlist-panel {
    position: static;
    max-height: none;
  }

  .project-scan-watchlist-controls,
  .project-scan-watchlist-body {
    grid-template-columns: 1fr;
  }

  .project-scan-terminal-link,
  .project-scan-toolbar button,
  .project-scan-watchlist-controls button {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .project-scan-shell {
    width: min(100% - 24px, 1180px);
  }

  .project-scan-page {
    padding-top: 18px;
  }

  .project-scan-header,
  .project-scan-toolbar,
  .project-scan-summary,
  .project-scan-detail-grid,
  .project-scan-advanced-grid {
    grid-template-columns: 1fr;
  }

  .project-scan-header {
    padding: 18px;
  }

  .project-scan-detail {
    padding: 12px;
  }

  .project-scan-detail-card {
    width: calc(100vw - 24px);
    padding: 18px;
  }
}

@keyframes projectScanSpinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes projectScanButtonSweep {
  to {
    transform: translateX(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-scan-button-spinner,
  .project-scan-page-spinner,
  .project-scan-status.is-loading::before,
  .project-scan-table-card.has-visible-results::before,
  .project-scan-spinner {
    animation: projectScanSpinner 1.4s linear infinite;
  }

  .project-scan-toolbar button[data-scan-refresh].is-loading::after,
  .project-scan-toolbar button[data-scan-refresh][aria-busy="true"]::after {
    animation: none;
  }
}
