:root {
  --bg: #0a0811;
  --p: #171120;
  --line: #4d3a5d;
  --text: #fbf7ff;
  --mut: #afa6bb;
  --pink: #ff45bd;
  --blue: #52e9ff;
  --green: #caff62;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font:
    15px/1.45 Inter,
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 100% 0, #3c1749, transparent 30rem), var(--bg);
}
main {
  width: min(1200px, 100%);
  margin: auto;
  padding: 24px 20px 60px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
header a {
  color: #d2c2df;
  text-decoration: none;
  font-weight: 800;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.035em;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-header-actions a {
  color: #d2c2df;
}
header b {
  font-size: 21px;
  letter-spacing: -0.06em;
}
header b i {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-right: 7px;
  color: #210d28;
  font-size: 9px;
  font-style: normal;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}
header b span,
.local {
  color: #95899f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.notice {
  margin: 25px 0 15px;
  padding: 10px 13px;
  color: #d8c7e5;
  border: 1px dashed #72508a;
  border-radius: 10px;
  font-size: 12px;
}
.notice code {
  color: var(--blue);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #15101e;
}
.stat strong {
  display: block;
  color: var(--pink);
  font-size: 27px;
  line-height: 1;
}
.stat:nth-child(2) strong {
  color: var(--green);
}
.stat small {
  color: var(--mut);
}
.layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 16px;
}
.create,
.library {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #1c1427, #100d18);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.06em;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.05em;
}
.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.switch,
.filters {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.switch button,
.filters button {
  padding: 8px 10px;
  color: #c5b7d1;
  border: 1px solid #4d3b5b;
  border-radius: 9px;
  background: #110d18;
  font-weight: 800;
  cursor: pointer;
}
.switch button.on,
.filters button.on {
  color: #220b20;
  border-color: var(--pink);
  background: var(--pink);
}
label {
  display: grid;
  gap: 6px;
  margin-top: 15px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}
textarea,
select,
input {
  width: 100%;
  padding: 11px;
  color: white;
  border: 1px solid #544262;
  border-radius: 10px;
  background: #0d0b13;
  font: inherit;
  outline: none;
}
#text {
  min-height: 118px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}
textarea {
  resize: vertical;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
}
.hint {
  margin-top: 11px;
  color: var(--mut);
  font-size: 12px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.primary,
.ghost,
.card button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.primary {
  color: #260a20;
  background: linear-gradient(95deg, var(--pink), #ff8fda);
}
.ghost {
  color: white;
  border: 1px solid #584266;
  background: #21182d;
}
.error {
  min-height: 20px;
  margin-top: 9px;
  color: #ffb8d2;
  font-size: 12px;
}
.library-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}
.library-top input {
  width: 180px;
}
.filters {
  margin: 17px 0;
}
.card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 100px 100px;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #352843;
}
.card:first-child {
  border-top: 0;
}
.card .type {
  color: var(--blue);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}
.card .text {
  font-weight: 750;
}
.badge {
  display: inline-flex;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 1000;
}
.published {
  background: #22462a;
  color: #c9ffb2;
}
.draft {
  background: #3d2c58;
  color: #dfc9ff;
}
.disabled {
  background: #4b2334;
  color: #ffc4d8;
}
.card button {
  padding: 7px 9px;
  color: #ded1e8;
  border: 1px solid #594668;
  background: transparent;
  font-size: 11px;
}
.empty {
  padding: 32px;
  color: var(--mut);
  text-align: center;
  border: 1px dashed #4e3b5d;
  border-radius: 12px;
}
@media (max-width: 800px) {
  main {
    padding: 17px 12px;
  }
  header .local {
    display: none;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .library {
    padding: 18px;
  }
  .create {
    padding: 20px;
  }
  .card {
    grid-template-columns: 72px minmax(0, 1fr) 78px;
  }
  .card button {
    grid-column: 2/4;
    justify-self: start;
  }
  .library-top input {
    width: 130px;
  }
  .filters {
    overflow: auto;
    white-space: nowrap;
  }
}
