:root {
  --taxonomy-ink: #172033;
  --taxonomy-muted: #667085;
  --taxonomy-line: #e4e8ee;
  --taxonomy-soft: #f7f9fb;
  --taxonomy-orange: #ff6500;
  --taxonomy-focus: rgba(255, 101, 0, .22);
}

.taxonomy-hero {
  display: flex;
  min-height: 158px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px 30px;
  border: 1px solid #1f2937;
  border-radius: 25px;
  color: #fff;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
}

.taxonomy-hero > div {
  max-width: 760px;
}

.taxonomy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffad78;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.taxonomy-hero h1 {
  margin: 7px 0 5px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -.045em;
}

.taxonomy-hero p {
  max-width: 650px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.taxonomy-refresh {
  display: inline-flex;
  min-width: 132px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 900;
}

.taxonomy-refresh:hover,
.taxonomy-refresh:focus-visible {
  border-color: #ffad78;
  color: #fff;
  background: rgba(255, 101, 0, .2);
}

.taxonomy-refresh.is-refreshing i {
  animation: taxonomy-spin .8s linear infinite;
}

.taxonomy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.taxonomy-metrics article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--taxonomy-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.taxonomy-metrics article > div {
  display: grid;
  min-width: 0;
}

.taxonomy-metrics strong {
  color: var(--taxonomy-ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.taxonomy-metrics small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--taxonomy-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
}

.taxonomy-metric-icon.is-orange { color: #c2410c; background: #ffedd5; }
.taxonomy-metric-icon.is-blue { color: #1d4ed8; background: #dbeafe; }
.taxonomy-metric-icon.is-green { color: #047857; background: #d1fae5; }

.taxonomy-global-message,
.taxonomy-form-message {
  min-height: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.taxonomy-global-message:not(:empty),
.taxonomy-form-message:not(:empty) {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  background: #eff6ff;
}

.taxonomy-global-message.is-success:not(:empty),
.taxonomy-form-message.is-success:not(:empty) {
  border-color: #a7f3d0;
  color: #047857;
  background: #ecfdf5;
}

.taxonomy-global-message.is-warning:not(:empty),
.taxonomy-form-message.is-warning:not(:empty) {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.taxonomy-global-message.is-danger:not(:empty),
.taxonomy-form-message.is-danger:not(:empty) {
  border-color: #fecaca;
  color: #b42318;
  background: #fff1f2;
}

.taxonomy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.taxonomy-editor-card,
.taxonomy-tree-card {
  min-width: 0;
  border: 1px solid var(--taxonomy-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.taxonomy-editor-card {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 15px;
  padding: 20px;
}

.taxonomy-editor-heading,
.taxonomy-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.taxonomy-editor-heading > div,
.taxonomy-modal-heading > div {
  display: grid;
  min-width: 0;
}

.taxonomy-editor-heading small,
.taxonomy-modal-heading small {
  color: #c14b00;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.taxonomy-editor-heading h2,
.taxonomy-modal-heading h2 {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--taxonomy-ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-flat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 17px;
}

.taxonomy-flat-icon.is-large {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 15px;
  font-size: 21px;
}

.taxonomy-flat-icon.tone-orange { color: #c2410c; background: #ffedd5; border-color: #fed7aa; }
.taxonomy-flat-icon.tone-red { color: #b42318; background: #fee4e2; border-color: #fecdca; }
.taxonomy-flat-icon.tone-amber { color: #a15c07; background: #fef3c7; border-color: #fde68a; }
.taxonomy-flat-icon.tone-yellow { color: #854d0e; background: #fef9c3; border-color: #fde047; }
.taxonomy-flat-icon.tone-blue { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.taxonomy-flat-icon.tone-green { color: #047857; background: #d1fae5; border-color: #a7f3d0; }
.taxonomy-flat-icon.tone-brown { color: #78350f; background: #f5e6d3; border-color: #e9cba8; }
.taxonomy-flat-icon.tone-pink { color: #be185d; background: #fce7f3; border-color: #fbcfe8; }
.taxonomy-flat-icon.tone-purple { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }
.taxonomy-flat-icon.tone-slate { color: #475467; background: #f2f4f7; border-color: #e4e7ec; }

.taxonomy-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.taxonomy-field > span {
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.taxonomy-field > small {
  color: var(--taxonomy-muted);
  font-size: 9px;
  font-weight: 650;
}

.taxonomy-field .form-control,
.taxonomy-field .form-select {
  min-height: 46px;
  border-color: #d9e0e8;
  border-radius: 12px;
  color: var(--taxonomy-ink);
  font-size: 12px;
  font-weight: 750;
}

.taxonomy-field .form-control:focus,
.taxonomy-field .form-select:focus {
  border-color: var(--taxonomy-orange);
  box-shadow: 0 0 0 3px var(--taxonomy-focus);
}

.taxonomy-switch {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--taxonomy-line);
  border-radius: 14px;
  background: var(--taxonomy-soft);
}

.taxonomy-switch > span {
  display: grid;
}

.taxonomy-switch strong { color: var(--taxonomy-ink); font-size: 11px; font-weight: 900; }
.taxonomy-switch small { color: var(--taxonomy-muted); font-size: 9px; }
.taxonomy-switch .form-check-input,
.taxonomy-inline-switch .form-check-input { width: 2.35em; height: 1.25em; margin: 0; cursor: pointer; }
.taxonomy-switch .form-check-input:checked,
.taxonomy-inline-switch .form-check-input:checked { border-color: var(--taxonomy-orange); background-color: var(--taxonomy-orange); }
.taxonomy-switch .form-check-input:focus,
.taxonomy-inline-switch .form-check-input:focus { box-shadow: 0 0 0 3px var(--taxonomy-focus); }

.taxonomy-editor-actions,
.taxonomy-modal-actions {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  gap: 8px;
}

.taxonomy-editor-actions .btn,
.taxonomy-modal-actions .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.taxonomy-tree-card {
  overflow: hidden;
  padding: 18px;
}

.taxonomy-tree-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.taxonomy-tree-heading > div {
  display: grid;
}

.taxonomy-tree-heading small {
  color: var(--taxonomy-muted);
  font-size: 9px;
  font-weight: 750;
}

.taxonomy-tree-heading h2 {
  margin: 1px 0 0;
  color: var(--taxonomy-ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.taxonomy-search {
  display: grid;
  width: min(310px, 46%);
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d9e0e8;
  border-radius: 12px;
  color: var(--taxonomy-muted);
  background: #fff;
}

.taxonomy-search:focus-within {
  border-color: var(--taxonomy-orange);
  box-shadow: 0 0 0 3px var(--taxonomy-focus);
}

.taxonomy-search input {
  width: 100%;
  height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--taxonomy-ink);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.taxonomy-tree {
  display: grid;
  gap: 10px;
}

.taxonomy-category {
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 18px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.taxonomy-category:hover {
  border-color: #ffb27e;
  box-shadow: 0 9px 22px rgba(255, 101, 0, .07);
}

.taxonomy-category.is-inactive {
  border-style: dashed;
  background: #fafafa;
}

.taxonomy-category-header {
  display: grid;
  grid-template-columns: 32px 48px minmax(125px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 12px;
}

.taxonomy-expand,
.taxonomy-icon-button,
.taxonomy-row-actions button,
.taxonomy-order-actions button,
.taxonomy-category-order button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #e1e6ec;
  border-radius: 11px;
  color: #475467;
  background: #fff;
}

.taxonomy-expand {
  width: 32px;
  height: 36px;
  border-color: transparent;
  background: transparent;
}

.taxonomy-expand i { transition: transform .16s ease; }
.taxonomy-expand[aria-expanded="true"] i { transform: rotate(90deg); }

.taxonomy-item-copy {
  display: grid;
  min-width: 0;
}

.taxonomy-item-copy strong,
.taxonomy-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-item-copy strong { color: var(--taxonomy-ink); font-size: 13px; font-weight: 950; }
.taxonomy-item-copy small { margin-top: 2px; color: var(--taxonomy-muted); font-size: 9px; font-weight: 700; }

.taxonomy-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.taxonomy-status i { font-size: 6px; }
.taxonomy-status.is-active { color: #047857; background: #ecfdf5; }
.taxonomy-status.is-inactive { color: #667085; background: #f2f4f7; }

.taxonomy-category-order,
.taxonomy-order-actions,
.taxonomy-row-actions {
  display: flex;
  gap: 5px;
}

.taxonomy-category-order button,
.taxonomy-order-actions button,
.taxonomy-row-actions button {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.taxonomy-category-order button,
.taxonomy-order-actions button {
  width: 30px;
}

.taxonomy-category-order button:disabled,
.taxonomy-order-actions button:disabled {
  cursor: not-allowed;
  opacity: .34;
}

.taxonomy-row-actions button:hover,
.taxonomy-order-actions button:not(:disabled):hover,
.taxonomy-category-order button:not(:disabled):hover,
.taxonomy-icon-button:hover {
  border-color: #ffb27e;
  color: #c14b00;
  background: #fff7f2;
}

.taxonomy-row-actions button.is-danger {
  border-color: #fee4e2;
  color: #b42318;
  background: #fff7f6;
}

.taxonomy-row-actions button.is-danger:hover {
  border-color: #fda29b;
  background: #fee4e2;
}

.taxonomy-inline-switch {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin: 0;
}

.taxonomy-category-children {
  padding: 0 12px 12px 101px;
  border-top: 1px solid #eef1f4;
  background: #fbfcfd;
}

.taxonomy-children-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.taxonomy-children-heading > span {
  display: grid;
}

.taxonomy-children-heading strong { color: #344054; font-size: 10px; font-weight: 950; }
.taxonomy-children-heading small { color: var(--taxonomy-muted); font-size: 9px; }

.taxonomy-add-subcategory {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  color: #c2410c;
  background: #fff7ed;
  font-size: 10px;
  font-weight: 900;
}

.taxonomy-add-subcategory:hover,
.taxonomy-add-subcategory:focus-visible {
  border-color: var(--taxonomy-orange);
  color: #fff;
  background: var(--taxonomy-orange);
}

.taxonomy-subcategory-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-subcategory {
  display: grid;
  grid-template-columns: 28px 38px minmax(120px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
}

.taxonomy-subcategory.is-inactive {
  border-style: dashed;
  background: #fafafa;
}

.taxonomy-order-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #667085;
  background: #f2f4f7;
  font-size: 9px;
  font-weight: 950;
}

.taxonomy-empty {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px dashed #cfd6df;
  border-radius: 15px;
  color: var(--taxonomy-muted);
  background: #fafbfc;
  text-align: left;
}

.taxonomy-empty > i {
  color: var(--taxonomy-orange);
  font-size: 25px;
}

.taxonomy-empty > span { display: grid; }
.taxonomy-empty strong { color: var(--taxonomy-ink); font-size: 11px; font-weight: 900; }
.taxonomy-empty small { margin-top: 2px; font-size: 9px; }
.taxonomy-empty.is-error { border-color: #fecaca; background: #fff7f7; }
.taxonomy-empty.is-error > i { color: #b42318; }
.taxonomy-empty .btn { min-height: 42px; margin-left: 8px; font-size: 10px; font-weight: 900; }

.taxonomy-loading {
  display: grid;
  gap: 9px;
}

.taxonomy-loading span {
  display: block;
  height: 76px;
  border-radius: 18px;
  background: #eef1f4;
  animation: taxonomy-pulse 1s ease-in-out infinite alternate;
}

.taxonomy-loading span:nth-child(2) { animation-delay: .12s; }
.taxonomy-loading span:nth-child(3) { animation-delay: .24s; }

.taxonomy-modal-card {
  display: grid;
  width: min(540px, 100%);
  gap: 15px;
  padding: 22px;
}

.taxonomy-modal-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
}

.taxonomy-modal-heading p {
  margin: 4px 0 0;
  color: var(--taxonomy-muted);
  font-size: 10px;
  line-height: 1.45;
}

.taxonomy-delete-card {
  display: grid;
  width: min(540px, 100%);
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
}

.taxonomy-delete-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  color: #b42318;
  background: #fee4e2;
  font-size: 23px;
}

.taxonomy-delete-card > div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.taxonomy-danger-kicker {
  color: #b42318;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.taxonomy-delete-card h2 {
  margin: 3px 0 5px;
  color: var(--taxonomy-ink);
  font-size: 21px;
  font-weight: 950;
}

.taxonomy-delete-card p {
  margin: 0 0 8px;
  color: var(--taxonomy-muted);
  font-size: 10px;
  line-height: 1.5;
}

.taxonomy-delete-card #taxonomy-delete-name {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid #fecdca;
  border-radius: 11px;
  color: #912018;
  background: #fff6f5;
  font-size: 14px;
  font-weight: 950;
}

.taxonomy-delete-card .taxonomy-form-message {
  margin-top: 9px;
}

.taxonomy-delete-actions {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1.4fr;
}

.taxonomy-expand:focus-visible,
.taxonomy-icon-button:focus-visible,
.taxonomy-row-actions button:focus-visible,
.taxonomy-order-actions button:focus-visible,
.taxonomy-category-order button:focus-visible,
.taxonomy-add-subcategory:focus-visible,
.taxonomy-refresh:focus-visible {
  outline: 3px solid var(--taxonomy-focus);
  outline-offset: 2px;
}

@keyframes taxonomy-spin { to { transform: rotate(360deg); } }
@keyframes taxonomy-pulse { to { opacity: .5; } }

@media (max-width: 1260px) {
  .taxonomy-category-header {
    grid-template-columns: 32px 48px minmax(125px, 1fr) auto auto auto;
  }
  .taxonomy-category-order {
    grid-column: 3;
    justify-content: flex-start;
  }
  .taxonomy-category-header > .taxonomy-row-actions {
    grid-column: 6;
    grid-row: 1 / span 2;
  }
  .taxonomy-category-header > .taxonomy-inline-switch {
    grid-column: 5;
    grid-row: 1 / span 2;
  }
  .taxonomy-category-header > .taxonomy-status { grid-column: 4; }
  .taxonomy-subcategory {
    grid-template-columns: 28px 38px minmax(120px, 1fr) auto auto auto;
  }
  .taxonomy-subcategory > .taxonomy-order-actions { grid-column: 3; }
  .taxonomy-subcategory > .taxonomy-inline-switch { grid-column: 5; grid-row: 1 / span 2; }
  .taxonomy-subcategory > .taxonomy-row-actions { grid-column: 6; grid-row: 1 / span 2; }
}

@media (max-width: 980px) {
  .taxonomy-layout { grid-template-columns: 1fr; }
  .taxonomy-editor-card { position: static; }
  .taxonomy-editor-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .taxonomy-editor-heading,
  .taxonomy-switch,
  .taxonomy-form-message,
  .taxonomy-editor-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .taxonomy-hero {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 21px;
    border-radius: 20px;
  }
  .taxonomy-hero h1 { font-size: 27px; }
  .taxonomy-hero p { font-size: 11px; }
  .taxonomy-refresh { width: 100%; min-height: 50px; }
  .taxonomy-metrics { grid-template-columns: 1fr; }
  .taxonomy-metrics article { padding: 11px 13px; }
  .taxonomy-metrics small { font-size: 11px; }
  .taxonomy-editor-card,
  .taxonomy-tree-card { border-radius: 18px; }
  .taxonomy-editor-card { grid-template-columns: 1fr; padding: 15px; }
  .taxonomy-editor-card > * { grid-column: 1; }
  .taxonomy-tree-card { margin: 0 -5px; padding: 12px; }
  .taxonomy-tree-heading { align-items: stretch; flex-direction: column; }
  .taxonomy-search { width: 100%; min-height: 48px; }
  .taxonomy-search input { height: 46px; font-size: 12px; }
  .taxonomy-category-header {
    grid-template-columns: 32px 46px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 10px;
  }
  .taxonomy-category-header > .taxonomy-flat-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .taxonomy-category-header > .taxonomy-status { grid-column: 3; grid-row: 2; justify-self: start; }
  .taxonomy-category-header > .taxonomy-category-order { grid-column: 3; grid-row: 3; }
  .taxonomy-category-header > .taxonomy-inline-switch { grid-column: 4; grid-row: 1 / span 2; }
  .taxonomy-category-header > .taxonomy-row-actions { grid-column: 1 / -1; grid-row: 4; }
  .taxonomy-category-header > .taxonomy-row-actions button { width: 100%; min-height: 43px; }
  .taxonomy-category-children { padding: 0 9px 9px; }
  .taxonomy-children-heading { align-items: stretch; flex-direction: column; }
  .taxonomy-children-heading small { font-size: 10px; }
  .taxonomy-add-subcategory { width: 100%; min-height: 46px; }
  .taxonomy-subcategory {
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .taxonomy-subcategory > .taxonomy-status { grid-column: 2 / span 2; grid-row: 2; justify-self: start; }
  .taxonomy-subcategory > .taxonomy-order-actions { grid-column: 2; grid-row: 3; }
  .taxonomy-subcategory > .taxonomy-inline-switch { grid-column: 4; grid-row: 1 / span 2; }
  .taxonomy-subcategory > .taxonomy-row-actions { grid-column: 1 / -1; grid-row: 4; }
  .taxonomy-subcategory > .taxonomy-row-actions button { width: 100%; min-height: 43px; }
  .taxonomy-item-copy strong { font-size: 12px; }
  .taxonomy-item-copy small,
  .taxonomy-status { font-size: 10px; }
  .taxonomy-editor-actions,
  .taxonomy-modal-actions,
  .taxonomy-delete-actions { grid-template-columns: 1fr; }
  .taxonomy-editor-actions .btn,
  .taxonomy-modal-actions .btn { min-height: 52px; }
  .taxonomy-editor-actions .btn-brand,
  .taxonomy-delete-actions .btn-danger { grid-row: 1; }
  .taxonomy-modal-card { padding: 17px; }
  .taxonomy-modal-heading { grid-template-columns: 44px minmax(0, 1fr) 38px; }
  .taxonomy-modal-heading .taxonomy-flat-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .taxonomy-modal-heading h2 { font-size: 18px; }
  .taxonomy-delete-card { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 17px; }
  .taxonomy-delete-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; }
  .taxonomy-delete-card h2 { font-size: 18px; }
  .taxonomy-delete-card p { font-size: 11px; }
  .taxonomy-empty { flex-wrap: wrap; min-height: 130px; }
  .taxonomy-empty .btn { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .taxonomy-refresh.is-refreshing i,
  .taxonomy-loading span { animation: none; }
  .taxonomy-category,
  .taxonomy-expand i { transition: none; }
  html:focus-within { scroll-behavior: auto; }
}
