.form-card { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary); }
.grid { display: grid; gap: 12px; }
.grid.one { grid-template-columns: 1fr; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 6px; font-weight: var(--font-weight-semibold, 600); }
label.full, app-form-field.full { grid-column: 1 / -1; }
label.check { display: flex; align-items: center; gap: 8px; }
textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color, #d3dad9); border-radius: 10px; font: inherit; }
input[type='checkbox'] { width: auto; }
.sub-block { border-top: 1px dashed var(--border-color); padding-top: 12px; }
.readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readonly-grid article { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; }
.gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gallery-item { display: grid; gap: 4px; width: 72px; }
.gallery-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color, #d3dad9); }
.gallery-item__actions { display: flex; justify-content: space-between; gap: 2px; }
.gallery-item__actions button {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--font-size-xs, 0.75rem);
  padding: 2px 4px;

  &:hover, &:focus-visible {
    background: var(--primary-color);
    color: #fff;
  }
}
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.price-preview { font-weight: var(--font-weight-semibold, 600); }
.actions { display: flex; justify-content: flex-end; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid.two, .grid.three, .readonly-grid { grid-template-columns: 1fr; } }

.form-card__header { display: grid; gap: 8px; }

.form-card__tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border-color); }
.form-card__tab {
  all: unset;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font-size: var(--font-size-base, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;

  &:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
}
.form-card__tab--active { color: var(--primary-color); background: var(--bg-tertiary); }
.form-card__panel { min-height: 200px; display: grid; gap: 14px; }
.form-card__subheading { margin: 8px 0 0; font-size: var(--font-size-sm, 0.8125rem); font-weight: var(--font-weight-bold, 700); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }
.form-card__explain { margin: 0; font-size: var(--font-size-sm, 0.8125rem); color: var(--text-secondary); }
.form-card__group { border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 14px; }
.form-card__group summary { cursor: pointer; font-weight: var(--font-weight-bold, 700); color: var(--text-primary, #1e3c38); }
.toggle-row { display: flex; align-items: center; gap: 8px; font-weight: var(--font-weight-normal, 400); }

.seo-preview {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.seo-preview__title { margin: 0; color: #1a0dab; font-size: var(--font-size-lg, 1rem); }
.seo-preview__url { margin: 0; color: #006621; font-size: var(--font-size-sm, 0.8125rem); }
.seo-preview__description { margin: 0; color: var(--text-secondary); font-size: var(--font-size-sm, 0.8125rem); }
.field-with-action { display: flex; gap: 8px; align-items: center; app-input { flex: 1; } }
.seo-generate-row { display: flex; align-items: center; gap: 10px; }
.seo-generate-row__hint { color: var(--text-secondary, #6b7280); font-size: var(--font-size-sm, 0.8125rem); }

.translations-block {
  border: 1px solid var(--border-color, #d3dad9);
  border-radius: var(--radius-sm);
  padding: 10px 12px;

  summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-base, 0.875rem);

    &:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
  }

  &[open] summary { margin-bottom: 8px; }
}
.translations-block__count {
  margin-left: auto;
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-sm, 0.8125rem);
  font-weight: var(--font-weight-normal, 400);
}
.translations-block__hint {
  margin: 0 0 10px;
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-sm, 0.8125rem);
}
.badge-manager { display: grid; gap: 10px; }
.badge-manager__current, .badge-manager__known { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 24px; padding: 3px 10px; border-radius: var(--radius-full, 999px);
  color: #fff; font-size: var(--font-size-xs, 0.75rem); font-weight: var(--font-weight-bold, 700); text-transform: uppercase;
  border: none;
}
.badge-chip--add { cursor: pointer; opacity: 0.55; &:hover { opacity: 1; } &:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; opacity: 1; } }
.badge-chip__remove {
  border: none; background: transparent; color: inherit; cursor: pointer;
  font-size: var(--font-size-base, 0.875rem); line-height: 1; padding: 0 0 0 2px;
  &:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
}
.badge-manager__custom { display: flex; gap: 8px; align-items: center; app-input { flex: 1; max-width: 260px; } }
