.target-panel {
  overflow: visible;
}

.target-mode-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.target-mode-switch__button {
  min-height: 2.6rem;
  padding: 0.6rem 1.15rem 0.55rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.target-mode-switch__button:hover,
.target-mode-switch__button:focus-visible {
  background: rgba(219, 234, 254, 0.42);
  color: var(--accent);
}

.target-mode-switch__button.is-active {
  border-bottom-color: var(--accent);
  background: rgba(219, 234, 254, 0.26);
  color: var(--accent);
}

.target-mode-panel[hidden] {
  display: none;
}
.target-auto-notice {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 38px 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 10px;
  background: rgba(219, 234, 254, 0.42);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.55;
}
.target-auto-notice[hidden] {
  display: none;
}
.target-auto-notice p {
  margin: 0;
}
.target-auto-notice a {
  color: var(--accent);
  font-weight: 700;
}
.target-auto-notice__close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
}
.target-auto-notice__close:hover,
.target-auto-notice__close:focus-visible {
  background: rgba(148, 163, 184, 0.18);
  color: var(--ink);
}

.target-manual-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.target-manual-table--empty {
  display: none;
}

.target-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(104px, 1fr));
  align-items: end;
  gap: 14px;
}

.target-toolbar > .search,
.target-toolbar > .multi-filter,
.target-toolbar > .advanced-filter {
  width: 100%;
  min-width: 0;
}

.target-toolbar .multi-filter__options,
.target-toolbar .advanced-filter__body {
  max-width: 100%;
}

.target-status-filter .multi-filter__options {
  width: min(240px, calc(100vw - 48px));
  max-width: min(240px, calc(100vw - 48px));
  max-height: none;
  overflow: visible;
}

.target-table {
  min-width: 920px;
}

.target-table col.col-memo {
  width: 4%;
}

.target-table col.col-orig {
  width: 4%;
}

.target-table col.col-title {
  width: 23%;
}

.target-table col.col-pred {
  width: 6%;
}

.target-table col.target-col-adjusted-pred {
  width: 9%;
}

.target-table col.target-col-status {
  width: 12%;
}

.target-table col.col-bpm {
  width: 6%;
}

.target-table col.col-features {
  width: 34%;
}

.target-table .target-adjusted-pred {
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
}

.target-adjusted-pred__difference {
  color: #475569;
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}

.target-table thead th {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.target-table thead th:first-child {
  text-align: center;
}

.target-table thead th:nth-child(2) {
  text-align: center;
}

.target-table thead th:nth-child(2) button {
  justify-content: center;
}

.target-table tbody td:nth-child(2),
.target-table tbody td:nth-child(4),
.target-table tbody td:nth-child(5) {
  text-align: center;
}

.target-table tbody td:nth-child(3) {
  text-align: center;
}

.target-table tbody td:nth-child(2) {
  white-space: nowrap;
}

.target-table tbody td.chart-title-cell {
  overflow: visible;
  white-space: normal;
}

.target-table tbody td.chart-title-cell .chart-link {
  display: inline-block;
  width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.target-status-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 6px 30px 6px 10px;
  border-radius: 10px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 8px) calc(50% - 3px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  font-size: 0.8rem;
  font-weight: 700;
}

.target-status-select[data-status="unregistered"] {
  color: var(--muted);
  background-color: rgba(148, 163, 184, 0.1);
}

.target-status-select[data-status="unowned"] {
  color: #64748b;
  background-color: rgba(148, 163, 184, 0.14);
}

.target-status-select[data-status="no-play"] {
  color: #475569;
  background-color: rgba(203, 213, 225, 0.22);
}

.target-status-select[data-status="failed"] {
  color: #ffffff;
  background-color: #475569;
}

.target-status-select[data-status="assisted"] {
  color: #7c3aed;
  background-color: rgba(167, 139, 250, 0.16);
}

.target-status-select[data-status="easy"] {
  color: #65a30d;
  background-color: rgba(132, 204, 22, 0.18);
}

.target-status-select[data-status="clear"] {
  color: #2563eb;
  background-color: rgba(96, 165, 250, 0.16);
}

.target-status-select[data-status="hard"] {
  color: #dc2626;
  background-color: rgba(248, 113, 113, 0.16);
}

.target-error {
  margin: 10px 0;
  color: #9b1c1c;
  font-size: 0.82rem;
}

.target-insufficient-message {
  margin: 8px 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.target-insufficient-message a {
  color: var(--accent);
  font-weight: 700;
}

.target-missing-data-message {
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.target-missing-data-message[hidden] {
  display: none;
}

@media (min-width: 721px) and (max-width: 1119px) {
  .target-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-toolbar > .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .target-mode-switch {
    margin-bottom: 14px;
  }

  .target-mode-switch__button {
    flex: 1 1 0;
  }

  .target-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .target-toolbar > .feature-filter,
  .target-toolbar > .advanced-filter {
    grid-column: 1 / -1;
  }

  .target-status-select {
    padding: 6px 22px 6px 6px;
    font-size: 0.72rem;
  }
}

.target-highlights {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.target-highlight-section {
  min-width: 0;
}

.target-section-heading {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
}

.target-auto-actions {
  display: flex;
  justify-content: center;
  margin: 10px 0 0;
}

.target-auto-actions .load-more {
  min-height: 36px;
  padding: 8px 14px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
}

.target-auto-actions .load-more:hover,
.target-auto-actions .load-more:focus-visible {
  background: #1d4ed8;
  color: #fff;
}

.target-highlight-section .row-count {
  margin-bottom: 6px;
}

.target-highlight-section .table-shell {
  margin-bottom: 0;
}

.target-main-list {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.target-main-list__heading {
  margin-bottom: 6px;
}

.target-main-list__description {
  margin: 0 0 14px 2px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .target-highlights {
    gap: 20px;
    margin-bottom: 24px;
  }
}

.target-daily-link-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.target-daily-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 12px;
  background: rgba(219, 234, 254, 0.7);
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.target-daily-link:hover,
.target-daily-link:focus-visible {
  background: rgba(191, 219, 254, 0.9);
  color: #1e40af;
}
.target-pred-stack {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.target-pred-stack__item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 0.64rem;
  line-height: 1.1;
}

.target-pred-stack__item > span {
  color: var(--muted);
}

.target-pred-stack__item strong {
  font-size: 0.78rem;
}

.target-pred-stack__item small {
  color: #475569;
  font-size: 0.62rem;
}



.target-goal-select {
  min-width: 0;
  padding-left: 7px;
  padding-right: 24px;
}

.target-goal-empty {
  color: var(--muted);
  font-weight: 700;
}

.target-table col.target-col-goal {
  width: 10%;
}


.target-table tbody td.target-goal-cell {
  text-align: center;
}
.target-table col.col-features {
  width: 26%;
}

.target-table thead th:nth-child(5) {
  text-align: center;
}

.target-table thead .chart-detail__label-group {
  align-items: center;
  gap: 3px;
}

.target-table thead .chart-detail__info-mark {
  top: 0;
  margin-left: 2px;
}

.target-table .target-goal-select:disabled {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  padding-right: 7px;
  cursor: default;
}
