.dn-wrap {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
}

.dn-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.dn-head .mkt-eyebrow { color: var(--accent); }
.dn-head h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: -.025em;
}
.dn-head p {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dn-new { display: inline-block; margin-top: 20px; }
.dn-list { margin: 0; padding: 0; list-style: none; }
.dn-item { border-bottom: 1px solid var(--border); }
.dn-link {
  display: block;
  padding: 28px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.dn-link:hover { background: var(--bg-inset); transform: translateY(-1px); }
.dn-date {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.dn-title {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.4;
}
.dn-link:hover .dn-title { color: var(--primary); }
.dn-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.65;
}
.dn-badge,
.dn-draft {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  vertical-align: 2px;
}
.dn-draft { background: var(--bg-inset); color: var(--text-muted); }
.dn-empty { padding: 56px 0; color: var(--text-muted); text-align: center; }

.dn-back {
  display: inline-block;
  margin: 48px 0 20px;
  color: var(--text-muted);
  font-size: .9rem;
  text-decoration: none;
}
.dn-back:hover { color: var(--primary); }
.dn-art > h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.dn-meta {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}
.dn-meta .dn-date { color: var(--accent); font-weight: 700; }
.dn-admin {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: -18px 0 28px;
  font-size: .88rem;
}
.dn-admin a { color: var(--primary); }
.dn-admin button {
  padding: 0;
  border: 0;
  background: none;
  color: #a33;
  cursor: pointer;
  font: inherit;
}
.dn-foot {
  margin: 64px 0 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.dn-foot .dn-back { margin: 0; }

.note-body {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.85;
}
.note-body p { margin: 0 0 1.15em; }
.note-body h2 {
  margin: 2.2em 0 .75em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--gold-soft);
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.4;
}
.note-body h2.note-display {
  margin-top: 1.6em;
  border: 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -.02em;
}
.note-body h3 {
  margin: 1.7em 0 .55em;
  color: var(--ink);
  font-size: 1.15rem;
}
.note-body ul,
.note-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.note-body li { margin: .38em 0; }
.note-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.note-body code {
  padding: .12em .42em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: .9em;
}
.note-body pre {
  overflow-x: auto;
  margin: 1.4em 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  line-height: 1.6;
}
.note-body pre code { padding: 0; border: 0; background: none; }
.note-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--border); }
.note-body strong { color: var(--ink); }

.note-release-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--gold) 24%, transparent) 0, transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 13%, var(--bg-surface)), var(--bg-surface));
  box-shadow: 0 20px 60px color-mix(in srgb, var(--ink) 8%, transparent);
}
.note-release-kicker {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.note-release-version {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  letter-spacing: -.04em;
  line-height: 1.15;
}
.note-release-previous { color: var(--text-muted); font-size: .48em; }
.note-release-arrow { color: var(--gold); font-size: .65em; }
.note-release-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
}
.note-release-card p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.note-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 1.5em 0 2em;
}
.note-metric {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-surface);
}
.note-metric > span { color: var(--text-muted); font-size: .8rem; font-weight: 700; }
.note-metric > strong {
  margin: 7px 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -.025em;
}
.note-metric > small { color: var(--text-secondary); line-height: 1.45; }

.note-chart {
  margin: 1.6em 0 2.2em;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-surface);
}
.note-chart figcaption {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}
.note-chart ul { margin: 0; padding: 0; list-style: none; }
.note-chart-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(120px, 3fr) minmax(72px, auto);
  gap: 12px;
  align-items: center;
  margin: 12px 0 !important;
}
.note-chart-label { color: var(--text-secondary); font-size: .88rem; }
.note-chart-track {
  display: block;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: var(--bg-inset);
}
.note-chart-bar {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.note-chart-row strong { color: var(--ink); font-size: .86rem; text-align: right; }
.note-chart.has-highlight .note-chart-bar {
  background: color-mix(in srgb, var(--text-muted) 48%, var(--bg-inset));
}
.note-chart.has-highlight .note-chart-row.is-highlight .note-chart-bar {
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.note-chart-row.is-highlight .note-chart-label,
.note-chart-row.is-highlight strong {
  color: var(--accent);
  font-weight: 800;
}

.note-flow {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  align-items: center;
  margin: 1.6em 0 2em;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-inset);
}
.note-flow-step {
  flex: 0 0 auto;
  max-width: 190px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.note-flow-arrow { flex: 0 0 auto; color: var(--gold); font-size: 1.2rem; }

.note-table-wrap {
  overflow-x: auto;
  margin: 1.5em 0 2em;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.note-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: .9rem;
  line-height: 1.55;
}
.note-table-wrap th,
.note-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.note-table-wrap th { background: var(--bg-inset); color: var(--ink); font-weight: 750; }
.note-table-wrap tbody tr:last-child td { border-bottom: 0; }

.note-callout {
  margin: 1.5em 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--bg-inset);
}
.note-callout > strong { display: block; margin-bottom: 4px; color: var(--ink); }
.note-callout p { margin: 0; color: var(--text-secondary); }
.note-callout-result { border-left-color: var(--accent); }
.note-callout-limitation { border-left-color: #b7791f; }
.note-callout-security { border-left-color: #805ad5; }

.note-image { margin: 1.8em 0; }
.note-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.dn-editor-wrap {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}
.dn-ehead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 48px 0 20px;
}
.dn-ehead h1 { margin: 0; color: var(--ink); font-size: 1.7rem; }
.dn-ehead p { margin: 4px 0 0; color: var(--text-muted); font-size: .9rem; }
.dn-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-surface);
}
.dn-compose { min-width: 0; border-right: 1px solid var(--border); }
.dn-form input[type=text] {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
}
.dn-form input[type=text]:focus,
.dn-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.dn-toolbar {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.dn-toolbar button {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
}
.dn-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.dn-form textarea {
  display: block;
  width: 100%;
  min-height: 620px;
  box-sizing: border-box;
  padding: 18px;
  resize: vertical;
  border: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dn-preview-panel { min-width: 0; background: var(--bg-subtle); }
.dn-panel-label {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dn-preview {
  overflow-y: auto;
  height: 620px;
  padding: 26px;
}
.dn-preview-empty { color: var(--text-muted); text-align: center; margin-top: 80px; }
.dn-hint {
  margin: 10px 2px 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.dn-publish-box {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-inset);
}
.dn-pub,
.dn-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: .92rem;
  cursor: pointer;
}
.dn-pub { color: var(--ink); font-weight: 750; }
.dn-publish-help { margin: 0; color: var(--text-muted); font-size: .8rem; line-height: 1.55; }
.dn-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 18px 0 64px;
}
.dn-cancel { color: var(--text-muted); }

@media (max-width: 840px) {
  .dn-editor-grid { grid-template-columns: 1fr; }
  .dn-compose { border-right: 0; border-bottom: 1px solid var(--border); }
  .dn-form textarea { min-height: 460px; }
  .dn-preview { height: auto; min-height: 460px; }
}

@media (max-width: 560px) {
  .dn-wrap { width: min(100% - 28px, 820px); }
  .dn-head { padding-top: 48px; }
  .note-chart-row {
    grid-template-columns: 92px minmax(80px, 1fr);
    gap: 8px;
  }
  .note-chart-row strong { grid-column: 2; }
  .dn-ehead { align-items: flex-start; flex-direction: column; }
  .dn-editor-wrap { width: min(100% - 20px, 1280px); }
  .dn-preview { padding: 18px; }
}
