.dot.green {
  width: 9px;
  height: 9px;
  background: #27b36a;
}

.dot.red {
  width: 9px;
  height: 9px;
  background: #ef4444;
}

.dot.orange {
  width: 9px;
  height: 9px;
  background: #f59e0b;
}

.token-status-pill {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  flex: 0 0 190px;
  padding-left: 12px;
  padding-right: 12px;
}

#syncStatusBtn {
  max-width: 430px;
}

.token-status-pill.status-valid {
  color: #138a51;
  background: #effcf5;
  border-color: #a8e3c4;
}

.token-status-pill.status-failed {
  color: #c9343d;
  background: #fff4f4;
  border-color: #f1b5b9;
}

.token-status-pill.status-checking {
  color: #086de8;
  background: #eef6ff;
  border-color: #b9d7ff;
}

.token-connection-panel {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  padding: 7px;
  font-size: 11px;
}

.token-panel-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.token-panel-metric {
  min-width: 0;
  padding: 5px 3px;
  border: 1px solid #dce7f4;
  border-radius: 9px;
  background: #f8fbff;
  text-align: center;
}

.token-panel-metric b,
.token-panel-metric span {
  display: block;
}

.token-panel-metric b {
  margin-bottom: 2px;
  font-size: 14px;
}

.token-panel-metric span {
  color: #72839a;
  font-size: 9px;
}

.token-panel-section-title {
  margin: 7px 2px 4px;
  color: #243b5a;
  font-size: 11px;
}

.token-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 5px 3px;
  border-top: 1px solid #e8eef5;
}

.token-account-row > span:first-child {
  min-width: 0;
}

.token-account-row b,
.token-account-row small {
  display: block;
  overflow-wrap: anywhere;
}

.token-account-row small {
  margin-top: 2px;
  color: #7a8ba1;
}

.token-account-state {
  text-align: left;
  font-weight: 700;
}

.token-panel-actions,
.token-panel-decision {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e8eef5;
}

.token-panel-actions .mini-btn,
.token-panel-decision .mini-btn {
  width: 100%;
  margin: 0;
}

.token-panel-decision {
  display: grid;
  grid-template-columns: 1fr;
}

.token-panel-decision > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-connection-panel .notification,
.token-connection-panel .token-panel-error {
  overflow-wrap: anywhere;
}

.token-panel-decision {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.token-panel-decision > span {
  flex: 1 1 100%;
  color: #314861;
  font-weight: 700;
}

.token-panel-error {
  margin: 7px 0;
  padding: 8px;
  border: 1px solid #f1b5b9;
  border-radius: 9px;
  color: #c9343d;
  background: #fff5f5;
  white-space: pre-wrap;
}

.status-bad {
  color: #dc3545;
  font-weight: 700;
}

.status-checking {
  color: #1677ff;
  font-weight: 700;
}

.token-notification {
  margin-bottom: 8px;
  border: 1px solid #dce7f4;
  border-radius: 10px;
  background: #f8fbff;
}

.token-notification.success b {
  color: #15965a;
}

.token-notification.failed b {
  color: #d9363e;
}

.token-notification.checking b {
  color: #1677ff;
}

.token-notification .token-recheck {
  margin-top: 6px;
}

.token-check-summary {
  color: #314861;
}

.token-check-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 16px;
}

.token-check-count strong {
  font-size: 32px;
  color: #1677ff;
}

.token-check-count span {
  font-size: 15px;
  font-weight: 700;
}

.token-check-grid {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid #dce7f4;
  border-radius: 10px;
  background: #f8fbff;
}

.token-check-grid span {
  text-align: right;
}

.token-check-grid b {
  text-align: left;
}

.token-check-summary > p {
  margin: 16px 2px 2px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.modal-card[data-popup="token_check_decision"] {
  width: min(620px, 90vw) !important;
}


.oauth-health-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dce7f4;
  border-radius: 9px;
  background: #f8fbff;
}

.oauth-health-label {
  min-width: 0;
  color: #65778f;
  font-size: 12px;
}

.oauth-health-grid b {
  text-align: right;
  overflow-wrap: anywhere;
}

.oauth-health-time {
  color: #314861;
  font-size: 12px;
  font-weight: 600;
}

.oauth-health-empty {
  padding: 9px 10px;
  border: 1px solid #dce7f4;
  border-radius: 9px;
  background: #f8fbff;
}

.oauth-health-reason {
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid #f1b5b9;
  border-radius: 8px;
  color: #c9343d;
  background: #fff5f5;
  font-size: 11px;
  overflow-wrap: anywhere;
}
