:root {
  font-family: MiSans, system-ui, sans-serif;
  color: #28312e;
  background: #f5f7f5;
  font-synthesis: none;
  --green: #256554;
  --muted: #707d77;
  --line: #dfe6e1;
  --soft: #edf4ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  border: 1px solid transparent;
  background: none;
  color: inherit;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #536259;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6dfd8;
  border-radius: 9px;
  background: #fff;
  color: #27332b;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.8;
  color: var(--muted);
}
small,
.fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
.primary,
.secondary {
  padding: 10px 17px;
  border-radius: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: #fff;
  border-color: var(--line);
}
.text-button {
  padding: 0;
  color: var(--green);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #758779;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 650;
  font-size: 18px;
  color: #233b2d;
}
.brand img {
  border-radius: 11px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.intro {
  background: #e9f0e9;
  padding: 50px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}
.intro h1 {
  font-size: clamp(34px, 3.5vw, 55px);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -1.5px;
  margin-top: 25px;
}
.intro p {
  font-size: 15px;
}
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.intro-tags span {
  border: 1px solid #d2dfd3;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 12px;
  color: #5e7363;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-card {
  max-width: 400px;
  width: 100%;
  display: grid;
  gap: 22px;
}
.login-card h2 {
  margin: 0;
}
.login-card p {
  margin: 0;
  font-size: 13px;
}
.login-card .primary {
  display: flex;
  justify-content: space-between;
}
.login-card > a {
  font-size: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  background: #eef2ec;
  border-right: 1px solid var(--line);
  padding: 28px 19px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.nav-caption {
  font-size: 11px;
  color: #7e8b81;
  margin: 15px 12px -16px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  color: #526557;
}
nav button span {
  color: #93a193;
  font-size: 10px;
}
nav button.active {
  background: #dae7d8;
  color: #234c32;
  font-weight: 600;
}
.sidebar-note {
  margin-top: auto;
  font-size: 12px;
  color: #516856;
}
.sidebar-note p {
  font-size: 11px;
  margin: 9px 0 0;
}
.status-dot {
  display: inline-block;
  background: #599b65;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.identity {
  border-top: 1px solid #dbe4d7;
  padding-top: 19px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.identity button {
  justify-self: start;
  font-size: 11px;
  margin-top: 5px;
}
.main {
  margin-left: 214px;
  padding: 28px 34px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.topbar h1 {
  font-size: 25px;
  margin: 7px 0 0;
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  padding: 17px 20px;
  background: #fff;
  border-radius: 12px;
}
.stat span {
  font-size: 12px;
  color: #79877d;
}
.stat strong {
  font-size: 25px;
  font-weight: 550;
  display: block;
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters label {
  min-width: 140px;
  gap: 5px;
  font-size: 11px;
}
.filters select,
.filters input {
  font-size: 12px;
  padding: 9px;
}
.search {
  flex: 1;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(230px, 31%) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.string-list,
.detail,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.string-list > header {
  display: flex;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.string-list > header span {
  font-size: 10px;
  color: var(--muted);
}
#strings {
  max-height: 66vh;
  min-height: 350px;
  overflow: auto;
}
.string-item {
  display: block;
  text-align: left;
  width: 100%;
  padding: 15px 17px;
  border-radius: 0;
  border-bottom: 1px solid #edf0ec;
}
.string-item:hover {
  background: #f7faf6;
}
.string-item.selected {
  background: #edf4e9;
  border-left: 3px solid var(--green);
  padding-left: 14px;
}
.string-item strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.string-item small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f3ef;
  color: #728173;
  margin-top: 6px;
}
.pill.good {
  background: #e4f1e3;
  color: #43724a;
}
.pill.warn {
  background: #fbf0d7;
  color: #997531;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 13px 10px;
  border-top: 1px solid var(--line);
}
.pagination button {
  font-size: 11px;
  padding: 6px 10px;
}
.detail {
  padding: 24px;
  min-height: 470px;
}
.detail h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 19px;
}
.detail-header code {
  font-size: 11px;
  color: #829080;
  overflow-wrap: anywhere;
}
.section-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #7b897d;
  margin-bottom: 10px;
}
.source-text {
  background: #f4f6f2;
  border: 1px solid #e8ece6;
  padding: 17px;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
}
.edit-form {
  display: grid;
  gap: 14px;
}
.actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.hint {
  font-size: 11px;
  color: #7c8a7c;
  margin: 0;
}
.context {
  margin: 25px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.context img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: #f1f3ef;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.context summary {
  cursor: pointer;
  font-size: 12px;
}
.context ul {
  padding-left: 18px;
  font-size: 11px;
  color: #72816f;
  overflow-wrap: anywhere;
}
.context-form {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.context-form input {
  font-size: 12px;
}
.discussion,
.history {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.proposal,
.comment,
.event {
  padding: 14px;
  background: #f8faf6;
  border: 1px solid #e9eee5;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 12px;
}
.proposal pre,
.event pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.7 inherit;
}
.proposal .actions {
  margin-top: 12px;
}
.before {
  background: #faeeee;
  padding: 8px;
  color: #87514e;
  white-space: pre-wrap;
}
.after {
  background: #eaf3e6;
  padding: 8px;
  color: #416542;
  white-space: pre-wrap;
}
.event small {
  display: block;
}
.empty {
  text-align: center;
  padding: 75px 20px;
  color: #7d8c79;
}
.empty h2 {
  font-size: 18px;
  color: #596d55;
}
.empty p {
  font-size: 12px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: #eef2e8;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  font-size: 28px;
  color: #7c9273;
}
.panel {
  padding: 24px;
  margin-bottom: 18px;
}
.panel p {
  font-size: 13px;
}
.member {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.member > div:first-child {
  min-width: 155px;
}
.member strong,
.member small {
  display: block;
}
.member select {
  width: 125px;
  font-size: 12px;
}
.language-checks {
  display: flex;
  gap: 8px;
}
.language-checks label {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
}
.language-checks input {
  width: auto;
}
.leader {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.leader strong {
  margin-left: auto;
  color: var(--green);
}
#notice {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border: 1px solid #cfdbcf;
  background: #fff;
  box-shadow: 0 6px 25px #17322120;
  border-radius: 10px;
  font-size: 13px;
  max-width: 90vw;
}
#notice.error {
  border-color: #dcb6ad;
  color: #a34333;
}
button:hover {
  filter: brightness(0.97);
}
:focus-visible {
  outline: 2px solid #508565;
}
pre {
  margin: 8px 0;
}
.danger {
  color: #9b4a3e;
}
.audit-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
body.embedded .sidebar {
  width: 185px;
}
body.embedded .main {
  margin-left: 185px;
}
@media (min-width: 1550px) {
  .main {
    max-width: 1700px;
    margin-right: auto;
  }
  .editor-grid {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 176px;
    padding: 25px 13px;
  }
  .main {
    margin-left: 176px;
    padding: 24px 20px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .editor-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .detail {
    padding: 18px;
  }
  .filters label {
    min-width: 100px;
  }
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 30px;
    gap: 30px;
  }
  .intro h1 {
    font-size: 30px;
  }
  .intro > small,
  .intro-tags {
    display: none;
  }
  .login-side {
    padding: 30px;
  }
  .sidebar,
  body.embedded .sidebar {
    position: static;
    width: auto;
    padding: 16px;
  }
  .sidebar .brand,
  .nav-caption,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar nav button {
    white-space: nowrap;
    gap: 10px;
  }
  .identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
  }
  .identity button {
    margin-left: auto;
  }
  .main,
  body.embedded .main {
    margin: 0;
    padding: 20px 13px;
  }
  .topbar {
    gap: 10px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  #strings {
    max-height: 250px;
    min-height: 180px;
  }
  .filters {
    gap: 8px;
  }
  .filters label {
    flex: 1;
    min-width: 110px;
  }
  .search {
    flex-basis: 100% !important;
  }
  .detail {
    min-height: 350px;
  }
  .topbar button {
    font-size: 11px;
  }
}
