:root {
  --nf-deep-moss: #2F463A;
  --nf-warm-ivory: #F5F1E8;
  --nf-soft-white: #FBF9F5;
  --nf-charcoal: #1F231F;
  --nf-sage-mist: #DDE6DD;
  --nf-sand-stone: #E8DED0;
  --nf-muted-olive: #80937E;
  --nf-dusty-clay: #C88F6A;
  --radius: 16px;
  --radius-btn: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--nf-warm-ivory); color: var(--nf-charcoal); font-family: "IBM Plex Sans", system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: var(--nf-deep-moss); text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
button, input, textarea { font: inherit; }
.banner {
  background: var(--nf-sand-stone);
  padding: 10px 18px;
  font-size: 13.5px;
  text-align: center;
}
.banner strong { font-weight: 500; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 42px); }
.side {
  background: var(--nf-deep-moss);
  color: var(--nf-warm-ivory);
  padding: 22px 16px;
}
.side a.brand { color: var(--nf-warm-ivory); font-family: Newsreader, Georgia, serif; font-size: 22px; display: block; margin-bottom: 18px; }
.side nav a, .side nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #C5D1C4;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.side nav button.active, .side nav a.active { background: #3A5648; color: var(--nf-warm-ivory); }
.main { padding: 28px clamp(18px, 3vw, 40px) 64px; }
.card {
  background: var(--nf-soft-white);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 14px;
}
.grid-3, .grid-2 { display: grid; gap: 12px; margin-top: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--nf-soft-white); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: Newsreader, Georgia, serif; font-size: 28px; font-weight: 400; }
.eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--nf-muted-olive); }
h1, h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(28px, 4vw, 40px); }
.lede { color: #5A615A; margin-top: 8px; max-width: 62ch; line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
}
.btn-dark { background: var(--nf-deep-moss); color: var(--nf-warm-ivory); }
.btn-ghost { background: transparent; border-color: #D8D0C4; color: var(--nf-charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.examples button { background: var(--nf-sage-mist); border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
textarea, input[type=text], input[type=password], input[type=email], select {
  width: 100%; border: 1px solid #E4DDD2; border-radius: var(--radius-btn);
  background: var(--nf-soft-white); padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 90px; resize: vertical; }
.timeline li { padding: 10px 0; border-bottom: 1px solid #EDE7DC; font-size: 14.5px; }
.timeline time { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--nf-muted-olive); }
.mail { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EDE7DC; }
.tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-deep-moss); background: var(--nf-sage-mist); border-radius: 999px; padding: 4px 8px; height: fit-content; }
.diff { background: var(--nf-warm-ivory); border-radius: 12px; padding: 12px 14px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.value { margin-top: 16px; background: var(--nf-sand-stone); border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; }
.topbar { display: none; }
.error { color: #8A5A33; margin-top: 10px; }
.ok { color: var(--nf-deep-moss); margin-top: 10px; }
details.tech { margin-top: 12px; color: #5A615A; font-size: 14px; }
.login { max-width: 420px; margin: 48px auto; }
.pw-field { position: relative; margin-top: 4px; }
.pw-field input { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nf-muted-olive);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--nf-deep-moss); }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.check input { margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #EDE7DC; }
.muted { color: #5A615A; }
label.block { display: block; margin-top: 12px; font-size: 14px; }
.helper { display: block; color: #5A615A; font-size: 13.5px; font-style: normal; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; background: var(--nf-sage-mist); color: var(--nf-deep-moss);
  border-radius: 999px; padding: 4px 8px; font-size: 12px; line-height: 1.3;
}
.table-wrap { overflow-x: auto; }
.ctrl-card {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: flex-start;
  background: var(--nf-soft-white); border: 1px solid #E4DDD2; border-radius: 16px;
  padding: 14px 16px; margin-top: 10px; cursor: pointer;
}
.ctrl-card input { margin-top: 4px; }
.ctrl-card strong { display: block; }
.ctrl-card em { display: block; font-style: normal; color: #5A615A; margin-top: 4px; }
.card-opt { margin-top: 8px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: block; position: sticky; top: 0; z-index: 20; }
  .topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
