 

#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: 820px; margin-left: auto; margin-right: auto; }

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

 
.np-loadrow { display: flex; gap: 8px; margin-bottom: 8px; }
.np-loadrow input {
  flex: 1; min-width: 0; appearance: none; font-family: inherit; font-size: 14px;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; 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: #fff; font-weight: 600; font-size: 14px;
  border-radius: 10px; 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: 13px; min-height: 18px; margin: 2px 2px 12px; line-height: 1.45; }
.np-status.err { color: var(--accent-2); }
.np-intro { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 2px 12px; }

 
.np-recent { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--border); }
.np-recent-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); margin-bottom: 6px;
}
.np-recent-list { display: flex; flex-direction: column; gap: 4px; }
.np-recent-item {
  appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  text-align: left; font-family: inherit; font-size: 13px; color: var(--text);
  padding: 6px 8px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}
.np-recent-item:hover { background: rgba(0,0,0,0.045); border-color: var(--border); }

 
 
.np-swrow { margin-top: 4px; margin-bottom: 12px; }
 
.wp-sw-btn.np-sw-log-btn { background: var(--accent); color: #fff; 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: 14px;
  background: var(--card); overflow: hidden;
}
.np-article {
  padding: 22px 26px 30px; line-height: 1.62; font-size: 17px; 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: 10px; background: rgba(0,0,0,0.03);
  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-article-wrap.np-gated { max-height: 68vh; overflow: hidden; }
.np-start-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.np-start-btn:hover { filter: brightness(1.08); }
.np-start-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.np-start-btn[hidden] { display: none; }

 
.np-end-log-btn {
  display: block; appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px;
  border-radius: 999px; 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 {
  margin-top: 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); padding: 16px 18px;
}
.np-logcard h3 { margin: 0; font-size: 1.05rem; }
 
.np-logcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.np-log-back-btn {
  appearance: none; border: 1px solid var(--border); cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--text); font-weight: 600; font-size: 12.5px;
  border-radius: 999px; padding: 6px 12px;
}
.np-log-back-btn:hover { filter: brightness(0.97); }
.np-logrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.np-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.np-field select, .np-field input {
  appearance: none; font-family: inherit; font-size: 14px; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
.np-field select:focus, .np-field input:focus { outline: none; border-color: var(--accent); }
.np-logmeta { color: var(--muted); font-size: 13px; 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-logactions button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 10px; padding: 10px 18px;
}
.np-logactions button:hover { filter: brightness(1.06); }
.np-logactions button:disabled { opacity: 0.55; cursor: default; }
.np-logmsg { font-size: 13px; min-height: 18px; }

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

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

 

@media (max-width: 600px) {
  .np-article { padding: 16px 16px 24px; font-size: 16px; }
  .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: 15px; line-height: 1; color: var(--muted); padding: 4px 2px;
}
.npf-collapsed .npf-body { display: none; }
.npf-body { margin-bottom: 16px; }
.npf-loading { font-size: 13px; padding: 4px 2px 14px; }
.npf-site { margin-bottom: 14px; scroll-margin-top: 10px; }
 
.npf-site-jumped {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px;
  background: rgba(79, 126, 248, 0.06);
  transition: background 1.6s ease, outline-color 1.6s ease;
}
.npf-site-head {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--text); margin: 0 2px 6px;
}
.npf-site-flag { font-size: 15px; }
.npf-site-name { flex: 1 1 auto; }
 
.npf-site-refresh-btn {
  appearance: none; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 600; font-size: 11.5px;
  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; }
.npf-site-error { font-size: 12.5px; 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: 12px;
  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: #eef1f6; }
.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: 26px; color: var(--muted); background: #eef1f6;
}
.npf-card-body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
 
.npf-card-title { font-size: 12.5px; font-weight: 600; line-height: 1.32; color: var(--text); }
.npf-card-meta { min-height: 14px; }
.npf-card-age { font-size: 11px; color: var(--muted); }
.npf-read-btn {
  appearance: none; border: 1px solid var(--accent); border-radius: 999px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: 11.5px;
  padding: 5px 0; cursor: pointer; margin-top: auto; width: 100%;
}
.npf-read-btn:hover { background: var(--accent); color: #fff; }

@media (max-width: 600px) {
  .npf-card-title { font-size: 12px; }
}

 
.npf-card-actions { display: flex; gap: 6px; margin-top: auto; }
.npf-card-actions .npf-read-btn {
  border-radius: 999px; font-size: 11.5px; 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: 999px;
  background: #fff; color: var(--muted); font-weight: 700; font-size: 11.5px;
  padding: 5px 4px; cursor: pointer; flex: 1 1 0; white-space: nowrap;
}
.npf-dismiss-btn:hover { background: #eef1f6; color: var(--text); }
.npf-dismiss-btn:disabled { opacity: 0.6; cursor: default; }
 
.npf-card-error { font-size: 10.5px; 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: 999px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: 11.5px;
  padding: 5px 4px; cursor: pointer; flex: 1 1 0; min-width: 0; white-space: nowrap;
}
.npf-convert-btn:hover { background: var(--accent); color: #fff; }
.npf-convert-btn:disabled { opacity: 0.65; cursor: default; background: #fff; color: var(--muted); border-color: var(--border); }
 
.npf-convert-status { font-size: 10.5px; 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; }
 
.npf-convert-note { font-size: 11px; margin-top: 6px; }
