/* Skirbo website palette, verified against skirbo.ru on 2026-09-26. */
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  --bg: #0f1117;
  --card: #1a1d27;
  --card2: #22263a;
  --border: #2a2e3d;
  --text: #e2e8f0;
  --muted: #a2aec1;
  --accent: #6366f1;
  --link: #a5b4fc;
  --accent-soft: #25264b;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3f9;
  --card: #ffffff;
  --card2: #f2f3fa;
  --border: #d2d7e4;
  --text: #202536;
  --muted: #58637a;
  --accent: #4f46e5;
  --link: #4f46e5;
  --accent-soft: #ececfe;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 4%;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
header strong {
  font-size: 21px;
}
a {
  color: var(--link);
}
main {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 20px;
}
h1 {
  font-size: 26px;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.5;
}
.muted,
small {
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
  margin: 10px 0;
}
input,
select,
textarea,
button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
}
textarea {
  min-height: 70px;
}
button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
  min-height: 42px;
}
button.secondary {
  color: var(--link);
  background: var(--accent-soft);
  border-color: var(--border);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}
.partner-choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.partner-choice[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.stat {
  background: var(--card2);
  border-radius: 8px;
  padding: 15px;
}
.stat strong {
  display: block;
  font-size: 23px;
  margin-top: 6px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td small {
  display: block;
  margin-top: 5px;
}
td button {
  font-size: 13px;
  padding: 6px 9px;
  margin: 3px;
  white-space: nowrap;
}
details {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 30px;
}
.notice {
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 18px;
  line-height: 1.5;
}
.notice.error {
  background: #4b252c;
  color: #ffcad1;
}
#message:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}
.login {
  max-width: 440px;
  margin: 70px auto;
}
.allocation {
  padding: 12px;
  background: var(--card2);
  margin: 8px 0;
  border-radius: 8px;
}
code {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
footer {
  color: var(--muted);
  margin: 24px 0;
  font-size: 13px;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    padding: 0 12px;
  }
  header {
    padding: 15px;
    flex-wrap: wrap;
  }
  .card {
    padding: 16px;
  }
}
@media (max-width: 420px) {
  .stat strong {
    font-size: 20px;
  }
  .row > button {
    width: 100%;
  }
}

.layout > * {
  min-width: 0;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
label > input,
label > select,
label > textarea {
  width: 100%;
}

input,
select,
textarea {
  background: var(--bg);
  color: var(--text);
}
button:hover {
  filter: brightness(1.12);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.brand {
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--link);
  text-decoration: none;
}
.brand-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  display: block;
  margin-top: 5px;
}
#theme-toggle {
  font-size: 13px;
}
.hero {
  border-left: 3px solid var(--accent);
}
.stat strong {
  font-variant-numeric: tabular-nums;
}
section[id] {
  scroll-margin-top: 20px;
}
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.card > details:first-child {
  border: 0;
  margin-top: 0;
  padding-top: 0;
}
@media (max-width: 620px) {
  .scroll {
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  td {
    border: 0;
    padding: 5px 0;
    overflow-wrap: anywhere;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
  }
  td:empty {
    display: none;
  }
  .login {
    margin: 28px auto;
  }
}
