/* ==========================================================================
   NetPing DS — design system (Oxygen-free)
   Fonte: design_handoff_netping_redesign/NetPing.dc.html
   ========================================================================== */

/* ---- Token: chrome (light default) ---- */
:root {
	--bg:      #eef1f5;
	--panel:   #ffffff;
	--panel2:  #f1f4f8;
	--ink:     #101418;
	--muted:   #6b7789;
	--line:    #e2e6ec;

	--brand:       #12885a;
	--brand-light: #59d69b;
	--blue:        #1f6feb;
	--blue-hover:  #3b83f5;
	--blue-tint:   #e9f0ff;

	--sidebar-bg:      #0e1420;
	--sidebar-text:    #c7d0dc;
	--sidebar-idle:    #aab4c2;
	--sidebar-hover:   #18202f;
	--sidebar-divider: #1d2636;

	--radius-card: 14px;
	--radius-lg:   20px;
	--shadow-hover: 0 12px 26px -16px rgba(16,20,24,.4);

	--nav-w: 258px;

	--sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---- Token: dark ---- */
:root[data-theme="dark"] {
	--bg:     #0b1017;
	--panel:  #161d29;
	--panel2: #1e2735;
	--ink:    #eaf0f7;
	--muted:  #94a2b4;
	--line:   #2a3547;
	--blue-tint: #14233d;
	--shadow-hover: 0 12px 26px -16px rgba(0,0,0,.6);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: #0b4fc4; text-decoration: underline; }
:root[data-theme="dark"] a:hover { color: var(--blue-hover); }
img { max-width: 100%; height: auto; }
::selection { background: #cfe0ff; }

.np-skip {
	position: absolute; left: 8px; top: -48px; z-index: 99;
	background: #101418; color: #fff; padding: 10px 16px; border-radius: 8px;
	font-size: 13px; font-weight: 600; transition: top .15s;
}
.np-skip:focus { top: 8px; color: #fff; text-decoration: none; }

/* ---- Layout ---- */
.np-layout { display: flex; min-height: 100vh; }

/* ==========================================================================
   Sidebar (sempre scura)
   ========================================================================== */
.np-sidebar {
	flex: none; width: var(--nav-w);
	background: var(--sidebar-bg); color: var(--sidebar-text);
	padding: 18px 12px; display: flex; flex-direction: column; gap: 6px;
	position: sticky; top: 0; height: 100vh; overflow-y: auto;
	transition: width .18s ease;
}
:root[data-nav="collapsed"] .np-sidebar { width: 68px; }

.np-logo { display: flex; align-items: center; justify-content: center; padding: 8px 6px 18px; }
.np-logo:hover { text-decoration: none; }
.np-logo-full { display: block; height: auto; width: 142px; }
.np-logo-icon { display: none; border-radius: 22px; width: 80px; height: 80px; }
:root[data-nav="collapsed"] .np-logo-full { display: none; }
:root[data-nav="collapsed"] .np-logo-icon { display: block; }

.np-nav { display: flex; flex-direction: column; gap: 2px; }
.np-group { margin-bottom: 2px; }

.np-group-toggle {
	width: 100%; display: flex; align-items: center; gap: 10px;
	background: transparent; border: 0; color: var(--sidebar-idle);
	padding: 9px 8px; border-radius: 8px; cursor: pointer;
	font: 600 12.5px var(--sans); text-align: left;
}
.np-group-toggle:hover { background: var(--sidebar-hover); color: #fff; }
.np-group-toggle:focus-visible { outline: 2px solid #5aa2ff; outline-offset: 1px; }

.np-swatch { width: 8px; height: 8px; flex: none; border-radius: 2px; }
.np-swatch-lg { width: 10px; height: 10px; border-radius: 3px; }
.np-group-name { flex: 1; letter-spacing: .2px; }
.np-caret {
	font-family: var(--mono); font-size: 11px; color: #66738a;
	transition: transform .15s; transform: rotate(0deg);
}
.np-group.is-open .np-caret { transform: rotate(90deg); }

.np-group-tools {
	display: none; flex-direction: column; gap: 1px;
	margin: 2px 0 6px 11px; padding-left: 6px;
	border-left: 1px solid var(--sidebar-divider);
}
.np-group.is-open .np-group-tools { display: flex; }
:root[data-nav="collapsed"] .np-group-name,
:root[data-nav="collapsed"] .np-caret,
:root[data-nav="collapsed"] .np-group-tools,
:root[data-nav="collapsed"] .np-sidebar-footer { display: none; }

.np-tool {
	display: flex; align-items: center; gap: 8px;
	background: transparent; color: var(--sidebar-idle);
	padding: 7px 10px; border-radius: 7px;
	font: 500 12.5px var(--sans); text-align: left;
}
.np-tool:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.np-tool:focus-visible { outline: 2px solid #5aa2ff; outline-offset: 1px; }
.np-tool.is-active { background: var(--blue); color: #fff; }
.np-tool-name { flex: 1; }

.np-badge-live {
	font: 600 8.5px var(--mono); color: var(--brand-light);
	background: rgba(18,136,90,.15); padding: 2px 5px; border-radius: 4px;
	letter-spacing: .3px;
}
.np-badge-inline { color: var(--brand); background: rgba(18,136,90,.12); }

.np-sidebar-footer {
	margin-top: auto; padding: 12px 8px 4px;
	font: 10.5px/1.5 var(--mono); color: #63708a;
}

/* ==========================================================================
   Colonna principale + topbar
   ========================================================================== */
.np-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.np-topbar {
	position: sticky; top: 0; z-index: 20;
	background: color-mix(in srgb, var(--panel) 82%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	padding: 11px 22px; display: flex; align-items: center; gap: 14px;
}
@supports not (backdrop-filter: blur(10px)) { .np-topbar { background: var(--panel); } }

.np-hamburger {
	flex: none; width: 38px; height: 38px;
	border: 1px solid var(--line); background: var(--panel); border-radius: 9px;
	cursor: pointer; display: grid; place-items: center; gap: 3px; padding: 0;
}
.np-hamburger:hover { border-color: #c3ccd8; }
.np-hamburger:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.np-hamburger span { width: 16px; height: 2px; background: #33415a; display: block; }
:root[data-theme="dark"] .np-hamburger span { background: #8494ab; }

.np-search {
	flex: 1; max-width: 440px; display: flex; align-items: center; gap: 9px;
	background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
	padding: 9px 13px;
}
.np-search:focus-within { border-color: var(--blue); background: var(--panel); }
.np-search-icon {
	width: 13px; height: 13px; flex: none; border: 2px solid #8a97a8;
	border-radius: 50%; position: relative; display: inline-block;
}
.np-search-icon::after {
	content: ""; position: absolute; right: -4px; bottom: -3px;
	width: 6px; height: 2px; background: #8a97a8; transform: rotate(45deg); border-radius: 2px;
}
.np-search input {
	border: 0; background: transparent; outline: none; flex: 1;
	font: 500 13px var(--sans); color: var(--ink);
}
.np-search kbd {
	font: 600 10px var(--mono); color: var(--muted);
	border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; background: var(--panel);
}

.np-spacer { flex: 1; }

.np-theme-toggle {
	flex: none; width: 38px; height: 38px;
	border: 1px solid var(--line); background: var(--panel); border-radius: 9px;
	cursor: pointer; display: grid; place-items: center; font-size: 15px; color: var(--ink);
}
.np-theme-toggle:hover { border-color: var(--blue); }
.np-theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.np-chip {
	display: flex; align-items: center; gap: 10px;
	background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
	padding: 6px 12px;
}
.np-chip-dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
	animation: np-pulse 2.2s infinite;
}
.np-chip-body { line-height: 1.2; }
.np-chip-ip { font: 600 12px var(--mono); color: var(--ink); }
.np-chip-meta { font-size: 10px; color: var(--muted); }
.np-chip-meta .np-clock { font-family: var(--mono); }

/* ==========================================================================
   Main
   ========================================================================== */
.np-main { flex: 1; padding: 26px 22px 60px; max-width: 1180px; width: 100%; margin: 0 auto; }
.np-view { animation: np-fade .35s ease; }

.np-footer {
	max-width: 1180px; width: 100%; margin: 0 auto;
	padding: 22px; color: var(--muted); font-size: 12px;
	border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap;
}
.np-footer-sep { opacity: .5; }

/* ---- tipografia comune ---- */
.np-h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.np-lead { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); max-width: 620px; line-height: 1.5; }
.np-eyebrow { font: 600 13px var(--mono); letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.np-hero {
	position: relative; overflow: hidden; border-radius: var(--radius-lg);
	padding: 34px; color: #eaf0f8;
	background: linear-gradient(135deg, #0e1420 0%, #152238 60%, #173a63 100%);
	display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
	box-shadow: 0 20px 40px -22px rgba(16,32,63,.6);
}
.np-hero-dots {
	position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
	background-size: 22px 22px;
}
.np-hero-left { flex: 1; min-width: 260px; position: relative; }
.np-hero-title { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.8px; line-height: 1.05; }
.np-hero-sub { margin: 0 0 22px; color: #b3c1d6; font-size: 15px; line-height: 1.55; max-width: 440px; }
.np-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.np-btn {
	border: 0; border-radius: 11px; padding: 13px 20px;
	font: 600 14px var(--sans); cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
}
.np-btn:hover { text-decoration: none; }
.np-btn-primary { background: var(--blue); color: #fff; }
.np-btn-primary:hover { background: var(--blue-hover); color: #fff; }
.np-btn-primary:focus-visible { outline: 2px solid #9cc3ff; outline-offset: 2px; }
.np-btn-primary span { font-family: var(--mono); }
.np-btn-ghost { background: rgba(255,255,255,.08); color: #eaf0f8; border: 1px solid rgba(255,255,255,.18); }
.np-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.np-btn-ghost:focus-visible { outline: 2px solid #9cc3ff; outline-offset: 2px; }

.np-hero-card { flex: none; width: 300px; max-width: 100%; position: relative; }
.np-hero-card-inner {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
	border-radius: 16px; padding: 20px; backdrop-filter: blur(6px);
}
.np-hero-radar-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.np-radar { position: relative; width: 14px; height: 14px; flex: none; display: inline-grid; place-items: center; }
.np-radar span { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--brand-light); }
.np-radar span:nth-child(1) { animation: np-radar 2s ease-out infinite; }
.np-radar span:nth-child(2) { animation: np-radar 2s ease-out 1s infinite; }
.np-radar span:nth-child(3) { position: static; width: 5px; height: 5px; border: 0; background: var(--brand-light); }
.np-hero-eyebrow { font: 600 11px var(--mono); letter-spacing: .6px; color: #93a3ba; white-space: nowrap; }
.np-hero-ip { font: 700 28px var(--mono); letter-spacing: -.5px; color: #fff; line-height: 1.15; margin-top: 2px; word-break: break-all; }
.np-hero-divider { height: 1px; background: rgba(255,255,255,.1); margin: 16px 0; }
.np-hero-host { font: 500 12px/1.55 var(--mono); color: #cdd9ea; word-break: break-all; margin-top: 6px; }
.np-hero-country-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.np-hero-country { font: 600 14px var(--sans); color: #fff; }

/* ---- onboarding ---- */
.np-onboarding {
	margin-top: 16px; display: flex; align-items: center; gap: 14px;
	background: #eaf1ff; border: 1px solid #cfe0ff; border-radius: 13px; padding: 14px 18px;
}
:root[data-theme="dark"] .np-onboarding { background: #14233d; border-color: #26406b; }
.np-onboarding.is-hidden { display: none; }
.np-onboarding-icon {
	flex: none; width: 30px; height: 30px; border-radius: 8px;
	background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 14px var(--mono);
}
.np-onboarding p { margin: 0; font-size: 13.5px; color: #274166; line-height: 1.5; flex: 1; }
:root[data-theme="dark"] .np-onboarding p { color: #c5d4ee; }
.np-onboarding-close {
	flex: none; border: 0; background: transparent; color: #5b7194; cursor: pointer;
	font: 600 18px var(--mono); line-height: 1; padding: 4px 6px;
}
.np-onboarding-close:hover { color: #274166; }

/* ---- catalogo ---- */
.np-catalog-eyebrow { display: block; margin: 34px 0 4px; }
.np-catalog-count { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.np-catalog { display: flex; flex-direction: column; gap: 26px; }
.np-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.np-cat-name { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.np-cat-desc { font-size: 12px; color: var(--muted); }

.np-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.np-tool-card {
	text-align: left; background: var(--panel); border: 1px solid var(--line);
	border-radius: var(--radius-card); padding: 16px 16px 15px; cursor: pointer;
	display: flex; flex-direction: column; gap: 8px; min-height: 104px; color: var(--ink);
	transition: transform .12s, box-shadow .12s, border-color .12s;
}
.np-tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #c3ccd8; text-decoration: none; color: var(--ink); }
.np-tool-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.np-tool-card.is-filtered-out { display: none; }
.np-tool-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.np-abbr { font: 600 12px var(--mono); padding: 5px 9px; border-radius: 8px; }
.np-tool-card-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.np-tool-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.np-cat-section.is-empty { display: none; }

/* ==========================================================================
   Pagina tool — breadcrumb, title-block, contenuto
   ========================================================================== */
.np-breadcrumb { font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; }
.np-breadcrumb a { color: var(--muted); }
.np-breadcrumb-current { color: var(--ink); }

.np-page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.np-tile {
	flex: none; width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; font: 700 15px var(--mono);
}

.np-card {
	background: var(--panel); border: 1px solid var(--line);
	border-radius: 16px; padding: 20px;
}
.np-content { margin-top: 20px; }
.np-content p { line-height: 1.6; }

/* ==========================================================================
   Re-skin output shortcode NetpingTools
   ========================================================================== */
[class^="netping-"][class$="-form"] label,
[class*="netping-"] label {
	display: block; font: 600 11px var(--mono); letter-spacing: .5px;
	color: var(--muted); margin-bottom: 7px; text-transform: uppercase;
}
[class*="netping-"] input[type="text"],
.np-tool-content input[type="text"],
.np-tool-content input[type="url"],
.np-tool-content input[type="search"] {
	width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 10px;
	padding: 12px 14px; font: 500 15px var(--mono); color: var(--ink);
	background: var(--panel); outline: none; margin-bottom: 12px;
}
[class*="netping-"] input[type="text"]:focus,
.np-tool-content input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }

[class*="netping-"] input[type="button"],
[class*="netping-"] input[type="submit"],
[class*="netping-"] button:not(.np-btn) {
	background: var(--np-cat, var(--blue)); color: #fff; border: 0; border-radius: 10px;
	padding: 12px 22px; font: 600 14px var(--sans); cursor: pointer;
}
[class*="netping-"] input[type="button"]:hover,
[class*="netping-"] button:not(.np-btn):hover { filter: brightness(1.06); }

[id$="-response"] { margin-top: 16px; }
[id$="-response"] table {
	width: 100%; border-collapse: collapse; font: 500 12.5px var(--mono);
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
[id$="-response"] th,
[id$="-response"] td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
[id$="-response"] th {
	font: 600 10.5px var(--mono); letter-spacing: .4px; text-transform: uppercase;
	color: var(--muted); background: var(--panel2);
}
[id$="-response"] tr:last-child td { border-bottom: 0; }
[id$="-response"] pre,
[id$="-response"] .netping-terminal {
	background: #0e1420; color: #c9d4e3; border-radius: 12px; padding: 16px 18px;
	font: 500 12.5px/1.7 var(--mono); overflow-x: auto; white-space: pre-wrap;
}

/* spinner riusato dagli shortcode */
.spinner_container { display: flex; justify-content: center; padding: 20px; }
.spinner {
	width: 26px; height: 26px; border: 3px solid var(--line);
	border-top-color: var(--blue); border-radius: 50%; animation: np-spin .7s linear infinite;
}

/* mappe leaflet/google dentro i tool */
.np-tool-content #map,
.np-tool-content .netping-map,
.np-tool-content [id*="map"] { border-radius: 12px; overflow: hidden; }

/* ==========================================================================
   Ping — UI ridisegnata (form, terminale, riepilogo)
   ========================================================================== */
.np-ping { display: grid; gap: 16px; margin-top: 20px; }
.np-ping-form {
	background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
	padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.np-ping-field { flex: 1; min-width: 220px; }
.np-ping-field label { display: block; font: 600 11px var(--mono); letter-spacing: .5px; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
.np-ping-field input {
	width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
	font: 500 15px var(--mono); color: var(--ink); background: var(--panel); outline: none;
}
.np-ping-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.np-ping-run { min-width: 140px; justify-content: center; }
.np-ping-run:disabled { opacity: .85; cursor: progress; }
.np-spinner-inline {
	width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff; border-radius: 50%; animation: np-spin .7s linear infinite;
}

.np-ping-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }

.np-terminal { background: #0e1420; border-radius: 16px; padding: 18px 20px; min-height: 230px; overflow: hidden; }
.np-terminal-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.np-dot { width: 11px; height: 11px; border-radius: 50%; }
.np-dot-r { background: #ff5f56; } .np-dot-y { background: #ffbd2e; } .np-dot-g { background: #27c93f; }
.np-terminal-title { margin-left: 8px; font: 500 11px var(--mono); color: #6b7a90; }
.np-terminal-log { font: 500 12.5px/1.7 var(--mono); color: #c9d4e3; }
.np-terminal-idle { color: #5f6f85; }
.np-line { animation: np-fade .2s ease; }
.np-line-ok { color: #a9e6c6; }
.np-line-lost { color: #ff8a8a; }

.np-ping-summary { display: flex; flex-direction: column; }
.np-ping-summary .np-eyebrow { margin-bottom: 14px; }
.np-ping-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; padding: 20px 0; }
.np-ping-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; animation: np-fade .3s; }
.np-stat { background: var(--panel2); border-radius: 11px; padding: 12px; }
.np-stat-val { font: 700 22px var(--mono); color: var(--ink); }
.np-stat-val.np-stat-ok { color: var(--brand); }
.np-stat-val.np-stat-bad { color: #d23b3b; }
.np-stat-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
.np-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.np-verdict { margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600; animation: np-fade .3s; }
.np-verdict-ok { background: #e5f5ee; color: #12885a; }
.np-verdict-warn { background: #fff8ec; color: #a5730f; }
.np-verdict-err { background: #fdecec; color: #d23b3b; }
:root[data-theme="dark"] .np-verdict-ok { background: rgba(18,136,90,.15); color: #6fd6a6; }
:root[data-theme="dark"] .np-verdict-warn { background: rgba(232,165,58,.15); color: #e8b45a; }
:root[data-theme="dark"] .np-verdict-err { background: rgba(210,59,59,.15); color: #ef8d8d; }

@media (max-width: 760px) {
	.np-ping-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Google ranking — "ultima ora" (tabella + tab)
   ========================================================================== */
/* tabs */
.np-tabs { display: flex; gap: 4px; background: var(--panel2); padding: 4px; border-radius: 11px; }
.np-tab {
	border: 0; background: transparent; color: var(--muted);
	font: 600 12.5px var(--sans); padding: 8px 15px; border-radius: 8px; cursor: pointer;
}
.np-tab:hover { color: var(--ink); text-decoration: none; }
.np-tab.is-active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(16,20,24,.12); }

/* tabella "ultima ora" (una riga per ping + sparkline frequenza) */
.np-lasthour { width: 100%; border-collapse: collapse; }
.np-lasthour th {
	text-align: left; padding: 0 10px 10px; border-bottom: 1px solid var(--line);
	font: 600 10.5px var(--mono); letter-spacing: .4px; text-transform: uppercase; color: var(--muted);
}
.np-lasthour th.np-th-freq { text-align: right; }
.np-lasthour td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.np-lasthour tr:last-child td { border-bottom: 0; }
.np-inline-form { margin: 0; display: inline; }
.np-cell-ip a { font: 500 13px var(--mono); }
.np-cell-ts { font: 500 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.np-cell-freq { text-align: right; white-space: nowrap; }
.np-spark { display: inline-block; width: 132px; height: 30px; vertical-align: middle; }
.np-freq-total { display: inline-block; min-width: 44px; margin-left: 10px; font: 700 13px var(--mono); color: var(--ink); text-align: right; }

@media (max-width: 620px) {
	.np-lasthour .np-cell-ts { white-space: normal; }
	.np-spark { width: 90px; }
}

/* classifica completa paginata */
.np-rank-meta { font: 600 11px var(--mono); letter-spacing: .3px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.np-rank-table th.np-th-rank { width: 34px; }
.np-rank-table th.np-th-times { width: 190px; }
.np-rank-n { font: 700 13px var(--mono); color: #9aa6b6; text-align: center; }
.np-cell-dc { font-size: 13px; color: var(--ink); }
.np-dc-unknown { color: var(--muted); }
.np-cell-times { white-space: nowrap; }
.np-times-bar { display: inline-block; vertical-align: middle; width: 110px; height: 6px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.np-times-bar > span { display: block; height: 100%; background: #c9a15a; border-radius: 4px; }
.np-rank-table tr:first-child .np-times-bar > span { background: #c77700; }
.np-times-n { display: inline-block; margin-left: 10px; font: 600 12.5px var(--mono); color: var(--ink); }

.np-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.np-pager-btn { font: 600 12.5px var(--sans); padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.np-pager-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.np-pager-btn.is-disabled { color: var(--muted); border-color: var(--line); opacity: .5; pointer-events: none; }
.np-pager-status { font: 600 12px var(--mono); color: var(--muted); }

.np-gr-yearchart { margin-top: 16px; }
.np-gr-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.np-gr-chart-head .np-eyebrow { text-transform: none; }
.np-gr-chart-sub { font-size: 11px; color: var(--muted); }
.np-yearsvg { display: block; width: 100%; height: 190px; overflow: visible; }
.np-gr-axis { display: flex; justify-content: space-between; font: 500 10px var(--mono); color: var(--muted); margin-top: 6px; }

@media (max-width: 620px) {
	.np-rank-table th.np-th-times { width: auto; }
	.np-times-bar { display: none; }
	.np-cell-dc { font-size: 12px; }
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes np-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,136,90,.45); } 70% { box-shadow: 0 0 0 9px rgba(18,136,90,0); } 100% { box-shadow: 0 0 0 0 rgba(18,136,90,0); } }
@keyframes np-spin { to { transform: rotate(360deg); } }
@keyframes np-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes np-radar { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.np-sidebar {
		position: fixed; z-index: 40; left: 0; top: 0; height: 100vh;
		transform: translateX(-100%); transition: transform .2s ease; width: var(--nav-w);
	}
	:root[data-nav="open"] .np-sidebar { transform: translateX(0); }
	:root[data-nav="collapsed"] .np-sidebar { width: var(--nav-w); }
	.np-hero { padding: 24px; }
	.np-hero-card { width: 100%; }
	.np-main { padding: 20px 16px 48px; }
	.np-topbar { padding: 10px 14px; gap: 10px; }
	.np-chip { display: none; }
}
@media (max-width: 560px) {
	.np-search { max-width: none; }
	.np-page-head { flex-direction: row; }
}

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