[hidden] {
  display: none !important;
}
:root {
  font-family: Inter, 'Segoe UI', sans-serif;
  color: #29332d;
  background: #f4f5f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: #365943;
  background: #fff;
  border: 1px solid #d4dfd5;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  background: #eff6f0;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a3c7af;
  outline-offset: 2px;
}
.primary {
  background: #355e48;
  color: #fff;
  border-color: #355e48;
}
.primary:hover {
  background: #294e3b;
}
.bar {
  background: #fff;
  border-bottom: 1px solid #dfe5df;
  padding: 16px 3%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.bar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bar nav button {
  border: 0;
}
#identity {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 24px clamp(20px, 3vw, 54px) 70px;
}
.muted {
  color: #758279;
  font-size: 12px;
}
.danger {
  color: #a34940;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 18px;
}
p {
  line-height: 1.5;
}
.card,
.row,
.field,
.panel {
  background: #fff;
  border: 1px solid #dfe6df;
  border-radius: 10px;
  padding: 18px;
  margin: 10px 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.row button.link {
  padding: 0;
  border: 0;
  text-align: left;
}
.login {
  max-width: 400px;
  margin: 10vh auto;
}
.login label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 15px 0;
}
.login input,
input[type='search'],
textarea,
input[type='text'],
input[type='password'] {
  width: 100%;
  border: 1px solid #d6e0d7;
  border-radius: 7px;
  padding: 10px;
  color: #29332d;
  background: #fff;
}
.login input {
  margin-top: 6px;
}
.login button {
  width: 100%;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0;
}
.sessionbar {
  background: #eaf1ea;
  padding: 13px 18px;
  border: 1px solid #dbe7dc;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.column-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 8px 18px;
  color: #718077;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.reader {
  font:
    16px/1.7 Georgia,
    serif;
  overflow-wrap: anywhere;
}
.reader p:first-child {
  margin-top: 0;
}
.target {
  background: #f5f9f5;
  border: 1px solid #dce9de;
  border-radius: 7px;
  padding: 14px;
}
.foundry-ref {
  color: #315d41;
  background: #eaf4e9;
  border: 1px solid #bfd2c1;
  border-radius: 4px;
  padding: 1px 4px;
}
.foundry-ref.warning,
.foundry-ref.invalid {
  color: #96583c;
  background: #fff1df;
}
.group {
  border: 1px solid #dfe6df;
  border-radius: 9px;
  padding: 0 14px;
  margin: 10px 0;
  background: #fafcf9;
}
.group > summary {
  padding: 14px 0;
  font-weight: 650;
  cursor: pointer;
}
.inline-editor summary,
.history summary {
  cursor: pointer;
  color: #456f56;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.inline-editor textarea {
  margin-top: 8px;
  min-height: 90px;
}
.actions {
  position: sticky;
  bottom: 8px;
  z-index: 1;
  background: #fff;
  border: 1px solid #dfe6df;
  border-radius: 10px;
  box-shadow: 0 8px 30px #293e2a18;
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions .primary {
  margin-left: auto;
}
.proposal {
  border-left: 3px solid #d9b46e;
  padding: 8px 12px;
  margin: 10px 0;
  background: #fffaf0;
}
.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}
.dif {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diff-delete,
del {
  background: #fae9e7;
  color: #a44740;
  text-decoration: line-through;
}
.diff-insert,
ins {
  background: #ddf1df;
  color: #2a6b3d;
}
.search {
  max-width: 440px;
}
.badge {
  font-size: 12px;
  color: #916721;
}
.warning {
  padding: 12px;
  background: #fff8e9;
  border: 1px solid #eedeb6;
  border-radius: 8px;
  color: #775b2c;
}
.tag {
  display: inline-block;
  background: #e8eee7;
  border-radius: 4px;
  padding: 3px 7px;
  margin: 3px;
  font-size: 11px;
}
.hidden {
  display: none !important;
}
@media (max-width: 850px) {
  .bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cols,
  .side-layout {
    grid-template-columns: 1fr;
  }
  .sessionbar {
    display: block;
  }
  .actions .primary {
    margin-left: 0;
  }
}
