body.adm {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(180deg, #071c49, #173f9b 55%, #fde7f4);
  color: #1a2340;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
}
body.adm, body.adm * { box-sizing: border-box; }
[hidden] { display: none !important; }

.adm-shell {
  display: grid;
  min-height: 100dvh;
}
.adm-side {
  background: linear-gradient(180deg, #0b1f4d 0%, #071c49 42%, #04132f 100%);
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.adm-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}
.adm-side-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}
.adm-side-brand small {
  display: block;
  margin-top: 2px;
  color: #f64db2;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .16em;
}
.adm-side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}
.adm-side-nav a {
  color: #d5deee;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
}
.adm-side-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff33;
  flex: 0 0 auto;
}
.adm-side-nav a:hover {
  background: #ffffff12;
  color: #fff;
  border-color: #ffffff18;
}
.adm-side-nav a.is-on {
  background: linear-gradient(90deg, #f5007f, #f64db2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px #f5007f40;
}
.adm-side-nav a.is-on::before { background: #fff; }
.adm-side-foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: .85rem;
  color: #c5d0e8;
  display: grid;
  gap: 8px;
}
.adm-side-foot a {
  display: inline-block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
}
.adm-side-foot a:hover { background: #ffffff12; }
.adm-side-toggle {
  display: none;
  width: 100%;
  margin: 8px 0;
  background: #e11d74;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}
.adm-main { padding: 28px 22px 48px; min-width: 0; }
.adm-main-login {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.adm-card {
  background: #fff;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 22px);
  box-shadow: 0 16px 40px rgba(7, 28, 73, .08);
}
.adm-card h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 1.6rem); color: #071c49; }
.adm-card h2 { margin: 8px 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f5007f; }
.adm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  max-width: 860px;
  margin-top: 8px;
}
.adm-form > h2,
.adm-form > p,
.adm-form > .hint,
.adm-form > .adm-alert,
.adm-form > fieldset,
.adm-form > button,
.adm-form > .form-captcha,
.adm-form label:has(textarea),
.adm-form label:has(select),
.adm-form label:has(input[type="checkbox"]) {
  grid-column: 1 / -1;
}
.adm-form label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.adm-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.adm-form fieldset label:has(textarea) { grid-column: 1 / -1; }
.adm-card label { display: grid; gap: 4px; margin: 0; font-weight: 600; font-size: .82rem; color: #3c4a66; }
.adm-card input, .adm-card textarea, .adm-card select {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #071c49;
  padding: .45rem .7rem;
  border: 1px solid #e2e7f0;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  background: #fbfcfe;
  box-sizing: border-box;
}
.adm-card textarea { min-height: 72px; resize: vertical; }
.adm-card input:focus, .adm-card textarea:focus, .adm-card select:focus {
  outline: 2px solid #f64db255;
  border-color: #f5007f;
  background: #fff;
}
.adm-card input[type="checkbox"] { width: auto; }
.adm-card fieldset { min-width: 0; border: 1px solid #f64db233; border-radius: 18px; margin: 12px 0; padding: 12px; }
.adm-kicker { color: #f5007f; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.adm-links { margin-top: 16px; }
.adm-links a { color: #f5007f; font-weight: 700; }
.adm-login { max-width: 420px; margin: 48px auto; border: 2px solid #f64db244; }
.adm-login .adm-form { grid-template-columns: 1fr; }

.password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.password-wrap input {
  width: 100%;
  padding-right: 48px !important;
  box-sizing: border-box;
}
.js-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: 0;
  color: #071c49;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  box-shadow: none;
}
.js-password-toggle:hover { background: #fde7f4; }
.js-password-toggle svg { display: block; pointer-events: none; }

.form-captcha { display: grid; gap: 6px; margin: 12px 0; font-weight: 600; }
.captcha-q {
  margin: 0;
  font-weight: 800;
  color: #071c49;
  background: #f4f6fb;
  border: 1px dashed #dbe1ee;
  border-radius: 14px;
  padding: 10px 12px;
}
.form-captcha input { max-width: 160px; }

.hint { background: #f7f4fb; padding: 10px 12px; border-radius: 12px; color: #5b6478; font-size: .88rem; margin: 0 0 8px; }
.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.adm-btn {
  background: #e11d74;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}
.adm-btn-ghost { background: #fff; color: #071c49; border: 1px solid #071c49; }
.adm-card.adm-kit h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  letter-spacing: -0.02em;
  text-transform: none;
  color: #071c49;
}
.adm-kit h3 { margin: 16px 0 6px; color: #173f9b; font-size: 1rem; }
.adm-kit ul { margin: 0; padding-left: 1.15rem; }
.adm-kit li { margin: 0 0 8px; }
.adm-kit p { overflow-wrap: anywhere; }
.adm-kit a { color: #f5007f; font-weight: 700; }
.adm-alert { padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.adm-alert.err { background: #fef2f2; color: #991b1b; }
.adm-alert.ok { background: #ecfdf3; color: #166534; }
.adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.adm-table th, .adm-table td {
  text-align: left;
  border-bottom: 1px solid #e8ebf2;
  padding: 8px 6px;
  font-size: .9rem;
  vertical-align: top;
}

@media (min-width: 900px) {
  .adm-shell { grid-template-columns: 240px 1fr; }
  .adm-side {
    position: sticky;
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
}
@media (max-width: 899px) {
  .adm-side-toggle { display: block; }
  .adm-side .adm-side-nav,
  .adm-side .adm-side-foot { display: none; }
  .adm-side.is-open .adm-side-nav {
    display: flex;
    max-height: min(58dvh, 520px);
  }
  .adm-side.is-open .adm-side-foot { display: grid; }
}
@media (max-width: 720px) {
  .adm-form, .adm-form fieldset { grid-template-columns: 1fr; }
}
.adm-form > p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .adm-main { padding: 16px 12px 40px; }
  .adm-form > p { display: grid; }
  .adm-btn { width: 100%; }
  .adm-card { border-radius: 14px; }
}
