 

#panel-news { align-items: stretch; justify-content: flex-start; }

 
#panel-news {
  width: min(calc(100vw - 36px), 1750px);
  margin-left: calc((min(100vw, 1520px) - 36px - min(calc(100vw - 36px), 1750px)) / 2);
  margin-right: calc((min(100vw, 1520px) - 36px - min(calc(100vw - 36px), 1750px)) / 2);
}

.np-wrap { width: 100%; margin: 0 auto; padding: 4px 4px 88px; }
 
.np-swrow, .np-article-wrap, .np-logcard { max-width: 943px; margin-left: auto; margin-right: auto; }

 
.np-card { margin-bottom: 4px; }

 
.np-loadrow { display: flex; gap: 8px; margin-bottom: 8px; }
.np-loadrow input {
  flex: 1; min-width: 0; appearance: none; font-family: inherit; font-size: var(--fs-base);
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 12px 14px;
}
.np-loadrow input:focus { outline: none; border-color: var(--accent); }
.np-loadrow button {
  appearance: none; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--on-fill); font-weight: 600; font-size: var(--fs-base);
  border-radius: var(--radius-card); padding: 12px 18px;
}
.np-loadrow button:hover { filter: brightness(1.06); }
.np-loadrow button:disabled { opacity: 0.55; cursor: default; }
.np-status { color: var(--muted); font-size: var(--fs-md); min-height: 18px; margin: 2px 2px 12px; line-height: 1.45; }
.np-status.err { color: var(--accent-2); }

 
.np-recent { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--border); }
.np-recent-title {
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); margin-bottom: 6px;
}
 
.np-recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.np-recent-meta { font-size: var(--fs-xs); color: var(--muted); }

 
 
.np-swrow { margin-top: 4px; margin-bottom: 12px; }
 
.wp-sw-btn.np-sw-log-btn { background: var(--accent); color: var(--on-fill); border-color: var(--accent); }
.wp-sw-btn.np-sw-log-btn:hover { filter: brightness(1.06); }

 
.np-article-wrap {
  position: relative; margin-top: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card); overflow: hidden;
}
.np-article {
  padding: 22px 26px 30px; line-height: 1.62; font-size: var(--fs-article); color: var(--text);    
  transition: filter 160ms ease;
}
.np-article h1.np-title { font-size: 1.72rem; line-height: 1.22; margin: 0 0 14px; font-weight: 800; }
.np-article h2 { font-size: 1.28rem; margin: 24px 0 8px; font-weight: 700; }
.np-article h3 { font-size: 1.12rem; margin: 20px 0 6px; font-weight: 700; }
.np-article p { margin: 0 0 14px; }
.np-article blockquote {
  margin: 16px 0; padding: 6px 16px; border-left: 4px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.np-article ul { margin: 0 0 14px; padding-left: 22px; }
.np-article li { margin: 0 0 6px; }
 
.np-article img.np-img {
  display: block; max-width: 320px; width: 100%; height: auto;
  border-radius: var(--radius-card); background: var(--bg-2);
  float: right; clear: both; margin: 4px 0 14px 18px;
}
.np-article img.np-img-lead {    
  float: none; max-width: 100%; width: 100%; margin: 4px auto 16px; clear: both;
}
.np-article img.np-img-broken { display: none; }    

 
.np-article-wrap.np-gated .np-article {
  filter: blur(7px); pointer-events: none; user-select: none;
}
 
.np-gate-actions {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; align-items: center;
  max-width: min(92vw, 560px);
}
.np-gate-actions[hidden] { display: none; }
.np-start-btn, .np-detsum-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-fill);
  font-size: var(--fs-lg); font-weight: 700; line-height: 1;
  padding: 13px 30px; border-radius: var(--radius-pill); white-space: nowrap;
  box-shadow: var(--shadow-pop);
}
 
.np-detsum-btn { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.np-detsum-btn:disabled { opacity: 0.65; cursor: default; }
.np-start-btn:hover, .np-detsum-btn:hover:not(:disabled) { filter: brightness(1.08); }
.np-start-btn:focus-visible, .np-detsum-btn:focus-visible { outline: 2px solid var(--on-fill); outline-offset: 2px; }
.np-start-btn[hidden], .np-detsum-btn[hidden] { display: none; }
@media (max-width: 560px) {
  .np-gate-actions { flex-direction: column; }
  .np-start-btn, .np-detsum-btn { padding: 12px 22px; font-size: var(--fs-base); white-space: normal; }
}

 
.np-detsum-home { padding: 10px 26px 0; display: flex; justify-content: flex-end; }
.np-detsum-home[hidden] { display: none; }
@media (max-width: 560px) {
  .np-detsum-home { padding: 10px 16px 0; justify-content: center; }
}

 
.np-detsum {
  max-width: 943px; margin: 8px auto 0;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card); padding: 18px 22px 20px;
}
.np-detsum[hidden] { display: none; }
 
.np-detsum:has(~ .np-article-wrap.np-paused) {
  filter: blur(7px); pointer-events: none; user-select: none;
}
.np-detsum-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.np-detsum-label { font-size: var(--fs-lg); font-weight: 700; }
.np-detsum-note { color: var(--muted); font-size: var(--fs-sm); }
.np-detsum-text { line-height: 1.6; font-size: var(--fs-lg); color: var(--text); }
.np-detsum-text p { margin: 0 0 12px; }
.np-detsum-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.np-detsum-go {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-fill); font-weight: 700; font-size: var(--fs-base);
  border-radius: var(--radius-pill); padding: 12px 24px; white-space: nowrap;
}
.np-detsum-go:hover { filter: brightness(1.06); }
.np-detsum-err { color: var(--accent-2); font-size: var(--fs-md); }
 
.np-detsum-toggle {
  appearance: none; cursor: pointer; background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: var(--fs-md); padding: 6px 14px;
}

 
.np-end-log-btn {
  display: block; appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-fill); font-weight: 700; font-size: var(--fs-base);
  border-radius: var(--radius-pill); padding: 12px 24px; margin: 20px auto 6px;
}
.np-end-log-btn:hover { filter: brightness(1.06); }
.np-end-log-btn[hidden] { display: none; }

 
 
.np-logcard h3 { margin: 0; font-size: var(--fs-lg); }
 
.np-logcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
 
.np-logcard-head .it-back { white-space: nowrap; }
 
.np-logrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.np-logmeta { color: var(--muted); font-size: var(--fs-md); margin: 10px 2px 4px; line-height: 1.5; }
.np-logmeta b { color: var(--text); }
 
.np-logactions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.np-logmsg { font-size: var(--fs-md); min-height: 18px; }

.np-logcard .field { margin-top: 10px; }

.np-hide { display: none !important; }

 

@media (max-width: 600px) {
  .np-article { padding: 16px 16px 24px; font-size: var(--fs-lg); }
  .np-article h1.np-title { font-size: 1.42rem; }
   
  .np-article img.np-img { float: none; max-width: 100%; width: 100%; margin: 4px 0 16px; }
}

 
.npf-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 10px; }
.npf-title { margin: 0; flex: 1 1 auto; }
.npf-toggle {
  appearance: none; border: none; background: none; cursor: pointer;
  font-size: var(--fs-lg); line-height: 1; color: var(--muted); padding: 4px 2px;
}
.npf-collapsed .npf-body { display: none; }
.npf-body { margin-bottom: 16px; }
.npf-loading { font-size: var(--fs-md); padding: 4px 2px 14px; }
.npf-site { margin-bottom: 14px; }
 
.npf-lang-chips {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  margin: 0 2px 12px; overflow-x: auto; padding-bottom: 2px;
}
.npf-site-head {
  display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 700;
  color: var(--text); margin: 0 2px 6px;
}
.npf-site-flag { font-size: var(--fs-lg); }
 
.npf-site-names { flex: 1 1 auto; min-width: 0; }
.npf-site-name { color: inherit; font: inherit; text-decoration: none; }
.npf-site-name:hover { text-decoration: underline; }
.npf-site-sep { color: var(--muted); }
 
.npf-site-refresh-btn {
  appearance: none; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--card); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
.npf-site-refresh-btn:hover { filter: brightness(0.97); }
.npf-site-refresh-btn:disabled { opacity: 0.6; cursor: default; }
 
@media (max-width: 560px) {
  .npf-site-head { flex-wrap: wrap; }
  .npf-site-names { flex: 1 0 100%; }
}
.npf-site-error { font-size: var(--fs-sm); color: var(--muted); padding: 2px 2px 4px; }
 
.npf-site-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 2px 2px 8px;
}
@media (max-width: 1200px) { .npf-site-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .npf-site-row { grid-template-columns: repeat(2, 1fr); } }
.npf-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card); overflow: hidden; display: flex; flex-direction: column;
}
.npf-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; flex: 0 0 auto; background: var(--bg); }
.npf-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.npf-thumb.npf-thumb-broken { display: none; }
.npf-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xl); color: var(--muted); background: var(--bg);
}
.npf-card-body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
 
.npf-card-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; min-height: 49.5px; font-size: var(--fs-sm); font-weight: 600;
  line-height: 1.32; color: var(--text); text-decoration: none;
}
.npf-card-title:hover { text-decoration: underline; }
 
.npf-card-meta { min-height: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.npf-card-age { font-size: var(--fs-xs); color: var(--muted); }
.npf-card-site {
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.03em;
}
 
.npf-card-scores { font-size: var(--fs-xs); color: var(--muted); }
.top-figures { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text); margin-bottom: 3px; }
.top-figures b { font-variant-numeric: tabular-nums; color: var(--text); }
.uscore-figure b { color: var(--accent); }
 
.ncs-uscore-clickable { cursor: pointer; }
.ncs-uscore-clickable:hover, .ncs-uscore-clickable:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
.ncs-uscore-clickable:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.meters { display: flex; flex-direction: column; gap: 3px; }
.meter-row { display: flex; align-items: center; gap: 6px; }
.meter-label { font-size: var(--fs-xs); color: var(--muted); width: 52px; flex: 0 0 auto; }
.meter-track { flex: 1 1 auto; height: 6px; background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; min-width: 0; }
.meter-fill { height: 100%; background: var(--accent); border-radius: var(--radius-sm); }
 
.meter-value { font-size: var(--fs-xs); color: var(--text); font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; flex: 0 0 auto; }
.npf-read-btn {
  appearance: none; border: 1px solid var(--accent); border-radius: var(--radius-pill);
  background: var(--card); color: var(--accent); font-weight: 700; font-size: var(--fs-sm);
  padding: 5px 0; cursor: pointer; margin-top: auto; width: 100%;
}
.npf-read-btn:hover { background: var(--accent); color: var(--on-fill); }

@media (max-width: 600px) {
  .npf-card-title { font-size: var(--fs-sm); min-height: 47.5px; }
}

 
.npf-card-actions { display: flex; gap: 6px; margin-top: auto; }
.npf-card-actions .npf-read-btn {
  border-radius: var(--radius-pill); font-size: var(--fs-sm); padding: 5px 4px;
  width: auto; margin-top: 0; flex: 1 1 0; white-space: nowrap;
}
.npf-dismiss-btn {
  appearance: none; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--card); color: var(--muted); font-weight: 700; font-size: var(--fs-sm);
  padding: 5px 4px; cursor: pointer; flex: 1 1 0; white-space: nowrap;
}
.npf-dismiss-btn:hover { background: var(--bg); color: var(--text); }
.npf-dismiss-btn:disabled { opacity: 0.6; cursor: default; }
 
.npf-card-error { font-size: var(--fs-xs); color: var(--warn); text-align: center; min-height: 12px; }
.npf-card-error:empty { min-height: 0; }

 
.npf-convert-row { display: flex; margin-top: 6px; }
.npf-convert-btn {
  appearance: none; border: 1px solid var(--accent); border-radius: var(--radius-pill);
  background: var(--card); color: var(--accent); font-weight: 700; font-size: var(--fs-sm);
  padding: 5px 4px; cursor: pointer; flex: 1 1 0; min-width: 0; white-space: nowrap;
}
.npf-convert-btn:hover { background: var(--accent); color: var(--on-fill); }
.npf-convert-btn:disabled { opacity: 0.65; cursor: default; background: var(--card); color: var(--muted); border-color: var(--border); }
 
.npf-convert-status { font-size: var(--fs-xs); color: var(--muted); text-align: center; min-height: 12px; }
.npf-convert-status:empty { min-height: 0; }
.npf-convert-link { color: var(--accent); font-weight: 700; }

 
.nsm-summary-row { display: flex; margin-top: 6px; }
.nsm-summary-btn {
  appearance: none; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--card); font-size: var(--fs-base); line-height: 1; cursor: pointer;
  padding: 5px 10px; position: relative; flex: 0 0 auto;
}
.nsm-summary-btn:hover { background: var(--bg); }
.nsm-summary-btn:disabled { cursor: default; }
 
.nsm-summary-btn.nsm-loading .nsm-flag { visibility: hidden; }
.nsm-summary-btn.nsm-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px;
  margin: -6px 0 0 -6px; border-radius: var(--radius-pill); border: 2px solid var(--border);
  border-top-color: var(--accent); animation: bookscan-spin 0.7s linear infinite;
}
 
.nsm-summary-text { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; line-height: 1.35; }
.nsm-summary-text[hidden] { display: none; }
