
.npp-shell{--npp-bg:#f5f7fb;--npp-surface:#ffffff;--npp-surface-2:#f8fafc;--npp-border:#dbe3ef;--npp-text:#0f172a;--npp-muted:#64748b;--npp-accent:#2563eb;--npp-accent-2:#4f46e5;--npp-success:#16a34a;--npp-danger:#dc2626;--npp-shadow:0 8px 24px rgba(15,23,42,.06);background:var(--npp-bg);color:var(--npp-text);padding:12px;border-radius:18px}
.npp-shell.npp-theme-dark{--npp-bg:#0b1220;--npp-surface:#111827;--npp-surface-2:#0f172a;--npp-border:#243041;--npp-text:#e5eefb;--npp-muted:#94a3b8;--npp-accent:#60a5fa;--npp-accent-2:#818cf8;--npp-success:#22c55e;--npp-danger:#f87171;--npp-shadow:0 8px 24px rgba(2,6,23,.4)}
.npp-theme-toggle{margin-left:auto;border:1px solid var(--npp-border);background:var(--npp-surface);color:var(--npp-text);padding:10px 14px;border-radius:999px;font-weight:700;cursor:pointer}
.npp-shell .npp-num,.npp-shell .npp-value,.npp-shell .npp-value-sm,.npp-shell td,.npp-shell th{white-space:nowrap}
.npp-value-sm{font-size:20px;font-weight:800}

.npp-shell{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.npp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 20px}.npp-tab{padding:10px 14px;border-radius:999px;background:color-mix(in srgb, var(--npp-accent) 10%, var(--npp-surface));color:var(--npp-accent-2);text-decoration:none;font-weight:700}.npp-tab.active{background:linear-gradient(135deg,var(--npp-accent),var(--npp-accent-2));color:#fff}.npp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.npp-grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.npp-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.npp-card,.npp-panel,.npp-chart-card{background:var(--npp-surface);border:1px solid var(--npp-border);border-radius:18px;padding:18px;box-shadow:var(--npp-shadow)}.npp-card h3,.npp-chart-card h3{margin:0 0 8px;font-size:12px;color:var(--npp-muted);text-transform:uppercase;letter-spacing:.08em}.npp-value{font-size:30px;font-weight:800;line-height:1.1}.npp-pos{color:var(--npp-success)}.npp-neg{color:var(--npp-danger)}.npp-muted{color:var(--npp-muted)}.npp-table-wrap{overflow:auto}.npp-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:700;font-size:12px;text-transform:capitalize}.npp-chart iframe{width:100%;height:540px;border:0;border-radius:16px;background:#f8fafc}.npp-analysis{padding:12px 0;border-top:1px solid #e5e7eb}.npp-analysis:first-child{border-top:0}.npp-pre,pre{white-space:pre-wrap;background:var(--npp-surface-2);border:1px solid var(--npp-border);border-radius:16px;padding:16px;overflow:auto;line-height:1.55}.npp-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.npp-field{display:flex;flex-direction:column;gap:6px}.npp-field label{font-weight:700;color:#334155}.npp-field-full{grid-column:1/-1}.npp-field input,.npp-field select,.npp-field textarea{border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;min-height:48px;background:var(--npp-surface)}.npp-flash{padding:13px 16px;border-radius:14px;margin:14px 0;font-weight:700}.npp-flash.success{background:color-mix(in srgb, var(--npp-success) 12%, var(--npp-surface));color:var(--npp-success);border:1px solid color-mix(in srgb, var(--npp-success) 25%, var(--npp-border))}.npp-flash.error{background:color-mix(in srgb, var(--npp-danger) 10%, var(--npp-surface));color:var(--npp-danger);border:1px solid color-mix(in srgb, var(--npp-danger) 25%, var(--npp-border))}.npp-panel h2,.npp-chart-card h2{margin-top:0}.widefat td,.widefat th{vertical-align:middle}.npp-chart iframe{height:var(--npp-chart-height,540px)}.npp-chart-wrap{display:flex;flex-direction:column;gap:12px}.npp-chart-toolbar,.npp-inline-form,.npp-actions{display:flex;gap:12px;justify-content:flex-start;align-items:center;flex-wrap:wrap}.npp-note-box{margin-top:16px;padding:14px 16px;border:1px solid #dbeafe;background:#f8fbff;border-radius:16px}.npp-note-box ul{margin:8px 0 0 18px}.npp-note-box li{margin:4px 0}.npp-kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:14px 0}.npp-kpi{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:12px}.npp-kpi span{display:block;font-size:12px;color:var(--npp-muted);text-transform:uppercase;letter-spacing:.08em}.npp-kpi strong{display:block;font-size:20px;margin-top:4px}.npp-mini-grid{margin-bottom:14px}.npp-analysis-block{padding:14px 0;border-top:1px solid #e2e8f0}.npp-analysis-block:first-child{border-top:0}.npp-analysis-meta{font-size:12px;font-weight:700;color:var(--npp-muted);margin-bottom:8px}.npp-sector-box{border:1px solid #e2e8f0;border-radius:16px;padding:16px;background:#fafcff}.npp-sector-box h3{margin:0 0 10px}.npp-subtitle{font-size:12px;font-weight:700;color:var(--npp-muted);text-transform:uppercase;letter-spacing:.08em;margin:10px 0 8px}.npp-mini-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.npp-mini-list li{display:grid;grid-template-columns:1.2fr .9fr .8fr .9fr;gap:8px;align-items:center;padding:8px 10px;border-radius:12px;background:#fff;border:1px solid #eef2f7}.npp-chart-card{min-height:260px}.npp-shell code{white-space:normal;word-break:break-word}.npp-table-wrap table{min-width:860px}.npp-panel .button{white-space:nowrap}.npp-chart-card canvas{width:100%!important;height:260px!important}.npp-chart-card h3{margin-bottom:14px}.npp-shell .npp-table-wrap table td strong{font-weight:800}.npp-shell .npp-grid .npp-card .npp-muted{margin-top:6px;display:block}.npp-shell input[type=file]{padding:10px;background:var(--npp-surface)}.npp-shell select{min-height:48px}.npp-shell textarea{min-height:110px}.npp-shell .npp-inline-form label{font-weight:700;color:#334155}.npp-shell .npp-inline-form input,.npp-shell .npp-inline-form select{border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;min-height:42px}.npp-shell .button.button-primary{background:#2563eb;border-color:#2563eb}.npp-shell .button.button-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.npp-shell .button{border-radius:12px}.npp-shell .button.button-small{padding:0 10px;line-height:28px;min-height:30px}.npp-shell .npp-table-wrap th{background:#f8fafc;position:sticky;top:0;z-index:1}.npp-shell .npp-grid>.npp-panel,.npp-shell .npp-grid>.npp-card{min-width:0}
@media (max-width:1100px){.npp-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.npp-grid-2,.npp-grid-4{grid-template-columns:1fr}.npp-chart iframe{height:420px}.npp-chart-card canvas{height:220px!important}.npp-mini-list li{grid-template-columns:1fr 1fr}.npp-inline-form{align-items:stretch}.npp-inline-form label{width:100%}}
.npp-heatmap-grid{display:flex;flex-wrap:wrap;gap:10px}.npp-heat-tile{display:flex;flex-direction:column;gap:6px;min-width:110px;padding:14px 12px;border-radius:16px;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}.npp-heat-tile strong{font-size:16px;line-height:1}.npp-heat-tile span{font-weight:700}.npp-heat-tile small{opacity:.9}.npp-heat-up{background:linear-gradient(135deg,#16a34a,#22c55e)}.npp-heat-down{background:linear-gradient(135deg,#dc2626,#ef4444)}.npp-badge-accent{background:#ede9fe;color:#6d28d9}

.npp-shell{max-width:1400px;margin:0 auto;padding:4px 8px 32px}
.npp-btn,.npp-shell .button{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;text-shadow:none!important;box-shadow:none!important;padding:10px 16px!important;height:auto!important;line-height:1.2!important}
.npp-btn:hover,.npp-shell .button:hover{background:#1d4ed8!important;border-color:#1d4ed8!important}
.npp-shell .button:not(.button-primary){background:#e8f0ff!important;color:#1d4ed8!important;border-color:#bfd3ff!important}
.npp-shell .button:not(.button-primary):hover{background:#dbeafe!important}
.npp-neg{color:#c2410c}
.npp-inline-form .button,.npp-actions .button{margin:0}
.npp-pager{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 14px}
.npp-page-chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:color-mix(in srgb, var(--npp-accent) 10%, var(--npp-surface));color:var(--npp-accent-2);text-decoration:none;font-weight:700;border:1px solid #c7d2fe}
.npp-page-chip.active{background:#2563eb;color:#fff;border-color:#2563eb}
.npp-pager-spacer{flex:1 1 auto}
.npp-table-wrap{overflow:auto}
.npp-table-wrap table{min-width:980px}
.npp-card,.npp-panel,.npp-chart-card{overflow:hidden}
.npp-shell select option{color:#0f172a;background:var(--npp-surface)}
.npp-chart-card canvas{height:300px!important}
.npp-grid .npp-panel h2{margin-bottom:16px}
.npp-grid .npp-card .npp-value{word-break:break-word}
.npp-note-box{font-size:15px}
.npp-shell .widefat th,.npp-shell .widefat td{padding:12px 14px}
.npp-shell .widefat th{font-size:13px}
.npp-muted a{color:#2563eb}
@media (max-width:700px){.npp-shell{padding:0 4px 24px}.npp-tabs{gap:8px}.npp-tab{padding:9px 12px;font-size:14px}.npp-value{font-size:24px}}

body .npp-shell, body .wrap{background:#f8fafc}.npp-shell .button,.npp-shell button,.npp-shell input[type=submit]{font-weight:700!important}.npp-shell .button,.npp-shell button{color:#fff!important}.npp-shell .button:not(.button-primary){color:#1d4ed8!important}.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.npp-panel,.npp-card{min-width:0}.npp-table-wrap{border-radius:16px}.npp-note-box{line-height:1.6}.npp-inline-form input[list]{min-width:180px}.npp-chart-card{margin-bottom:14px}.npp-shell .widefat thead th{background:#f1f5f9}.npp-shell .widefat tbody tr:nth-child(even){background:#fbfdff}.npp-heat-down{background:linear-gradient(135deg,#f59e0b,#fb923c)}.npp-tab{box-shadow:none}.npp-shell h2{font-size:18px}.npp-shell h3{font-size:15px}.npp-muted{font-size:14px}.npp-shell .npp-table-wrap table{min-width:760px}.npp-shell .button{padding:10px 14px!important}.npp-shell input, .npp-shell select, .npp-shell textarea{font-size:15px}.

/* v13 compact frontend/backend parity */
.npp-shell{max-width:1520px;padding:6px 10px 24px;font-size:13px}.npp-grid{gap:12px;margin:12px 0}.npp-card,.npp-panel,.npp-chart-card{padding:14px;border-radius:16px}.npp-card h3,.npp-chart-card h3{font-size:11px;margin-bottom:6px}.npp-shell h2{font-size:16px;margin-bottom:12px}.npp-value{font-size:20px}.npp-muted{font-size:12px}.npp-kpi strong{font-size:17px}.npp-shell .widefat th,.npp-shell .widefat td{padding:8px 10px;font-size:12px;line-height:1.25}.npp-shell .widefat td strong{font-size:12px}.npp-table-wrap table{min-width:640px}.npp-panel .npp-table-wrap{max-height:360px;overflow:auto}.npp-table-wrap table{table-layout:auto;width:100%}.npp-inline-form{gap:8px}.npp-inline-form label{font-size:12px}.npp-shell input,.npp-shell select,.npp-shell textarea{font-size:13px;min-height:38px;padding:8px 10px}.npp-shell .button{padding:8px 12px!important;font-size:12px}.npp-tabs{margin:10px 0 14px}.npp-tab{padding:8px 12px;font-size:12px}.npp-chart-card canvas{height:220px!important}.npp-heatmap-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:84px;gap:8px}.npp-heat-tile{min-width:0;height:100%;padding:10px;border-radius:14px;justify-content:space-between}.npp-heat-tile strong{font-size:14px}.npp-heat-tile span{font-size:12px}.npp-heat-tile small{font-size:11px}.npp-shell .widefat thead th{position:sticky;top:0;z-index:2}.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media (max-width:1200px){.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:860px){.npp-grid-2,.npp-grid-4.npp-kpi-grid{grid-template-columns:1fr}.npp-value{font-size:18px}.npp-shell{padding:4px 6px 20px}}

/* v14 frontend/backend compact parity */
.npp-shell, .wrap .npp-shell{max-width:100%;padding:4px 8px 20px}
.npp-shell .npp-grid{gap:10px;margin:10px 0}
.npp-shell .npp-card,.npp-shell .npp-panel,.npp-shell .npp-chart-card{padding:12px;border-radius:14px}
.npp-shell .widefat{border-collapse:collapse}
.npp-shell .widefat th,.npp-shell .widefat td{padding:6px 8px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap}
.npp-shell .widefat td{overflow:hidden;text-overflow:ellipsis;max-width:170px}
.npp-shell .widefat th{font-size:10px!important;text-transform:uppercase;letter-spacing:.03em}
.npp-shell .npp-table-wrap{overflow:auto;max-height:320px}
.npp-shell .npp-table-wrap table{min-width:100%!important;width:max-content;table-layout:auto}
.npp-shell .npp-table-wrap table.npp-table-compact{width:100%;min-width:520px!important}
.npp-shell .npp-inline-form input,.npp-shell .npp-inline-form select{min-height:34px;padding:6px 8px;font-size:12px}
.npp-shell .button,.npp-shell .npp-btn{padding:7px 10px!important;font-size:11px!important;border-radius:10px!important}
.npp-shell h2{font-size:15px;margin-bottom:10px}
.npp-shell .npp-value{font-size:18px}
.npp-shell .npp-card h3{font-size:10px}
.npp-shell .npp-muted{font-size:11px}
.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.npp-heatmap-grid{grid-auto-rows:60px;gap:6px}
.npp-heat-tile{padding:8px;border-radius:12px}
.npp-heat-tile strong{font-size:12px}
.npp-heat-tile span{font-size:11px}
.npp-heat-tile small{font-size:10px}
.npp-chart-card canvas{height:180px!important}
.npp-shell .npp-panel .npp-table-wrap:first-child{margin-top:6px}
.npp-shell .npp-tabs{margin-bottom:10px}
.npp-shell .npp-tab{padding:7px 10px;font-size:11px}
@media (max-width:1400px){.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1100px){.npp-grid-4.npp-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){.npp-grid-2,.npp-grid-4,.npp-grid-4.npp-kpi-grid{grid-template-columns:1fr}.npp-shell .widefat td,.npp-shell .widefat th{white-space:normal}}


/* v15 smarter compact layout */
.npp-shell .npp-grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.npp-shell .npp-grid-4.npp-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.npp-shell .npp-table-wrap{overflow:auto;max-height:280px}
.npp-shell .widefat th,.npp-shell .widefat td{font-size:10.5px!important;padding:5px 7px!important;white-space:normal;word-break:break-word;vertical-align:top}
.npp-shell .widefat td{max-width:none}
.npp-shell .widefat thead th{white-space:nowrap}
.npp-shell .npp-panel h2{display:flex;align-items:center;justify-content:space-between;gap:10px}
.npp-shell .npp-kpi strong{font-size:15px}
.npp-shell .npp-note-box{font-size:12px;padding:10px 12px;border-radius:12px}
.npp-shell .npp-report-filter{margin-bottom:10px}
.npp-shell .npp-report-filter input,.npp-shell .npp-report-filter select{min-width:120px}
.npp-shell .npp-kpi-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
.npp-shell .npp-grid .npp-panel .npp-table-wrap table{min-width:540px!important}
.npp-shell .npp-table-compact th,.npp-shell .npp-table-compact td{font-size:10px!important}
.npp-shell .npp-panel,.npp-shell .npp-card{box-shadow:0 6px 18px rgba(15,23,42,.04)}
@media (max-width:1450px){.npp-shell .npp-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:980px){.npp-shell .npp-grid-2,.npp-shell .npp-grid-4.npp-mini-grid,.npp-shell .npp-kpi-grid{grid-template-columns:1fr}}

/* v20 readability + stable frontend/admin parity */
.npp-shell,.wrap .npp-shell{max-width:1680px;margin:0 auto;padding:10px 12px 28px;font-size:14px;color:#111827}
.npp-shell.npp-frontend{font-size:15px}
.npp-shell .npp-tabs{gap:8px;margin:8px 0 16px}
.npp-shell .npp-tab{padding:9px 13px;font-size:13px;font-weight:700}
.npp-shell .npp-grid{gap:14px;margin:12px 0}
.npp-shell .npp-card,.npp-shell .npp-panel,.npp-shell .npp-chart-card{padding:16px;border-radius:16px}
.npp-shell h1{font-size:26px;margin:4px 0 10px}.npp-shell h2{font-size:20px;margin:0 0 12px}.npp-shell h3{font-size:16px}
.npp-shell .npp-card h3,.npp-shell .npp-chart-card h3{font-size:11px;letter-spacing:.09em}
.npp-shell .npp-value{font-size:22px;line-height:1.18}
.npp-shell .npp-muted{font-size:13px;line-height:1.45}
.npp-shell .npp-inline-form input,.npp-shell .npp-inline-form select,.npp-shell .npp-field input,.npp-shell .npp-field select,.npp-shell .npp-field textarea{font-size:14px!important;min-height:42px;padding:9px 11px}
.npp-shell .button,.npp-shell .npp-btn{font-size:13px!important;padding:8px 12px!important}
.npp-shell .npp-table-wrap{max-height:420px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;background:var(--npp-surface)}
.npp-shell .npp-table-wrap table{min-width:100%!important;width:100%!important;table-layout:auto!important}
.npp-shell .widefat th,.npp-shell .widefat td{padding:8px 10px!important;font-size:12px!important;line-height:1.32!important;white-space:normal!important;word-break:normal;overflow-wrap:anywhere;vertical-align:middle}
.npp-shell .widefat thead th{position:sticky;top:0;z-index:2;background:#f8fafc;white-space:nowrap!important}
.npp-shell .widefat td strong{font-size:12px}
.npp-shell .npp-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.npp-shell .npp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.npp-shell .npp-grid-4.npp-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.npp-flash{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:14px;margin:10px 0 14px;font-size:14px;line-height:1.45}
.npp-flash-close{border:0;background:transparent;font-size:22px;line-height:1;color:inherit;cursor:pointer;padding:0 2px}
.npp-flash.error{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.npp-flash.success{background:color-mix(in srgb, var(--npp-success) 12%, var(--npp-surface));color:var(--npp-success);border:1px solid color-mix(in srgb, var(--npp-success) 25%, var(--npp-border))}
.npp-heatmap-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:74px;gap:8px}
.npp-heat-tile{min-width:0;padding:10px;border-radius:14px}
.npp-heat-tile strong{font-size:13px}.npp-heat-tile span{font-size:12px}.npp-heat-tile small{font-size:10px}
.npp-note-box{font-size:13px;line-height:1.55}
.npp-shell .npp-panel .npp-pager,.npp-shell .npp-report-filter{margin-bottom:10px}
.npp-shell .npp-grid .npp-panel,.npp-shell .npp-grid .npp-card,.npp-shell .npp-grid .npp-chart-card{min-width:0}
.npp-shell .npp-table-wrap.npp-table-wrap-short{max-height:280px}
@media (max-width:1100px){.npp-shell .npp-grid-2,.npp-shell .npp-grid-4.npp-mini-grid{grid-template-columns:1fr}.npp-shell .npp-value{font-size:20px}}
@media (max-width:760px){.npp-shell,.wrap .npp-shell{padding:8px}.npp-shell .widefat th,.npp-shell .widefat td{font-size:11px!important;padding:7px 8px!important}.npp-shell .npp-tab{font-size:12px;padding:8px 11px}.npp-shell h2{font-size:18px}}

/* v20 */
.npp-shell{font-size:15px;max-width:1680px;padding:10px 14px 28px}.npp-card,.npp-panel,.npp-chart-card{padding:18px;border-radius:18px}.npp-value{font-size:28px}.npp-shell .widefat th,.npp-shell .widefat td{padding:8px 9px;font-size:13px;line-height:1.2}.npp-shell .widefat th{white-space:nowrap}.npp-shell .npp-table-wrap table{min-width:620px}.npp-heatmap-grid-true{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:56px;grid-auto-flow:dense;gap:10px}.npp-heat-tile{min-width:0;justify-content:space-between}.npp-heat-tile strong{font-size:14px}.npp-heat-tile span{font-size:22px;font-weight:800}.npp-heat-tile small{font-size:12px}.npp-chart-card canvas{height:280px!important}.npp-panel .npp-table-wrap{max-height:420px}.npp-note-box{font-size:14px}.npp-shell select,.npp-shell input,.npp-shell textarea{font-size:15px;min-height:44px}@media (max-width:900px){.npp-shell{font-size:14px;padding:8px}.npp-value{font-size:24px}.npp-heatmap-grid-true{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:48px}}

/* v20 readability */
.npp-frontend{font-size:15px;line-height:1.5}.npp-shell.npp-frontend{max-width:1580px}.npp-frontend .npp-tab{font-size:15px;padding:11px 16px}.npp-frontend .npp-card,.npp-frontend .npp-panel,.npp-frontend .npp-chart-card{padding:16px}.npp-frontend .npp-value{font-size:28px}.npp-frontend .widefat th,.npp-frontend .widefat td{font-size:13px;padding:9px 10px}.npp-frontend .npp-table-wrap table{min-width:740px}.npp-chart-card canvas{height:240px!important}.npp-heatmap-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:70px;gap:10px}.npp-heat-tile{min-width:0;padding:10px;border-radius:14px;overflow:hidden}.npp-heat-tile strong{font-size:15px}.npp-heat-tile span{font-size:22px;line-height:1}.npp-heat-tile small{font-size:12px}.npp-heat-up{background:linear-gradient(135deg,#2f855a,#48bb78)}.npp-heat-down{background:linear-gradient(135deg,#c97a22,#f59e0b)}.npp-flash-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:18px;cursor:pointer}.npp-flash{position:relative}.npp-mini-list li{grid-template-columns:1.3fr 1fr .8fr 1fr}.npp-note-box{font-size:14px}.npp-shell select option{background:#fff;color:#111827}.npp-shell input[list]{min-width:220px}.npp-panel .npp-table-wrap{max-height:420px}.npp-shell .widefat thead th{position:sticky;top:0;z-index:2}
@media (max-width:900px){.npp-heatmap-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:62px}.npp-frontend .npp-value{font-size:24px}}

/* v22 market pulse cleanup */
.npp-shell .widefat td,.npp-shell .widefat th{overflow-wrap:normal!important;word-break:normal!important}
.npp-shell .widefat td.npp-num,.npp-shell .widefat th.npp-num,.npp-value,.npp-kpi strong{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
.npp-shell .widefat td.npp-num{font-variant-numeric:tabular-nums}
.npp-pos{color:var(--npp-success)!important}.npp-neg{color:#dc2626!important}
.npp-risk-high{color:#dc2626;font-weight:700}.npp-risk-medium{color:#d97706;font-weight:700}.npp-risk-low{color:var(--npp-success);font-weight:700}
.npp-panel .npp-table-wrap table{min-width:1000px!important}
.npp-panel h2{font-size:22px;margin-bottom:14px}
.npp-card h3{font-size:12px}
.npp-value{font-size:34px}
.npp-shell .npp-grid.npp-grid-2:first-of-type .npp-panel{order:initial}
.npp-heatmap-grid-true{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:72px;grid-auto-flow:dense;gap:10px;align-items:stretch}
.npp-heat-tile{display:flex;flex-direction:column;justify-content:space-between;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);overflow:hidden}
.npp-heat-tile strong{font-size:16px;line-height:1.1}
.npp-heat-tile .npp-heat-pct{font-size:22px;font-weight:800;line-height:1}
.npp-heat-tile .npp-heat-sector,.npp-heat-tile .npp-heat-metric{font-size:12px;opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.npp-heat-up{background:linear-gradient(135deg,#15803d,#22c55e)!important}
.npp-heat-down{background:linear-gradient(135deg,#b45309,#f59e0b)!important}
.npp-chart-card canvas{height:260px!important}
.npp-market-priority{display:grid;grid-template-columns:1.15fr 1fr;gap:14px}
@media (max-width:1200px){.npp-market-priority{grid-template-columns:1fr}.npp-value{font-size:28px}}
@media (max-width:900px){.npp-heatmap-grid-true{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:60px}.npp-shell .npp-panel .npp-table-wrap{max-height:360px}}

/* v23 readability + market pulse fixes */
.npp-value{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums}
.npp-card .npp-value,.npp-panel .npp-value{font-size:30px}
.npp-shell .widefat td.npp-num,.npp-shell .widefat th.npp-num{white-space:nowrap!important;font-variant-numeric:tabular-nums;text-align:left}
.npp-shell .widefat td{overflow-wrap:normal!important;word-break:normal!important}
.npp-shell .widefat td.npp-num{overflow-wrap:normal!important;word-break:keep-all!important}
.npp-heatmap-surface{background:#111827;border-radius:14px;padding:10px}
.npp-heatmap-grid-true{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:68px;gap:8px;align-items:stretch}
.npp-heat-tile{border:1px solid rgba(255,255,255,.08)}
.npp-heat-tile .npp-heat-sector{display:none}
.npp-heat-tile .npp-heat-metric{font-size:12px;color:rgba(255,255,255,.9)}
.npp-heat-tile .npp-heat-pct{font-size:18px}
.npp-market-priority,.npp-grid.npp-grid-2{align-items:start}
.npp-shell .npp-table-wrap{max-height:460px}
.npp-shell .npp-panel{overflow:hidden}
.npp-shell .npp-table-wrap table{min-width:980px!important}
.npp-shell.npp-frontend .npp-card,.npp-shell.npp-frontend .npp-panel{padding:18px}
.npp-shell.npp-frontend .widefat th,.npp-shell.npp-frontend .widefat td{font-size:12px!important;line-height:1.25!important;padding:8px 10px!important}
.npp-shell.npp-frontend h2{font-size:18px}
@media (max-width:1000px){.npp-heatmap-grid-true{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:58px}.npp-card .npp-value,.npp-panel .npp-value{font-size:24px}}

.npp-admin .wrap,.npp-shell{font-size:15px}
.npp-shell .widefat{border-collapse:separate;border-spacing:0;table-layout:auto}
.npp-shell .widefat td,.npp-shell .widefat th{padding:12px 14px;font-size:15px;border-bottom:1px solid var(--npp-border);background:transparent;color:var(--npp-text)}
.npp-shell .widefat th{font-size:13px;letter-spacing:.04em;text-transform:uppercase;background:var(--npp-surface-2)}
.npp-shell .npp-table-wrap{max-height:440px;overflow:auto;border:1px solid var(--npp-border);border-radius:14px}
.npp-shell .npp-table-wrap table{min-width:1000px}
.npp-kpi-grid .npp-card{min-height:122px}
.npp-kpi-grid .npp-card .npp-value{font-size:24px;overflow-wrap:normal;word-break:normal}
.npp-panel h2{margin:0 0 14px;font-size:22px}
.npp-note-box{background:var(--npp-surface-2);border-color:var(--npp-border);color:var(--npp-text)}
.npp-field input,.npp-field select,.npp-field textarea,.npp-inline-form input,.npp-inline-form select{background:var(--npp-surface);color:var(--npp-text);border-color:var(--npp-border)}
.npp-inline-form select{max-width:240px}
.npp-shell .button,.npp-shell .npp-btn{font-size:15px;padding:10px 14px;min-height:42px}
.npp-shell .button.button-primary,.npp-shell .npp-btn-primary{background:var(--npp-accent);border-color:var(--npp-accent);color:#fff}
.npp-shell .button{border-radius:12px}
.npp-shell .npp-heat-compact .npp-heatmap-grid{max-height:520px}
.npp-heatmap-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:72px;gap:8px}
.npp-heatmap-grid-compact .npp-heat-tile{min-height:72px}
.npp-heat-tile{border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;overflow:hidden}
.npp-heat-up{background:linear-gradient(135deg,#15803d,#4ade80)}
.npp-heat-down{background:linear-gradient(135deg,#b45309,#f59e0b)}
.npp-heat-tile strong{font-size:18px}
.npp-heat-pct{font-size:16px;font-weight:800}
.npp-heat-metric{font-size:12px;opacity:.95}
.npp-heat-sector{display:none}
.npp-chart-card canvas{width:100%!important;height:300px!important}
.npp-chart-card{padding:14px}
.npp-mini-list li{grid-template-columns:1.3fr .9fr .8fr 1fr}
.npp-risk-high{color:#dc2626;font-weight:700}.npp-risk-medium{color:#d97706;font-weight:700}.npp-risk-low{color:#16a34a;font-weight:700}
.npp-shell .npp-pos{color:#16a34a!important;font-weight:700}.npp-shell .npp-neg{color:#dc2626!important;font-weight:700}
.npp-shell .npp-muted{font-size:14px}
.npp-shell .npp-grid{gap:14px}
@media (max-width: 1200px){.npp-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.npp-grid-2{grid-template-columns:1fr}.npp-heatmap-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width: 768px){.npp-shell{padding:8px}.npp-tabs{gap:8px}.npp-tab{padding:9px 12px;font-size:14px}.npp-value{font-size:22px}.npp-shell .widefat td,.npp-shell .widefat th{padding:10px 10px;font-size:14px}.npp-heatmap-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:64px}.npp-theme-toggle{margin-left:0}}

.npp-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.npp-portfolio-switcher{margin:0}
.npp-portfolio-switcher label{font-weight:700;color:var(--npp-muted)}
.npp-portfolio-meta{margin-bottom:14px}
.npp-portfolio-meta code{display:inline-block;background:var(--npp-surface-2);border:1px solid var(--npp-border);padding:6px 10px;border-radius:10px;max-width:100%;overflow:auto}
.npp-heat-section .npp-panel{padding:14px}
.npp-heatmap-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:90px;gap:10px}
.npp-heatmap-grid-compact{max-height:420px;overflow:hidden}
.npp-heat-tile{border-radius:16px;border:2px solid rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.npp-heat-tile strong{font-size:24px;line-height:1}
.npp-heat-pct{font-size:28px;line-height:1.05;font-weight:900}
.npp-heat-metric{font-size:14px;font-weight:700}
.npp-shell .npp-grid{align-items:start}
.npp-shell .widefat td,.npp-shell .widefat th{vertical-align:middle}
.npp-shell .npp-table-wrap table{min-width:1180px}
.npp-shell .npp-table-wrap{scrollbar-width:thin}
.npp-shell .npp-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.npp-shell .npp-kpi-grid .npp-card{min-height:136px}
.npp-shell .npp-value{font-size:22px}
.npp-front .npp-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
.npp-front .npp-tab{white-space:nowrap}
.npp-front .npp-shell{padding:10px}
@media (max-width: 980px){
  .npp-topbar{flex-direction:column;align-items:stretch}
  .npp-heatmap-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:76px}
  .npp-heat-tile strong{font-size:18px}.npp-heat-pct{font-size:22px}.npp-heat-metric{font-size:12px}
}

.npp-topbar{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:nowrap;overflow:auto;padding-bottom:6px}
.npp-tabs{display:flex;gap:12px;flex-wrap:nowrap;overflow:auto}
.npp-tab{white-space:nowrap}
.npp-heatmap-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:96px;gap:10px}
.npp-heatmap-grid-compact{min-height:auto}
.npp-heat-section .npp-panel{overflow:hidden}
.npp-heat-tile{border-radius:16px;padding:12px 14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.npp-heat-head strong{font-size:22px;line-height:1.1}
.npp-heat-mid{display:flex;align-items:center;justify-content:flex-start;flex:1}
.npp-heat-pct{font-size:18px;font-weight:800}
.npp-heat-foot{display:flex;align-items:flex-end}
.npp-heat-metric{font-size:13px}
.npp-heat-compact .npp-heatmap-grid{max-height:none}
.npp-panel h2{font-size:18px}
.npp-inline-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.npp-inline-form label{white-space:nowrap}
.npp-shell .widefat td,.npp-shell .widefat th{font-size:14px}
.npp-kpi-grid .npp-card .npp-value{font-size:22px}
@media (max-width: 1100px){.npp-topbar{flex-wrap:wrap}.npp-heatmap-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width: 768px){.npp-heatmap-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:84px}.npp-heat-head strong{font-size:18px}.npp-heat-pct{font-size:16px}}


/* v30.2 preserve newer utility styles */
.npp-shell{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a}.npp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 20px}.npp-tab{padding:10px 14px;border-radius:999px;background:#eef2ff;color:#3730a3;text-decoration:none;font-weight:700}.npp-tab.active{background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff}.npp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.npp-grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.npp-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.npp-card,.npp-panel,.npp-chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:20px;box-shadow:0 12px 35px rgba(15,23,42,.05)}.npp-card h3,.npp-chart-card h3{margin:0 0 8px;font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.npp-value{font-size:30px;font-weight:800;line-height:1.1}.npp-pos{color:#15803d}.npp-neg{color:#b91c1c}.npp-muted{color:#64748b}.npp-table-wrap{overflow:auto}.npp-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:700;font-size:12px;text-transform:capitalize}.npp-chart iframe{width:100%;height:540px;border:0;border-radius:16px;background:#f8fafc}.npp-analysis{padding:12px 0;border-top:1px solid #e5e7eb}.npp-analysis:first-child{border-top:0}.npp-pre,pre{white-space:pre-wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px;overflow:auto;line-height:1.55}.npp-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.npp-field{display:flex;flex-direction:column;gap:6px}.npp-field label{font-weight:700;color:#334155}.npp-field-full{grid-column:1/-1}.npp-field input,.npp-field select,.npp-field textarea{border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;min-height:48px;background:#fff}.npp-flash{padding:13px 16px;border-radius:14px;margin:14px 0;font-weight:700}.npp-flash.success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.npp-flash.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.npp-panel h2,.npp-chart-card h2{margin-top:0}.widefat td,.widefat th{vertical-align:middle}.npp-chart iframe{height:var(--npp-chart-height,540px)}.npp-chart-wrap{display:flex;flex-direction:column;gap:12px}.npp-chart-toolbar,.npp-inline-form,.npp-actions{display:flex;gap:12px;justify-content:flex-start;align-items:center;flex-wrap:wrap}.npp-note-box{margin-top:16px;padding:14px 16px;border:1px solid #dbeafe;background:#f8fbff;border-radius:16px}.npp-note-box ul{margin:8px 0 0 18px}.npp-note-box li{margin:4px 0}.npp-kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:14px 0}.npp-kpi{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:12px}.npp-kpi span{display:block;font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.npp-kpi strong{display:block;font-size:20px;margin-top:4px}.npp-mini-grid{margin-bottom:14px}.npp-analysis-block{padding:14px 0;border-top:1px solid #e2e8f0}.npp-analysis-block:first-child{border-top:0}.npp-analysis-meta{font-size:12px;font-weight:700;color:#64748b;margin-bottom:8px}.npp-sector-box{border:1px solid #e2e8f0;border-radius:16px;padding:16px;background:#fafcff}.npp-sector-box h3{margin:0 0 10px}.npp-subtitle{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.08em;margin:10px 0 8px}.npp-mini-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.npp-mini-list li{display:grid;grid-template-columns:1.2fr .9fr .8fr .9fr;gap:8px;align-items:center;padding:8px 10px;border-radius:12px;background:#fff;border:1px solid #eef2f7}.npp-chart-card{min-height:260px}.npp-shell code{white-space:normal;word-break:break-word}.npp-table-wrap table{min-width:860px}.npp-panel .button{white-space:nowrap}.npp-chart-card canvas{width:100%!important;height:260px!important}.npp-chart-card h3{margin-bottom:14px}.npp-shell .npp-table-wrap table td strong{font-weight:800}.npp-shell .npp-grid .npp-card .npp-muted{margin-top:6px;display:block}.npp-shell input[type=file]{padding:10px;background:#fff}.npp-shell select{min-height:48px}.npp-shell textarea{min-height:110px}.npp-shell .npp-inline-form label{font-weight:700;color:#334155}.npp-shell .npp-inline-form input,.npp-shell .npp-inline-form select{border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;min-height:42px}.npp-shell .button.button-primary{background:#2563eb;border-color:#2563eb}.npp-shell .button.button-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.npp-shell .button{border-radius:12px}.npp-shell .button.button-small{padding:0 10px;line-height:28px;min-height:30px}.npp-shell .npp-table-wrap th{background:#f8fafc;position:sticky;top:0;z-index:1}.npp-shell .npp-grid>.npp-panel,.npp-shell .npp-grid>.npp-card{min-width:0}
@media (max-width:900px){.npp-grid-2,.npp-grid-4{grid-template-columns:1fr}.npp-chart iframe{height:420px}.npp-chart-card canvas{height:220px!important}.npp-mini-list li{grid-template-columns:1fr 1fr}.npp-inline-form{align-items:stretch}.npp-inline-form label{width:100%}}
.npp-heatmap-grid{display:flex;flex-wrap:wrap;gap:10px}.npp-heat-tile{display:flex;flex-direction:column;gap:6px;min-width:110px;padding:14px 12px;border-radius:16px;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}.npp-heat-tile strong{font-size:16px;line-height:1}.npp-heat-tile span{font-weight:700}.npp-heat-tile small{opacity:.9}.npp-heat-up{background:linear-gradient(135deg,#16a34a,#22c55e)}.npp-heat-down{background:linear-gradient(135deg,#dc2626,#ef4444)}.npp-badge-accent{background:#ede9fe;color:#6d28d9}
.npp-card,.npp-panel,.npp-chart-card{overflow:hidden}
.npp-chart-card canvas{height:300px!important}
.npp-heatmap-grid{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.npp-heat-tile{display:flex;flex-direction:column;justify-content:space-between;min-height:86px}
.npp-heat-tile strong{font-size:20px;line-height:1}
.npp-heat-tile span{font-size:16px;font-weight:800}
.npp-heat-tile small{font-size:12px}
.npp-mini-list{display:grid;gap:8px}
.npp-mini-list li{display:grid;grid-template-columns:1fr auto auto auto;gap:8px;list-style:none;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px}
@media (max-width: 900px){.npp-grid-2,.npp-grid-4{grid-template-columns:1fr}.npp-mini-list li{grid-template-columns:1fr auto}}
.npp-heatmap-grid{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.npp-heat-tile{display:flex;flex-direction:column;justify-content:space-between;border-radius:14px;padding:10px;min-height:86px;color:#fff}
.npp-heat-up{background:linear-gradient(135deg,#2e7d32,#4caf50)}
.npp-heat-down{background:linear-gradient(135deg,#b45309,#d97706)}
.npp-chart-card{min-height:260px}
.npp-chart-card canvas{width:100%!important;height:220px!important}
/* v30.3 header + theme polish */
.npp-shell[data-npp-theme-root]{transition:background .2s ease,color .2s ease}
.npp-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,var(--npp-surface-2),var(--npp-surface))}
.npp-topbar-left,.npp-topbar-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.npp-topbar-right{flex:1;justify-content:space-between}
.npp-topbar-title{font-size:18px;font-weight:800;color:var(--npp-text);padding:8px 2px}
.npp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.npp-tab{padding:10px 16px;border-radius:999px;background:color-mix(in srgb, var(--npp-accent) 10%, var(--npp-surface));color:var(--npp-accent-2);text-decoration:none;font-weight:700}
.npp-tab.active{background:linear-gradient(135deg,var(--npp-accent),var(--npp-accent-2));color:#fff}
.npp-theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--npp-border);background:var(--npp-surface);color:var(--npp-text);padding:10px 14px;border-radius:999px;font-weight:700;cursor:pointer}
.npp-theme-dark .npp-topbar{background:linear-gradient(135deg,#081122,#0f172a)}
.npp-theme-dark .npp-tab{background:rgba(255,255,255,.06);color:#c7d2fe}
.npp-theme-dark .npp-tab.active{background:linear-gradient(135deg,var(--npp-accent),var(--npp-accent-2));color:#fff}
.npp-frontend .npp-topbar-left .npp-portfolio-switcher{display:none!important}
.npp-frontend .npp-tabs{justify-content:flex-start}
.npp-portfolio-switcher{display:flex;align-items:center;gap:10px}
.npp-portfolio-switcher select{min-width:180px}
@media (max-width: 900px){
  .npp-topbar{padding:14px}
  .npp-topbar-right{justify-content:flex-start}
}

.npp-subpanel{margin-top:18px}
.npp-subpanel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.npp-portfolio-manager input{width:100%}
.npp-readonly{background:var(--npp-surface-2)!important}
.npp-raw-json-wrap{margin-top:12px}
.npp-raw-json-wrap textarea{width:100%;min-height:160px}

/* v30.5 market pulse sector cleanup */
.npp-table-wrap th:nth-child(1), .npp-table-wrap td:nth-child(1){white-space:nowrap}
.npp-panel h2{margin-bottom:12px}

.npp-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.npp-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1200px){.npp-grid-3,.npp-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.npp-grid-3,.npp-kpi-grid{grid-template-columns:1fr}}

/* v30.7 pager + analysis */
.npp-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 12px;flex-wrap:wrap}
.npp-pager-links{display:flex;gap:8px;flex-wrap:wrap}
.npp-pager-link{padding:6px 10px;border:1px solid var(--npp-border);border-radius:8px;text-decoration:none;color:var(--npp-text)}
.npp-pager-link.active{background:var(--npp-accent);color:#fff;border-color:var(--npp-accent)}
.npp-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.npp-mini-grid span{display:block;font-size:12px;color:var(--npp-muted)}
.npp-mini-grid strong{display:block}

/* v30.8 sortable tables */
.npp-table-wrap table.widefat thead th.npp-sortable{cursor:pointer;user-select:none;position:relative;padding-right:20px}
.npp-table-wrap table.widefat thead th.npp-sortable:after{content:'↕';position:absolute;right:6px;opacity:.45;font-size:12px}
.npp-table-wrap table.widefat thead th.npp-sortable.sort-asc:after{content:'↑';opacity:1}
.npp-table-wrap table.widefat thead th.npp-sortable.sort-desc:after{content:'↓';opacity:1}

/* v30.10 focus search + decision panels */
.npp-focus-panel{margin-bottom:18px}
.npp-focus-head{display:flex;justify-content:space-between;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:8px}
.npp-decision-badge{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;font-weight:700;margin:12px 0}
.npp-badge-bull{background:rgba(16,185,129,.12);color:#0f8f63;border:1px solid rgba(16,185,129,.25)}
.npp-badge-bear{background:rgba(239,68,68,.10);color:#c24141;border:1px solid rgba(239,68,68,.22)}
.npp-badge-neutral{background:rgba(59,130,246,.10);color:#295cbd;border:1px solid rgba(59,130,246,.22)}
.npp-badge-warn{background:rgba(245,158,11,.12);color:#b7791f;border:1px solid rgba(245,158,11,.24)}
.npp-setup-title{font-size:18px;font-weight:800;margin:10px 0 6px}


/* v30.11 mobile responsiveness */
@media (max-width: 900px){
  .npp-kpi-grid, .npp-grid-4, .npp-grid-3, .npp-grid-2 { grid-template-columns: 1fr 1fr !important; }
  .npp-inline-form{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; }
  .npp-inline-form input[type="text"], .npp-inline-form input[list], .npp-inline-form select{ width:100%; max-width:100%; }
  .npp-panel{ overflow:hidden; }
}
@media (max-width: 640px){
  .npp-kpi-grid, .npp-grid-4, .npp-grid-3, .npp-grid-2, .npp-grid-1 { grid-template-columns: 1fr !important; }
  .npp-card h3{
    font-size:12px !important; line-height:1.35 !important; letter-spacing:.10em;
    word-break:normal; overflow-wrap:anywhere;
  }
  .npp-card .npp-value{ font-size:24px !important; line-height:1.15 !important; word-break:break-word; }
  .npp-card .npp-value-sm{ font-size:18px !important; line-height:1.2 !important; word-break:break-word; }
  .npp-card .npp-muted{ font-size:13px !important; line-height:1.45 !important; word-break:break-word; }
  .npp-panel, .npp-card{ padding:16px !important; border-radius:20px !important; box-sizing:border-box; }
  .npp-inline-form{ display:grid !important; grid-template-columns:1fr !important; gap:10px !important; }
  .npp-inline-form .button, .npp-inline-form .npp-btn{ width:100%; justify-content:center; }
  .npp-mini-grid, .npp-kpi-row{ grid-template-columns:1fr 1fr !important; }
  .npp-decision-badge{ display:block; width:100%; text-align:center; }
  .npp-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .npp-table-wrap table{ min-width:900px; }
  .npp-header, .npp-topbar{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .npp-header .button, .npp-topbar .button, .npp-header a, .npp-topbar a{ white-space:nowrap; }
  .npp-heat-compact{ overflow:hidden; }
  .npp-heatmap, .npp-heat-grid{ min-height:260px !important; }
  canvas{ max-width:100% !important; height:auto !important; }
}

/* v30.12 add form */
.npp-form-grid textarea[name="batch_lines"]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
