.ra-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ra-meta-hero {
  padding: 16px 18px;
}

.ra-meta-hero__head {
  display: grid;
  grid-template-columns: minmax(220px, 20%) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ra-meta-hero__intro {
  min-width: 0;
}

.ra-meta-hero__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ra-text-1);
}

.ra-meta-hero__subtitle {
  margin: 4px 0 0;
  color: var(--ra-text-2);
  font-size: 13px;
  line-height: 1.45;
}

.ra-meta-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--ra-stroke);
}

.ra-meta-tab {
  appearance: none;
  border: 1px solid var(--ra-stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ra-text-2);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

.ra-meta-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 164, 214, 0.34);
  color: var(--ra-text-1);
}

.ra-meta-tab.is-active {
  background: rgba(78, 164, 214, 0.16);
  border-color: rgba(78, 164, 214, 0.42);
  color: var(--ra-text-1);
}

.ra-meta-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ra-meta-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.ra-meta-toolbar__left {
  min-width: 0;
  flex: 1;
}

.ra-meta-toolbar__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ra-meta-toolbar__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ra-text-1);
}

.ra-meta-toolbar__subtitle {
  margin: 6px 0 0;
  color: var(--ra-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.ra-meta-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(78, 164, 214, 0.24);
  background: rgba(78, 164, 214, 0.12);
  color: var(--ra-text-1);
  font-size: 12px;
  font-weight: 800;
}

.ra-meta-toolbar__right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ra-meta-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ra-meta-filter {
  min-width: 220px;
}

.ra-meta-editor {
  border: 1px solid var(--ra-stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.ra-meta-editor__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ra-meta-editor__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ra-text-3);
}

.ra-meta-editor__title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ra-text-1);
}

.ra-meta-form {
  min-width: 0;
}

.ra-meta-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ra-meta-form__field {
  min-width: 0;
}

.ra-meta-form__field.is-span-2 {
  grid-column: span 2;
}

.ra-meta-form__checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding-top: 22px;
}

.ra-meta-form__checkbox {
  width: 16px;
  height: 16px;
}

.ra-meta-form__footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ra-meta-form__message {
  min-height: 18px;
  color: var(--ra-danger);
  font-size: 12px;
  line-height: 1.35;
}

.ra-meta-form__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ra-meta-state {
  border: 1px dashed var(--ra-stroke);
  border-radius: 18px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.ra-meta-state__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ra-text-1);
}

.ra-meta-state__text {
  margin-top: 6px;
  color: var(--ra-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.ra-meta-table-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--ra-stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.ra-meta-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.ra-meta-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ra-stroke);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ra-text-3);
  background: rgba(16, 32, 58, 0.92);
}

.ra-meta-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  font-size: 13px;
  color: var(--ra-text-1);
}

.ra-meta-table tbody tr:last-child td {
  border-bottom: none;
}

.ra-meta-cell-muted {
  color: var(--ra-text-2);
}

.ra-meta-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--ra-text-2);
  word-break: break-word;
}

.ra-meta-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--ra-stroke);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ra-meta-status.is-active {
  background: rgba(78, 164, 214, 0.14);
  border-color: rgba(78, 164, 214, 0.34);
  color: var(--ra-text-1);
}

.ra-meta-status.is-archived {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ra-text-2);
}

.ra-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ra-meta-action {
  appearance: none;
  border: 1px solid var(--ra-stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ra-text-1);
  border-radius: 10px;
  min-height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.ra-meta-action:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 164, 214, 0.34);
}

.ra-meta-action.is-danger {
  color: #ffd0d0;
}

.ra-meta-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1200px) {
  .ra-meta-hero__head {
    grid-template-columns: 1fr;
  }

  .ra-meta-tabs {
    padding-left: 0;
    border-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--ra-stroke);
  }
}

@media (max-width: 900px) {
  .ra-meta-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ra-meta-toolbar__right {
    align-items: stretch;
  }

  .ra-meta-filter {
    min-width: 0;
  }

  .ra-meta-form__grid {
    grid-template-columns: 1fr;
  }

  .ra-meta-form__field.is-span-2 {
    grid-column: span 1;
  }

  .ra-meta-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ra-meta-form__actions {
    justify-content: flex-end;
  }
}
/* ===== META editor form controls patch ===== */

.ra-meta-form__label {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--ra-text-1);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.ra-meta-form__input,
.ra-meta-form__select,
.ra-meta-form__textarea,
.ra-meta-filter__select {
  width: 100%;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--ra-stroke);
  background: rgba(9, 21, 41, 0.72);
  color: var(--ra-text-1);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
  box-sizing: border-box;
}

.ra-meta-form__input,
.ra-meta-form__select,
.ra-meta-filter__select {
  min-height: 44px;
}

.ra-meta-form__textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ra-meta-form__input::placeholder,
.ra-meta-form__textarea::placeholder {
  color: var(--ra-text-3);
}

.ra-meta-form__input:focus,
.ra-meta-form__select:focus,
.ra-meta-form__textarea:focus,
.ra-meta-filter__select:focus {
  outline: none;
  border-color: rgba(78, 164, 214, 0.55);
  box-shadow: 0 0 0 3px rgba(78, 164, 214, 0.14);
  background: rgba(11, 25, 47, 0.9);
}

.ra-meta-form__select,
.ra-meta-filter__select {
  cursor: pointer;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ra-text-2) 50%),
    linear-gradient(135deg, var(--ra-text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.ra-meta-filter__label {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--ra-text-2);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.ra-meta-form__checkbox-row {
  min-height: 44px;
  padding-top: 30px;
}

.ra-meta-form__checkbox {
  accent-color: #4ea4d6;
}

.ra-meta-editor {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ra-meta-form__message {
  font-weight: 700;
}

.ra-meta-form__message:empty {
  display: none;
}