:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172033;
  background: #f4f6f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.centered {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #f58220;
  border-bottom: 0;
  color: #ffffff;
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-title strong {
  font-size: 1.2em;
}
.topbar span {
  margin-left: 12px;
  color: #fff4e6;
}
.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 8px;
  border-radius: 50px;
  background: #f58220;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.home-icon img {
  height: 24px;
  width: auto;
  display: block;
}
.layout {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #dde3ea;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}
.login-card {
  width: min(420px, 100%);
}
h1 {
  margin: 0 0 18px;
  font-size: 22px;
}
.title-client-id {
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}
label {
  font-weight: 600;
  font-size: 14px;
}
input {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  font: inherit;
}
textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  font: inherit;
}
.textarea-compact {
  min-height: 3.2em;
}
select {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  font: inherit;
  background: white;
}
button {
  border: 0;
  background: #ffb84d;
  color: white;
  height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}
button:hover {
  background: #ff9500;
}
button:active {
  background: #cc6600;
  transform: scale(0.98);
}
button.secondary {
  background: #ffb84d;
  color: #172033;
}
button.secondary:hover {
  background: #ff9500;
}
button.secondary:active {
  background: #cc6600;
}
button.danger {
  background: #ff9999;
}
button.danger:hover {
  background: #ff3333;
}
button.danger:active {
  background: #cc0000;
}
a {
  color: #172033;
  text-decoration: none;
}
a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffb84d;
  color: #172033;
  height: 40px;
  padding: 0 14px;
  border-radius: 50px;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}
a.secondary:hover {
  background: #ff9500;
}
a.secondary:active {
  background: #cc6600;
  transform: scale(0.98);
}
.grid-form {
  display: grid;
  grid-template-columns: 160px minmax(240px, 1fr);
  gap: 12px 16px;
  align-items: center;
  max-width: 680px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
}
.right {
  text-align: right;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
code {
  background: #f1f4f8;
  padding: 2px 5px;
  border-radius: 5px;
}
.alert {
  padding: 12px 14px;
  border-radius: 10px;
}
.alert.error {
  background: #fff0f0;
  color: #9f1d17;
  border: 1px solid #ffd1d1;
}
.alert.success {
  background: #effaf3;
  color: #146c2e;
  border: 1px solid #c8efd3;
}
.muted {
  color: #687386;
}
#messages {
  background: #0f1726;
  color: #e7efff;
  border-radius: 10px;
  padding: 14px;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
}
.inline-controls {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
.client-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.client-cell code {
  white-space: nowrap;
  padding: 5px;
}
.inline-controls input {
  flex: 1;
}
.icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.copy-client-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50px;
}
.acl-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd4df;
  background: #f1f4f8;
  color: #172033;
  font-weight: 700;
  font-size: 13px;
  cursor: help;
}
@media (max-width: 720px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
  .right {
    text-align: left;
  }
}
