.eu4d-form-grid {
  display: grid;
  gap: 12px;
}

.eu4d-form-grid--left {
  text-align: left;
  margin-top: 18px;
}

.eu4d-form-block {
  display: block;
}

.eu4d-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.eu4d-form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.eu4d-form-control--textarea {
  resize: vertical;
}

.eu4d-form-note {
  color: #6b7280;
}

.eu4d-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.eu4d-actions-row--end {
  justify-content: flex-end;
}

.eu4d-btn {
  padding: 8px 14px;
}

.eu4d-btn--secondary {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.ra-status-actions {
  margin: 0;
}

.ra-status-actions--inline {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  vertical-align: middle;
}

.ra-status-actions--sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.ra-status-action {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1;
  border: 1px solid transparent;
  justify-content: center;
}

.ra-status-action--primary {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
}

.ra-status-action--secondary {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.ra-status-action--leave {
  background: #fff;
  color: #b91c1c;
  border-color: #ef4444;
}

.ra-status-action__icon {
  margin-right: 6px;
}

.eu4d-hidden {
  display: none !important;
}

.eu4d-mt-12 {
  margin-top: 12px;
}

.eu4d-flex-1 {
  flex: 1;
  min-width: 250px;
}

.eu4d-footer-tight {
  padding: 14px 0 0;
}

.eu4d-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.eu4d-modal__dialog {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.eu4d-modal__dialog--narrow {
  width: 92%;
  max-width: 520px;
  margin: 10vh auto;
}

.eu4d-modal__dialog--wide {
  width: 95%;
  max-width: 900px;
  max-height: 85vh;
  margin: 4vh auto;
  overflow: auto;
  position: relative;
}

.eu4d-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.eu4d-modal__title {
  margin: 0;
  font-size: 18px;
}

.eu4d-modal__close {
  border: none;
  background: #eee;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.eu4d-modal__body {
  padding: 16px;
}

.eu4d-modal__body--scroll {
  overflow: auto;
}

.eu4d-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.eu4d-inline-stack {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.eu4d-absolute-trigger {
  position: absolute;
  top: var(--eu4d-top, 10px);
  right: var(--eu4d-right, 36px);
  z-index: 3;
}

.eu4d-note-success {
  display: block;
  margin-top: 6px;
  color: #2e7d32;
}

.eu4d-table-check-th {
  width: 40px;
}

.eu4d-text-center {
  text-align: center;
}

.eu4d-panel {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f8fbff;
}

.eu4d-panel__card {
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.eu4d-panel__center {
  text-align: center;
}

.eu4d-panel__center ol {
  text-align: left;
  display: inline-block;
  margin: 0;
}

.eu4d-panel__step {
  display: none;
}

.eu4d-max-420 {
  max-width: 420px;
}

.eu4d-max-260 {
  max-width: 260px;
}

.eu4d-max-240 {
  max-width: 240px;
}

.eu4d-max-220 {
  max-width: 220px;
}

.eu4d-ml-10 {
  margin-left: 10px;
}

.eu4d-image-preview {
  height: auto;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.eu4d-image-preview--lg {
  max-width: 260px;
}

.eu4d-image-preview--md {
  max-width: 240px;
}

.eu4d-image-preview--sm {
  max-width: 220px;
}

.eu4d-note-muted {
  color: #666;
}
