:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f3f5f7;
  color: #17212b;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #182433;
  color: white;
}
header div { display: flex; gap: 14px; align-items: baseline; }
header span { color: #b8c4d0; font-size: 13px; }
button {
  border: 1px solid #b9c3cc;
  background: white;
  color: #17212b;
  min-height: 34px;
  padding: 0 14px;
  cursor: pointer;
}
header button { background: #2d995b; border-color: #2d995b; color: white; }
nav {
  display: flex;
  gap: 2px;
  padding: 10px 24px 0;
  background: white;
  border-bottom: 1px solid #d8dee4;
}
nav button { border: 0; border-bottom: 3px solid transparent; }
nav button.active { border-bottom-color: #2574a9; color: #175b87; }
main { padding: 20px 24px 40px; }
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  background: white;
  border: 1px solid #d8dee4;
  padding: 16px;
}
.metric b { display: block; font-size: 26px; margin-top: 4px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.actions { display: flex; gap: 8px; }
h1 { font-size: 20px; margin: 0 0 12px; }
.content {
  background: white;
  border: 1px solid #d8dee4;
  min-height: 260px;
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e9ed; }
th { background: #eef2f5; font-size: 12px; text-transform: uppercase; }
.table-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e9ed;
}
.table-toolbar button:disabled { opacity: .55; cursor: not-allowed; }
#forward-delete-status { color: #b42318; font-weight: 600; }
.ok { color: #167845; font-weight: 600; }
.warn { color: #9a6800; font-weight: 600; }
.error { color: #b42318; font-weight: 600; }
dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid #9eabb7;
  padding: 0;
}
dialog::backdrop { background: rgba(13, 25, 38, .45); }
dialog form { padding: 20px; }
dialog h2 { margin: 0 0 16px; font-size: 20px; }
.field { display: grid; grid-template-columns: 170px 1fr; gap: 10px; margin: 10px 0; }
.field input, .field select { min-height: 34px; width: 100%; padding: 5px 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-actions #save { background: #2574a9; color: white; border-color: #2574a9; }
.row-actions { white-space: nowrap; }
.row-actions button { min-height: 28px; padding: 0 8px; margin-right: 6px; }
.hidden-field { display: none; }
.credentials-panel { padding: 20px; }
.credentials-panel h2 { margin: 0 0 8px; }
.credentials-panel .warning { color: #9a6800; font-weight: 600; }
.credential {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}
.credential input, .credential textarea {
  width: 100%;
  padding: 8px;
  font-family: Consolas, monospace;
  resize: vertical;
}
.copy-status { min-height: 20px; color: #167845; font-weight: 600; }
.download-panel { padding: 18px; }
.download-card {
  max-width: 900px;
  border: 1px solid #d8dee4;
  background: #fff;
  padding: 18px;
}
.download-card h2 { margin-top: 0; }
.download-button {
  display: inline-block;
  background: #2d995b;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 3px;
  font-weight: 600;
}
.download-button:hover { background: #237a49; }
.install-steps { line-height: 1.7; padding-left: 24px; }
.code-inline {
  font-family: Consolas, monospace;
  background: #eef2f5;
  padding: 2px 5px;
  border: 1px solid #d8dee4;
}
.note {
  background: #fff7df;
  border: 1px solid #f2d98c;
  padding: 10px;
}
@media (max-width: 760px) {
  header span { display: none; }
  main { padding: 14px; }
  nav { padding-left: 14px; overflow-x: auto; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .field { grid-template-columns: 1fr; }
  .credential { grid-template-columns: 1fr; }
}
