@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");
:root,
.ed {
  --ed-bg: #FFFFFF;
  --ed-bg-alt: #F8F7F4;
  --ed-bg-inset: #F2F0EC;
  --ed-surface: #FFFFFF;
  --ed-surface-raised: #FFFFFF;
  --ed-accent: #C41E3A;
  --ed-accent-hover: #A8182F;
  --ed-accent-active: #8E1427;
  --ed-accent-light: rgba(196, 30, 58, 0.06);
  --ed-accent-muted: rgba(196, 30, 58, 0.12);
  --ed-on-accent: #FFFFFF;
  --ed-text: #1A1A1A;
  --ed-text-secondary: #4A4A4A;
  --ed-text-tertiary: #8A8A8A;
  --ed-text-inverse: #FFFFFF;
  --ed-rule: #1A1A1A;
  --ed-rule-light: #D4D4D4;
  --ed-rule-accent: #C41E3A;
  --ed-success: #2D6A4F;
  --ed-success-light: #F0F7F4;
  --ed-warning: #9A6700;
  --ed-warning-light: #FDF8EE;
  --ed-error: #A4243B;
  --ed-error-light: #FDF2F4;
  --ed-info: #2B5EA7;
  --ed-info-light: #F0F4FA;
  --ed-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ed-font-sans: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  --ed-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  --ed-display-xl: 900 3.5rem/1.05 var(--ed-font-serif);
  --ed-display-lg: 900 2.75rem/1.08 var(--ed-font-serif);
  --ed-display-md: 700 2.25rem/1.12 var(--ed-font-serif);
  --ed-display-sm: 700 1.75rem/1.15 var(--ed-font-serif);
  --ed-heading-xl: 700 1.5rem/1.2 var(--ed-font-serif);
  --ed-heading-lg: 700 1.25rem/1.25 var(--ed-font-serif);
  --ed-heading-md: 600 1.125rem/1.3 var(--ed-font-serif);
  --ed-heading-sm: 600 1rem/1.35 var(--ed-font-serif);
  --ed-body-lg: 400 1.125rem/1.65 var(--ed-font-sans);
  --ed-body-md: 400 1rem/1.6 var(--ed-font-sans);
  --ed-body-sm: 400 0.875rem/1.55 var(--ed-font-sans);
  --ed-label-lg: 600 0.8125rem/1.2 var(--ed-font-sans);
  --ed-label-md: 600 0.75rem/1.2 var(--ed-font-sans);
  --ed-label-sm: 600 0.6875rem/1.2 var(--ed-font-sans);
  --ed-caption: 400 0.75rem/1.4 var(--ed-font-sans);
  --ed-overline: 600 0.6875rem/1.2 var(--ed-font-sans);
  --ed-ls-tight: -0.02em;
  --ed-ls-normal: 0;
  --ed-ls-caps: 0.1em;
  --ed-ls-wide: 0.14em;
  --ed-radius-sm: 2px;
  --ed-radius-md: 3px;
  --ed-radius-lg: 4px;
  --ed-radius-full: 9999px;
  --ed-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ed-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ed-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.10);
  --ed-duration-fast: 120ms;
  --ed-duration-normal: 200ms;
  --ed-duration-slow: 300ms;
  --ed-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ed-space-1: 4px;
  --ed-space-2: 8px;
  --ed-space-3: 12px;
  --ed-space-4: 16px;
  --ed-space-5: 20px;
  --ed-space-6: 24px;
  --ed-space-8: 32px;
  --ed-space-10: 40px;
  --ed-space-12: 48px;
  --ed-space-16: 64px;
  --ed-space-20: 80px;
  --ed-focus-ring: 0 0 0 2px var(--ed-bg), 0 0 0 4px var(--ed-accent);
}

.ed.dark,
.ed[data-theme=dark],
[data-theme=dark] .ed {
  --ed-bg: #1A1A1A;
  --ed-bg-alt: #222222;
  --ed-bg-inset: #141414;
  --ed-surface: #222222;
  --ed-surface-raised: #2A2A2A;
  --ed-accent: #E8475E;
  --ed-accent-hover: #F25C71;
  --ed-accent-active: #D13A50;
  --ed-accent-light: rgba(232, 71, 94, 0.10);
  --ed-accent-muted: rgba(232, 71, 94, 0.18);
  --ed-on-accent: #FFFFFF;
  --ed-text: #E8E8E8;
  --ed-text-secondary: #A0A0A0;
  --ed-text-tertiary: #666666;
  --ed-text-inverse: #1A1A1A;
  --ed-rule: rgba(255, 255, 255, 0.15);
  --ed-rule-light: rgba(255, 255, 255, 0.08);
  --ed-rule-accent: #E8475E;
  --ed-success: #52B788;
  --ed-success-light: rgba(82, 183, 136, 0.10);
  --ed-warning: #E0A82E;
  --ed-warning-light: rgba(224, 168, 46, 0.10);
  --ed-error: #E05D6F;
  --ed-error-light: rgba(224, 93, 111, 0.10);
  --ed-info: #6B9BD2;
  --ed-info-light: rgba(107, 155, 210, 0.10);
  --ed-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --ed-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
  --ed-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.45);
  --ed-focus-ring: 0 0 0 2px var(--ed-bg), 0 0 0 4px var(--ed-accent);
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  font-family: var(--ed-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--ed-radius-sm);
  transition: all var(--ed-duration-fast) var(--ed-easing);
  -webkit-tap-highlight-color: transparent;
}
.ed-btn:focus-visible {
  outline: none;
  box-shadow: var(--ed-focus-ring);
}
.ed-btn:active {
  transform: scale(0.98);
}
.ed-btn .ed-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ed-btn:disabled, .ed-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ed-btn {
  background: var(--ed-text);
  color: var(--ed-bg);
}
.ed-btn:hover {
  background: var(--ed-text-secondary);
}
.ed-btn:active {
  background: var(--ed-text);
}

.ed-btn--primary {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}
.ed-btn--primary:hover {
  background: var(--ed-accent-hover);
}
.ed-btn--primary:active {
  background: var(--ed-accent-active);
}

.ed-btn--secondary {
  background: var(--ed-bg);
  color: var(--ed-text);
  border: 1px solid var(--ed-rule);
}
.ed-btn--secondary:hover {
  background: var(--ed-bg-alt);
}
.ed-btn--secondary:active {
  background: var(--ed-bg-inset);
}

.ed-btn--ghost {
  background: transparent;
  color: var(--ed-text-secondary);
}
.ed-btn--ghost:hover {
  color: var(--ed-text);
  background: var(--ed-accent-light);
}
.ed-btn--ghost:active {
  color: var(--ed-text);
}

.ed-btn--outline {
  background: transparent;
  color: var(--ed-text);
  border: 1px solid var(--ed-rule-light);
}
.ed-btn--outline:hover {
  border-color: var(--ed-rule);
  background: var(--ed-bg-alt);
}
.ed-btn--outline:active {
  background: var(--ed-bg-inset);
}

.ed-btn--danger {
  background: var(--ed-error);
  color: #FFFFFF;
}
.ed-btn--danger:hover {
  background: #8B1D2E;
}
.ed-btn--danger:active {
  background: #741828;
}

.ed-btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 0.6875rem;
  letter-spacing: var(--ed-ls-wide);
}
.ed-btn--sm .ed-btn__icon {
  width: 14px;
  height: 14px;
}

.ed-btn--lg {
  height: 48px;
  padding: 0 28px;
  font-size: 0.875rem;
  gap: 10px;
}
.ed-btn--lg .ed-btn__icon {
  width: 18px;
  height: 18px;
}

.ed-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
}
.ed-btn--icon.ed-btn--sm {
  width: 32px;
  height: 32px;
}
.ed-btn--icon.ed-btn--lg {
  width: 48px;
  height: 48px;
}

.ed-btn--full {
  width: 100%;
}

.ed-btn--loading {
  pointer-events: none;
  position: relative;
}
.ed-btn--loading .ed-btn__label {
  visibility: hidden;
}
.ed-btn--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ed-spin 0.6s linear infinite;
}

@keyframes ed-spin {
  to {
    transform: rotate(360deg);
  }
}
.ed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ed-surface);
  border-bottom: 1px solid var(--ed-rule-light);
  overflow: hidden;
  transition: all var(--ed-duration-normal) var(--ed-easing);
}

.ed-card--ruled {
  border-top: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  padding-top: var(--ed-space-4);
  padding-bottom: var(--ed-space-4);
}

.ed-card--featured {
  border-bottom: none;
  border-left: 3px solid var(--ed-accent);
  padding-left: var(--ed-space-6);
}
.ed-card--featured .ed-card__title {
  font: var(--ed-display-sm);
  letter-spacing: var(--ed-ls-tight);
}

.ed-card--bordered {
  border: 1px solid var(--ed-rule-light);
  border-radius: var(--ed-radius-sm);
}

.ed-card--interactive {
  cursor: pointer;
}
.ed-card--interactive:hover .ed-card__title {
  color: var(--ed-accent);
}
.ed-card--interactive:focus-visible {
  outline: none;
  box-shadow: var(--ed-focus-ring);
}

.ed-card__media {
  overflow: hidden;
}
.ed-card__media img,
.ed-card__media video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ed-card__kicker {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-accent);
  margin: 0;
  padding: var(--ed-space-4) var(--ed-space-4) 0;
}

.ed-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--ed-space-3) var(--ed-space-4) 0;
}

.ed-card__kicker + .ed-card__header {
  padding-top: var(--ed-space-2);
}

.ed-card__title {
  font: var(--ed-heading-lg);
  letter-spacing: var(--ed-ls-tight);
  color: var(--ed-text);
  margin: 0;
  transition: color var(--ed-duration-fast) var(--ed-easing);
}

.ed-card__subtitle {
  font: var(--ed-body-sm);
  color: var(--ed-text-secondary);
  margin: 0;
}

.ed-card__body {
  padding: var(--ed-space-3) var(--ed-space-4) var(--ed-space-4);
  font: var(--ed-body-sm);
  color: var(--ed-text-secondary);
}

.ed-card__header + .ed-card__body {
  padding-top: var(--ed-space-2);
}

.ed-card__meta {
  display: flex;
  align-items: center;
  gap: var(--ed-space-3);
  padding: var(--ed-space-3) var(--ed-space-4);
  font-family: var(--ed-font-sans);
  font-size: 0.75rem;
  color: var(--ed-text-tertiary);
  border-top: 1px solid var(--ed-rule-light);
  margin-top: auto;
}

.ed-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ed-card__meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ed-text-tertiary);
}

.ed-card__footer {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
  padding: var(--ed-space-3) var(--ed-space-4);
  border-top: 1px solid var(--ed-rule-light);
  margin-top: auto;
}

.ed-card__actions {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
  padding: 0 var(--ed-space-4) var(--ed-space-3);
}

.ed-card__actions--end {
  justify-content: flex-end;
}

.ed-card--horizontal {
  flex-direction: row;
}
.ed-card--horizontal .ed-card__media {
  flex-shrink: 0;
  width: 160px;
}
.ed-card--horizontal .ed-card__media img {
  height: 100%;
  object-fit: cover;
}
.ed-card--horizontal .ed-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ed-card--headline {
  border-bottom: none;
  border-top: 1px solid var(--ed-rule-light);
  padding: var(--ed-space-3) 0;
}
.ed-card--headline .ed-card__title {
  font: var(--ed-heading-sm);
  padding: 0;
}
.ed-card--headline .ed-card__header {
  padding: 0;
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ed-field__label {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text);
}

.ed-field__optional {
  font: var(--ed-caption);
  color: var(--ed-text-tertiary);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.ed-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 0 2px;
  font: var(--ed-body-md);
  color: var(--ed-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ed-rule-light);
  border-radius: 0;
  transition: border-color var(--ed-duration-fast) var(--ed-easing);
}
.ed-input input,
.ed-input textarea,
.ed-input select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}
.ed-input input::placeholder,
.ed-input textarea::placeholder,
.ed-input select::placeholder {
  color: var(--ed-text-tertiary);
  font-style: italic;
}
.ed-input textarea {
  padding: 8px 0;
  min-height: 80px;
  resize: vertical;
}
.ed-input select {
  cursor: pointer;
  appearance: none;
}
.ed-input:hover {
  border-bottom-color: var(--ed-rule);
}
.ed-input:focus-within {
  border-bottom-width: 2px;
  border-bottom-color: var(--ed-accent);
  padding-bottom: 1px;
}

.ed-input--textarea {
  height: auto;
  align-items: flex-start;
}

.ed-input--boxed {
  border: 1px solid var(--ed-rule-light);
  border-radius: var(--ed-radius-sm);
  padding: 0 12px;
}
.ed-input--boxed:hover {
  border-color: var(--ed-rule);
}
.ed-input--boxed:focus-within {
  border-width: 1px;
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 1px var(--ed-accent);
  padding: 0 12px;
}

.ed-input__leading,
.ed-input__trailing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ed-text-tertiary);
}

.ed-input__trailing {
  cursor: pointer;
}
.ed-input__trailing:hover {
  color: var(--ed-text-secondary);
}

.ed-field__hint {
  font: var(--ed-caption);
  color: var(--ed-text-tertiary);
}

.ed-field--error .ed-input {
  border-bottom-color: var(--ed-error);
}
.ed-field--error .ed-input:focus-within {
  border-bottom-color: var(--ed-error);
}
.ed-field--error .ed-input--boxed {
  border-color: var(--ed-error);
}
.ed-field--error .ed-input--boxed:focus-within {
  border-color: var(--ed-error);
  box-shadow: 0 0 0 1px var(--ed-error);
}
.ed-field--error .ed-field__hint {
  color: var(--ed-error);
}
.ed-field--error .ed-field__label {
  color: var(--ed-error);
}

.ed-field--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ed-input--sm {
  height: 32px;
  font: var(--ed-body-sm);
}

.ed-input--lg {
  height: 48px;
  font: var(--ed-body-lg);
}

.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text-secondary);
  white-space: nowrap;
}

.ed-badge--pill {
  background: var(--ed-bg-alt);
  color: var(--ed-text-secondary);
  padding: 4px 10px;
  border-radius: var(--ed-radius-sm);
}

.ed-badge--outlined {
  background: transparent;
  color: var(--ed-text-secondary);
  padding: 3px 9px;
  border: 1px solid var(--ed-rule-light);
  border-radius: var(--ed-radius-sm);
}

.ed-badge--accent {
  color: var(--ed-accent);
}
.ed-badge--accent.ed-badge--pill {
  background: var(--ed-accent-light);
  color: var(--ed-accent);
}
.ed-badge--accent.ed-badge--outlined {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}

.ed-badge--success {
  color: var(--ed-success);
}
.ed-badge--success.ed-badge--pill {
  background: var(--ed-success-light);
  color: var(--ed-success);
}
.ed-badge--success.ed-badge--outlined {
  border-color: var(--ed-success);
  color: var(--ed-success);
}

.ed-badge--warning {
  color: var(--ed-warning);
}
.ed-badge--warning.ed-badge--pill {
  background: var(--ed-warning-light);
  color: var(--ed-warning);
}
.ed-badge--warning.ed-badge--outlined {
  border-color: var(--ed-warning);
  color: var(--ed-warning);
}

.ed-badge--error {
  color: var(--ed-error);
}
.ed-badge--error.ed-badge--pill {
  background: var(--ed-error-light);
  color: var(--ed-error);
}
.ed-badge--error.ed-badge--outlined {
  border-color: var(--ed-error);
  color: var(--ed-error);
}

.ed-badge--info {
  color: var(--ed-info);
}
.ed-badge--info.ed-badge--pill {
  background: var(--ed-info-light);
  color: var(--ed-info);
}
.ed-badge--info.ed-badge--outlined {
  border-color: var(--ed-info);
  color: var(--ed-info);
}

.ed-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ed-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ed-radius-full);
  border: 1px solid var(--ed-rule-light);
  background: var(--ed-bg-alt);
  overflow: hidden;
  flex-shrink: 0;
}
.ed-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-avatar__initials {
  font-family: var(--ed-font-serif);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--ed-text-secondary);
  letter-spacing: var(--ed-ls-tight);
}

.ed-avatar--xs {
  width: 24px;
  height: 24px;
}
.ed-avatar--xs .ed-avatar__initials {
  font-size: 0.625rem;
}

.ed-avatar--sm {
  width: 32px;
  height: 32px;
}
.ed-avatar--sm .ed-avatar__initials {
  font-size: 0.75rem;
}

.ed-avatar--lg {
  width: 56px;
  height: 56px;
}
.ed-avatar--lg .ed-avatar__initials {
  font-size: 1.125rem;
}

.ed-avatar--xl {
  width: 72px;
  height: 72px;
}
.ed-avatar--xl .ed-avatar__initials {
  font-size: 1.375rem;
}

.ed-avatar__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ed-bg);
  background: var(--ed-text-tertiary);
}

.ed-avatar__status--online {
  background: var(--ed-success);
}

.ed-avatar__status--busy {
  background: var(--ed-error);
}

.ed-avatar__status--away {
  background: var(--ed-warning);
}

.ed-avatar-group {
  display: flex;
  align-items: center;
}
.ed-avatar-group .ed-avatar {
  border: 2px solid var(--ed-bg);
  margin-left: -8px;
}
.ed-avatar-group .ed-avatar:first-child {
  margin-left: 0;
}

.ed-avatar-group__overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ed-radius-full);
  border: 2px solid var(--ed-bg);
  background: var(--ed-bg-alt);
  margin-left: -8px;
  font-family: var(--ed-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-text-secondary);
}

.ed-alert {
  position: relative;
  display: flex;
  gap: var(--ed-space-3);
  padding: var(--ed-space-4) var(--ed-space-4) var(--ed-space-4) var(--ed-space-5);
  border-top: 1px solid var(--ed-rule-light);
  border-bottom: 1px solid var(--ed-rule-light);
  border-left: 3px solid var(--ed-rule);
  background: var(--ed-bg);
}

.ed-alert__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ed-text-secondary);
}

.ed-alert__content {
  flex: 1;
  min-width: 0;
}

.ed-alert__title {
  font-family: var(--ed-font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ed-text);
  margin: 0 0 4px;
}

.ed-alert__message {
  font: var(--ed-body-sm);
  color: var(--ed-text-secondary);
  margin: 0;
}

.ed-alert__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ed-text-tertiary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--ed-duration-fast) var(--ed-easing);
}
.ed-alert__close:hover {
  color: var(--ed-text-secondary);
}
.ed-alert__close svg {
  width: 14px;
  height: 14px;
}

.ed-alert--info {
  border-left-color: var(--ed-info);
}
.ed-alert--info .ed-alert__icon {
  color: var(--ed-info);
}

.ed-alert--success {
  border-left-color: var(--ed-success);
}
.ed-alert--success .ed-alert__icon {
  color: var(--ed-success);
}

.ed-alert--warning {
  border-left-color: var(--ed-warning);
}
.ed-alert--warning .ed-alert__icon {
  color: var(--ed-warning);
}

.ed-alert--error {
  border-left-color: var(--ed-error);
}
.ed-alert--error .ed-alert__icon {
  color: var(--ed-error);
}

.ed-alert--filled {
  border-top: none;
  border-bottom: none;
}
.ed-alert--filled.ed-alert--info {
  background: var(--ed-info-light);
}
.ed-alert--filled.ed-alert--success {
  background: var(--ed-success-light);
}
.ed-alert--filled.ed-alert--warning {
  background: var(--ed-warning-light);
}
.ed-alert--filled.ed-alert--error {
  background: var(--ed-error-light);
}

.ed-alert--minimal {
  border-top: none;
  border-bottom: none;
  padding: var(--ed-space-3) var(--ed-space-4) var(--ed-space-3) var(--ed-space-5);
}

.ed-alert--compact {
  padding: var(--ed-space-2) var(--ed-space-3) var(--ed-space-2) var(--ed-space-4);
  gap: var(--ed-space-2);
}
.ed-alert--compact .ed-alert__icon {
  width: 16px;
  height: 16px;
}

.ed-appbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--ed-bg);
  z-index: 10;
}

.ed-appbar__masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--ed-space-6) var(--ed-space-4);
  border-top: 2px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
}

.ed-appbar__title {
  font-family: var(--ed-font-serif);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--ed-ls-tight);
  color: var(--ed-text);
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.ed-appbar__subtitle {
  font-family: var(--ed-font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text-tertiary);
  margin: var(--ed-space-1) 0 0;
}

.ed-appbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ed-space-6);
  width: 100%;
  padding: var(--ed-space-3) var(--ed-space-4);
  border-bottom: 1px solid var(--ed-rule-light);
  overflow-x: auto;
}

.ed-appbar__link {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--ed-space-1) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--ed-duration-fast) var(--ed-easing);
}
.ed-appbar__link:hover {
  color: var(--ed-text);
}

.ed-appbar__link--active {
  color: var(--ed-text);
  border-bottom-color: var(--ed-accent);
}

.ed-appbar__dateline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--ed-space-2) var(--ed-space-4);
  font: var(--ed-caption);
  color: var(--ed-text-tertiary);
  border-bottom: 1px solid var(--ed-rule-light);
}

.ed-appbar__actions {
  display: flex;
  align-items: center;
  gap: var(--ed-space-2);
}

.ed-appbar__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ed-text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color var(--ed-duration-fast) var(--ed-easing);
}
.ed-appbar__action:hover {
  color: var(--ed-text);
}
.ed-appbar__action svg {
  width: 18px;
  height: 18px;
}

.ed-appbar--toolbar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--ed-space-4);
  height: 52px;
  border-bottom: 1px solid var(--ed-rule-light);
}
.ed-appbar--toolbar .ed-appbar__masthead {
  border: none;
  padding: 0;
  flex: 0;
}
.ed-appbar--toolbar .ed-appbar__title {
  font-size: 1.125rem;
  font-weight: 700;
}
.ed-appbar--toolbar .ed-appbar__nav {
  border: none;
  padding: 0;
  justify-content: flex-start;
  flex: 1;
  margin-left: var(--ed-space-8);
}

.ed-appbar--compact .ed-appbar__masthead {
  padding: var(--ed-space-3) var(--ed-space-4);
}
.ed-appbar--compact .ed-appbar__title {
  font-size: 1.375rem;
}
.ed-appbar--compact .ed-appbar__nav {
  gap: var(--ed-space-4);
}

.ed-sidebar {
  display: flex;
  flex-direction: column;
  width: 240px;
  min-height: 100%;
  padding: var(--ed-space-6) var(--ed-space-4);
  background: var(--ed-bg);
  border-right: 1px solid var(--ed-rule-light);
  flex-shrink: 0;
  overflow-y: auto;
}

.ed-sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: var(--ed-space-5);
  border-bottom: 1px solid var(--ed-rule);
  margin-bottom: var(--ed-space-5);
}

.ed-sidebar__logo {
  font-family: var(--ed-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--ed-ls-tight);
  color: var(--ed-text);
  text-decoration: none;
}

.ed-sidebar__section {
  margin-bottom: var(--ed-space-5);
}

.ed-sidebar__section-title {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text-tertiary);
  padding: 0 var(--ed-space-3) var(--ed-space-2);
  border-bottom: 1px solid var(--ed-rule-light);
  margin-bottom: var(--ed-space-2);
}

.ed-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 var(--ed-space-3);
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--ed-text-secondary);
  font-family: var(--ed-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  transition: all var(--ed-duration-fast) var(--ed-easing);
}
.ed-sidebar__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}
.ed-sidebar__item:hover {
  color: var(--ed-text);
}
.ed-sidebar__item:hover svg {
  opacity: 0.9;
}

.ed-sidebar__item--active {
  color: var(--ed-accent);
  border-left-color: var(--ed-accent);
  font-weight: 600;
}
.ed-sidebar__item--active svg {
  opacity: 1;
  color: var(--ed-accent);
}
.ed-sidebar__item--active:hover {
  color: var(--ed-accent);
}

.ed-sidebar__badge {
  margin-left: auto;
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ed-text-tertiary);
}

.ed-sidebar__item--active .ed-sidebar__badge {
  color: var(--ed-accent);
}

.ed-sidebar__divider {
  height: 1px;
  background: var(--ed-rule-light);
  margin: var(--ed-space-3) var(--ed-space-3);
  border: none;
}

.ed-sidebar__footer {
  margin-top: auto;
  padding-top: var(--ed-space-4);
  border-top: 1px solid var(--ed-rule-light);
}

.ed-sidebar--compact {
  width: 56px;
  padding: var(--ed-space-6) var(--ed-space-2);
  align-items: center;
}
.ed-sidebar--compact .ed-sidebar__header {
  padding-bottom: var(--ed-space-4);
}
.ed-sidebar--compact .ed-sidebar__section-title {
  display: none;
}
.ed-sidebar--compact .ed-sidebar__item {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-left: none;
  border-bottom: 2px solid transparent;
}
.ed-sidebar--compact .ed-sidebar__item span:not(svg) {
  display: none;
}
.ed-sidebar--compact .ed-sidebar__item svg {
  opacity: 0.8;
}
.ed-sidebar--compact .ed-sidebar__item--active {
  border-bottom-color: var(--ed-accent);
  border-left: none;
}
.ed-sidebar--compact .ed-sidebar__badge {
  display: none;
}

.ed-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--ed-rule-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ed-tabs::-webkit-scrollbar {
  display: none;
}

.ed-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--ed-space-3) var(--ed-space-5);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--ed-font-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ed-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ed-duration-fast) var(--ed-easing);
}
.ed-tab svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}
.ed-tab:hover {
  color: var(--ed-text);
}
.ed-tab:hover svg {
  opacity: 0.8;
}
.ed-tab:focus-visible {
  outline: none;
  box-shadow: var(--ed-focus-ring);
}

.ed-tab--active {
  color: var(--ed-text);
  font-weight: 600;
  border-bottom-color: var(--ed-accent);
}
.ed-tab--active svg {
  opacity: 1;
}

.ed-tab--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ed-tabs--caps .ed-tab {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
}
.ed-tabs--caps .ed-tab--active {
  font-weight: 700;
}

.ed-tabs--ruled {
  border-top: 2px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  padding-top: 0;
}
.ed-tabs--ruled .ed-tab {
  margin-bottom: 0;
  margin-top: -2px;
  border-bottom: none;
  border-top: 2px solid transparent;
}
.ed-tabs--ruled .ed-tab--active {
  border-top-color: var(--ed-accent);
}

.ed-tabs--pill {
  border-bottom: none;
  gap: var(--ed-space-1);
  background: var(--ed-bg-alt);
  padding: var(--ed-space-1);
  border-radius: var(--ed-radius-md);
}
.ed-tabs--pill .ed-tab {
  border-bottom: none;
  margin-bottom: 0;
  border-radius: var(--ed-radius-sm);
  padding: var(--ed-space-2) var(--ed-space-4);
  font-family: var(--ed-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
}
.ed-tabs--pill .ed-tab--active {
  background: var(--ed-bg);
  box-shadow: var(--ed-shadow-sm);
  color: var(--ed-text);
}

.ed-tab__badge {
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ed-text-tertiary);
  background: var(--ed-bg-alt);
  padding: 1px 6px;
  border-radius: var(--ed-radius-sm);
}

.ed-tab--active .ed-tab__badge {
  color: var(--ed-accent);
  background: var(--ed-accent-light);
}

.ed-tabs--full .ed-tab {
  flex: 1;
}

.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-family: var(--ed-font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ed-ls-caps);
  text-transform: uppercase;
  color: var(--ed-text-secondary);
  background: transparent;
  border: 1px solid var(--ed-rule-light);
  border-radius: var(--ed-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  transition: all var(--ed-duration-fast) var(--ed-easing);
}
.ed-chip:hover {
  color: var(--ed-text);
  border-color: var(--ed-rule);
}
.ed-chip:focus-visible {
  outline: none;
  box-shadow: var(--ed-focus-ring);
}

.ed-chip--selected {
  color: var(--ed-accent);
  border-color: var(--ed-accent);
  background: var(--ed-accent-light);
}
.ed-chip--selected:hover {
  color: var(--ed-accent-hover);
  border-color: var(--ed-accent-hover);
}

.ed-chip--text {
  border: none;
  padding: 5px 4px;
  background: transparent;
}
.ed-chip--text:hover {
  color: var(--ed-text);
  background: transparent;
}
.ed-chip--text.ed-chip--selected {
  color: var(--ed-accent);
  background: transparent;
}

.ed-chip--filled {
  background: var(--ed-bg-alt);
  border-color: transparent;
}
.ed-chip--filled:hover {
  background: var(--ed-bg-inset);
}
.ed-chip--filled.ed-chip--selected {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
  border-color: transparent;
}
.ed-chip--filled.ed-chip--selected:hover {
  background: var(--ed-accent-hover);
  color: var(--ed-on-accent);
}

.ed-chip__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ed-chip__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  margin-right: -4px;
  border: none;
  background: transparent;
  color: currentColor;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--ed-duration-fast) var(--ed-easing);
}
.ed-chip__close:hover {
  opacity: 1;
}
.ed-chip__close svg {
  width: 10px;
  height: 10px;
}

.ed-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
  align-items: center;
}

.ed-chip--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ed-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ed-duration-normal) var(--ed-easing), visibility var(--ed-duration-normal);
}
.ed-modal-backdrop.ed-modal-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.ed-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(520px, 100vw - 32px);
  max-height: calc(100vh - 48px);
  background: var(--ed-bg);
  color: var(--ed-text);
  border: 1px solid var(--ed-rule-light);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-md);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--ed-duration-slow) var(--ed-easing), opacity var(--ed-duration-slow) var(--ed-easing);
}
.ed-modal-backdrop--open .ed-modal {
  transform: translateY(0);
  opacity: 1;
}

.ed-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ed-space-5) var(--ed-space-6);
  gap: var(--ed-space-3);
  border-bottom: 1px solid var(--ed-rule-light);
}

.ed-modal__title {
  font-family: var(--ed-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--ed-ls-tight);
  color: var(--ed-text);
  margin: 0;
}

.ed-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ed-text-tertiary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--ed-duration-fast) var(--ed-easing);
}
.ed-modal__close:hover {
  color: var(--ed-text-secondary);
}
.ed-modal__close svg {
  width: 16px;
  height: 16px;
}

.ed-modal__body {
  padding: var(--ed-space-6);
  font: var(--ed-body-md);
  color: var(--ed-text-secondary);
  overflow-y: auto;
  flex: 1;
}

.ed-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--ed-space-3);
  padding: var(--ed-space-4) var(--ed-space-6);
  border-top: 1px solid var(--ed-rule-light);
}

.ed-modal--sm {
  width: min(380px, 100vw - 32px);
}

.ed-modal--lg {
  width: min(680px, 100vw - 32px);
}

.ed-modal--xl {
  width: min(860px, 100vw - 32px);
}

.ed-modal--fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: none;
}

.ed-modal--simple .ed-modal__body {
  padding: var(--ed-space-8) var(--ed-space-6) var(--ed-space-4);
  text-align: center;
}
.ed-modal--simple .ed-modal__footer {
  border-top: none;
  justify-content: center;
  padding-top: 0;
}

.ed-modal--article .ed-modal__body {
  font: var(--ed-body-lg);
  line-height: 1.7;
  max-width: 65ch;
  margin: 0 auto;
  padding: var(--ed-space-8) var(--ed-space-6);
}
.ed-modal--article .ed-modal__header {
  border-bottom: 2px solid var(--ed-rule);
}
