/* ==========================================================
   Lin汵汵 · local admin console
   ========================================================== */

.admin-page {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 200, 216, 0.25), transparent 24%),
    radial-gradient(circle at 2% 88%, rgba(196, 226, 220, 0.22), transparent 22%),
    #f7f1ec;
}

.admin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  font-size: 13px;
}

/* ---------------- Boot ---------------- */

.admin-boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  color: #fff5f2;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 126, 168, 0.18), transparent 34%),
    #21141d;
}

.admin-boot__inner {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 242, 247, 0.6);
  font-size: 12px;
}

.admin-boot__inner img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-boot__inner div {
  display: grid;
  gap: 2px;
}

.admin-boot__inner span:first-child {
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: rgba(255, 200, 218, 0.45);
}

.admin-boot__inner strong {
  color: rgba(255, 245, 248, 0.82);
  font-size: 12px;
  font-weight: 500;
}

.admin-boot .loading-dots {
  color: #ffaec8;
  margin-left: 8px;
}

/* ---------------- Buttons / small pieces ---------------- */

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.admin-btn:hover {
  transform: translateY(-1px);
}

.admin-btn:active {
  transform: translateY(0);
}

.admin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.admin-btn--primary {
  color: #351724;
  background: linear-gradient(140deg, #ffd6e2, #ffa1c0);
  box-shadow: 0 10px 22px -15px rgba(204, 71, 115, 0.7);
}

.admin-btn--primary:hover {
  background: linear-gradient(140deg, #ffe0e9, #ffaac6);
  box-shadow: 0 13px 26px -16px rgba(204, 71, 115, 0.76);
}

.admin-btn--dark {
  color: #fff8f4;
  background: #3c2532;
}

.admin-btn--dark:hover {
  background: #513143;
}

.admin-btn--ghost {
  border-color: rgba(91, 53, 69, 0.14);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
}

.admin-btn--ghost:hover {
  border-color: rgba(202, 83, 123, 0.25);
  background: rgba(255, 255, 255, 0.8);
}

.admin-btn--danger {
  border-color: rgba(182, 70, 99, 0.18);
  color: #a33a59;
  background: rgba(255, 224, 232, 0.45);
}

.admin-btn--danger:hover {
  background: rgba(255, 214, 225, 0.8);
}

.admin-btn--small {
  min-height: 31px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
}

.admin-btn--lg {
  min-height: 48px;
  padding: 0 19px;
  border-radius: 12px;
  font-size: 12px;
}

.admin-btn--block {
  width: 100%;
}

.text-button {
  padding: 2px 0;
  border: 0;
  color: var(--rose-deep);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.text-button:hover {
  color: #983450;
}

.text-button--danger {
  color: #9b4b60;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--rose-deep);
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.admin-kicker::before {
  content: "";
  width: 13px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 123, 169, 0.11);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(236, 91, 144, 0.16);
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 123, 169, 0.07);
  font-size: 9px;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.is-closed {
  color: var(--muted);
  border-color: rgba(93, 61, 73, 0.12);
  background: rgba(93, 61, 73, 0.04);
}

/* ---------------- Login ---------------- */

.login-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  padding: 14px;
  gap: 14px;
}

.login-screen[hidden] {
  display: none !important;
}

.login-art {
  position: relative;
  min-height: calc(100svh - 28px);
  overflow: hidden;
  border-radius: 27px;
  color: #fff8f4;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 165, 193, 0.16), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(154, 122, 245, 0.16), transparent 32%),
    linear-gradient(140deg, #251527 0%, #321a2f 47%, #1b101f 100%);
}

.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse at 45% 35%, black, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 45% 35%, black, transparent 76%);
  pointer-events: none;
}

.login-art__moon {
  position: absolute;
  top: 18%;
  right: 10%;
  width: min(44vw, 530px);
  height: min(44vw, 530px);
  border: 1px solid rgba(255, 223, 235, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 235, 241, 0.13), transparent 38%);
  box-shadow:
    0 0 0 32px rgba(255, 211, 228, 0.022),
    0 0 0 92px rgba(255, 211, 228, 0.012);
}

.login-brand {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  object-fit: cover;
}

.login-brand span {
  display: grid;
  gap: 1px;
}

.login-brand strong {
  color: #fff8f4;
  font-size: 14px;
  font-weight: 650;
}

.login-brand small {
  color: rgba(255, 236, 243, 0.38);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.login-art__copy {
  position: absolute;
  left: clamp(34px, 7%, 92px);
  bottom: clamp(50px, 11%, 110px);
  z-index: 4;
  max-width: 370px;
  isolation: isolate;
}

.login-art__copy::before {
  content: "";
  position: absolute;
  inset: -72px -110px -70px -75px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 38% 56%, rgba(24, 12, 23, 0.8) 0%, rgba(24, 12, 23, 0.42) 44%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.login-art__eyebrow {
  color: rgba(255, 189, 211, 0.62);
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.login-art__copy h2 {
  margin-top: 13px;
  color: #fff8f4;
  font-family: var(--font-serif);
  font-size: clamp(37px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.03em;
}

.login-art__copy p {
  max-width: 300px;
  margin-top: 16px;
  color: rgba(255, 241, 246, 0.47);
  font-size: 11px;
  line-height: 1.9;
}

.login-art__quote {
  display: inline-flex;
  margin-top: 23px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 195, 215, 0.13);
  border-radius: 999px;
  color: rgba(255, 222, 233, 0.47);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.login-art__figure {
  position: absolute;
  right: clamp(-80px, 3%, 44px);
  bottom: -8%;
  z-index: 2;
  width: auto;
  height: min(92%, 880px);
  max-width: 68%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.login-art__vertical {
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 3;
  color: rgba(255, 238, 245, 0.22);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

.login-art__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 70px);
}

.login-panel__inner {
  width: min(100%, 365px);
}

.login-back {
  display: inline-flex;
  margin-bottom: clamp(50px, 13vh, 124px);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.login-back:hover {
  color: var(--rose-deep);
}

.login-kicker {
  color: var(--rose-deep);
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.login-panel h1 {
  margin-top: 11px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.login-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form .input {
  height: 49px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  color: var(--ink);
  background: rgba(83, 51, 65, 0.06);
}

.login-form .admin-btn {
  margin-top: 2px;
}

.login-form .form-error,
.admin-form .form-error {
  padding: 10px 12px;
  border: 1px solid rgba(190, 65, 99, 0.16);
  border-radius: 9px;
  color: #a9435f;
  background: rgba(255, 221, 230, 0.5);
  font-size: 10.5px;
  line-height: 1.6;
}

.login-hint {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid rgba(91, 53, 69, 0.1);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.8;
}

.login-hint code,
.settings-copy code,
.settings-list code,
.settings-meta code {
  padding: 1px 5px;
  border: 1px solid rgba(91, 53, 69, 0.09);
  border-radius: 4px;
  color: #8c586b;
  background: rgba(255, 255, 255, 0.4);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

.login-foot {
  margin-top: 31px;
  color: rgba(118, 91, 102, 0.4);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.2em;
}

/* ---------------- Admin shell ---------------- */

.admin-app[hidden] {
  display: none !important;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  width: 248px;
  padding: 23px 15px 16px;
  display: flex;
  flex-direction: column;
  color: rgba(255, 245, 248, 0.66);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 158, 192, 0.12), transparent 28%),
    linear-gradient(170deg, #2a1723, #21141c 68%, #1e121a);
  box-shadow: 20px 0 60px -42px rgba(26, 11, 19, 0.8);
}

.admin-sidebar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 184, 207, 0.17), transparent 35%, transparent 70%, rgba(255, 184, 207, 0.07));
  pointer-events: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  flex: none;
}

.sidebar-brand__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 226, 235, 0.85), rgba(255, 149, 184, 0.35));
}

.sidebar-brand__avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #271620;
  border-radius: 50%;
  background: #ffae76;
}

.sidebar-brand__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.sidebar-brand strong {
  color: #fff8f4;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.sidebar-brand small {
  color: rgba(255, 237, 243, 0.32);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.sidebar-rule {
  height: 1px;
  margin: 21px 9px 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent);
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav__label {
  padding: 0 11px;
  margin-bottom: 5px;
  color: rgba(255, 239, 245, 0.25);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.admin-nav__label--second {
  margin-top: 21px;
}

.admin-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 244, 248, 0.5);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-nav__item .icon {
  color: rgba(255, 229, 238, 0.38);
  transition: color 0.2s ease;
}

.admin-nav__item:hover {
  color: rgba(255, 247, 249, 0.83);
  background: rgba(255, 255, 255, 0.035);
}

.admin-nav__item.is-active {
  color: #fff8f4;
  border-color: rgba(255, 169, 197, 0.12);
  background: linear-gradient(90deg, rgba(255, 146, 181, 0.16), rgba(255, 146, 181, 0.035));
}

.admin-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  width: 2px;
  height: 19px;
  border-radius: 0 4px 4px 0;
  background: #ff9cbd;
  box-shadow: 0 0 12px rgba(255, 156, 189, 0.48);
  transform: translateY(-50%);
}

.admin-nav__item.is-active .icon {
  color: #ffb3cc;
}

.admin-nav__item b {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  color: rgba(255, 239, 245, 0.36);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 400;
}

.admin-nav__item.is-active b {
  color: #ffcddd;
  background: rgba(255, 171, 200, 0.11);
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 22px;
}

.sidebar-server {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-server__dot {
  width: 5px;
  height: 5px;
  margin-top: 4px;
  flex: none;
  border-radius: 50%;
  background: #8ed3b4;
  box-shadow: 0 0 8px rgba(142, 211, 180, 0.5);
}

.sidebar-server span:last-child {
  display: grid;
  gap: 1px;
}

.sidebar-server strong {
  color: rgba(255, 244, 248, 0.54);
  font-size: 8.5px;
  font-weight: 500;
}

.sidebar-server small {
  color: rgba(255, 238, 245, 0.24);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 240, 246, 0.37);
  background: transparent;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-link:hover {
  color: rgba(255, 247, 250, 0.78);
  background: rgba(255, 255, 255, 0.035);
}

.admin-main {
  min-height: 100svh;
  margin-left: 248px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  padding: 0 clamp(24px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(247, 241, 236, 0.82);
  border-bottom: 1px solid rgba(95, 55, 71, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.admin-menu-button {
  display: none;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(95, 55, 71, 0.13);
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
}

.admin-topbar__title {
  display: grid;
  gap: 1px;
}

.admin-topbar__title span {
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.19em;
}

.admin-topbar__title h1 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(95, 55, 71, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.admin-live[data-live-state="live"] {
  color: var(--rose-deep);
  border-color: rgba(236, 91, 144, 0.18);
  background: rgba(255, 123, 169, 0.07);
}

.admin-live[data-live-state="live"] .live-pill__dot {
  background: var(--rose);
  animation: livePulse 2s infinite;
}

.admin-topbar__link {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.admin-topbar__link:hover {
  color: var(--rose-deep);
}

.admin-topbar__avatar {
  width: 33px;
  height: 33px;
  padding: 2px;
  border: 1px solid rgba(113, 69, 86, 0.13);
  border-radius: 50%;
}

.admin-topbar__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.admin-content {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 29px clamp(24px, 3vw, 42px) 64px;
}

.admin-view {
  animation: adminViewIn 0.35s var(--ease-out);
}

.admin-view[hidden] {
  display: none !important;
}

@keyframes adminViewIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Welcome ---------------- */

.admin-welcome {
  position: relative;
  min-height: 217px;
  padding: 32px 36px;
  overflow: hidden;
  border-radius: 23px;
  color: #fff8f4;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 166, 194, 0.2), transparent 29%),
    radial-gradient(circle at 15% 110%, rgba(160, 132, 255, 0.13), transparent 39%),
    linear-gradient(123deg, #2f1b2a, #3f2233 55%, #271622);
  box-shadow: 0 25px 50px -38px rgba(48, 19, 33, 0.7);
}

.admin-welcome::before {
  content: "";
  position: absolute;
  top: -95px;
  right: 11%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 211, 226, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 37px rgba(255, 213, 227, 0.02), 0 0 0 89px rgba(255, 213, 227, 0.012);
}

.admin-welcome__copy {
  position: relative;
  z-index: 3;
  max-width: 570px;
}

.admin-welcome .admin-kicker {
  color: rgba(255, 186, 207, 0.67);
}

.admin-welcome__copy h2 {
  margin-top: 9px;
  color: #fff8f4;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.3vw, 33px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.admin-welcome__copy p {
  max-width: 480px;
  margin-top: 11px;
  color: rgba(255, 240, 246, 0.43);
  font-size: 10.5px;
  line-height: 1.8;
}

.admin-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.admin-welcome__actions .admin-btn--ghost {
  color: rgba(255, 243, 247, 0.68);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.admin-welcome__actions .admin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-welcome__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36%;
  z-index: 2;
  pointer-events: none;
}

.admin-welcome__moon {
  position: absolute;
  top: 14%;
  right: 13%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 41% 34%, rgba(255, 236, 241, 0.15), transparent 55%);
  border: 1px solid rgba(255, 226, 236, 0.09);
}

.admin-welcome__art img {
  position: absolute;
  right: 7%;
  bottom: -27%;
  width: auto;
  height: 144%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24));
  opacity: 0.93;
}

.admin-welcome__tag {
  position: absolute;
  right: 17%;
  bottom: 17px;
  color: rgba(255, 235, 242, 0.2);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.2em;
}

/* ---------------- Dashboard cards ---------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.stat-card {
  position: relative;
  min-height: 134px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid rgba(92, 55, 70, 0.09);
  border-radius: 17px;
  background: rgba(255, 253, 251, 0.74);
  box-shadow: 0 14px 30px -31px rgba(69, 31, 46, 0.3);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 36px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--stat-color, var(--rose));
  opacity: 0.66;
}

.stat-card--rose { --stat-color: #ee7ea4; }
.stat-card--mint { --stat-color: #81c4b9; }
.stat-card--lilac { --stat-color: #aa94e6; }
.stat-card--butter { --stat-color: #dcb56a; }

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.stat-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.stat-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.stat-card__icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--stat-color);
  background: color-mix(in srgb, var(--stat-color) 11%, transparent);
}

.stat-card__icon .icon {
  width: 14px;
  height: 14px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.72fr);
  gap: 15px;
  margin-top: 18px;
  align-items: start;
}

.admin-card {
  position: relative;
  padding: 23px 24px;
  border: 1px solid rgba(92, 55, 70, 0.09);
  border-radius: 19px;
  background: rgba(255, 253, 251, 0.78);
  box-shadow: 0 15px 35px -36px rgba(69, 31, 46, 0.32);
}

.admin-view > .admin-card {
  margin-top: 17px;
}

.admin-card--quiet {
  background: rgba(255, 253, 251, 0.48);
}

.admin-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 17px;
}

.admin-card__head h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.admin-card__head h3 .count-pill {
  margin-left: 3px;
  font-family: var(--font-en);
}

.admin-card__hint {
  margin: -9px 0 16px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.75;
}

.admin-loading-line {
  padding: 28px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.overview-requests {
  display: grid;
  gap: 0;
}

.mini-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(91, 54, 69, 0.075);
}

.mini-request:first-child {
  border-top: 0;
}

.mini-request__avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #8d4160;
  background: #ffe5ed;
  font-family: var(--font-serif);
  font-size: 11px;
}

.mini-request__body {
  min-width: 0;
}

.mini-request__title {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-request__meta {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-request__time {
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 8px;
  white-space: nowrap;
}

.mini-empty {
  padding: 26px 0 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-actions button:last-child {
  grid-column: 1 / -1;
}

.quick-actions button {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 66px;
  padding: 11px;
  border: 1px solid rgba(91, 54, 69, 0.09);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quick-actions button:hover {
  border-color: rgba(202, 83, 123, 0.18);
  background: #fff;
  transform: translateY(-1px);
}

.quick-actions__icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 7px;
  color: var(--rose-deep);
  background: rgba(255, 123, 169, 0.08);
}

.quick-actions button > span:last-child {
  display: grid;
  gap: 2px;
}

.quick-actions strong {
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
}

.quick-actions small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.admin-live-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(91, 54, 69, 0.08);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 239, 244, 0.74), rgba(250, 247, 255, 0.6));
}

.admin-live-card .admin-kicker {
  margin-bottom: 5px;
  color: var(--muted);
}

.admin-live-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-live-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.admin-live-card .text-button {
  margin-top: 8px;
}

/* ---------------- View heading ---------------- */

.view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 21px;
}

.view-heading h2 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(29px, 3vw, 37px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.view-heading p {
  max-width: 630px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.view-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

/* ---------------- Admin forms ---------------- */

.admin-form {
  display: grid;
  gap: 15px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.admin-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field--full {
  grid-column: 1 / -1;
}

.admin-form .input,
.admin-form .select {
  height: 40px;
  min-height: 40px;
  border-radius: 9px;
  font-size: 11.5px;
}

.admin-form .textarea {
  min-height: 82px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.75;
}

.admin-form .field {
  gap: 5px;
}

.admin-form .field label,
.admin-form .field-label {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}

.admin-form .field small {
  font-size: 8.5px;
  line-height: 1.55;
}

.admin-form .field + .field {
  margin-top: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 2px;
}

.form-feedback {
  color: var(--muted);
  font-size: 9px;
}

.form-feedback.is-ok {
  color: #4c8b79;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 2px 0 15px;
  border-bottom: 1px solid rgba(91, 54, 69, 0.075);
  margin-bottom: 2px;
}

.switch-row strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.switch-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 23px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(111, 82, 93, 0.18);
  transition: background 0.2s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(74, 46, 58, 0.18);
  transition: transform 0.22s var(--ease-out);
}

.switch input:checked + span {
  background: #e482a3;
}

.switch input:checked + span::after {
  transform: translateX(17px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--rose-strong);
}

/* ---------------- Admin toolbar / table ---------------- */

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.admin-search .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-search .input {
  width: 100%;
  height: 37px;
  padding: 0 12px 0 35px;
  border-radius: 9px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-toolbar__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.admin-table {
  overflow: hidden;
  border: 1px solid rgba(91, 54, 69, 0.09);
  border-radius: 11px;
}

.admin-table__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 78px 106px;
  align-items: center;
  gap: 13px;
  min-height: 33px;
  padding: 0 13px;
  color: var(--muted-2);
  background: rgba(246, 238, 233, 0.66);
  font-family: var(--font-en);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.admin-table__head span:nth-child(3),
.admin-table__head span:nth-child(4) {
  text-align: right;
}

.admin-song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 78px 106px;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  padding: 8px 13px;
  border-top: 1px solid rgba(91, 54, 69, 0.065);
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}

.admin-song-row:hover {
  background: rgba(255, 247, 250, 0.8);
}

.admin-song-cell {
  min-width: 0;
}

.admin-song-cell strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-song-cell small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-song-cell .song-note {
  color: #be8499;
}

.admin-song-cell .admin-song-fee {
  color: #b06980;
}

.admin-category-tag {
  justify-self: start;
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid rgba(111, 78, 91, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-badge {
  justify-self: end;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ad8351;
  background: rgba(248, 223, 170, 0.35);
  font-size: 8px;
}

.mini-badge--muted {
  color: var(--muted-2);
  background: transparent;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.table-button {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(91, 54, 69, 0.1);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  font-size: 8.5px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.table-button:hover {
  color: var(--rose-deep);
  border-color: rgba(202, 83, 123, 0.23);
  background: #fff;
}

.table-button--danger:hover {
  color: #a53454;
  border-color: rgba(165, 52, 84, 0.2);
  background: #fff2f5;
}

.admin-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 8.5px;
}

/* ---------------- Requests ---------------- */

.request-inbox {
  display: grid;
  gap: 8px;
}

.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(91, 54, 69, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.35);
}

.request-item.is-done {
  opacity: 0.62;
  background: rgba(250, 246, 243, 0.35);
}

.request-item__main {
  min-width: 0;
}

.request-item__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.request-item__line strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-item__requester {
  color: var(--rose-deep);
  font-size: 9px;
}

.request-item__song {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.request-item__message {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.request-item__time {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.request-item__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.request-status {
  padding: 2px 7px;
  border-radius: 999px;
  color: #9e6e35;
  background: rgba(247, 224, 177, 0.4);
  font-size: 8px;
  white-space: nowrap;
}

.request-status--done {
  color: #528778;
  background: rgba(186, 224, 213, 0.34);
}

.request-item__actions {
  display: flex;
  gap: 4px;
}

/* ---------------- Guestbook admin ---------------- */

.admin-message-list {
  display: grid;
  gap: 8px;
}

.admin-message-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(91, 54, 69, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.35);
}

.admin-message-item.is-pinned {
  border-color: rgba(202, 83, 123, 0.16);
  background: rgba(255, 244, 247, 0.55);
}

.admin-message-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #8d4160;
  background: #ffe5ed;
  font-family: var(--font-serif);
  font-size: 12px;
}

.admin-message-main {
  min-width: 0;
}

.admin-message-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-message-top strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.admin-message-badge {
  padding: 1px 6px;
  border-radius: 999px;
  color: #a34564;
  background: rgba(255, 219, 230, 0.58);
  font-size: 7.5px;
}

.admin-message-badge--owner {
  color: #8c6b31;
  background: rgba(247, 229, 188, 0.5);
}

.admin-message-text {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-message-item.is-expanded .admin-message-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.admin-message-time {
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 7.5px;
}

.admin-message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- Highlights admin ---------------- */

.admin-highlight-list {
  display: grid;
  gap: 10px;
}

.admin-highlight-item {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border: 1px solid rgba(91, 54, 69, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.admin-highlight-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #251923;
}

.admin-highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-highlight-thumb span {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: rgba(255, 246, 249, 0.8);
  background: rgba(19, 11, 22, 0.54);
  font-family: var(--font-en);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.admin-highlight-main {
  min-width: 0;
}

.admin-highlight-main h4 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-highlight-main p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-highlight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 7.5px;
  letter-spacing: 0.02em;
}

.admin-highlight-meta .mini-badge {
  font-family: var(--font-sans);
}

/* ---------------- Outfits ---------------- */

.outfit-editor {
  display: grid;
  gap: 11px;
}

.outfit-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 11px;
  border: 1px solid rgba(91, 54, 69, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}

.outfit-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(122, 89, 104, 0.04) 25%, transparent 25%, transparent 75%, rgba(122, 89, 104, 0.04) 75%),
    linear-gradient(45deg, rgba(122, 89, 104, 0.04) 25%, #fbf7f3 25%, #fbf7f3 75%, rgba(122, 89, 104, 0.04) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

.outfit-card__visual img {
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
}

.outfit-card__change {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  min-height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(255, 248, 250, 0.82);
  background: rgba(47, 27, 38, 0.66);
  font-size: 7.5px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.outfit-card__change:hover {
  background: rgba(47, 27, 38, 0.84);
}

.outfit-card__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-content: start;
}

.outfit-card__fields .field {
  gap: 3px;
}

.outfit-card__fields .field--full {
  grid-column: 1 / -1;
}

.outfit-card__field-label,
.outfit-card__fields label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.outfit-card__field-label {
  display: block;
}

.outfit-card__fields .input {
  height: 32px;
  min-height: 32px;
  border-radius: 7px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.outfit-card__fields .outfit-desc {
  height: 32px;
  min-height: 32px;
  padding-top: 7px;
  padding-bottom: 7px;
  resize: none;
  line-height: 1.5;
}

.outfit-card__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 7px;
}

.outfit-order {
  display: flex;
  gap: 3px;
}

.outfit-index {
  color: var(--muted-2);
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 5px;
}

.color-field input[type="color"] {
  width: 26px;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(91, 54, 69, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.site-save-bar {
  position: sticky;
  bottom: 17px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  padding: 13px 15px 13px 20px;
  border: 1px solid rgba(255, 221, 232, 0.12);
  border-radius: 14px;
  color: rgba(255, 243, 247, 0.45);
  background: rgba(43, 25, 36, 0.96);
  box-shadow: 0 18px 38px -21px rgba(44, 20, 32, 0.65);
  backdrop-filter: blur(16px);
  font-size: 9px;
}

.site-save-bar.is-dirty {
  color: #ffcbd9;
}

/* ---------------- Settings ---------------- */

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.settings-grid .admin-card {
  margin-top: 0;
}

.settings-copy {
  margin-top: -3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}

.settings-grid .admin-btn--block {
  margin-top: 17px;
}

.settings-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 54, 69, 0.08);
}

.settings-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 8.5px;
}

.settings-meta code {
  color: var(--ink-soft);
}

.settings-list {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.settings-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.settings-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.55;
}

/* ---------------- Modal extensions ---------------- */

.admin-modal .modal__head {
  padding: 24px 26px 15px;
}

.admin-modal .modal__body {
  padding: 2px 26px 26px;
}

.admin-modal .modal__title {
  font-size: 23px;
}

.admin-modal .admin-form {
  gap: 15px;
}

.admin-modal .admin-form-grid {
  gap: 12px;
}

.admin-modal .modal__actions {
  position: sticky;
  bottom: -26px;
  z-index: 5;
  margin-top: 4px;
  margin-bottom: -26px;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(91, 54, 69, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.2) 0%, var(--cream-2) 24%, var(--cream-2) 100%);
}

.import-textarea {
  min-height: 240px !important;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10.5px !important;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 15px;
  margin-top: 3px;
}

.upload-box {
  min-width: 0;
}

.upload-box__label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.upload-url-field {
  margin-top: 7px;
  gap: 3px;
}

.upload-url-field label {
  font-size: 8px !important;
  font-weight: 500 !important;
}

.upload-url-field .input {
  height: 33px;
  min-height: 33px;
  font-size: 9.5px !important;
}

.file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 126px;
  padding: 15px;
  overflow: hidden;
  border: 1px dashed rgba(173, 104, 128, 0.27);
  border-radius: 11px;
  color: var(--muted);
  background: linear-gradient(140deg, rgba(255, 247, 249, 0.7), rgba(255, 253, 249, 0.5));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover {
  border-color: rgba(202, 83, 123, 0.45);
  background: rgba(255, 248, 249, 0.9);
}

.file-drop .icon {
  color: var(--rose-deep);
  opacity: 0.65;
}

.file-drop strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop small {
  color: var(--muted-2);
  font-size: 8px;
}

.file-drop--cover {
  display: block;
  min-height: 126px;
  padding: 0;
  border-style: solid;
  border-color: rgba(91, 54, 69, 0.09);
  background: #251923;
}

.file-drop--cover > img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  opacity: 0.76;
}

.file-drop__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 247, 250, 0.72);
  background: rgba(33, 18, 29, 0.35);
  font-size: 9px;
  transition: background 0.2s ease;
}

.file-drop--cover:hover .file-drop__overlay {
  background: rgba(33, 18, 29, 0.54);
}

.upload-progress {
  position: relative;
  height: 23px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(91, 54, 69, 0.08);
  border-radius: 6px;
  background: rgba(91, 54, 69, 0.04);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 177, 200, 0.65), rgba(255, 132, 170, 0.55));
  transition: width 0.2s ease;
}

.upload-progress b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--font-en);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(27, 14, 22, 0.52);
  backdrop-filter: blur(3px);
  animation: backdropIn 0.2s ease;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1180px) {
  .admin-sidebar {
    width: 222px;
  }

  .admin-main {
    margin-left: 222px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 124px;
    padding: 16px;
  }

  .stat-card strong {
    font-size: 33px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  }

  .settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.75fr);
  }

  .login-art__figure {
    right: -70px;
    max-width: 76%;
  }
}

@media (max-width: 940px) {
  .admin-sidebar {
    width: 248px;
    transform: translateX(-102%);
    transition: transform 0.28s var(--ease-out);
    z-index: 310;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-menu-button {
    display: grid;
  }

  .admin-topbar {
    padding: 0 22px;
  }

  .admin-topbar__actions {
    gap: 10px;
  }

  .admin-topbar__link {
    display: none;
  }

  .admin-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-art {
    display: none;
  }

  .login-panel {
    min-height: calc(100svh - 28px);
    background:
      radial-gradient(circle at 78% 10%, rgba(255, 185, 208, 0.22), transparent 28%),
      rgba(255, 252, 249, 0.6);
    border-radius: 24px;
  }

  .login-back {
    margin-bottom: 56px;
  }

  .admin-welcome__art {
    width: 33%;
    opacity: 0.8;
  }

  .admin-welcome__copy {
    max-width: 65%;
  }
}

@media (max-width: 720px) {
  .admin-content {
    padding: 20px 15px 50px;
  }

  .admin-topbar {
    height: 68px;
    padding: 0 15px;
    gap: 12px;
  }

  .admin-topbar__title h1 {
    font-size: 18px;
  }

  .admin-topbar__actions .admin-live {
    display: none;
  }

  .admin-topbar__avatar {
    width: 29px;
    height: 29px;
  }

  .admin-sidebar {
    top: 0;
  }

  .admin-welcome {
    min-height: 0;
    padding: 23px 21px;
    border-radius: 17px;
  }

  .admin-welcome__copy {
    max-width: 100%;
  }

  .admin-welcome__copy h2 {
    font-size: 24px;
  }

  .admin-welcome__copy p {
    font-size: 9.5px;
  }

  .admin-welcome__art {
    display: none;
  }

  .admin-welcome__actions {
    margin-top: 17px;
  }

  .stats-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .stat-card {
    min-height: 112px;
    padding: 13px;
    border-radius: 13px;
  }

  .stat-card strong {
    font-size: 29px;
  }

  .stat-card__icon {
    right: 11px;
    bottom: 11px;
    width: 26px;
    height: 26px;
  }

  .overview-grid {
    margin-top: 12px;
  }

  .admin-card {
    padding: 18px 16px;
    border-radius: 15px;
  }

  .admin-view > .admin-card {
    margin-top: 12px;
  }

  .admin-card__head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .admin-card__head h3 {
    font-size: 17px;
  }

  .quick-actions {
    gap: 6px;
  }

  .view-heading {
    display: block;
    margin-bottom: 16px;
  }

  .view-heading h2 {
    font-size: 28px;
  }

  .view-heading__actions {
    padding-top: 14px;
  }

  .view-heading__actions .admin-btn {
    flex: 1;
  }

  .admin-form-grid,
  .admin-form-grid--three {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .switch-row {
    align-items: flex-start;
    gap: 16px;
  }

  .admin-toolbar {
    display: block;
  }

  .admin-search {
    max-width: none;
  }

  .admin-toolbar__hint {
    display: block;
    margin: 7px 0 0;
  }

  .admin-table__head {
    display: none;
  }

  .admin-song-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 11px;
    padding: 12px;
  }

  .admin-song-cell {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .admin-category-tag {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .admin-song-row > .mini-badge {
    display: none;
  }

  .row-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .request-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .request-item__side {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .admin-message-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .admin-message-avatar {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }

  .admin-message-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-highlight-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-highlight-item > .row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .outfit-card {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 9px;
  }

  .outfit-card__visual {
    min-height: 94px;
  }

  .outfit-card__visual img {
    max-height: 92px;
  }

  .outfit-card__fields {
    grid-template-columns: 1fr;
  }

  .outfit-card__fields .field--full {
    grid-column: auto;
  }

  .outfit-card__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-save-bar {
    bottom: 9px;
    gap: 10px;
    padding: 10px 10px 10px 14px;
  }

  .site-save-bar span {
    font-size: 8px;
  }

  .settings-grid {
    gap: 12px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal .modal__head {
    padding: 20px 18px 13px;
  }

  .admin-modal .modal__body {
    padding: 2px 18px 20px;
  }

  .admin-modal .modal__title {
    font-size: 20px;
  }

  .import-textarea {
    min-height: 200px !important;
  }

  .login-screen {
    padding: 0;
  }

  .login-panel {
    border-radius: 0;
    padding: 24px;
  }

  .login-panel__inner {
    width: min(100%, 380px);
  }

  .login-panel h1 {
    font-size: 36px;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .stat-card small {
    font-size: 7.5px;
  }

  .site-save-bar {
    flex-wrap: wrap;
  }

  .site-save-bar span {
    width: 100%;
  }

  .site-save-bar .admin-btn {
    width: 100%;
  }
}
