:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #182230;
  --muted: #667085;
  --line: #d6deea;
  --accent: #176b87;
  --accent-strong: #0f4d63;
  --success-bg: #e8f6ef;
  --success-text: #146c43;
  --error-bg: #fff1f0;
  --error-text: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 34, 48, 0.08);
}

.login-panel {
  width: min(420px, 100%);
  padding: 26px;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.topbar p,
.panel h2,
.login-panel h1 {
  margin: 0;
}

.topbar h1,
.login-panel h1 {
  font-size: 22px;
}

.topbar p {
  margin-top: 4px;
  color: var(--muted);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  padding: 24px;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 10px;
}

label {
  color: #344054;
  font-weight: 700;
  font-size: 13px;
}

input,
select,
button {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 9px 10px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(23, 107, 135, 0.18);
  border-color: var(--accent);
}

button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  min-height: 34px;
  width: auto;
  padding: 0 10px;
  background: #eef6f8;
  color: var(--accent-strong);
  border: 1px solid #b9d7df;
}

button.secondary:hover {
  background: #dff0f4;
}

button.danger {
  min-height: 34px;
  width: auto;
  padding: 0 10px;
  margin: 0;
  background: #fff1f0;
  color: var(--error-text);
  border: 1px solid #f4b8b2;
}

button.danger:hover {
  background: #ffe2df;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkline input {
  width: 18px;
  min-height: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #344054;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.alert {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0 16px;
}

.alert code {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 108, 67, 0.2);
  border-radius: 5px;
  padding: 2px 5px;
}

.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.status.ok {
  background: var(--success-bg);
  color: var(--success-text);
}

.status.failed {
  background: var(--error-bg);
  color: var(--error-text);
}

.actions-cell {
  min-width: 700px;
}

.client-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.action-chip button {
  margin: 0;
}

.small-input,
.domain-input {
  min-height: 34px;
  padding: 6px 8px;
}

.small-input {
  width: 112px;
}

.domain-input {
  width: 205px;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mini-check input {
  width: 15px;
  min-height: 15px;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    align-items: flex-start;
    padding: 18px;
    flex-direction: column;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .actions-cell {
    min-width: 420px;
  }
}
