.nb-desk {
  --nd-ink: #191824;
  --nd-muted: #615d61;
  --nd-rule: #d6cebf;
  --nd-paper: #faf6ed;
  --nd-accent: #263ab7;
  grid-column: 2 / -1;
  min-width: 0;
  align-self: stretch;
  background: var(--nd-paper);
  color: var(--nd-ink);
  font-family: var(--body, system-ui), sans-serif;
  overflow-wrap: anywhere;
}
.nb-desk[hidden] { display: none !important; }
.nd-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(155px, 15vw, 215px);
  padding: 22px clamp(20px, 4vw, 64px) 25px;
  background: #131321;
  color: #fff5e5;
}
.nd-cover::before, .nd-cover::after {
  position: absolute;
  content: "";
  z-index: -1;
  pointer-events: none;
}
.nd-cover::before {
  inset: -42% -15% -38% 9%;
  background:
    radial-gradient(ellipse 86% 135% at 72% -45%, transparent 47%, #3546dd 57%, #8d44ee 61%, #ee596d 65%, #ffbd80 69%, #fff0c5 70%, #f68e59 72%, #aa419d 76%, #3c2aad 81%, #17162d 92%),
    radial-gradient(ellipse at 72% 20%, #1f174d, #0d1025 70%);
  transform-origin: 70% 35%;
  animation: nd-current 10s ease-in-out infinite alternate;
}
.nd-cover::after {
  inset: 0;
  background: linear-gradient(95deg, #12121e 2%, #12121ef5 25%, #151425bf 40%, transparent 70%);
}
@keyframes nd-current {
  from { transform: translate3d(2%,-7%,0) scale(1.04, 1) skewY(-5deg); }
  to { transform: translate3d(-10%,12%,0) scale(1.15, 1.18) skewY(5deg); }
}
.nd-intro, .nd-inner { width: 100%; max-width: 1310px; margin-inline: auto; }
.nd-date, .nd-kicker, .nd-total {
  font-family: var(--mono, ui-monospace), monospace;
  font-size: .7rem; line-height: 1.35; letter-spacing: .09em; font-weight: 600;
  text-transform: uppercase;
}
.nd-date { color: #ffeedb; }
.nd-title, .nd-next, .nd-section-title {
  font-family: var(--serif, Georgia), serif;
  font-weight: 400; letter-spacing: -.035em;
}
.nd-title { margin: 8px 0 0; color: inherit; font-size: clamp(4.6rem, 7.4vw, 7.2rem); line-height: .88; }
.nd-inner { box-sizing: border-box; padding: 0 clamp(20px, 4vw, 64px) 36px; }
.nd-handoff {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 16px 42px;
  padding: clamp(24px, 3.2vw, 44px) 0;
  border-bottom: 1px solid var(--nd-rule);
}
.nd-kicker { margin: 0 0 7px; color: var(--nd-accent); }
.nd-next { max-width: 35ch; margin: 0; font-size: clamp(1.9rem, 3.3vw, 3.3rem); line-height: 1.01; }
.nd-credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 10px; font-size: .8rem; color: var(--nd-muted); }
.nd-detail { max-width: 52ch; margin: 8px 0 15px; color: var(--nd-muted); font-size: .91rem; line-height: 1.55; }
.nd-detail code { background: #eae4da; border-radius: .16rem; padding: 0 .25em; color: var(--nd-ink); }
.nd-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.nb-desk button { cursor: pointer; font-family: inherit; }
.nb-desk button:disabled, .nd-check:disabled { cursor: wait; opacity: .62; }
.nd-primary {
  border: 1px solid transparent; background: #2435ce; color: #fff;
  border-radius: 3px; padding: .79rem 1.05rem; min-height: 44px; font-size: .91rem; line-height: 1.2; font-weight: 650;
}
.nd-primary::after { content: " ↗"; margin-left: .4em; }
.nd-primary:hover { background: #19269f; }
.nd-link, .nd-source, .nd-card-link {
  border: 0; padding: 3px 0; background: transparent; color: var(--nd-accent);
  font-size: .82rem; line-height: 1.35; font-weight: 550; text-align: start;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.nd-source { display: block; color: var(--nd-muted); font-size: .78rem; }
.nd-source:hover, .nd-card-link:hover, .nd-link:hover { color: #10137b; }
.nd-columns, .nd-empty {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(22px,3vw,48px); padding-block: clamp(24px,2.8vw,40px);
}
.nd-section, .nd-sample-card, .nd-import-card { min-width: 0; }
.nd-section + .nd-section, .nd-import-card { border-left: 1px solid var(--nd-rule); padding-left: clamp(22px,3vw,48px); }
.nd-section-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nd-section-title { margin: 0; font-size: clamp(1.8rem,2.3vw,2.4rem); line-height: 1.1; }
.nd-total { border: 1px solid var(--nd-rule); border-radius: 100px; padding: 1px 6px; color: var(--nd-muted); letter-spacing: .01em; }
.nd-items { margin: 0 0 8px; padding: 0; list-style: none; }
.nd-task, .nd-recent { margin: 0; padding: 0; border-bottom: 1px solid var(--nd-rule); }
.nd-task { display: flex; align-items: flex-start; gap: .65rem; padding: 11px 0; }
.nd-check { flex: 0 0 17px; width: 17px; height: 17px; margin: .14rem 0 0; accent-color: var(--nd-accent); cursor: pointer; }
.nd-task-text { min-width: 0; }
.nd-task-label, .nd-file { font-size: .91rem; font-weight: 550; line-height: 1.4; }
.nd-file { width: 100%; min-height: 44px; display: block; border: 0; background: transparent; color: var(--nd-ink); text-align: left; padding: 10px 0; }
.nd-file:hover { color: var(--nd-accent); }
.nd-file-meta { display: block; margin-top: 3px; color: var(--nd-muted); font-size: .76rem; line-height: 1.4; font-weight: 400; }
.nd-status { margin: 5px 0 16px; color: var(--nd-muted); font-size: .87rem; }
.nd-status:empty { margin: 0; }
.nb-desk :focus-visible { outline: 3px solid #6045d5; outline-offset: 3px; }
@media (max-width: 720px) {
  .nd-cover { min-height: 150px; }
  .nd-handoff { grid-template-columns: 1fr; }
  .nd-columns, .nd-empty { grid-template-columns: 1fr; }
  .nd-section + .nd-section, .nd-import-card { border-left: 0; border-top: 1px solid var(--nd-rule); padding: 23px 0 0; }
  .nd-columns { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-cover::before { animation: none; }
}
.nd-sample-tools {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px;
  border-top: 1px solid var(--nd-rule); padding-top: 12px;
}
.nd-sample-label { color: var(--nd-muted); font-size: .77rem; }
