.muted {
  color: var(--muted);
}
.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8125rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.67rem 1rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--navy);
  color: white;
  white-space: nowrap;
  min-height: 42px;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn.secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
}
.btn.ghost {
  color: var(--muted);
  background: transparent;
}
.btn.danger {
  background: #fff0ee;
  color: var(--danger);
  border: 1px solid #eec6c2;
}
.btn.teal {
  background: var(--accent);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #32bddd;
  color: var(--navy);
  width: 37px;
  height: 37px;
  border-radius: 9px;
  font-size: 1.65rem;
  font-weight: 800;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.03rem;
}
.brand-name small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.17rem;
  font-weight: 650;
  margin-bottom: 2px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.field > span,
.field > label {
  font-size: 0.875rem;
  font-weight: 700;
}
.field small {
  color: var(--muted);
}
.error {
  color: #922929;
  background: #fff0ef;
  border: 1px solid #f0c9c5;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1rem 0;
}
.hidden {
  display: none !important;
}
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.page-title p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #efd7aa;
  background: #fff8eb;
  border-radius: 7px;
  color: #795514;
  margin-bottom: 1.4rem;
  font-size: 0.875rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.65rem;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 1.15rem 1.3rem;
}
.metric-label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.06rem;
  font-weight: 800;
  margin: 0.55rem 0 0.15rem;
}
.metric small {
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.panel-head small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}
.panel-body {
  padding: 1.4rem;
}
.host-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.host-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid #526c85;
  border-radius: 9px;
  padding: 1.3rem;
}
.host-card.praeto_hosted {
  border-top-color: #2355cc;
}
.host-card.msp_hosted {
  border-top-color: #32bddd;
}
.host-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.host-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f6fc;
  color: #49617d;
}
.praeto_hosted .host-icon {
  background: #edf5ff;
  color: #2355cc;
}
.msp_hosted .host-icon {
  background: #f0faff;
  color: #194ba8;
}
.host-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.6rem 0 1.1rem;
  min-height: 2.7rem;
}
.host-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  border-top: 1px solid #e7edf6;
  padding-top: 0.9rem;
}
.host-card-footer strong {
  font-weight: 750;
}
.link-button {
  background: none;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem;
}
.table-wrap {
  overflow: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e7edf6;
  color: #546674;
}
.badge.online,
.badge.succeeded {
  background: #e4f5ee;
  color: #217453;
}
.badge.pending,
.badge.queued {
  background: #fff2db;
  color: #8f640e;
}
.badge.running {
  background: #e8f1fd;
  color: #3768a0;
}
.badge.failed,
.badge.interrupted,
.badge.revoked {
  background: #fdebec;
  color: #ac434a;
}
.badge.expired,
.badge.offline,
.badge.cancelled {
  background: #eff1f4;
  color: #6d7685;
}
.tag {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: var(--muted);
}
.filterbar {
  padding: 1rem 1.4rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.filterbar input {
  max-width: 300px;
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
}
.filterbar select {
  width: auto;
  font-size: 0.875rem;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
}
.empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}
.empty h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.empty p {
  font-size: 0.875rem;
  max-width: 450px;
  margin: auto;
}
.notice {
  padding: 1rem;
  border-left: 3px solid #2355cc;
  background: #edf5ff;
  font-size: 0.875rem;
  line-height: 1.6;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  width: min(620px, calc(100% - 2rem));
  max-height: 90vh;
  color: var(--navy);
  box-shadow: 0 30px 100px #101c3644;
}
dialog::backdrop {
  background: #101c366b;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dialog-head h2 {
  font-size: 1.3rem;
}
.dialog-content {
  padding: 1.5rem;
  overflow-wrap: anywhere;
}
.dialog-content > p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.close {
  width: 32px;
  height: 32px;
  background: #f1f6fc;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.4rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.check input {
  width: 18px;
  height: 18px;
}
.secret {
  white-space: pre-wrap;
  word-break: break-all;
  background: #f1f6fc;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-family: ui-monospace, monospace;
  margin: 1rem 0;
  max-height: 250px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: min(440px, calc(100vw - 3rem));
  padding: 1rem 1.3rem;
  background: var(--navy);
  color: white;
  border-radius: 9px;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  z-index: 10;
  display: none;
}
#toast.visible {
  display: block;
}
.spin {
  animation: pulse 1s infinite;
}
.table-title {
  background: none;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
}
.table-title:hover {
  color: var(--accent);
}
.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
}
.loading {
  padding: 4rem;
  text-align: center;
  color: var(--muted);
}

.col-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 100px;
}
.col-compact {
  width: 1%;
  white-space: nowrap;
}
.col-id {
  overflow-wrap: anywhere;
  font-family: monospace;
}
.col-actions {
  min-width: 112px;
}
.managed-outcomes-table td,
.managed-outcomes-table th {
  white-space: normal;
}
.outcome-actions summary {
  cursor: pointer;
  padding: 8px;
  font-weight: 600;
}
.outcome-actions > div {
  display: grid;
  gap: 6px;
  padding: 6px;
}
.outcome-summary {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr;
  gap: 12px;
  padding: 20px;
}
.outcome-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .hide-narrow,
  .managed-outcomes-table th:nth-child(7) {
    display: none;
  }
}
