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

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

.wt-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wt-space-2);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--wt-radius-sm);
  font: 700 0.94rem/1.2 var(--wt-font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--wt-duration-fast) var(--wt-ease),
    background-color var(--wt-duration-fast) ease,
    border-color var(--wt-duration-fast) ease,
    color var(--wt-duration-fast) ease,
    box-shadow var(--wt-duration-fast) ease;
}

.wt-button:hover {
  transform: translateY(-2px);
}

.wt-button:active {
  transform: translateY(0);
}

.wt-button--primary {
  color: #fff;
  background: var(--wt-color-primary);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--wt-color-primary) 26%, transparent);
}

.wt-button--primary:hover {
  background: var(--wt-color-primary-strong);
}

.wt-button--secondary {
  color: var(--wt-color-text);
  background: var(--wt-color-surface);
  border-color: var(--wt-color-border);
}

.wt-button--secondary:hover {
  border-color: var(--wt-color-border-strong);
  box-shadow: var(--wt-shadow-sm);
}

.wt-button--quiet {
  color: var(--wt-color-text-secondary);
  background: transparent;
}

.wt-button--danger {
  color: var(--wt-color-danger);
  background: transparent;
  border-color: color-mix(in srgb, var(--wt-color-danger) 35%, transparent);
}

.wt-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wt-color-border);
  border-radius: var(--wt-radius-sm);
  color: var(--wt-color-text);
  background: var(--wt-color-surface);
  cursor: pointer;
  transition: background-color var(--wt-duration-fast) ease,
    border-color var(--wt-duration-fast) ease,
    transform var(--wt-duration-fast) var(--wt-ease);
}

.wt-icon-button:hover {
  border-color: var(--wt-color-primary);
  background: var(--wt-color-primary-soft);
  transform: translateY(-1px);
}

.wt-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--wt-color-border);
  border-radius: 999px;
  color: var(--wt-color-text-secondary);
  background: var(--wt-color-surface);
  font: 650 0.86rem/1 var(--wt-font-body);
}

button.wt-chip {
  cursor: pointer;
}

button.wt-chip:hover,
.wt-chip[aria-pressed="true"],
.wt-chip.is-active {
  color: var(--wt-color-primary-strong);
  border-color: color-mix(in srgb, var(--wt-color-primary) 45%, var(--wt-color-border));
  background: var(--wt-color-primary-soft);
}

.wt-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--wt-space-2);
  margin: 0 0 var(--wt-space-3);
  color: var(--wt-color-primary-strong);
  font: 750 0.8rem/1.2 var(--wt-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wt-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.wt-surface-card {
  border: 1px solid var(--wt-color-border);
  border-radius: var(--wt-radius-lg);
  background: var(--wt-color-surface);
  box-shadow: var(--wt-shadow-sm);
}

.wt-theme-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.wt-theme-icon--sun,
[data-theme="dark"] .wt-theme-icon--moon {
  display: none;
}

[data-theme="dark"] .wt-theme-icon--sun {
  display: block;
}

.wt-empty-state {
  padding: var(--wt-space-7) var(--wt-space-5);
  text-align: center;
  color: var(--wt-color-text-secondary);
}

.wt-empty-state h3 {
  margin: 0 0 var(--wt-space-2);
  color: var(--wt-color-text);
}

.wt-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--wt-color-border);
  border-radius: var(--wt-radius-xl);
  color: var(--wt-color-text);
  background: var(--wt-color-surface);
  box-shadow: var(--wt-shadow-md);
}

.wt-dialog::backdrop {
  background: rgba(15, 18, 32, 0.52);
  backdrop-filter: blur(6px);
}

.wt-dialog__header,
.wt-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wt-space-4);
  padding: var(--wt-space-5);
}

.wt-dialog__header {
  border-bottom: 1px solid var(--wt-color-border);
}

.wt-dialog__footer {
  border-top: 1px solid var(--wt-color-border);
}

.wt-dialog__body {
  padding: var(--wt-space-5);
}

.wt-dialog__title {
  margin: 0;
  font-size: 1.35rem;
}

@media (max-width: 600px) {
  .wt-button {
    min-height: 48px;
  }

  .wt-dialog__header,
  .wt-dialog__body,
  .wt-dialog__footer {
    padding: var(--wt-space-4);
  }
}
