:root {
  --background: #15161d;
  --surface: #1c1e27;
  --surface-2: #262933;
  --border: rgba(255, 255, 255, 0.11);
  --foreground: #f4f4f7;
  --muted: #b2b5c4;
  --accent: #2e85fa;
  --accent-strong: #337af5;
  --ok: #2eb86b;
  --err: #eb3838;
  --teal: #1fad9e;
  --green: #2eb86b;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --admin-radius: 10px;
  --admin-radius-lg: 12px;
}

* { box-sizing: border-box; }

body.avs-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(46, 133, 250, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 6%, rgba(31, 173, 158, 0.14), transparent 70%),
    var(--background);
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.avs-wrap {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.avs-wide { max-width: 1100px; }
.avs-narrow { max-width: 520px; }
.avs-main { flex: 1; width: 100%; }
body.avs-site { padding-top: 4.25rem; }
.avs-main > .avs-flash {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

/* —— Site header (matches marketing) —— */
.avs-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 30, 39, 0.9);
  backdrop-filter: blur(16px);
}
.avs-site-header-fixed {
  position: fixed;
  inset-inline: 0;
  top: 0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(28, 30, 39, 0.92);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.65);
}
.avs-site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avs-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  margin-right: auto;
}
.avs-brand img { border-radius: 8px; }
.avs-brand-muted { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .avs-brand-muted { display: none; }
}
.avs-site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 860px) {
  .avs-site-nav { display: flex; }
}
.avs-site-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
}
.avs-site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.avs-coffee {
  display: none;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 31, 0.35);
  background: rgba(255, 186, 31, 0.1);
  color: #fbbf24 !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
}
.avs-coffee:hover {
  border-color: rgba(255, 186, 31, 0.55);
  background: rgba(255, 186, 31, 0.15);
  text-decoration: none !important;
}
@media (min-width: 900px) {
  .avs-coffee { display: inline-flex; }
}
.avs-btn-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px -8px rgba(46, 133, 250, 0.7);
}
.avs-lang-menu-wide {
  min-width: 13rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
}
.avs-site-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Shared hamburger */
.avs-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.1rem;
}
.avs-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.avs-site-menu-btn,
.avs-admin-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.avs-site-menu-btn:hover,
.avs-admin-menu-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.avs-site-menu-btn.is-open .avs-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.avs-site-menu-btn.is-open .avs-burger span:nth-child(2) {
  opacity: 0;
}
.avs-site-menu-btn.is-open .avs-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* PHP site mobile nav panel */
.avs-site-mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 22, 29, 0.97);
  backdrop-filter: blur(16px);
}
body.avs-site-nav-open .avs-site-mobile-nav {
  display: block;
}
.avs-site-mobile-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}
.avs-site-mobile-inner a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}
.avs-site-mobile-inner a:hover {
  background: rgba(255, 255, 255, 0.05);
}
.avs-site-mobile-coffee {
  margin-top: 0.35rem;
  border: 1px solid rgba(255, 186, 31, 0.35) !important;
  background: rgba(255, 186, 31, 0.1);
  color: #fbbf24 !important;
  text-align: center;
}
@media (max-width: 859px) {
  .avs-site-menu-btn { display: inline-flex; }
}
@media (min-width: 860px) {
  .avs-site-menu-btn,
  .avs-site-mobile-nav { display: none !important; }
  body.avs-site-nav-open { overflow: auto !important; }
}
.avs-lang { position: relative; }
.avs-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  user-select: none;
  background: rgba(255, 255, 255, 0.03);
}
.avs-lang summary::-webkit-details-marker { display: none; }
.avs-lang summary:hover { border-color: rgba(255, 255, 255, 0.22); }
.avs-lang-code {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.avs-lang-chevron {
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}
.avs-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  speak: none;
}
.avs-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 7.5rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.15rem;
  z-index: 50;
}
.avs-lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
}
.avs-lang-menu a:hover,
.avs-lang-menu a.active {
  background: rgba(46, 133, 250, 0.15);
  color: var(--foreground);
}
.avs-footer-langs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Admin nav */
.avs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(28, 30, 39, 0.95);
}
.avs-nav strong { margin-right: auto; color: var(--foreground); }
.avs-nav a { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.avs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  transition: border-color 0.15s ease;
}
.avs-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.avs-card-head h2 {
  margin: 0;
}
.avs-release-actions {
  margin: 1rem 0 0;
}
.avs-release-actions .avs-btn {
  margin-top: 0;
}
a.avs-card:hover {
  border-color: rgba(46, 133, 250, 0.45);
  text-decoration: none;
}
.avs-card h1, .avs-card h2, h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }

.avs-form label { display: block; margin: 0.75rem 0; font-size: 0.9rem; color: var(--muted); }
.avs-form input, .avs-form textarea, .avs-form select {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 0.65rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--foreground);
}
.avs-form textarea { min-height: 120px; font-family: inherit; }

.avs-form button, .avs-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(46, 133, 250, 0.28);
}
.avs-btn:hover { background: var(--accent-strong); }
.avs-btn-sm {
  margin-top: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: none;
}
.avs-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: none;
}
.avs-btn-danger { background: var(--err); box-shadow: none; }

.avs-ok { color: var(--ok); }
.avs-err { color: var(--err); }
.avs-flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0 0 1rem;
}
.avs-muted { color: var(--muted); }

.avs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.avs-table th, .avs-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.avs-table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.avs-table-actions {
  text-align: right !important;
  white-space: nowrap;
  width: 1%;
}
.avs-table-actions .avs-btn { margin-top: 0; }

.avs-hero-dl { padding: 1.5rem 0 0.5rem; }
.avs-hero-dl h1 { margin-bottom: 0.4rem; }

.avs-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.avs-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .avs-grid-2 { grid-template-columns: 1fr 1fr; } }

.avs-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.avs-tabs a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
}
.avs-tabs a.active {
  border-color: var(--accent);
  color: var(--foreground);
  background: rgba(46, 133, 250, 0.12);
}

.avs-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(28, 30, 39, 0.6);
  margin-top: auto;
}
.avs-site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}
.avs-footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .avs-footer-grid { grid-template-columns: 1.6fr 1fr 1.1fr; }
}
.avs-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.avs-footer-brand-row img { border-radius: 8px; }
.avs-footer-brand strong,
.avs-site-footer h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--foreground);
}
.avs-site-footer h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.avs-footer-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.avs-footer-list a,
.avs-footer-social a {
  color: rgba(244, 244, 247, 0.75);
  font-size: 0.875rem;
  text-decoration: none !important;
}
.avs-footer-list a:hover,
.avs-footer-social a:hover { color: #fff; }
.avs-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.1rem;
}
.avs-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.avs-footer-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
}
.avs-footer-langs > span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}
.avs-footer-langs a {
  color: var(--muted);
  text-decoration: none !important;
}
.avs-footer-langs a:hover,
.avs-footer-langs a.active { color: var(--accent); font-weight: 600; }
.avs-footer-legal { font-size: 0.75rem; max-width: 42rem; line-height: 1.55; }
.avs-copy { font-size: 0.75rem; margin: 1rem 0 0; }

.avs-locale-notes details { margin: 0.5rem 0; }
.avs-locale-notes summary { cursor: pointer; color: var(--muted); }

/* —— Admin shell —— */
body.avs-admin {
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(46, 133, 250, 0.16), transparent 55%),
    var(--background);
}
body.avs-admin h1 {
  font-size: 1.25rem;
  margin: 0;
}
body.avs-admin h2 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
}
body.avs-admin h3 {
  font-size: 0.88rem;
  margin: 1rem 0 0.4rem;
  font-weight: 700;
}
body.avs-admin .avs-card,
body.avs-admin .avs-panel {
  background: rgba(28, 30, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--admin-radius-lg);
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  box-shadow: none;
}
body.avs-admin .avs-card-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.avs-admin .avs-card-head h2 { margin: 0; }
body.avs-admin .avs-btn,
body.avs-admin .avs-form button {
  margin-top: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none;
}
body.avs-admin .avs-btn-sm {
  margin-top: 0;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 7px;
}
body.avs-admin .avs-form label {
  margin: 0.55rem 0;
  font-size: 0.8rem;
}
body.avs-admin .avs-form input,
body.avs-admin .avs-form textarea,
body.avs-admin .avs-form select {
  margin-top: 0.28rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
body.avs-admin .avs-flash {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.84rem;
  margin: 0 0 0.85rem;
}
body.avs-admin .avs-table {
  font-size: 0.84rem;
}
body.avs-admin .avs-table th,
body.avs-admin .avs-table td {
  padding: 0.55rem 0.65rem;
  vertical-align: middle;
}
body.avs-admin .avs-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.avs-admin .avs-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
body.avs-admin .avs-table-actions {
  text-align: right !important;
  white-space: nowrap;
  width: 1%;
}
body.avs-admin .avs-table-actions .avs-btn { margin-top: 0; }
body.avs-admin .avs-panel-narrow { max-width: 26rem; }
body.avs-admin .avs-panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}
body.avs-admin .avs-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
body.avs-admin .avs-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground) !important;
  font-size: 0.84rem;
}
body.avs-admin .avs-check input {
  width: auto !important;
  margin: 0 !important;
}

.avs-admin-shell {
  display: grid;
  grid-template-columns: 208px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.avs-admin-backdrop {
  display: none;
}
.avs-admin-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.avs-admin-drawer-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.avs-admin-drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.avs-admin-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(22, 24, 32, 0.96);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 40;
}
.avs-admin-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  padding: 0.2rem 0.4rem;
  min-width: 0;
}
.avs-admin-brand img { border-radius: 7px; }

@media (max-width: 900px) {
  .avs-admin-shell { grid-template-columns: 1fr; }
  .avs-admin-menu-btn { display: inline-flex; }
  .avs-admin-drawer-close { display: inline-flex; }
  .avs-admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.avs-admin-nav-open .avs-admin-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .avs-admin-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(18rem, 86vw);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
    height: 100dvh;
    max-height: 100dvh;
    align-self: stretch;
  }
  body.avs-admin-nav-open .avs-admin-side {
    transform: translateX(0);
  }
  .avs-admin-top {
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.75rem 0.9rem;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(21, 22, 29, 0.94);
    backdrop-filter: blur(12px);
  }
  .avs-admin-top-text { flex: 1; min-width: 0; }
  .avs-admin-page-title { font-size: 1.1rem !important; }
  .avs-admin-page-sub { font-size: 0.8rem; }
  .avs-admin-content {
    padding: 0.75rem 0.85rem 1.75rem;
  }
  .avs-admin-pill { display: none; }
  body.avs-admin .avs-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .avs-kpi-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px) {
  .avs-admin-menu-btn,
  .avs-admin-drawer-close,
  .avs-admin-backdrop { display: none !important; }
}
.avs-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.avs-admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}
.avs-admin-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
}
.avs-admin-nav a.active {
  background: rgba(46, 133, 250, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(46, 133, 250, 0.28);
}
.avs-admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.avs-admin-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.avs-admin-side-foot a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.38rem 0.65rem;
  border-radius: 7px;
}
.avs-admin-side-foot a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.avs-admin-logout { color: #fca5a5 !important; }
.avs-admin-main { min-width: 0; display: flex; flex-direction: column; }
.avs-admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.35rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.avs-admin-top-text { min-width: 0; }
.avs-admin-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.avs-admin-page-sub {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 48rem;
}
.avs-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(46,133,250,0.28);
  background: rgba(46,133,250,0.1);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.avs-admin-content {
  padding: 1rem 1.5rem 2.25rem;
  max-width: none;
  width: 100%;
}
.avs-admin-content > .avs-admin-page-sub { display: none; }

/* —— Dashboard KPIs —— */
.avs-kpi-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.9rem;
}
.avs-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  padding: 1.05rem 1.15rem;
  border-radius: var(--admin-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 30, 39, 0.95);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.avs-kpi:hover {
  border-color: rgba(46, 133, 250, 0.4);
  background: rgba(34, 37, 48, 0.98);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -20px rgba(46, 133, 250, 0.55);
}
.avs-kpi-accent {
  background: rgba(28, 30, 39, 0.95);
  border-color: rgba(31, 173, 158, 0.22);
}
.avs-kpi-accent:hover {
  border-color: rgba(31, 173, 158, 0.45);
  box-shadow: 0 12px 28px -20px rgba(31, 173, 158, 0.45);
}
.avs-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
}
.avs-kpi-accent .avs-kpi-label { color: #5eead4; }
.avs-kpi-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.avs-kpi-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  flex: 1;
}
.avs-kpi-action {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
}
.avs-kpi-accent .avs-kpi-action { color: #5eead4; }

/* —— Analytics panel —— */
.avs-analytics {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--admin-radius-lg);
  background: rgba(28, 30, 39, 0.95);
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 1rem;
}
.avs-analytics-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-analytics-head h2 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.avs-analytics-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.avs-analytics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.avs-analytics-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 133, 250, 0.28);
  background: rgba(46, 133, 250, 0.1);
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 700;
}
.avs-analytics-pill.muted {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.avs-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.avs-period-seg {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.avs-period-seg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--muted) !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}
.avs-period-seg-item:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
}
.avs-period-seg-item.is-active {
  color: #fff !important;
  background: var(--accent);
  box-shadow: none;
}
.avs-period-custom {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.avs-period-select {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  min-width: 7.5rem;
}
.avs-period-select span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.avs-period-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.4rem 1.7rem 0.4rem 0.55rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(20, 22, 28, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393c5fd' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.65rem;
  color: #fff !important;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color-scheme: dark;
  cursor: pointer;
}
.avs-period-select select:focus {
  outline: none;
  border-color: rgba(46, 133, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(46, 133, 250, 0.14);
}
.avs-period-select select option {
  background: #1c1e27;
  color: #fff;
}
.avs-period-arrow {
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}
.avs-period-go {
  margin: 0.85rem 0 0;
  border: 0;
  border-radius: 7px;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.avs-period-go:hover { background: var(--accent-strong); }
.avs-analytics-charts {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .avs-analytics-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .avs-analytics-chart {
    border-top: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
  .avs-analytics-chart:first-child { border-left: 0; }
}
.avs-analytics-chart {
  padding: 0.85rem 0.95rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-analytics-chart:first-child { border-top: 0; }
.avs-analytics-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.55rem;
}
.avs-analytics-chart-head > div { min-width: 0; flex: 1; }
.avs-analytics-chart-head .avs-btn { flex-shrink: 0; white-space: nowrap; }
.avs-analytics-chart-head h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.84rem !important;
  font-weight: 700;
}
.avs-analytics-chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

/* Distribution panel */
.avs-analytics-dist { margin-top: 0.85rem; }
.avs-dist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.avs-dist-grid .avs-analytics-chart {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
}
.avs-dist-grid .avs-analytics-chart:first-child { border-top: 0; }
@media (min-width: 900px) {
  .avs-dist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .avs-dist-grid .avs-analytics-chart {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
  .avs-dist-grid .avs-analytics-chart:nth-child(2n + 1) { border-left: 0; }
  .avs-dist-grid .avs-analytics-chart:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Horizontal bars */
.avs-hbar {
  display: grid;
  gap: 0.55rem;
}
.avs-hbar-empty {
  margin: 0.35rem 0;
  font-size: 0.86rem;
}
.avs-hbar-row {
  min-width: 0;
  border-radius: 8px;
  padding: 0.2rem 0.15rem;
  transition: background 0.15s ease;
}
.avs-hbar-row:hover,
.avs-hbar-row:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}
.avs-hbar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
}
.avs-hbar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 650;
  color: rgba(244, 244, 247, 0.92);
}
.avs-hbar-count {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.avs-hbar-pct {
  font-weight: 600;
  opacity: 0.85;
}
.avs-hbar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.avs-hbar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5aa6ff);
  min-width: 2px;
  transition: filter 0.15s ease;
}
.avs-hbar-animated .avs-hbar-fill {
  animation: avs-hbar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--avs-delay, 0s);
}
.avs-hbar-row:hover .avs-hbar-fill { filter: brightness(1.15); }
.avs-hbar-fill.is-new {
  background: linear-gradient(90deg, var(--teal), #5eead4);
}
.avs-hbar-fill.is-returning {
  background: linear-gradient(90deg, var(--green), #86efac);
}
@keyframes avs-hbar-grow {
  from { width: 0; }
  to { width: var(--w, 0%); }
}

.avs-share-strip {
  display: flex;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  gap: 2px;
}
.avs-share-seg {
  display: block;
  height: 100%;
  min-width: 3px;
  transition: filter 0.15s ease;
}
.avs-share-seg:hover { filter: brightness(1.2); }
.avs-share-seg.tone-0 { background: #2e85fa; }
.avs-share-seg.tone-1 { background: #1fad9e; }
.avs-share-seg.tone-2 { background: #6366f1; }
.avs-share-seg.tone-3 { background: #2eb86b; }
.avs-share-seg.tone-4 { background: #f59e0b; }
.avs-share-seg.tone-5 { background: #ec4899; }
.avs-share-seg.tone-rest { background: rgba(255, 255, 255, 0.18); }

.avs-stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.85rem 1.05rem 0;
}
.avs-stat-mini {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}
.avs-stat-mini-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.avs-stat-mini strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.avs-detail-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 980px) {
  .avs-detail-charts { grid-template-columns: 1.15fr 1fr; }
  .avs-detail-chart-card + .avs-detail-chart-card {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}
.avs-detail-chart-card { padding: 1rem 1.1rem 1.15rem; }
.avs-analytics-related-block { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.avs-analytics-head.compact { padding-bottom: 0.65rem; }
.avs-dist-grid-related .avs-analytics-chart { padding-top: 0.95rem; }
.avs-analytics-block-title {
  margin: 0 0 0.65rem !important;
  font-size: 0.9rem !important;
}

/* Analytics detail */
.avs-analytics-detail { margin-top: 0.25rem; }
.avs-analytics-detail-body { padding: 1rem 1.15rem 1.25rem; }
.avs-analytics-detail-table {
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-analytics-detail-table h3 {
  margin: 0.95rem 0 0.65rem;
  font-size: 0.9rem !important;
}
.avs-period-filters { justify-content: space-between; }
.avs-analytics-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.avs-table-spark {
  width: 7rem;
  min-width: 5rem;
}
.avs-table-spark span {
  display: block;
  height: 0.4rem;
  width: var(--w, 0%);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5aa6ff);
}
.avs-chart-lg { min-height: 13rem; }
.avs-chart-lg .avs-chart-col { height: 13rem; }
.avs-chart-lg .avs-chart-bar { max-width: 2.1rem; }
.avs-chart {
  display: grid;
  grid-template-columns: repeat(var(--avs-chart-cols, 12), minmax(0, 1fr));
  align-items: end;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 0.35rem 0 0;
}
.avs-chart-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
  height: 8.5rem;
  border-radius: 8px;
  cursor: default;
  transition: background 0.15s ease;
}
.avs-chart-col:hover,
.avs-chart-col:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}
.avs-chart-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.15rem);
  z-index: 5;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 4.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 20, 28, 0.96);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.avs-chart-tip strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.avs-chart-tip em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 750;
  color: #93c5fd;
}
.avs-chart-col:hover .avs-chart-tip,
.avs-chart-col:focus-visible .avs-chart-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.avs-chart-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.avs-chart-col:hover .avs-chart-val {
  color: #fff;
  transform: translateY(-1px);
}
.avs-chart-bar {
  display: block;
  width: 100%;
  max-width: 1.35rem;
  height: var(--h, 4%);
  min-height: 3px;
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #5aa6ff, var(--accent));
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.avs-chart-animated .avs-chart-bar {
  animation: avs-vbar-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--avs-delay, 0s);
}
.avs-chart-col:hover .avs-chart-bar {
  filter: brightness(1.18);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.25);
}
.avs-chart-bar.is-new {
  background: linear-gradient(180deg, #5eead4, var(--teal));
}
.avs-chart-bar.is-returning {
  background: linear-gradient(180deg, #86efac, var(--green));
}
.avs-chart-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes avs-vbar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (max-width: 960px) {
  .avs-stat-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.avs-user-dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}
.avs-user-dl > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.avs-user-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.avs-user-dl dd {
  margin: 0;
  font-size: 0.86rem;
  word-break: break-word;
}
.avs-user-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-user-note h3 {
  margin: 0 0 0.35rem !important;
  font-size: 0.92rem !important;
}
.avs-user-note .avs-form { margin-top: 0.35rem; }
.avs-user-note-label { margin-top: 0 !important; }
.avs-user-note textarea {
  min-height: 7rem;
  resize: vertical;
}
.avs-user-note-cell {
  max-width: 14rem;
  color: rgba(244, 244, 247, 0.78);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avs-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;
}
@media (prefers-reduced-motion: reduce) {
  .avs-chart-animated .avs-chart-bar,
  .avs-hbar-animated .avs-hbar-fill {
    animation: none !important;
    transform: none !important;
    width: var(--w, 0%) !important;
  }
  .avs-chart-animated .avs-chart-bar { transform: scaleY(1) !important; }
}
@media (max-width: 960px) {
  .avs-kpi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .avs-period {
    flex-direction: column;
    align-items: stretch;
  }
  .avs-period-seg { width: 100%; justify-content: space-between; }
  .avs-period-seg-item { flex: 1; }
  .avs-period-custom { width: 100%; }
  .avs-period-select { flex: 1; min-width: 0; }
  .avs-period-go { width: 100%; margin-top: 0.25rem; }
  .avs-period-arrow { display: none; }
  .avs-chart-label { font-size: 0.5rem; }
  .avs-user-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

.avs-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}
.avs-login-card {
  width: 100%;
  max-width: 380px;
  border-radius: var(--admin-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 30, 39, 0.96);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.avs-login-card img {
  border-radius: 8px;
  width: 36px;
  height: 36px;
}
.avs-login-card h1 {
  margin: 0.65rem 0 0.25rem;
  font-size: 1.25rem !important;
}
.avs-login-card .avs-muted { font-size: 0.82rem; }
.avs-login-card .avs-form button {
  width: 100%;
  margin-top: 0.85rem;
  border-radius: 8px;
  box-shadow: none;
}
.avs-status-pill {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.avs-status-pill.open {
  background: rgba(46,133,250,0.15);
  color: #93c5fd;
}
.avs-status-pill.closed {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

/* —— Messages / detail cards —— */
.avs-msg-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.avs-msg-page-head .avs-admin-page-sub { display: none; }
.avs-msg-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.avs-msg-list {
  display: grid;
  gap: 0.55rem;
}
.avs-msg-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: var(--admin-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(28, 30, 39, 0.95);
  box-shadow: none;
}
.avs-msg-card.is-new {
  border-color: rgba(46, 133, 250, 0.28);
  background: rgba(32, 38, 52, 0.98);
  box-shadow: none;
}
.avs-msg-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.65rem;
  margin-bottom: 0.3rem;
}
.avs-msg-card-top time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.avs-msg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.avs-msg-badge.is-new {
  background: rgba(46, 133, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(46, 133, 250, 0.28);
}
.avs-msg-badge.is-read {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.avs-msg-card-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.avs-msg-card-from {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.avs-msg-card-from strong { color: rgba(244, 244, 247, 0.9); }
.avs-msg-card-preview {
  margin: 0;
  color: rgba(244, 244, 247, 0.68);
  font-size: 0.8rem;
  line-height: 1.4;
}
.avs-msg-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 7.25rem;
}
.avs-msg-card-actions .avs-btn {
  margin-top: 0;
  text-align: center;
}
.avs-msg-card-actions form { margin: 0; }
.avs-msg-empty {
  padding: 1.5rem 1rem;
  border-radius: var(--admin-radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}
.avs-msg-back { margin: 0 0 0.65rem; font-size: 0.82rem; }
.avs-msg-back a {
  color: #93c5fd;
  font-weight: 650;
  text-decoration: none !important;
}
.avs-msg-detail {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--admin-radius-lg);
  background: rgba(28, 30, 39, 0.95);
  overflow: hidden;
  box-shadow: none;
}
.avs-msg-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-msg-detail-head h2 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.05rem !important;
  line-height: 1.3;
  word-break: break-word;
}
.avs-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.avs-msg-meta a { color: #93c5fd; }
.avs-msg-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.avs-msg-detail-actions .avs-btn { margin-top: 0; }
.avs-msg-detail-actions form { margin: 0; }
.avs-msg-detail-body {
  padding: 0.9rem 1rem 1.1rem;
  color: rgba(244, 244, 247, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .avs-msg-card { grid-template-columns: 1fr; }
  .avs-msg-card-actions {
    flex-direction: row;
    min-width: 0;
  }
  .avs-msg-card-actions .avs-btn,
  .avs-msg-card-actions form { flex: 1; }
}

.avs-admin-content > h1 { display: none; } /* title lives in top bar */
.avs-roadmap-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  background: rgba(255,255,255,0.02);
}
.avs-roadmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.avs-notes-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 16rem;
  white-space: pre;
}

.avs-upload-progress {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(46, 133, 250, 0.28);
  background: rgba(46, 133, 250, 0.08);
}
.avs-upload-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.avs-upload-progress-top strong {
  color: var(--foreground);
  font-size: 0.92rem;
}
#avs-upload-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #93c5fd;
}
.avs-upload-bar {
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.avs-upload-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e85fa, #1fad9e);
  transition: width 0.12s ease-out;
}
.avs-upload-progress.is-processing .avs-upload-bar-fill {
  background-size: 140% 100%;
  animation: avs-upload-shine 1.1s ease-in-out infinite;
}
.avs-upload-bytes {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}
@keyframes avs-upload-shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}

/* —— Professional download page —— */
.dl-page {
  width: 100%;
  overflow-x: clip;
}
.dl-shell {
  width: 100%;
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}
.dl-hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 3.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46, 133, 250, 0.28), transparent 68%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(31, 173, 158, 0.14), transparent 65%);
}
.dl-hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(21, 22, 29, 0.55) 100%);
}
.dl-hero-orbs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.dl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: dl-float 10s ease-in-out infinite;
}
.dl-orb-a {
  width: 18rem;
  height: 18rem;
  left: 8%;
  top: 10%;
  background: rgba(46, 133, 250, 0.35);
}
.dl-orb-b {
  width: 14rem;
  height: 14rem;
  right: 10%;
  top: 28%;
  background: rgba(31, 173, 158, 0.28);
  animation-delay: -4s;
}
@keyframes dl-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}
.dl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-logo {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1.15rem;
  box-shadow: 0 18px 40px -16px rgba(46, 133, 250, 0.55);
}
.dl-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 133, 250, 0.4);
  background: rgba(46, 133, 250, 0.14);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dl-hero h1 {
  margin: 1rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.dl-lead {
  margin: 0;
  color: rgba(244, 244, 247, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
  text-wrap: pretty;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.6rem 0 1.4rem;
}
.dl-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.dl-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
}
.dl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: 16rem;
  padding: 0.95rem 1.45rem 0.95rem 1.2rem;
  border-radius: 1.1rem;
  border: 0;
  background: linear-gradient(180deg, #4a9bff 0%, var(--accent) 55%, var(--accent-strong) 100%);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 18px 44px -14px rgba(46, 133, 250, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.dl-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 22px 50px -12px rgba(46, 133, 250, 0.8);
}
.dl-cta-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.dl-cta-label {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}
.dl-apple { flex-shrink: 0; }
.dl-hint {
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}
.dl-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.dl-hero-links a {
  color: #93c5fd;
  text-decoration: none !important;
}
.dl-hero-links a:hover { text-decoration: underline !important; }
.dl-empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.dl-body {
  padding: 2.75rem 0 4.5rem;
}
.dl-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 960px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.85fr);
  }
}
.dl-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.dl-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, rgba(38, 41, 51, 0.92), rgba(28, 30, 39, 0.88));
  padding: 1.5rem 1.55rem 1.65rem;
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 5.5rem;
}
.dl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.dl-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dl-lang-pill {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 133, 250, 0.3);
  background: rgba(46, 133, 250, 0.12);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
}
.dl-fallback {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 186, 31, 0.25);
  background: rgba(255, 186, 31, 0.08);
  color: #fcd34d;
  font-size: 0.85rem;
  text-align: left;
}
.dl-notes-title {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(244, 244, 247, 0.95);
  text-align: left;
}
.dl-notes-body {
  color: rgba(244, 244, 247, 0.82);
  font-size: 0.96rem;
  text-align: left;
}
.dl-notes-body p { margin: 0 0 0.8rem; line-height: 1.6; }
.dl-notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.dl-notes-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.dl-notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 133, 250, 0.18);
}
.dl-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.95rem;
  text-align: left;
}
.dl-steps li {
  position: relative;
  padding-left: 2.55rem;
  color: rgba(244, 244, 247, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  counter-increment: step;
}
.dl-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 133, 250, 0.16);
  border: 1px solid rgba(46, 133, 250, 0.35);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
}
.dl-chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
.dl-chips li {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.dl-history-panel {
  margin-top: 1.25rem;
  scroll-margin-top: 5.5rem;
}
.dl-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.dl-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.1rem;
  min-height: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dl-history-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.dl-history-row.is-current {
  border-color: rgba(46, 133, 250, 0.35);
  background:
    linear-gradient(135deg, rgba(46, 133, 250, 0.14), rgba(0, 0, 0, 0.12) 55%);
  box-shadow: inset 0 0 0 1px rgba(46, 133, 250, 0.08);
}
.dl-history-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  text-align: left;
  line-height: 1.25;
}
.dl-history-main strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 0;
}
.dl-current-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(46, 184, 107, 0.16);
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.dl-history-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.25;
}
.dl-history-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 133, 250, 0.3);
  background: rgba(46, 133, 250, 0.12);
  font-weight: 700;
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: none !important;
}
.dl-history-link:hover {
  background: rgba(46, 133, 250, 0.2);
  border-color: rgba(46, 133, 250, 0.45);
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .dl-hero { padding: 2.6rem 0 2.2rem; }
  .dl-cta {
    width: 100%;
    min-width: 0;
  }
  .dl-logo {
    width: 3.75rem;
    height: 3.75rem;
  }
  .dl-history-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .avs-site-header-inner {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .avs-site-actions { gap: 0.4rem; }
  .avs-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
  .avs-lang summary { padding: 0.35rem 0.55rem; }
  .avs-wrap { padding-left: 0.85rem; padding-right: 0.85rem; }
}

/* —— Todos (admin) —— */
.avs-todo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 24, 32, 0.65);
  width: fit-content;
  max-width: 100%;
}
.avs-todo-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.avs-todo-filter:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none !important;
}
.avs-todo-filter.is-active {
  color: #fff;
  background: rgba(46, 133, 250, 0.22);
  box-shadow: inset 0 0 0 1px rgba(46, 133, 250, 0.35);
}
.avs-todo-section {
  overflow: hidden;
}
.avs-todo-section-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  user-select: none;
}
.avs-todo-section-head::-webkit-details-marker { display: none; }
.avs-todo-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.avs-todo-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.avs-todo-section-chevron {
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.avs-todo-section[open] .avs-todo-section-chevron {
  transform: rotate(225deg) translateY(2px);
}
.avs-todo-section-body {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.avs-todo-check {
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: inline-flex;
}
.avs-todo-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  cursor: default;
}
.avs-todo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.avs-todo-chip-web {
  border: 1px solid rgba(46, 133, 250, 0.35);
  background: rgba(46, 133, 250, 0.12);
  color: #93c5fd;
}
.avs-todo-chip-mobile {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

/* Admin todos */
.avs-todo-compose-form {
  margin: 0;
}
.avs-todo-compose-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.avs-todo-compose-msg {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0 !important;
}
.avs-todo-compose-cat {
  flex: 0 0 auto;
  width: 7.5rem;
  margin: 0 !important;
}
body.avs-admin .avs-todo-compose-form input,
body.avs-admin .avs-todo-compose-form select {
  margin-top: 0;
  width: 100%;
}
body.avs-admin .avs-todo-compose-form .avs-btn {
  margin-top: 0;
}
.avs-todo-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.avs-todo-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.avs-todo-admin-row.is-done .avs-todo-admin-msg {
  color: var(--muted);
  text-decoration: line-through;
}
.avs-todo-admin-toggle { margin: 0; }
.avs-todo-admin-body { flex: 1; min-width: 12rem; }
.avs-todo-admin-msg {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.avs-todo-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.avs-todo-admin-actions .avs-btn { margin-top: 0; }
body.avs-admin .avs-todo-admin-actions .avs-btn { margin-top: 0; }
