@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-subtle: #f2f2f2;
  --ink: #0f0f0f;
  --muted: #696969;
  --line: #d9d9d9;
  --line-strong: #111111;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.08), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.08), transparent 34%),
    var(--bg);
}

#root {
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  color: #ffffff;
  background: #0a0a0a;
  border-bottom: 1px solid #202020;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

header .title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

header .subtitle {
  margin-top: 6px;
  color: #b6b6b6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #cbcbcb;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.2s ease;
}

nav a:hover,
.nav-link:hover {
  color: #ffffff;
  border-color: #3f3f3f;
  background: #151515;
}

nav a.active,
.nav-link.active {
  color: #ffffff;
  border-color: #ffffff;
  background: #111111;
}

main {
  max-width: 1320px;
  margin: 28px auto 64px;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 12px;
}

.card {
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font: 500 14px/1.35 var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"] {
  padding: 8px 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
  border-radius: 10px;
  cursor: pointer;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

button.secondary {
  color: #111111;
  background: #ffffff;
}

button.ghost {
  color: #111111;
  background: transparent;
}

nav .nav-logout {
  color: #ffffff;
  border-color: #5a5a5a;
}

nav .nav-logout:hover {
  color: #111111;
  border-color: #ffffff;
  background: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  color: #111111;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 999px;
}

.badge.mapping-status {
  min-width: 64px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: none;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  background: #111111;
  border: 1px solid #111111;
  border-radius: 10px;
}

.notice.warning {
  color: #5d3d00;
  background: #fff5df;
  border-color: #e7c679;
}

.separator {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

.field-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.file-list {
  display: grid;
  gap: 10px;
}

.preview {
  padding: 14px;
  background: var(--panel-subtle);
  border: 1px solid #d0d0d0;
  border-radius: 12px;
}

.table-wrap {
  overflow-x: auto;
}

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

.mapping-table th,
.mapping-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.mapping-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mapping-table td:last-child,
.mapping-table th:last-child {
  text-align: right;
}

.mapping-table input {
  min-width: 170px;
}

.mapping-table tr.mapping-row-invalid td {
  background: #fff3f3;
}

.mapping-table tr.mapping-row-updated td {
  background: #edf8ef;
}

.mapping-table input.mapping-input-invalid {
  border-color: #cf2f2f;
  box-shadow: 0 0 0 1px rgba(207, 47, 47, 0.2);
}

.mapping-table button {
  padding: 6px 10px;
  font-size: 11px;
}

.mapping-matrix-wrap {
  overflow-x: auto;
}

.mapping-matrix {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.mapping-matrix th,
.mapping-matrix td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.mapping-matrix th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mapping-matrix tbody tr.active td {
  background: #f4f8ff;
}

.mapping-matrix tbody tr.problem td {
  background: #fff7f2;
}

.matrix-section-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.matrix-row-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  color: #8f1f1f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffe6de;
  border: 1px solid #efb8aa;
  border-radius: 999px;
}

.matrix-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
}

.matrix-flag.ok {
  color: #1f5f35;
  background: #e7f8ed;
  border-color: #b7dcc2;
}

.matrix-flag.missing {
  color: #8f1f1f;
  background: #ffe9e2;
  border-color: #efc1b4;
}

.matrix-percent {
  font-size: 13px;
  font-weight: 700;
}

.matrix-percent.low {
  color: #9b2e2e;
}

.matrix-meta {
  margin-top: 4px;
  color: #676767;
  font-size: 11px;
}

.matrix-actions-cell {
  white-space: nowrap;
}

.badge.matrix-open-active {
  color: #ffffff;
  background: #111111;
}

.dictionaries-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.dictionaries-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.dictionaries-toggle-button {
  min-width: clamp(180px, 22vw, 280px);
}

.dictionaries-toggle-button.active {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.dictionaries-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 460px);
  gap: 12px;
  align-items: end;
}

.dictionaries-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dictionary-group-window {
  animation: windowIn 0.22s ease;
}

.dictionary-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dictionary-group-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.dictionaries-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dictionaries-create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--panel-subtle);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
}

.dictionaries-create-actions {
  grid-column: 1 / -1;
}

.dictionaries-table {
  min-width: 1240px;
}

.dictionaries-table-compact {
  min-width: 100%;
}

.dictionaries-table tbody tr {
  cursor: default;
}

.dictionaries-table tbody tr.active td {
  background: #f4f8ff;
}

.dictionaries-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.dictionary-detail-table {
  min-width: 100%;
}

.dictionary-detail-table th:first-child {
  width: 220px;
}

.dictionary-structure-table {
  min-width: 1080px;
}

.dictionary-xsd-table {
  min-width: 980px;
  width: 100%;
  table-layout: fixed;
}

.dictionary-xsd-table th,
.dictionary-xsd-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.xsd-inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xsd-inspector-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.xsd-inspector-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xsd-counter {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fafafa;
  color: #3b3b3b;
  font-size: 12px;
}

.xsd-inspector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xsd-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #2e2e2e;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.xsd-chip:hover {
  border-color: #9fb3c8;
}

.xsd-chip.active {
  border-color: #0f4c81;
  color: #0f4c81;
  background: #eaf4ff;
}

.xsd-inspector-search {
  max-width: 560px;
}

.xsd-inspector-search label {
  display: block;
  margin-bottom: 6px;
}

.xsd-inspector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xsd-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.xsd-tab.active {
  border-color: #0f4c81;
  background: #f0f7ff;
  color: #0f4c81;
  font-weight: 600;
}

.xsd-inspector-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
}

.xsd-inspector-list {
  min-height: 360px;
}

.xsd-inspector-list tbody tr {
  cursor: pointer;
}

.xsd-inspector-details {
  max-height: clamp(360px, 62vh, 760px);
  overflow: auto;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fcfcfc;
  padding: 12px;
}

.xsd-inspector-details h5 {
  margin: 0 0 8px;
  font-size: 13px;
}

.xsd-annotation-xml {
  margin: 6px 0 0;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dictionary-structure-scroll {
  max-height: clamp(360px, 62vh, 760px);
  overflow: auto;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
}

.dictionary-structure-scroll .mapping-matrix {
  margin: 0;
}

.dictionary-structure-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
}

.dictionary-node-name {
  display: block;
  max-width: 100%;
  font-family: var(--font-mono);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dictionary-value-cell {
  word-break: break-word;
}

.dictionary-xsd-type {
  font-family: var(--font-mono);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dictionary-xsd-category {
  font-weight: 600;
}

.xsd-col-complex {
  width: clamp(170px, 18vw, 280px);
}

.xsd-col-element {
  width: clamp(220px, 24vw, 420px);
}

.xsd-col-type {
  width: clamp(150px, 16vw, 260px);
}

.xsd-col-annotation {
  width: clamp(220px, 22vw, 420px);
}

.xsd-col-properties {
  width: clamp(240px, 24vw, 460px);
}

.dictionaries-actions {
  margin: 8px 0 12px;
}

.dictionaries-actions-cell {
  white-space: nowrap;
}

.dictionaries-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.dictionaries-file-card {
  padding: 12px;
  background: var(--panel-subtle);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
}

.dictionaries-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dictionaries-tags-card {
  padding: 12px;
  background: var(--panel-subtle);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
}

.dictionaries-tags-list {
  margin: 0;
  padding-left: 18px;
  max-height: 260px;
  overflow: auto;
}

.dictionaries-tags-list li + li {
  margin-top: 4px;
}

.dictionaries-tags-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dictionaries-structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.dictionary-tree-panel {
  padding: 12px;
  background: var(--panel-subtle);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
}

.dictionary-tree-root {
  margin: 0;
  padding-left: 16px;
  list-style: none;
  max-height: 340px;
  overflow: auto;
}

.dictionary-tree-node {
  padding: 8px 0;
  border-bottom: 1px dashed #dcdcdc;
}

.dictionary-tree-node:last-child {
  border-bottom: none;
}

.dictionary-tree-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.dictionary-tree-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f5f35;
}

.dictionary-tree-name {
  font-size: 13px;
  color: #1a1a1a;
}

.dictionary-tree-path,
.dictionary-tree-attrs {
  margin-top: 2px;
  font-size: 11px;
  color: #5f5f5f;
  font-family: var(--font-mono);
  word-break: break-word;
}

.mapping-files-state {
  gap: 8px;
}

.mapping-settings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mapping-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.mapping-settings-panel {
  padding: 12px;
  background: var(--panel-subtle);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
}

.mapping-settings-panel textarea {
  min-height: 110px;
  font-family: var(--font-mono);
}

.mapping-settings-actions {
  margin-top: 6px;
}

.field-key {
  color: #525252;
  font-size: 12px;
  font-family: var(--font-mono);
}

.mapping-status {
  font-size: 11px;
}

.mapping-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 8, 8, 0.48);
}

.mapping-picker-dialog {
  width: min(980px, calc(100vw - 36px));
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.mapping-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mapping-picker-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}

.mapping-picker-table-wrap {
  max-height: min(56vh, 560px);
  border: 1px solid #d8d8d8;
  border-radius: 10px;
}

.mapping-picker-table-wrap .mapping-matrix {
  min-width: 0;
  table-layout: fixed;
}

.mapping-picker-table-wrap .mapping-matrix th,
.mapping-picker-table-wrap .mapping-matrix td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mapping-picker-doc-cell {
  color: #4f4f4f;
}

.mapping-picker-table-wrap tbody tr {
  cursor: pointer;
}

.mapping-picker-table-wrap tbody tr:hover td {
  background: #f3f8ff;
}

.list.numbered {
  padding-left: 20px;
  list-style: decimal;
}

.list.numbered li {
  padding: 5px 0;
  border-bottom: none;
}

.help-shortcut .badge {
  margin-top: 4px;
}

.help-actions {
  margin-bottom: 8px;
}

.help-code {
  margin: 8px 0 12px;
  padding: 12px;
  overflow-x: auto;
  color: #111111;
  font: 500 12px/1.45 var(--font-mono);
  background: #f5f5f5;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
}

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

.help-nav {
  position: sticky;
  top: 94px;
}

.help-nav-list {
  display: grid;
  gap: 8px;
}

.help-nav-link {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: #111111;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.help-nav-link-title {
  font-size: 13px;
  font-weight: 700;
}

.help-nav-link-hint {
  color: #606060;
  font-size: 11px;
  line-height: 1.3;
}

.help-nav-link:hover {
  border-color: #111111;
  transform: translateX(2px);
}

.help-windows {
  display: grid;
  gap: 16px;
}

.help-window {
  scroll-margin-top: 108px;
}

.help-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.help-window .help-code {
  margin-bottom: 0;
}

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

.dataset-menu {
  position: sticky;
  top: 94px;
}

.dataset-menu-title {
  margin-bottom: 12px;
  color: #5a5a5a;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dataset-menu-groups {
  display: grid;
  gap: 12px;
}

.dataset-menu-group {
  padding-top: 2px;
}

.dataset-menu-group + .dataset-menu-group {
  border-top: 1px solid #d9d9d9;
  padding-top: 10px;
}

.dataset-menu-group-title {
  margin-bottom: 8px;
  color: #595959;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dataset-menu-list {
  display: grid;
  gap: 8px;
}

.dataset-menu-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dfdfdf;
}

.dataset-menu-actions button {
  width: 100%;
}

.dataset-menu-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d9d9d9;
}

.dataset-menu-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  color: #111111;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.dataset-menu-item:hover {
  border-color: #111111;
  transform: translateX(2px);
}

.dataset-menu-item.active {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.dataset-menu-item.active .dataset-menu-meta {
  color: #d7d7d7;
}

.dataset-menu-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dataset-menu-meta {
  margin-top: 4px;
  color: #6a6a6a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataset-window {
  animation: windowIn 0.22s ease;
}

.dataset-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dataset-title-edit-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  color: #111111;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 999px;
}

.dataset-title-edit-btn:hover {
  color: #ffffff;
  background: #111111;
}

.dataset-title-edit-btn svg {
  width: 16px;
  height: 16px;
}

.dataset-window-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataset-form {
  display: grid;
  gap: 14px;
}

.dataset-empty {
  padding: 12px;
  color: #626262;
  font-size: 13px;
  background: #fbfbfb;
  border: 1px dashed #bcbcbc;
  border-radius: 10px;
}

@keyframes windowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .dictionaries-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dictionaries-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dictionaries-search-row {
    grid-template-columns: 1fr;
  }

  .dictionaries-groups-grid {
    grid-template-columns: 1fr;
  }

  .xsd-inspector-body {
    grid-template-columns: 1fr;
  }

  .xsd-inspector-details {
    max-height: none;
  }

  .dataset-layout {
    grid-template-columns: 1fr;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .dataset-menu {
    position: static;
  }

  .help-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  main {
    margin-top: 18px;
    padding: 0 14px;
  }

  .dictionaries-filters {
    grid-template-columns: 1fr;
  }

  .dictionary-group-upload {
    grid-template-columns: 1fr;
  }

  .dictionaries-toggle-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dictionaries-toggle-button {
    width: 100%;
  }

  .xsd-inspector-chips {
    gap: 6px;
  }

  .xsd-chip,
  .xsd-tab {
    width: 100%;
    justify-content: center;
  }

  .mapping-picker-overlay {
    padding: 10px;
  }

  .mapping-picker-dialog {
    width: calc(100vw - 20px);
    max-height: 86vh;
  }

  .card {
    padding: 16px;
  }

  .actions {
    gap: 8px;
  }

  button,
  .badge {
    font-size: 12px;
  }

  nav {
    gap: 8px;
  }

  nav a {
    padding: 6px 9px;
    font-size: 12px;
  }
}
