:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #183334;
  background: #f4f7f6;
  font-size: 14px;
  --green: #147765;
  --muted: #627975;
  --line: #dce5e1;
  --dark: #153d37;
}
.en-signin {
  max-width: 420px;
  margin: 40px auto;
  text-align: left;
}
.en-signin label {
  margin: 18px 0;
}
.en-signin input {
  width: 100%;
}
.en-signin [role="alert"] {
  color: #ad4233;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: white;
  color: #244b43;
  transition: 0.15s;
}
button:hover {
  background: #eaf4ef;
  border-color: #86b7a7;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: #ad4233;
}
button.small {
  padding: 6px 9px;
  font-size: 12px;
}
button.link {
  border: 0;
  padding: 3px;
  background: transparent;
  color: var(--green);
  text-align: left;
}
input,
select,
textarea {
  border: 1px solid #ccd9d2;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #183334;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #77b7a0;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
  width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
label {
  font-size: 12px;
  font-weight: 600;
  color: #4b635a;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  margin-bottom: 9px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
a {
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: #edf6f1;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 8px 32px;
  font-size: 23px;
  letter-spacing: 4px;
  font-weight: 700;
}
.brandmark {
  width: 34px;
  height: 34px;
  border: 1px solid #85b6a4;
  border-radius: 10px;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  color: #bef2d5;
  font-size: 23px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #98b9aa;
  margin: 17px 10px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  border: 0;
  background: transparent;
  color: #b8d2c5;
  text-align: left;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.nav button:hover,
.nav button.active {
  background: #285449;
  color: white;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  line-height: 1.8;
  color: #a8c7b9;
  padding: 20px 8px 0;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #94d8b5;
  border-radius: 50%;
  margin-right: 6px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 67px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.breadcrumb {
  color: #8ba096;
  font-size: 12px;
}
.breadcrumb b {
  color: #335549;
  font-weight: 500;
}
.pill {
  font-size: 11px;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 9px;
  background: #f4f7f4;
  color: #506e62;
}
.pill.green {
  background: #e9f4ed;
  color: #24704e;
  border-color: #c8e1ce;
}
.pill.amber {
  background: #fff6df;
  color: #886522;
  border-color: #eedeab;
}
.content {
  padding: 28px 30px 36px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green);
  margin-bottom: 10px;
}
.subtitle {
  margin-bottom: 0;
  font-size: 13px;
  max-width: 750px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 16px 19px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  font-size: 23px;
  font-weight: 550;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  min-height: 610px;
  overflow: hidden;
}
.catalog {
  border-right: 1px solid var(--line);
  background: #fafcfb;
  min-width: 0;
}
.search {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.search input {
  width: 100%;
  font-size: 12px;
}
.catalog-list {
  max-height: 690px;
  overflow: auto;
  padding: 8px;
}
.card {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  padding: 16px 13px;
  background: transparent;
  margin: 2px 0;
  display: block;
}
.card.active {
  background: #eaf3ed;
  border-color: #c6dccf;
  box-shadow: inset 3px 0 var(--green);
}
.card-title {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #82948a;
  font-size: 11px;
}
.detail {
  min-width: 0;
}
.detail-head {
  padding: 23px 25px 18px;
  border-bottom: 1px solid var(--line);
}
.detail-head h2 {
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 14px 1px;
  font-size: 12px;
  white-space: nowrap;
  color: #728378;
}
.tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.panel {
  padding: 24px;
  max-height: 850px;
  overflow: auto;
}
.empty {
  padding: 60px 30px;
  text-align: center;
  max-width: 540px;
  margin: auto;
}
.empty-icon {
  font-size: 35px;
  margin-bottom: 20px;
  color: #578f7a;
}
.notice {
  background: #f3f7f4;
  border: 1px solid #d9e7dd;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.65;
  color: #527060;
  margin-bottom: 18px;
}
.notice.amber {
  background: #fffaeb;
  border-color: #eaddb9;
  color: #856c36;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.full {
  grid-column: 1/-1;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.section-title {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #758b7f;
  margin-bottom: 12px;
}
.definition {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 12px;
  margin: 18px 0;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.page-select {
  width: 100%;
  margin-bottom: 16px;
}
.editor-title {
  width: 100%;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.editor-body {
  min-height: 255px;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 12px;
  background: #f6f8f6;
  padding: 15px;
  border: 1px solid #e1e8e2;
  border-radius: 6px;
  max-height: 330px;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
}
.source-block {
  border-left: 3px solid #bfcebd;
  padding: 0 13px;
  margin: 18px 0;
}
.source-block small {
  font-family: monospace;
  color: #7e9184;
  font-size: 10px;
}
.source-block p {
  font-size: 12px;
  color: #374f41;
  white-space: pre-wrap;
  margin: 7px 0;
  max-height: 340px;
  overflow: auto;
}
.graph {
  width: 100%;
  height: 240px;
  background: #f5f8f5;
  border: 1px solid #e2e9e3;
  border-radius: 7px;
  margin: 12px 0;
}
.graph line {
  stroke: #acc8b5;
  stroke-width: 1.5;
}
.graph rect {
  fill: #fff;
  stroke: #cadbcd;
}
.graph text {
  fill: #40654f;
  font-size: 10px;
}
.graph .focus rect {
  fill: #176b50;
  stroke: #176b50;
}
.graph .focus text {
  fill: #fff;
}
.graph g {
  cursor: pointer;
}
.relation {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid #e7ede8;
  padding: 10px 0;
}
.relation span {
  color: #779182;
  font-size: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.version {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 12px;
}
.version code {
  font-size: 11px;
}
.history-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-row small {
  color: var(--muted);
}
.result {
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 8px;
  margin-top: 13px;
}
.result p {
  font-size: 12px;
  white-space: pre-wrap;
  color: #425e4d;
  margin-top: 10px;
}
.result code {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.loading {
  padding: 70px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #173d31;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  box-shadow: 0 7px 30px #173d3133;
  z-index: 5;
  max-width: 650px;
  display: none;
  font-size: 13px;
}
#toast.error {
  background: #8a392e;
}
dialog {
  width: min(760px, 93vw);
  border: 1px solid #d0ded1;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 100px #062a2733;
  color: #183334;
  max-height: 90vh;
}
dialog::backdrop {
  background: #0b2e2566;
  backdrop-filter: blur(2px);
}
dialog h2 {
  margin-bottom: 8px;
}
dialog form {
  margin-top: 20px;
}
.upload-zone {
  padding: 20px;
  border: 1px dashed #b1cbb9;
  border-radius: 8px;
  background: #f7faf7;
  margin-bottom: 16px;
}
.upload-zone input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 6px 0;
}
.review-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: row;
  font-weight: 400;
  line-height: 1.6;
  margin: 15px 0;
}
.review-check input {
  margin: 3px 0;
}
.nowrap {
  white-space: nowrap;
}
footer.note {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  color: #84988a;
  font-size: 10px;
  gap: 20px;
}
.compact {
  margin: 0;
}
.badge-number {
  font-size: 10px;
  opacity: 0.65;
}
.original {
  margin-top: 18px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 340px 1fr;
  }
  .panel {
    padding: 27px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 178px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .content {
    padding: 22px 18px;
  }
  .workspace {
    grid-template-columns: 240px 1fr;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 16px;
  }
  .brand {
    padding: 0 0 12px;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-label,
  .sidebar-footer {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .catalog {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .catalog-list {
    max-height: 215px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .heading {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .topbar {
    padding: 0 18px;
  }
}
