:root {
  --forest: #173b32;
  --deep: #102d26;
  --sage: #dce7da;
  --paper: #f7f7f2;
  --ink: #20342d;
  --muted: #7b847b;
  --line: #e2e6dc;
  --gold: #aa8b4d;
  --white: #fff;
  --danger: #a83f34;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px var(--sans);
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--forest);
}
button {
  border: 0;
}
button.primary,
.primary {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  background: var(--forest);
  color: white;
  border-radius: 7px;
  padding: 13px 19px;
  font-weight: 600;
  text-decoration: none;
}
.primary:hover {
  background: var(--deep);
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 15px;
  color: var(--ink);
}
.quiet {
  background: none;
  color: var(--muted);
  padding: 8px;
}
.danger {
  color: var(--danger);
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--forest);
  color: #eef1e7;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 30px 21px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-bottom: 51px;
}
.brand small {
  display: block;
  font-size: 9px;
  color: #9fb4a7;
  letter-spacing: 2px;
  margin-top: 5px;
}
.brand-mark {
  font: 36px var(--serif);
  letter-spacing: -9px;
  width: 42px;
}
.brand-mark span {
  font-size: 29px;
}
.nav-label {
  font-size: 9px;
  color: #9cb1a6;
  letter-spacing: 1.8px;
  padding: 0 12px;
  margin-bottom: 15px;
}
nav {
  display: grid;
  gap: 6px;
}
.sidebar button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 13px;
  background: none;
  color: #c9d5cc;
  text-align: left;
  border-radius: 6px;
  font-size: 13px;
}
.sidebar button > span {
  font-size: 19px;
  width: 20px;
  text-align: center;
  font-weight: normal;
}
.sidebar button.active {
  background: #315347;
  color: #fff;
}
.sidebar button:hover {
  background: #284b3f;
}
.sidebar b {
  margin-left: auto;
  border-radius: 4px;
  background: #d9e6d8;
  color: var(--forest);
  font-size: 10px;
  padding: 1px 6px;
}
.sidebar-bottom {
  margin-top: auto;
}
.language {
  margin: 30px 9px 19px;
  padding-bottom: 22px;
  border-bottom: 1px solid #446354;
  font-size: 12px;
}
.language i,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9bc394;
  border-radius: 50%;
  margin-right: 8px;
}
.language small {
  display: block;
  margin: 4px 0 0 15px;
  color: #9fb4a7;
  font-size: 10px;
}
main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  background: #fcfcf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  color: var(--muted);
  font-size: 11px;
}
.topbar strong {
  color: #47584d;
  font-weight: 500;
}
.slash {
  padding: 0 13px;
  color: #b7bdb2;
}
.topbar-right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #e4e9df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--forest);
}
.mobile-brand {
  display: none;
}
.view {
  padding: 38px 42px 45px;
  max-width: 1500px;
  margin: auto;
}
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 600;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
h1 {
  font: 38px/1.2 var(--serif);
  font-weight: normal;
  letter-spacing: -1px;
  margin: 10px 0 11px;
}
p {
  margin: 8px 0;
  color: #758070;
}
.heading p {
  font-size: 12px;
}
.hero {
  border: 1px solid #dbe3d7;
  border-radius: 10px;
  background: #edf1e7;
  padding: 29px 31px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  position: relative;
  overflow: hidden;
  margin: 27px 0;
}
.hero h2 {
  font: 26px var(--serif);
  margin: 10px 0;
}
.hero p {
  max-width: 500px;
  font-size: 12px;
  line-height: 1.8;
}
.hero .primary {
  margin-top: 16px;
  font-size: 12px;
}
.hero-art {
  width: 190px;
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.globe {
  width: 132px;
  height: 132px;
  border: 1px solid #aebea3;
  border-radius: 50%;
  position: relative;
  transform: rotate(-16deg);
}
.globe:before,
.globe:after {
  content: "";
  position: absolute;
  border: 1px solid #aebea3;
  border-radius: 50%;
}
.globe:before {
  inset: 0 28px;
}
.globe:after {
  inset: 32px -1px;
}
.orbit {
  position: absolute;
  inset: 14px -30px;
  border: 1px solid #b8c6ac;
  border-radius: 50%;
  transform: rotate(30deg);
}
.marker {
  position: absolute;
  top: 29px;
  right: 30px;
  border: 5px solid #d6e1cc;
  border-radius: 50%;
  background: var(--forest);
  width: 19px;
  height: 19px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-label span {
  color: #9baa95;
  font-size: 17px;
}
.stat strong {
  display: block;
  font: 33px var(--serif);
  margin: 12px 0 6px;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.stat small.green {
  color: #5a8053;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 31px 0 14px;
}
.section-head h2 {
  font: 21px var(--serif);
  margin: 0;
}
.section-head button {
  font-size: 11px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
}
.card h3 {
  font: 20px var(--serif);
  margin: 0 0 10px;
}
.card p {
  font-size: 12px;
}
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 13px 19px;
  background: #fafbf7;
  color: #939b8d;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
td {
  padding: 17px 19px;
  border-top: 1px solid #edf0e7;
  vertical-align: middle;
}
td:first-child {
  font-weight: 500;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.pill {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  background: #eef0e9;
  color: #697662;
  white-space: nowrap;
}
.pill.green {
  background: #e4eedf;
  color: #537346;
}
.pill.gold {
  background: #f8efdb;
  color: #9a7c3a;
}
.pill.red {
  background: #fae9e5;
  color: #a05446;
}
.empty {
  padding: 34px 22px;
  text-align: center;
}
.empty-symbol {
  width: 45px;
  height: 45px;
  background: #f0f3eb;
  color: #809474;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 0 auto 13px;
}
.empty h3 {
  font: 20px var(--serif);
  margin: 0 0 6px;
}
.empty p {
  font-size: 12px;
  max-width: 400px;
  margin: 0 auto 18px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
}
.steps .step {
  background: #eff3e9;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  flex: none;
  text-align: center;
  line-height: 25px;
  font: italic 15px/25px var(--serif);
  color: #6d8561;
}
.steps strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.steps p {
  font-size: 10px;
  margin: 4px 0;
}
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.category {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 16px 14px;
  font-size: 11px;
}
.category span {
  font: 20px var(--serif);
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #99a08f;
  font-size: 10px;
  padding: 18px 42px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64745f;
  margin-bottom: 15px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce2d4;
  border-radius: 5px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  margin-top: 7px;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 100px;
}
.full {
  grid-column: 1/-1;
}
.check-label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 400;
}
.check-label input {
  width: 15px;
  margin: 0;
}
.notice {
  background: #f5f2e6;
  color: #89783c;
  border: 1px solid #e8e0c5;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 11px;
  margin: 15px 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.toolbar input {
  max-width: 350px;
  margin: 0;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  font-size: 11px;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.research-grid .card {
  display: flex;
  flex-direction: column;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.card-actions button {
  font-size: 11px;
}
.metrics {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 15px 0;
  font-size: 10px;
  color: var(--muted);
}
.metrics b {
  display: block;
  color: var(--ink);
  font: 20px var(--serif);
  margin-bottom: 4px;
}
.sources a {
  display: block;
  font-size: 11px;
  margin: 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.article-editor textarea {
  font-family: Consolas, monospace;
  font-size: 12px;
  min-height: 430px;
}
.article-preview {
  width: 100%;
  min-height: 600px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
}
.asset {
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.asset img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  background: #eef0e8;
}
.asset h4 {
  margin: 8px 0;
  font-size: 12px;
}
.asset small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.asset label {
  margin-top: 10px;
}
.asset button {
  font-size: 11px;
  width: 100%;
  justify-content: center;
  padding: 10px;
}
.error-list {
  color: var(--danger);
  font-size: 12px;
  padding-left: 18px;
}
.link-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 17px 0;
}
.link-diff div {
  border-radius: 5px;
  padding: 14px;
  background: #f7f8f4;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 200px;
  overflow: auto;
}
.link-diff div:last-child {
  background: #eaf2e5;
}
.link-diff small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #89937c;
  margin-bottom: 10px;
}
.connection {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.connection-icon {
  background: #eff3e9;
  border-radius: 7px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.connection strong {
  font-size: 12px;
  font-weight: 500;
}
.connection p {
  font-size: 11px;
  margin: 2px 0;
}
.connection .pill {
  margin-left: auto;
}
.loading {
  padding: 60px;
  color: var(--muted);
  text-align: center;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 15px 22px;
  max-width: 450px;
  z-index: 20;
  background: var(--forest);
  color: white;
  border-radius: 7px;
  box-shadow: 0 5px 25px #0002;
  font-size: 12px;
}
.toast.error {
  background: #923e34;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 600px;
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #102d2677;
}
dialog h2 {
  font: 29px var(--serif);
  margin: 0 0 15px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--forest);
  place-items: center;
}
.login-screen:not([hidden]) {
  display: grid;
}
.login-card {
  width: min(430px, 92vw);
  background: var(--paper);
  padding: 40px;
  border-radius: 10px;
}
.login-card h1 {
  font-size: 35px;
}
.login-card p {
  margin-bottom: 25px;
  font-size: 12px;
}
.login-card button {
  width: 100%;
  margin-top: 5px;
}
.login-card label {
  margin-top: 18px;
}
#login-error {
  color: var(--danger);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .view {
    padding-top: 50px;
  }
  .hero {
    padding: 38px;
  }
  .hero h2 {
    font-size: 31px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 25px 15px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .view {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero-art {
    width: 145px;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 15px;
    grid-column: 1/-1;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .brand {
    margin-bottom: 15px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .sidebar button {
    white-space: nowrap;
    width: auto;
    font-size: 11px;
    padding: 9px;
  }
  .sidebar button > span {
    display: none;
  }
  .sidebar b {
    margin-left: 2px;
  }
  main {
    grid-column: 1;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .view {
    padding: 24px 20px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading .primary {
    font-size: 11px;
    padding: 11px;
    gap: 12px;
  }
  h1 {
    font-size: 31px;
  }
  .hero {
    padding: 23px;
  }
  .hero-art {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col,
  .research-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .article-aside {
    grid-template-columns: 1fr;
  }
  .link-diff {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 18px 20px;
  }
  footer span {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar input {
    min-width: 0;
  }
  .topbar {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    min-width: 0;
    max-width: 100vw;
  }
  nav {
    max-width: 100%;
    min-width: 0;
  }
  .heading > div {
    min-width: 0;
  }
  .heading > .primary {
    flex-shrink: 0;
  }
  .category {
    min-width: 0;
  }
}
