:root {
  --bg: #0b1118;
  --card: #121b26;
  --ink: #e6edf5;
  --muted: #9cb0c4;
  --accent: #2b8ae0;
  --accent-2: #1f6fb7;
  --ok: #47c982;
  --err: #ff6b6b;
  --border: #233142;
  --surface: #0f1722;
  --code: #0f1722;
  --mark: #FFF500;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #132033;
  --muted: #5e6c80;
  --accent: #1769aa;
  --accent-2: #0f4f81;
  --ok: #0a7a44;
  --err: #a12727;
  --border: #d7e0ea;
  --surface: #ffffff;
  --code: #edf3fa;
  --mark: var(--accent);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at top, #111b28, var(--bg) 45%);
  color: var(--ink);
  /* overflow-wrap: break-word */
}
:root[data-theme="light"] body {
  background: radial-gradient(circle at top, #e8f1fb, var(--bg) 45%);
}
.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 11px;
}
.brand img {
  display: block;
  height: 60px;
  width: auto;
}
nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.theme-toggle {
  margin-left: 0;
  margin-right: .7rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .7rem;
  cursor: pointer;
}
.hero {
  padding: 2rem;
  background: linear-gradient(140deg, #162536, #121b26);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
:root[data-theme="light"] .hero {
  background: linear-gradient(140deg, #dbecff, #ffffff);
}
:root[data-theme="light"] .brand {
  background-color: var(--accent);
  border-radius: 16px;
}
:root[data-theme="light"] .link {
  color: rgb(43, 43, 43)
}
.actions { display: flex; gap: .75rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #f2f7ff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: .6rem .9rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.grid-2 {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}
.alert {
  margin-top: 1rem;
  border-radius: 8px;
  padding: .7rem 1rem;
}
.alert-success {
  background: #0f2f20;
  border: 1px solid #1f6143;
  color: #b8f2d1;
}
:root[data-theme="light"] .alert-success {
  background: #e9f9ef;
  border: 1px solid #bde8cc;
  color: #0a7a44;
}
.alert-error {
  background: #34171b;
  border: 1px solid #6c2b33;
  color: #ffc7cd;
}
:root[data-theme="light"] .alert-error {
  background: #fdecec;
  border: 1px solid #f3c2c2;
  color: #a12727;
}
label {
  display: block;
  margin-top: .8rem;
  margin-bottom: .3rem;
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select {
  width: 100%;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
input::placeholder { color: var(--muted); }
button { margin-top: .8rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: .65rem;
}
.muted { color: var(--muted); }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form button { margin-top: 0; }
.copy-field { display: flex; gap: .5rem; align-items: center; }
.copy-field input { margin: 0; }
.copy-field .btn { margin-top: 0; white-space: nowrap; }
.dashboard-search-empty { margin-top: .5rem; }
code {
  background: var(--code);
  padding: .1rem .3rem;
  border-radius: 5px;
}

@media (max-width: 700px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: .5rem; }
  nav a { margin-left: 0; margin-right: .8rem; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .copy-field { flex-direction: column; align-items: stretch; }
  .theme-toggle { margin-right: .4rem; }
}

@media (max-width: 450px) {
  th, td {
  max-width: 100px;
}
}
.center{
  text-align: center;
}
.mark{
  color: var(--mark);
}
.h-max-w{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.white{
  color: white;
}
.link{
  color: white;
}
a.link{
  color: white;
}
.details{
  margin-bottom: 22px;
}
summary{
  cursor: pointer;
  font-size: 18px;
}
.vertical-align{
  vertical-align: bottom;
}
