[x-cloak] {
  display: none !important;
}

.admin-card {
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.panel-title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: rgb(15 23 42);
  margin-bottom: 0.5rem;
}

.panel-subtitle {
  font-size: 0.95rem;
  line-height: 1.4rem;
  font-weight: 600;
  color: rgb(30 41 59);
  margin-bottom: 0.5rem;
}

.panel-mini-title {
  font-size: 0.8rem;
  line-height: 1.2rem;
  font-weight: 600;
  color: rgb(71 85 105);
  margin-bottom: 0.35rem;
}

.panel-block {
  border: 1px solid rgb(226 232 240);
  border-radius: 0.65rem;
  background: rgb(248 250 252);
  padding: 0.8rem;
}

.status-pill {
  display: inline-flex;
  border: 1px solid;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-ok {
  border-color: rgb(167 243 208);
  color: rgb(6 95 70);
  background: rgb(236 253 245);
}

.status-warn {
  border-color: rgb(254 215 170);
  color: rgb(154 52 18);
  background: rgb(255 247 237);
}

.status-down {
  border-color: rgb(254 202 202);
  color: rgb(153 27 27);
  background: rgb(254 242 242);
}

.input-label {
  display: block;
  margin-bottom: 0.25rem;
  color: rgb(71 85 105);
}

.input {
  width: 100%;
  border: 1px solid rgb(203 213 225);
  border-radius: 0.5rem;
  background: white;
  padding: 0.5rem 0.7rem;
  outline: none;
}

.input:focus {
  border-color: rgb(2 132 199);
  box-shadow: 0 0 0 2px rgb(2 132 199 / 0.15);
}

.inline-input {
  width: 6rem;
  display: inline-block;
  margin-left: 0.35rem;
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.8rem;
}

.tab-btn {
  border: 1px solid rgb(226 232 240);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 500;
}

.link-chip {
  border: 1px solid rgb(203 213 225);
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  background: rgb(248 250 252);
  color: rgb(30 41 59);
}

.link-chip:hover {
  background: rgb(241 245 249);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-primary {
  background: rgb(2 132 199);
  color: white;
}

.btn-primary:hover {
  background: rgb(3 105 161);
}

.btn-neutral {
  background: rgb(51 65 85);
  color: white;
}

.btn-neutral:hover {
  background: rgb(30 41 59);
}

.btn-ghost {
  background: white;
  color: rgb(51 65 85);
  border-color: rgb(203 213 225);
}

.btn-ghost:hover {
  background: rgb(248 250 252);
}

.btn-danger {
  background: white;
  color: rgb(185 28 28);
  border-color: rgb(254 202 202);
}

.btn-danger:hover {
  background: rgb(254 242 242);
}

.json-box {
  max-height: 22rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 0.55rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.7rem;
  font-size: 0.75rem;
  line-height: 1.1rem;
  color: rgb(30 41 59);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.55rem;
  background: white;
  max-width: 100%;
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgb(226 232 240);
  text-align: left;
  vertical-align: top;
  padding: 0.4rem 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.data-table th {
  background: rgb(248 250 252);
  font-weight: 600;
  color: rgb(30 41 59);
  position: sticky;
  top: 0;
}
