.tab-strip {
  display: grid;
  min-height: 50px;
  padding: 0 16px;
  grid-template-columns: repeat(3, 1fr);
  background: #0c0d0e;
  border-bottom: 1px solid var(--border);
}

.tab-strip button {
  position: relative;
  min-height: 48px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
}

.tab-strip button.active {
  color: var(--text);
  font-weight: 650;
}

.tab-strip button.active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  content: "";
  background: var(--gold);
}

.tab-strip button span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  place-items: center;
  color: #161207;
  background: var(--gold-strong);
  border-radius: 10px;
  font-size: 10px;
}

.signal-filters {
  padding-top: 12px;
}

.signal-summary {
  display: flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: #10130f;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}

.signal-summary strong {
  color: var(--text-soft);
}

.signal-summary button {
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  color: var(--gold-strong);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.signal-feed,
.rule-list,
.simulation-list {
  display: grid;
}

.signal-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.signal-meta {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.signal-confidence {
  margin-left: auto;
}

.signal-confidence strong {
  color: var(--gold-strong);
}

.signal-main {
  display: grid;
  width: 100%;
  min-height: 64px;
  padding: 8px 0;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
}

.signal-type {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--gold-strong);
  background: #1a170f;
  border: 1px solid var(--gold-dark);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.signal-match {
  min-width: 0;
}

.signal-match strong,
.signal-match small {
  display: block;
}

.signal-match strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-match .team-display {
  max-width: 38%;
  vertical-align: middle;
}

.signal-match .team-display > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-match small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.signal-actions {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
}

.compact-action {
  min-height: 44px;
  padding: 0 10px;
  font-size: 11px;
}

.signal-add-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--gold-strong);
  background: #17150f;
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
}

.signal-add-action:disabled {
  color: #77766f;
  background: var(--surface);
  border-color: var(--border);
  cursor: not-allowed;
}

.workflow-metrics {
  display: grid;
  margin: 14px 16px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.workflow-metrics div {
  padding: 11px;
  border-right: 1px solid var(--border);
}

.workflow-metrics div:last-child {
  border-right: 0;
}

.workflow-metrics span,
.workflow-metrics strong {
  display: block;
}

.workflow-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.workflow-metrics strong {
  margin-top: 4px;
  font-size: 18px;
}

.inline-alert {
  display: grid;
  min-height: 58px;
  margin: 0 16px 12px;
  padding: 8px 10px;
  grid-template-columns: 24px 1fr 48px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}

.warning-alert {
  color: #f0d58c;
  background: #241e10;
  border: 1px solid #5e4e25;
}

.inline-alert strong,
.inline-alert small {
  display: block;
}

.inline-alert strong {
  font-size: 11px;
}

.inline-alert small {
  margin-top: 3px;
  color: var(--muted-strong);
  font-size: 9px;
}

.inline-alert button {
  min-height: 44px;
  color: var(--gold-strong);
  background: transparent;
  border: 0;
  font-size: 11px;
}

.rule-toolbar {
  display: grid;
  margin: 0 16px 8px;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.search-field {
  display: flex;
  min-height: 44px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.search-field input {
  min-width: 0;
  flex: 1;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.bordered-icon {
  background: var(--surface);
  border: 1px solid var(--border);
}

.rule-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-title {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  flex: 1;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
}

.rule-title strong,
.rule-title small {
  display: block;
}

.rule-title strong {
  font-size: 13px;
}

.rule-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.switch-control {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

.switch-control span:last-child {
  position: relative;
  width: 38px;
  height: 22px;
  background: #333431;
  border: 1px solid #4a4a45;
  border-radius: 12px;
}

.switch-control span:last-child::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: "";
  background: #8e8e89;
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease;
}

.switch-control input:checked + span {
  background: #3c341c;
  border-color: var(--gold-dark);
}

.switch-control input:checked + span::after {
  background: var(--gold-strong);
  transform: translateX(16px);
}

.rule-meta {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 2px 0 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 9px;
}

.rule-meta svg {
  width: 15px;
  margin-left: auto;
}

.rule-ok {
  color: var(--green);
}

.rule-warning {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--warning);
}

.header-action {
  min-width: 52px;
}
