.section-name-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.section-names-control {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  font-size: 10px;
  color: var(--muted);
}
.section-names-control label {
  color: var(--ink);
}
.section-names-control select {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 7px;
  font-size: 10px;
  margin-left: 6px;
  max-width: 100%;
}
.map-flow-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}
.map-flow-item .flow-node {
  flex: 1;
}
.section-identity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.section-identity {
  border: 1px solid #d1d8c6;
  border-radius: 3px;
  background: #f4f6ed;
  padding: 4px 6px;
  color: #4c6042;
  font-size: 9px;
  text-align: left;
  line-height: 1.35;
}
.section-identity:hover {
  background: #e5ebd8;
}
.section-identity:focus-visible {
  outline: 2px solid #314c3d;
  outline-offset: 2px;
}
.section-review {
  font-size: 9px;
  color: var(--muted);
  padding: 3px 0;
}
.section-map-label {
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 5px;
}
.pattern-section-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
}
.pattern-section-names > small {
  font-size: 9px;
  color: var(--muted);
  margin-right: 3px;
}
.section-glossary-dialog {
  width: min(1050px, calc(100vw - 32px));
  padding: 26px;
}
.section-glossary-dialog h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 10px;
}
.section-glossary-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 8px;
}
.section-glossary-tools .search {
  flex: 1;
  min-width: 0;
}
.section-glossary-tools button {
  white-space: nowrap;
  font-size: 11px;
}
.section-glossary-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  margin: 13px 0 18px;
}
.section-glossary-layout #section-glossary-list {
  max-height: 53vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.section-glossary-layout #section-glossary-list > button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  font-size: 11px;
  border-radius: 3px;
  margin-bottom: 3px;
}
.section-glossary-layout #section-glossary-list > button.selected {
  background: #e5ecd8;
  font-weight: 600;
}
.section-glossary-layout h3 {
  font-size: 19px;
  font-family: Georgia, serif;
  font-weight: 400;
  margin: 0 0 10px;
}
.section-glossary-layout h4 {
  font-size: 11px;
  margin: 16px 0 6px;
}
.section-glossary-layout p,
.section-glossary-layout li {
  font-size: 11px;
  line-height: 1.65;
}
.section-glossary-layout ul {
  padding-left: 17px;
  margin: 6px 0;
}
.section-glossary-layout li {
  margin-bottom: 7px;
}
.section-glossary-equivalents {
  background: #edf1e4;
  padding: 9px 12px;
}
.section-glossary-equivalents h4 {
  margin: 0 0 5px;
}
.section-glossary-equivalents p {
  margin: 0;
}
.section-example {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff8;
  width: 100%;
  padding: 9px 11px;
  margin: 7px 0;
  border-radius: 3px;
}
.section-example strong {
  font-size: 11px;
}
.section-example span,
.section-example small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.section-example small {
  font-size: 9px;
  color: var(--muted);
}
#section-glossary-rule {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.map-compare-grid .section-identity {
  font-size: 8px;
  padding: 3px 5px;
}
@media (max-width: 700px) {
  .section-glossary-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-glossary-layout #section-glossary-list {
    max-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .section-glossary-layout #section-glossary-list > button {
    width: auto;
    max-width: 100%;
    border: 1px solid var(--line);
    padding: 6px 9px;
  }
  .section-glossary-tools {
    flex-wrap: wrap;
    gap: 8px;
  }
  .section-glossary-tools .search {
    flex-basis: 100%;
  }
  .section-names-control label {
    width: 100%;
  }
  .section-names-control select {
    display: block;
    margin: 5px 0;
    width: 100%;
  }
  .section-name-actions {
    gap: 10px;
  }
  .section-name-actions button {
    font-size: 10px;
  }
}
