.tw-page {
  color: #171c18;
}
.tw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.tw-heading h2 {
  font-size: 38px;
  margin: 10px 0;
}
.tw-heading p {
  font-size: 13px;
  color: #697168;
  margin: 8px 0 0;
}
.tw-heading > div:last-child {
  display: flex;
  gap: 8px;
}
.tw-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #b9c2b2;
  border-bottom: 1px solid #b9c2b2;
  margin-bottom: 22px;
  color: #245444;
}
.tw-intro > span {
  font-weight: 700;
  font-size: 18px;
}
.tw-intro > strong {
  font-size: 13px;
  font-weight: 400;
}
.tw-intro > button {
  margin-left: auto;
}
.tw-councils {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tw-council-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding: 25px 24px;
  text-align: left;
  border: 1px solid #b9c2b2;
  background: #f1f3e9;
  color: #245444;
  min-height: 175px;
  cursor: pointer;
}
.tw-council-card > strong {
  font-size: 23px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tw-council-card > span:last-of-type {
  font-size: 12px;
  color: #728169;
}
.tw-council-card > b {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 24px;
  font-weight: 400;
}
.tw-council-card:hover {
  background: #e1ead7;
  border-color: #728a68;
}
.tw-scope-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tw-scope-tools > label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #697168;
  font-size: 12px;
}
.tw-scope-tools select,
.tw-filters input,
.tw-branch-head input {
  min-height: 36px;
  border: 1px solid #bec8b6;
  background: #f5f5f0;
  padding: 8px 10px;
  color: #245444;
  font-size: 13px;
  min-width: 0;
}
.tw-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border: 1px solid #b9c2b2;
  min-height: 700px;
  background: #f5f5f0;
}
.tw-branches {
  padding: 16px 12px;
  background: #e7ecdf;
  border-right: 1px solid #b9c2b2;
  max-height: 920px;
  overflow: auto;
}
.tw-branch-head {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 8px 8px 16px;
  color: #245444;
}
.tw-branch-head input {
  width: 100%;
}
.tw-branches > button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 13px 12px;
  background: transparent;
  border: 0;
  color: #345032;
  cursor: pointer;
  margin: 2px 0;
}
.tw-branches > button > strong {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tw-branches > button > span {
  display: block;
  font-size: 11px;
  color: #819176;
  margin-top: 6px;
}
.tw-branches > button[aria-pressed='true'] {
  background: #1b332a;
  color: #eff3e7;
  box-shadow: inset 3px 0 #e5f348;
}
.tw-branches > button[aria-pressed='true'] > span {
  color: #bccdb0;
}
.tw-branches > button:hover:not([aria-pressed='true']) {
  background: #d9e4cf;
}
.tw-library {
  padding: 26px;
  min-width: 0;
}
.tw-library > header h3 {
  font-size: 26px;
  line-height: 1.5;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.tw-library > header p {
  color: #75846c;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tw-list-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid #c8d1be;
}
.tw-page [data-tw-primary],
.tw-primary {
  background: #171c18 !important;
  color: #e5f348 !important;
  border-color: #171c18 !important;
}
.tw-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
}
.tw-filters > input {
  flex: 1;
}
.tw-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #75846c;
  font-size: 12px;
}
.tw-document-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #c4cebc;
  background: #f5f5f0;
  padding: 20px 16px;
  width: 100%;
  text-align: left;
  margin: 12px 0;
  cursor: pointer;
  color: #253e2b;
}
.tw-document-card:hover {
  background: #e6eddf;
  border-color: #8fa67e;
}
.tw-doc-icon {
  display: flex;
  width: 34px;
  height: 41px;
  border: 1px solid #6e885d;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font:
    600 19px Georgia,
    serif;
  color: #315c40;
}
.tw-document-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.tw-document-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tw-document-card small {
  display: block;
  font-size: 11px;
  color: #7a876f;
  line-height: 1.7;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.tw-doc-meta {
  max-width: 190px;
  text-align: right;
}
.tw-status {
  font-size: 11px;
  display: inline-block;
  background: #e0e8d8;
  color: #47653b;
  padding: 4px 9px;
  font-weight: 400;
}
.tw-empty {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
  color: #7a876f;
  padding: 70px 10px;
  font-size: 13px;
  line-height: 1.7;
}
.tw-empty strong {
  color: #526b46;
  font-size: 17px;
}
.tw-stopped {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #75846c;
  margin: 20px 8px;
}
.tw-document-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #b9c2b2;
  font-size: 12px;
  color: #65785a;
}
.tw-document-heading > span:nth-child(2) {
  flex: 1;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.tw-document-heading [data-tw-dirty] {
  color: #4e6f40;
}
.tw-editor-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
}
.tw-editor-meta > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #526b46;
  font-size: 12px;
}
.tw-editor-meta > label:first-child {
  flex: 1;
  min-width: 180px;
}
.tw-editor-meta input {
  padding: 10px;
  border: 1px solid #b9c2b2;
  background: #fffef8;
  color: #171c18;
  min-height: 40px;
  font-size: 14px;
  min-width: 0;
}
.tw-editor-meta h2 {
  font-size: 28px;
  margin: 6px 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.tw-editor-meta > span {
  font-size: 12px;
  color: #65785a;
}
.tw-document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
}
.tw-word-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 170px);
  min-height: 800px;
  border: 1px solid #b9c2b2;
  background: #e4e8dd;
}
.tw-error {
  color: #9b3c2a;
  line-height: 1.7;
  padding: 12px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tw-info {
  font-size: 12px;
  color: #4f6d40;
  background: #e0e8d8;
  padding: 12px 16px;
}
.tw-muted {
  font-size: 12px;
  color: #75846c;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.tw-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #171c18;
  background: #f5f5f0;
  color: #171c18;
  padding: 28px;
  box-shadow: 0 20px 70px #17261933;
}
.tw-dialog::backdrop {
  background: #17261966;
}
.tw-dialog h2 {
  font-size: 24px;
  margin: 0 0 24px;
}
.tw-dialog label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  font-size: 13px;
}
.tw-dialog input,
.tw-dialog select {
  padding: 11px;
  border: 1px solid #b9c2b2;
  background: #fffef8;
  font:
    14px 'Microsoft YaHei',
    sans-serif;
  min-width: 0;
  width: 100%;
  border-radius: 0;
}
.tw-dialog label.tw-checkbox {
  flex-direction: row;
  align-items: center;
}
.tw-checkbox input {
  width: auto;
}
.tw-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.tw-import-preview {
  max-height: 300px;
  overflow: auto;
  font-size: 12px;
  color: #526b46;
}
.tw-page button:focus-visible,
.tw-dialog :focus-visible {
  outline: 2px solid #245444;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .tw-councils {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tw-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .tw-doc-meta {
    display: none;
  }
  .tw-library {
    padding: 20px 16px;
  }
}
@media (max-width: 600px) {
  .tw-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .tw-heading h2 {
    font-size: 30px;
  }
  .tw-heading p {
    line-height: 1.7;
  }
  .tw-councils {
    gap: 10px;
  }
  .tw-council-card {
    padding: 18px 14px;
    min-height: 155px;
    gap: 16px;
  }
  .tw-council-card > strong {
    font-size: 19px;
  }
  .tw-council-card > b {
    right: 14px;
    bottom: 16px;
  }
  .tw-intro {
    gap: 12px;
    flex-wrap: wrap;
  }
  .tw-intro > strong {
    font-size: 12px;
  }
  .tw-intro > button {
    margin-left: 0;
  }
  .tw-scope-tools > label {
    width: 100%;
    margin-top: 6px;
  }
  .tw-scope-tools select {
    flex: 1;
    max-width: calc(100vw - 130px);
  }
  .tw-layout {
    display: block;
    min-height: 0;
  }
  .tw-branches {
    border-right: 0;
    border-bottom: 1px solid #b9c2b2;
    max-height: 310px;
  }
  .tw-branches > button {
    padding: 10px 12px;
  }
  .tw-library {
    padding: 20px 12px;
  }
  .tw-library > header h3 {
    font-size: 22px;
  }
  .tw-filters {
    gap: 10px;
  }
  .tw-filters > input {
    width: 100%;
    flex-basis: 100%;
  }
  .tw-document-card {
    padding: 16px 12px;
    gap: 11px;
  }
  .tw-document-card strong {
    font-size: 14px;
  }
  .tw-document-heading > span:nth-child(2) {
    flex-basis: 100%;
  }
  .tw-editor-meta {
    gap: 14px;
  }
  .tw-editor-meta > label:first-child {
    flex-basis: 100%;
    width: 100%;
  }
  .tw-editor-meta > label {
    flex: 1;
    min-width: 0;
  }
  .tw-editor-meta input {
    width: 100%;
    box-sizing: border-box;
  }
  .tw-word-frame {
    min-height: 800px;
  }
  .tw-document-actions .t-button {
    font-size: 12px;
    padding: 10px;
  }
  .tw-dialog {
    padding: 22px;
  }
}
