:root {
  --ink: #f6eef2;
  --ink-soft: #e4cfd8;
  --muted: #c4a0ae;
  --bg: #1a0b12;
  --bg-2: #241018;
  --panel: rgba(42, 18, 28, 0.92);
  --panel-solid: #2a121c;
  --line: rgba(246, 238, 242, 0.12);
  --teal: #e879a8;
  --teal-deep: #be185d;
  --gold: #f0a8c4;
  --gold-soft: #f9c4d8;
  --danger: #fb7185;
  --ok: #3dd68c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 1rem;
  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Rubik", "Assistant", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html {
  height: 100%;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 100% -10%, rgba(190, 24, 93, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at -10% 20%, rgba(232, 121, 168, 0.12), transparent 50%),
    linear-gradient(180deg, #1a0b12 0%, #221018 45%, #160910 100%);
  min-height: 100%;
  min-height: 100dvh;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

body.home-only {
  background: #12060c;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* —— Top bar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 11, 18, 0.78);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
  animation: barIn 0.55s ease both;
}
.home-only .topbar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #f3f7fb;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.35);
}
.home-only .brand-mark {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.brand-mark i, .brand-mark svg { width: 1.15rem; height: 1.15rem; }

.topnav { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.topnav a svg { width: 1rem; height: 1rem; opacity: 0.85; }
.home-only .topnav a { color: rgba(255, 255, 255, 0.86); }
.topnav a.is-active,
.topnav a:hover {
  color: #fff;
  background: rgba(190, 24, 93, 0.18);
}
.home-only .topnav a.is-active,
.home-only .topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* —— Full-bleed hero —— */
.hero-bleed {
  position: relative;
  flex: 1 0 auto;
  min-height: 0;
  min-height: calc(100dvh - 11rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(0.72) saturate(1.05);
  animation: heroZoom 18s ease-in-out alternate infinite;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 6, 12, 0.5) 0%, rgba(18, 6, 12, 0.4) 35%, rgba(18, 6, 12, 0.9) 100%),
    linear-gradient(270deg, rgba(190, 24, 93, 0.28), transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 7.5rem 1.5rem 4.5rem;
  margin-inline-start: max(1.5rem, calc((100% - 1120px) / 2));
  color: #fff;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 22ch;
}
.hero-lead {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-strip {
  background: linear-gradient(180deg, #1a0b12, #12060c);
  padding: 3rem 1.5rem 1rem;
  border-top: 1px solid var(--line);
}
.home-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .home-strip-inner { grid-template-columns: 1fr; }
}
.feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(42, 18, 28, 0.7);
  border: 1px solid var(--line);
  animation: riseIn 0.7s ease both;
}
.feature:nth-child(2) { animation-delay: 0.08s; }
.feature:nth-child(3) { animation-delay: 0.16s; }
.feature-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 121, 168, 0.16);
  color: var(--teal);
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature h2 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-family: var(--font-display);
  color: #f3f7fb;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-about {
  padding: 0 1.5rem 3.5rem;
  background: #12060c;
}
.home-about-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.home-about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: #f6eef2;
  font-weight: 700;
}
.home-about p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.75rem;
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(145deg, #f0a8c4, #be185d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
body:not(.home-only) .btn-secondary {
  background: rgba(232, 121, 168, 0.12);
  border-color: rgba(232, 121, 168, 0.35);
  color: #fce7f3;
}
.btn-danger {
  background: #9b1c1c;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}

/* —— Interior pages —— */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #12060c;
  color: #fff;
  min-height: 11rem;
  display: flex;
  align-items: flex-end;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 6, 12, 0.92), rgba(18, 6, 12, 0.55));
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1.75rem;
  animation: riseIn 0.6s ease both;
}
.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 0.4rem;
}
.page-hero-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}
body:not(.home-only):not(.page-login) > .page-hero {
  flex-shrink: 0;
}
body:not(.home-only) > main {
  flex: 1 0 auto;
  width: 100%;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}
.page-sub { color: var(--muted); margin: 0 0 1.5rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
}
.panel h2 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
@media (max-width: 800px) {
  .span-2, .span-3 { grid-column: span 1; }
}

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #1f0e16;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: rgba(232, 121, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.2);
}
textarea.input { min-height: 5rem; resize: vertical; }
.hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  background: #1f0e16;
  border-radius: 0.7rem;
  padding: 0.35rem 0.5rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(232, 121, 168, 0.16);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
}
.tag-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
}
.tag-field {
  flex: 1;
  min-width: 7rem;
  border: 0;
  outline: none;
  font: inherit;
  background: transparent;
  color: var(--ink);
}

.alert {
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.alert svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin-top: 0.1rem; }
.alert-error { background: rgba(185, 28, 28, 0.2); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.35); }
.alert-ok { background: rgba(21, 128, 61, 0.18); color: #bbf7d0; border: 1px solid rgba(74, 222, 128, 0.3); }

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.photo-grid img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 121, 168, 0.16);
  color: #fbcfe8;
  font-weight: 700;
  font-size: 0.85rem;
}
.status-pill svg { width: 0.95rem; height: 0.95rem; }

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 1.75rem 1rem 2rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: #10060c;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
.home-only .site-footer {
  background: #10060c;
}
.site-footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #e8eef5;
  margin-bottom: 0.35rem;
}
.site-footer .foot-brand svg { width: 1rem; height: 1rem; color: var(--teal); }
.site-footer a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }

/* Login / my-card: panel dead-center between topbar and footer */
.page-login .login-stage {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 1rem 2rem;
}
.login-card {
  width: min(100%, 26.5rem);
  margin: 0;
  position: relative;
  z-index: 2;
}
.login-card .login-card-head {
  text-align: center;
  margin-bottom: 1.1rem;
}
.login-card .login-card-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2rem);
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.login-card .login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.login-card .panel {
  margin-bottom: 0;
}
.login-card .alert {
  margin-bottom: 0.85rem;
}

/* Account edit: grow main so footer stays bottom; content centered */
.page-account .page-hero {
  flex-shrink: 0;
}
.page-account .account-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}
.prose-a11y {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.prose-a11y h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.5rem 0 0.35rem;
}
.prose-a11y h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal);
  margin: 1.75rem 0 0.6rem;
}
.prose-a11y p, .prose-a11y li {
  color: var(--ink-soft);
  line-height: 1.75;
}
.prose-a11y ul { padding-inline-start: 1.25rem; }
.prose-a11y a { color: var(--gold-soft); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media img { transform: none; }
}

/* —— Accessibility widget (like servxx) —— */
.a11y-widget {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.a11y-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, #e879a8, #be185d);
  color: #fff;
  box-shadow: 0 8px 22px rgba(190, 24, 93, 0.45);
  cursor: pointer;
}
.a11y-fab svg { width: 1.35rem; height: 1.35rem; }
.a11y-fab:hover { filter: brightness(1.08); }
.a11y-panel {
  width: min(20rem, calc(100vw - 2rem));
  border-radius: 1rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.a11y-panel[hidden] { display: none !important; }
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #334155;
  background: #111827;
}
.a11y-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  font-family: var(--font-body);
}
.a11y-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}
.a11y-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}
.a11y-font-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.a11y-font-value {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.a11y-action,
.a11y-reset,
.a11y-toggle-row,
.a11y-icon-btn {
  cursor: pointer;
  border: 1px solid #475569;
  background: #1e293b;
  color: inherit;
}
.a11y-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.65rem;
  padding: 0.55rem 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.a11y-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  padding: 0;
}
.a11y-icon-btn svg { width: 1rem; height: 1rem; }
.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: start;
}
.a11y-toggle-row svg { width: 1rem; height: 1rem; }
.a11y-switch {
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #64748b;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fff;
  transition: inset-inline-start 0.2s ease;
}
.a11y-toggle-row[aria-pressed="true"] .a11y-switch { background: #be185d; }
.a11y-toggle-row[aria-pressed="true"] .a11y-switch::after {
  inset-inline-start: calc(100% - 1.2rem);
}
.a11y-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.875rem;
}
.a11y-reset svg { width: 1rem; height: 1rem; }
.a11y-statement {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f9a8d4;
  text-decoration: underline;
  border-radius: 0.35rem;
}

html.a11y-contrast,
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast .panel,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .topbar,
html.a11y-contrast .site-footer,
html.a11y-contrast .feature,
html.a11y-contrast .home-strip,
html.a11y-contrast .page-hero {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}
html.a11y-contrast a { color: #ffff00 !important; }
html.a11y-contrast .btn-primary,
html.a11y-contrast .a11y-fab {
  background: #ffff00 !important;
  color: #000 !important;
  border-color: #fff !important;
}
html.a11y-contrast .input,
html.a11y-contrast .tag-box {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}
html.a11y-underline a {
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}
html.a11y-readable,
html.a11y-readable body {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.06em;
  line-height: 1.7;
}

/* —— Admin —— */
body.page-admin {
  min-height: 100dvh;
}
.admin-topbar .brand {
  gap: 0.45rem;
}
.admin-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}
.admin-login-card {
  width: min(420px, 100%);
}
.admin-login-card h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
}
.admin-main {
  padding-block: 1.25rem 3rem;
  flex: 1;
}
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-back {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.admin-back a {
  color: var(--gold-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.admin-filters-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(8rem, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}
@media (max-width: 860px) {
  .admin-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .admin-filters-grid {
    grid-template-columns: 1fr;
  }
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  padding-bottom: 0.55rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-table-wrap {
  overflow: auto;
  margin: 0 -0.25rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 920px;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 0.55rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.admin-table tbody tr:hover {
  background: rgba(232, 121, 168, 0.06);
}
.admin-table tr.is-deleted {
  opacity: 0.55;
}
.admin-name a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.admin-name a:hover {
  color: var(--gold-soft);
}
.admin-lock {
  display: inline-flex;
  margin-inline-start: 0.25rem;
  color: var(--gold);
  vertical-align: middle;
}
.admin-lock i,
.admin-lock svg {
  width: 0.9rem;
  height: 0.9rem;
}
.admin-email {
  font-size: 0.8rem;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-muted {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.admin-row-btn {
  padding: 0.3rem 0.55rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}
.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}
@media (max-width: 700px) {
  .admin-fields {
    grid-template-columns: 1fr;
  }
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}
.admin-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.panel-danger {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}
.status-deleted {
  opacity: 0.85;
}
