body {
  background: radial-gradient(circle at 20% 10%, #0f4c5c, #0b132b 55%);
  color: #f4f7fb;
  min-height: 100vh;
}

* {
  border-radius: 0 !important;
}

.page-wrap {
  padding: 1.5rem 1rem 2rem;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.subtitle {
  color: #c8d6df;
}

.panel.callout {
  border-radius: 12px;
  border: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.panel.callout.primary {
  background: linear-gradient(150deg, #1f4037, #1f2a44);
}

.panel.callout.secondary {
  background: linear-gradient(160deg, #1d3557, #172a3a);
}

label,
.muted,
p,
li,
h1,
h2,
h3,
h4,
h5 {
  color: #f4f7fb;
}

input[type="text"],
input[type="password"] {
  border-radius: 8px;
}

.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.context-form {
  margin-bottom: 1rem;
}

.context-list li {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.4rem;
}

.ctx-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ctx-main {
  min-width: 0;
}

.ctx-name {
  font-weight: 700;
}

.ctx-server {
  font-size: 0.85rem;
  color: #d7e2ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctx-delete-btn {
  margin: 0;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.2rem;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  background: #b71c1c;
  border: 1px solid #8e1515;
  cursor: pointer;
}

.ctx-delete-btn:hover,
.ctx-delete-btn:focus {
  background: #d32f2f;
}

.ctx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 12, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ctx-modal {
  width: min(420px, 95vw);
  background: #f9fbff;
  border: 1px solid #b8c9d8;
  padding: 1rem;
  color: #102132;
}

.ctx-modal h6,
.ctx-modal p {
  color: #102132;
}

.ctx-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.refresh-line {
  margin-bottom: 0.75rem;
  color: #d6e1ea;
  font-size: 0.95rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f7fbff;
  color: #0f1724;
}

.grid-margin-x.small-up-1.medium-up-2.large-up-3 > .cell {
  margin-bottom: 1rem;
}

.app-card .card-section {
  flex: 1 1 auto;
}

.app-card .card-section p {
  margin-bottom: 0.4rem;
  color: #0f1724;
}

.app-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #2b3a67;
  color: #fff;
}

.app-card .card-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.app-card .card-header strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card.healthy .card-header {
  background: #2e7d32;
}

.app-card.degraded .card-header {
  background: #c62828;
}

.app-card.progressing .card-header {
  background: #ef6c00;
}

.context-chip {
  font-size: 0.75rem;
  opacity: 0.9;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  flex: 0 0 auto;
}

.label-group .label {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.labels-toggle {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.labels-wrap {
  margin-top: 0.25rem;
}

.actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: #eaf1f8;
  border-top: 1px solid #d2deea;
}

.action-btn {
  margin: 0;
  min-width: 108px;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.action-btn:hover,
.action-btn:focus {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.26), 0 2px 8px rgba(19, 30, 45, 0.2);
}

.action-open {
  background: #0d3b66;
  border-color: #0b3358;
  color: #f5fbff;
}

.action-small {
  background: #5e60ce;
  border-color: #4e50ad;
  color: #f6f2ff;
}

.action-full {
  background: #b85c00;
  border-color: #974b00;
  color: #fff6ea;
}

.filter-grid .cell {
  margin-bottom: 0.2rem;
}

.button.light {
  border-color: #d7e7f5;
  color: #e9f4ff;
  background: transparent;
}

.button.light:hover,
.button.light:focus {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
