/* Net Hub Dev Plans: site chrome, cards, login and the comment layer.
   Brand: navy #08191F and white carry the layout, red #E73746 is the one
   accent per view, grey #F2F2F2 for surfaces. Poppins stands in for the
   licensed Filson Soft Pro / Sommet (same call as brand-kit/index.html).
   The plan documents themselves are styled by document.css (nethub-doc-design). */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400i.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }

:root {
  --navy: #08191f;
  --navy-2: #13303a;
  --red: #e73746;
  --red-deep: #b3343d;
  --red-tint: #fde9eb;
  --grey: #f2f2f2;
  --desk: #dfe4e6;
  --rule: #d8dcde;
  --line: #e3e6e7;
  --ink: #08191f;
  --ink-2: #3d4c52;
  --muted: #5a6a70;
  --white: #ffffff;
  --green: #16805f;
  --green-tint: #e3f5ed;
  --amber: #9a5b00;
  --amber-tint: #fdf2dc;
  --bar-h: 100px;
  --rail-w: 360px;
  --radius: 10px;
  --focus: 0 0 0 3px rgba(231, 55, 70, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--grey);
}

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* ---------- bar ---------- */

.nh-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
}

.nh-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.nh-home { display: flex; flex-shrink: 0; }
.nh-home img { display: block; height: 20px; width: auto; }

.nh-crumb { color: #c7d0d4; text-decoration: none; font-size: 14px; flex-shrink: 0; }
.nh-crumb:hover { color: var(--white); }
.nh-sep { color: #5f7279; }

.nh-title {
  font-weight: 600;
  font-size: 15px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-user { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nh-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* who's online: overlapping initials, you first */
.nh-people { display: flex; align-items: center; gap: 6px; }
.nh-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid var(--navy);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease;
}
a.nh-av:hover { transform: translateY(-2px); z-index: 1; }
.nh-av.you { box-shadow: 0 0 0 2px var(--white); }

.nh-link {
  font: inherit;
  font-size: 13px;
  color: #c7d0d4;
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
}
.nh-link:hover { color: var(--white); text-decoration: underline; }

.nh-bar-tools {
  min-height: 44px;
  border-top: 1px solid var(--navy-2);
  max-width: none;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  gap: 10px;
}

.nh-tabs { display: flex; align-self: stretch; gap: 4px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.nh-tabs::-webkit-scrollbar { display: none; }

.nh-tab {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.nh-tab:hover { color: var(--ink); }
.nh-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }

.nh-ver { font-size: 12px; color: var(--muted); white-space: nowrap; }

.nh-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.nh-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nh-btn-red { background: var(--red); color: var(--white); }
.nh-btn-red:hover { background: var(--red-deep); }
.nh-btn-ghost { background: var(--white); color: var(--ink); border-color: var(--rule); }
.nh-btn-ghost:hover { border-color: var(--ink-2); }
.nh-btn-ghost[aria-expanded="true"] { border-color: var(--navy); background: var(--grey); }
.nh-btn[disabled] { opacity: 0.55; cursor: default; }

.nh-count {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  background: var(--grey);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nh-count.has { background: var(--red); color: var(--white); }

/* ---------- status badges ---------- */

.nh-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.s-draft { background: var(--grey); color: var(--ink-2); }
.s-review { background: var(--red-tint); color: var(--red-deep); }
.s-agreed { background: var(--green-tint); color: var(--green); }
.s-building { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 1px #5f7279; }
.s-complete { background: var(--green); color: var(--white); }
.s-feedback { background: var(--amber-tint); color: var(--amber); }

/* status: the badge in the bar is a menu button */
.nh-status-wrap { position: relative; flex-shrink: 0; }
.nh-status-btn {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 5px;
}
.nh-status-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nh-status-btn:hover { filter: brightness(0.96); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.nh-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(8, 25, 31, 0.28);
  padding: 6px;
}
.nh-menu[hidden] { display: none; }
.nh-menu-head { font-size: 12px; font-weight: 600; padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 2px; }
.nh-menu-head small { font-weight: 400; color: var(--muted); }
.nh-menu [role="menuitemradio"] {
  font: inherit;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.nh-menu [role="menuitemradio"]:hover, .nh-menu [role="menuitemradio"]:focus-visible { background: var(--grey); box-shadow: none; }
.nh-menu [role="menuitemradio"][aria-checked="true"] { background: var(--grey); box-shadow: inset 3px 0 0 var(--navy); }
.nh-menu [role="menuitemradio"] small { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- home: plan cards ---------- */

.nh-page { max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px; }

.nh-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.nh-page-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.nh-page-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

.nh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.nh-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nh-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(8, 25, 31, 0.12); }

.nh-card-banner { aspect-ratio: 2 / 1; background: var(--navy); overflow: hidden; position: relative; }
.nh-card-banner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.nh-card-banner .nh-status { position: absolute; top: 12px; left: 12px; box-shadow: 0 1px 4px rgba(8, 25, 31, 0.2); }

.nh-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nh-card h2 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; }
.nh-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-card-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.nh-card-foot .open { color: var(--red-deep); font-weight: 600; }

.nh-empty {
  background: var(--white);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.nh-empty h2 { color: var(--ink); font-size: 18px; margin: 0 0 6px; }
.nh-empty p { margin: 0 auto; max-width: 46ch; font-size: 14px; line-height: 1.6; }
.nh-empty code { background: var(--grey); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ---------- login ---------- */

.nh-login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.nh-login-side {
  background: var(--navy);
  color: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nh-login-side img { width: 180px; height: auto; }
.nh-login-side h1 { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0 0 12px; max-width: 14ch; }
.nh-login-side p { color: #c7d0d4; margin: 0; max-width: 40ch; line-height: 1.6; }
.nh-login-side small { color: #8fa1a8; font-size: 12px; }

.nh-login-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--white); }
.nh-login form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.nh-login h2 { font-size: 22px; margin: 0; }
.nh-login .hint { color: var(--muted); font-size: 14px; margin: -8px 0 4px; }
.nh-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.nh-field input {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
}
.nh-field input:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
.nh-login .nh-btn { min-height: 44px; justify-content: center; font-size: 15px; }
.nh-error { background: var(--red-tint); color: var(--red-deep); padding: 10px 12px; border-radius: 8px; font-size: 14px; }

/* ---------- plan document layout ---------- */

body.nh-doc { padding: 0; background: var(--desk); }

.nh-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 24px 80px;
}

.nh-main { position: relative; flex: 0 1 210mm; min-width: 0; }
.nh-main .sheet { margin: 0; max-width: 210mm; }

/* Tables in plans are wide; on narrow screens they scroll inside the sheet. */
.tablewrap { overflow-x: auto; margin: 0 0 5mm 0; }
.tablewrap > table { margin-bottom: 0; }

.nh-rail {
  flex: 0 0 var(--rail-w);
  position: sticky;
  top: calc(var(--bar-h) + 16px);
  max-height: calc(100vh - var(--bar-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 3px 22px rgba(8, 25, 31, 0.12);
  font-size: 14px;
}

/* ---------- comment affordances on the document ---------- */

[data-b] { scroll-margin-top: calc(var(--bar-h) + 40px); transition: background-color 0.3s; }
.nh-doc [data-b].nh-hover { background-color: rgba(231, 55, 70, 0.05); }
.nh-doc [data-b].nh-has { background-color: rgba(231, 55, 70, 0.07); box-shadow: inset 3px 0 0 var(--red); }
.nh-doc tr[data-b].nh-has { box-shadow: none; }
.nh-doc tr[data-b].nh-has > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.nh-doc [data-b].nh-target { background-color: rgba(231, 55, 70, 0.16); }
.nh-doc .cover [data-b].nh-hover,
.nh-doc .cover [data-b].nh-has { background-color: rgba(255, 255, 255, 0.08); }

.nh-add, .nh-badge {
  position: absolute;
  z-index: 5;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-add {
  z-index: 6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(8, 25, 31, 0.25);
}
.nh-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nh-add[hidden] { display: none; }
.nh-badge {
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px 11px 11px 3px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
}
.nh-badge.resolved { background: #8fa1a8; }

/* ---------- comment rail ---------- */

.nh-rail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.nh-rail-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nh-rail-title h2 { font-size: 15px; margin: 0; padding: 0; border: 0; font-weight: 600; }
.nh-x { background: none; border: 0; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--ink-2); display: none; }
.nh-x:hover { background: var(--grey); }
.nh-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.nh-seg { display: flex; background: var(--grey); border-radius: 8px; padding: 3px; gap: 2px; }
.nh-seg button {
  flex: 1;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
}
.nh-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(8, 25, 31, 0.12); }

.nh-rail-body { padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 10px; }

.nh-hint { color: var(--muted); font-size: 13px; line-height: 1.55; padding: 18px 8px; text-align: center; }
.nh-group { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 8px 4px 0; }

.nh-thread {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nh-thread.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.nh-thread.is-resolved { background: #fafbfb; }

.nh-quote {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  background: var(--grey);
  border: 0;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
.nh-quote[disabled] { cursor: default; border-left-color: #8fa1a8; }
.nh-quote b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 1px; }
.nh-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nh-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.nh-tags .nh-tag { margin: 0; }
.nh-tag.gotcha { background: var(--amber); color: var(--white); }
.nh-quote.whole { cursor: default; border-left-color: var(--navy); }

.nh-whole {
  margin-top: 10px;
  width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px dashed var(--rule);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.nh-whole:hover { border-color: var(--ink-2); color: var(--ink); }
.nh-whole svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.nh-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin: 0 0 8px; }
.nh-tag.outdated { background: var(--amber-tint); color: var(--amber); }
.nh-tag.resolved { background: var(--green-tint); color: var(--green); }

.nh-c { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; }
.nh-c + .nh-c { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nh-c .nh-avatar { width: 28px; height: 28px; font-size: 10.5px; letter-spacing: 0.02em; }
.nh-c .nh-avatar.claude { background: var(--navy); }
.nh-c-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nh-c-head b { font-weight: 600; font-size: 13px; }
.nh-c-head time { font-size: 12px; color: var(--muted); }
.nh-c-head .nh-act.del { margin-left: auto; padding: 2px 6px; }
.nh-c-body { grid-column: 2; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.nh-c-body.deleted { color: var(--muted); font-style: italic; }

.nh-actions { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.nh-act {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
}
.nh-act:hover { background: var(--grey); color: var(--ink); }
.nh-act.del { color: var(--red-deep); }

.nh-compose { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nh-compose textarea {
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  min-height: 76px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  width: 100%;
}
.nh-compose textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
.nh-compose-row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.nh-compose-row small { color: var(--muted); font-size: 11px; margin-right: auto; }
.nh-new { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.nh-new .nh-compose { margin-top: 0; }
.nh-err { color: var(--red-deep); font-size: 12px; }

.nh-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(8, 25, 31, 0.3);
}

/* ---------- design tab ---------- */

body.nh-design { background: var(--white); display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.nh-dlayout { flex: 1; min-height: 0; display: flex; }
.nh-frame { display: block; flex: 1; min-width: 0; height: 100%; border: 0; }
#nh-pick[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

@media (min-width: 1240px) {
  .nh-rail-dock {
    position: static;
    flex: 0 0 var(--rail-w);
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- narrower screens: the rail becomes a drawer ---------- */

@media (max-width: 1239px) {
  .nh-rail {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    max-height: none;
    border-radius: 0;
    z-index: 50;
    transform: translateX(105%);
    transition: transform 0.22s ease;
    box-shadow: -8px 0 28px rgba(8, 25, 31, 0.18);
  }
  .nh-rail.open { transform: none; }
  .nh-x { display: inline-flex; align-items: center; justify-content: center; }
}

@media (min-width: 1240px) {
  #nh-toggle { display: none; }
}

@media (max-width: 760px) {
  :root { --bar-h: 96px; }
  .nh-bar-row { padding: 0 16px; gap: 10px; min-height: 52px; }
  .nh-crumb, .nh-sep, .nh-ver { display: none; }
  .nh-home img { height: 17px; }
  .nh-people { gap: 0; }
  .nh-av { width: 28px; height: 28px; font-size: 10.5px; margin-left: -4px; }
  .nh-av.you { margin-left: 0; margin-right: 4px; }
  .nh-bar-tools { padding: 0 8px 0 4px; min-height: 44px; gap: 6px; }
  .nh-btn { padding: 0 10px; }
  .nh-layout { padding: 0 0 64px; }
  .nh-main { flex-basis: 100%; }
  .nh-main .sheet { box-shadow: none; }
  .nh-doc .content { padding: 0 18px 40px 18px; overflow-wrap: anywhere; }
  .nh-tab { padding: 0 10px; }
  .nh-doc .cover { padding: 28px 18px 20px; margin-bottom: 24px; }
  .nh-doc .cover img.logo { margin-bottom: 28px; }
  .nh-doc .cover h1, .nh-doc .cover h1.t-long, .nh-doc .cover h1.t-xlong { font-size: 24px; }
  .nh-doc .cover .meta { flex-wrap: wrap; gap: 14px 28px; }
  .nh-doc h2 { font-size: 18px; }
  .nh-rail { width: 100vw; }
  .nh-page { padding: 24px 16px 56px; }
  .nh-page-head h1 { font-size: 24px; }
  .nh-grid { grid-template-columns: 1fr; }
  .nh-login { grid-template-columns: 1fr; }
  .nh-login-side { padding: 28px 20px; gap: 28px; }
  .nh-login-side h1 { font-size: 26px; }
  .nh-login-side small { display: none; }
}

@media (max-width: 520px) {
  .nh-bar-row:first-child .nh-title { display: none; }
  .lbl-wide { display: none; }
  #nh-toggle { padding: 0 8px; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
