:root {
  --vf-plum-deep: #3d1737;
  --vf-plum: #55204e;
  --vf-gold: #ffbb33;
  --vf-canvas: #f5f7fa;
  --vf-surface: #fff;
  --vf-ink: #1f1f1f;
  --vf-body: #4a4a4a;
  --vf-muted: #64748b;
  --vf-border: #cbd5e1;
  --vf-success: #047857;
  --vf-success-bg: #d1fae5;
  --vf-warning: #92400e;
  --vf-warning-bg: #fef3c7;
  --vf-danger: #b91c1c;
  --vf-danger-bg: #fee2e2;
  --vf-info: #1d4ed8;
  --vf-info-bg: #dbeafe;
  --vf-focus: 0 0 0 3px rgba(255, 187, 51, .48);
}

.vf-skip-link {
  position: fixed;
  z-index: 11000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--vf-gold);
  color: var(--vf-plum-deep);
  font-weight: 800;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform .16s ease;
}

.vf-skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--vf-focus);
}

.navbar-burger,
.h1-burger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  background: transparent;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--vf-plum);
  outline-offset: 3px;
}

.vf-action {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .85rem;
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  background: var(--vf-surface);
  color: var(--vf-plum-deep);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.vf-action--primary {
  border-color: var(--vf-gold);
  background: var(--vf-gold);
}

.vf-action--dark {
  border-color: var(--vf-plum-deep);
  background: var(--vf-plum-deep);
  color: #fff;
}

.vf-action--danger {
  border-color: var(--vf-danger);
  background: var(--vf-danger);
  color: #fff;
}

.vf-action[disabled],
.vf-action[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
}

.vf-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 28px;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: #eef0f5;
  color: #334155;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
}

.vf-badge--success { background: var(--vf-success-bg); color: var(--vf-success); }
.vf-badge--warning { background: var(--vf-warning-bg); color: var(--vf-warning); }
.vf-badge--danger { background: var(--vf-danger-bg); color: var(--vf-danger); }
.vf-badge--info { background: var(--vf-info-bg); color: var(--vf-info); }

.vf-state {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: var(--vf-surface);
  color: var(--vf-body);
}

.vf-state > i { margin-top: .2rem; color: var(--vf-plum); }
.vf-state strong { display: block; margin-bottom: .15rem; color: var(--vf-ink); }
.vf-state--success { border-color: #a7f3d0; background: #f0fdf4; }
.vf-state--warning { border-color: #fde68a; background: #fffbeb; }
.vf-state--danger { border-color: #fecaca; background: #fff5f5; }
.vf-state--info { border-color: #bfdbfe; background: #eff6ff; }

.vf-action-menu {
  position: relative;
  display: inline-flex;
}

.vf-action-menu__panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + .4rem);
  right: 0;
  width: max-content;
  min-width: 190px;
  padding: .35rem;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  background: var(--vf-surface);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
}

.vf-action-menu__panel[aria-hidden="true"] { display: none; }

.vf-action-menu__item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vf-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.vf-action-menu__item:hover,
.vf-action-menu__item:focus-visible {
  background: #f4f0f4;
}

.vf-dialog {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .62);
}

.vf-dialog[aria-hidden="true"] { display: none; }

.vf-dialog__surface {
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 12px;
  background: var(--vf-surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.vf-dialog__header,
.vf-dialog__body,
.vf-dialog__footer { padding: 1rem 1.15rem; }

.vf-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--vf-border);
}

.vf-dialog__header h2 {
  margin: 0;
  color: var(--vf-ink);
  font-size: 1.15rem;
}

.vf-dialog__header p,
.vf-dialog__body p { margin: .35rem 0 0; color: var(--vf-body); font-weight: 400; }

.vf-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
  border-top: 1px solid var(--vf-border);
  background: #f8fafc;
}

body.vf-dialog-open { overflow: hidden; }

html.vf-visual-test *,
html.vf-visual-test *::before,
html.vf-visual-test *::after {
  scroll-behavior: auto;
  animation: none;
  transition: none;
  caret-color: transparent;
}
