@charset "UTF-8";
/* Casper - Bot settings panel, part 2: grouped nav, cards, widgets, charts. Tokens come from panel.css / styles.css. */

/* ---------- layout + grouped nav ---------- */
.pn-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 26px; align-items: start; }
.pn-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; min-width: 0; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.pn-tabs { display: flex; flex-direction: column; gap: 14px; }
.pn-grp { display: flex; flex-direction: column; gap: 2px; }
.pn-grp-h { margin: 0 0 4px 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.pn-tab { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px 9px 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--muted); font: 600 14.5px/1.2 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pn-tab:hover { background: var(--surface); color: var(--text); }
.pn-tab.on { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.pn-tab.on::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--sky); }
.pn-tab-ic { width: 20px; height: 20px; flex: none; color: var(--dim); transition: color .2s; }
.pn-tab.on .pn-tab-ic, .pn-tab:hover .pn-tab-ic { color: var(--sky); }
.pn-tab-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px solid var(--dim); background: transparent; }
.pn-dot.on { border-color: var(--pn-on); background: var(--pn-on); box-shadow: 0 0 0 3px rgba(74,222,128,.15); }
.pn-badge { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); flex: none; font-variant-numeric: tabular-nums; line-height: 1.6; }
.pn-badge.on { background: rgba(74,222,128,.14); color: var(--pn-on); }
.pn-badge.warn { background: rgba(251,191,36,.16); color: var(--pn-warn); }
.pn-soon { border-top: 1px solid var(--border); padding-top: 14px; }
.pn-soon-h { margin: 0 0 8px 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.pn-soon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pn-soon li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px dashed var(--border-2); border-radius: 12px; cursor: not-allowed; color: var(--dim); font-size: 14px; opacity: .8; }
.pn-soon li .pn-ic { width: 18px; height: 18px; flex: none; }
.pn-soon li span { display: flex; flex-direction: column; line-height: 1.25; }
.pn-soon li small { font-size: 11.5px; }

/* ---------- main panel ---------- */
.pn-main { padding: 26px; box-shadow: var(--pn-shadow); }
.pn-ic { display: inline-flex; line-height: 0; }
.pn-ic svg { width: 100%; height: 100%; display: block; }
.pn-sec-h { margin-bottom: 20px; }
.pn-sec-t { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pn-sec-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--pn-tile); color: var(--sky); display: grid; place-items: center; flex: none; }
.pn-sec-ic .pn-ic { width: 21px; height: 21px; }
.pn-sec-t .pn-h2 { margin: 0; }
.pn-h3 { font: 700 13px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 24px 0 10px; }
.pn-sub { margin-top: 22px; }
.pn-sub .pn-h3 { margin-top: 0; }
.pn-label { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pn-label:first-child { margin-top: 0; }
.pn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pn-togs { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.pn-togs .pn-toggle small { max-width: 38ch; }
.pn-box textarea { width: 100%; }
.pn-row-l { justify-content: flex-start; }
.pn-reset { margin-top: 30px; }

/* callouts */
.pn-callout { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.5; }
.pn-callout .pn-ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--sky); }
.pn-callout b { color: var(--text); }
.pn-callout-warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.07); }
.pn-callout-warn .pn-ic { color: var(--pn-warn); }
.pn-callout-ok .pn-ic { color: var(--pn-ok); }
.pn-callout-tip { background: var(--pn-tile); border-color: transparent; }

/* empty state */
.pn-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 20px; text-align: center; border: 1px dashed var(--border-2); border-radius: 18px; color: var(--muted); background: var(--surface); }
.pn-empty b { color: var(--text); font-size: 16px; }
.pn-empty p { margin: 0 0 10px; max-width: 46ch; font-size: 14px; }
.pn-empty-art { position: relative; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 20px; background: var(--pn-tile); color: var(--sky); display: grid; place-items: center; }
.pn-empty-art .pn-ic { width: 30px; height: 30px; }
.pn-empty-art i { position: absolute; border-radius: 50%; background: var(--sky); opacity: .35; }
.pn-empty-art i:nth-of-type(1) { width: 8px; height: 8px; top: -4px; right: 6px; }
.pn-empty-art i:nth-of-type(2) { width: 5px; height: 5px; bottom: 2px; left: -6px; opacity: .5; }
.pn-empty-art i:nth-of-type(3) { width: 11px; height: 11px; bottom: -5px; right: -8px; opacity: .2; }
.pn-empty-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pn-empty-act .btn, .pn-addrow .btn, .pn-addmsg, .pn-tplrow .btn, .pn-row .btn { gap: 7px; }
.pn-empty-act .pn-ic, .pn-addrow .pn-ic, .pn-addmsg .pn-ic, .pn-tplrow .pn-ic, .pn-row .pn-ic { width: 15px; height: 15px; }

/* cards */
.pn-cards { display: grid; gap: 14px; margin-top: 4px; }
.pn-card { padding: 16px 18px 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); min-width: 0; transition: border-color .2s; }
.pn-card:focus-within { border-color: var(--border-2); }
.pn-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pn-card-n { width: 24px; height: 24px; border-radius: 8px; background: var(--pn-tile); color: var(--sky); font: 700 12px/24px var(--font); text-align: center; flex: none; }
.pn-card-t { overflow-wrap: anywhere; min-width: 0; font-size: 15px; }
.pn-card-meta { font-size: 12px; color: var(--muted); padding: 2px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-card-act { display: flex; gap: 4px; margin-left: auto; flex: none; }
.pn-ico { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; flex: none; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.pn-ico .pn-ic { width: 16px; height: 16px; }
.pn-ico:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.pn-ico.pn-del:hover:not(:disabled) { color: var(--pn-bad); border-color: var(--pn-bad); background: transparent; }
.pn-ico:disabled { opacity: .35; cursor: not-allowed; }
.pn-msgs { display: grid; gap: 12px; }
.pn-msg { display: grid; gap: 6px; }
.pn-msg .pn-ico { width: 24px; height: 24px; }
.pn-msg .pn-ico .pn-ic { width: 13px; height: 13px; }
.pn-msg textarea { border-radius: 14px 14px 14px 4px; }
.pn-addrow { display: flex; align-items: center; gap: 12px; }
.pn-card .pn-field { margin-bottom: 14px; }
.pn-card .pn-fields { margin-bottom: 14px; }
.pn-card .pn-msgs:last-child, .pn-card > div > .pn-msgs { margin-top: 2px; }
.pn-fields { align-items: flex-end; }
.pn-fields .pn-field label { white-space: nowrap; }
.pn-ta { border-radius: 12px; }

/* flash for validation jump */
@keyframes pnflash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 25% { box-shadow: 0 0 0 4px rgba(255,138,138,.45); } }
.pn-flash { animation: pnflash 1.3s ease 2; border-radius: 14px; }

/* template buttons */
.pn-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pn-tpl { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, transform .3s var(--ease), background .2s; }
.pn-tpl:hover { border-color: var(--sky); background: var(--pn-tile); }
.pn-tpl b { font-size: 14.5px; }
.pn-tpl small { color: var(--muted); font-size: 12.5px; }

/* chip input */
.pn-chips-wrap { display: grid; gap: 4px; }
.pn-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 8px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--pn-field); cursor: text; min-height: 46px; align-items: center; }
.pn-chips:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(108,200,240,.16); }
.pn-chips-in { flex: 1 1 140px; min-width: 100px; border: 0; outline: 0; background: transparent; color: var(--text); font: 15px var(--font); padding: 4px 4px; }
.pn-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--pn-tile); color: var(--text); border: 1px solid var(--border-2); font-size: 13.5px; max-width: 100%; }
.pn-chip > span { overflow-wrap: anywhere; }
.pn-chip button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pn-chip button:hover { color: var(--pn-bad); background: var(--surface-2); }
.pn-chip .pn-ic { width: 12px; height: 12px; }
.pn-chip-static { padding: 2px 10px; margin-left: 8px; font-size: 12.5px; }
.pn-chips-hint { color: var(--muted); font-size: 12px; }

/* segmented control */
.pn-seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--pn-field); border: 1px solid var(--border-2); max-width: 100%; }
.pn-seg-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-seg-l { padding: 8px 16px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; user-select: none; }
.pn-seg-l:hover { color: var(--text); }
.pn-seg-in:checked + .pn-seg-l { background: var(--sky); color: #04131c; }
.pn-seg-in:focus-visible + .pn-seg-l { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (prefers-color-scheme: light) { .pn-seg-in:checked + .pn-seg-l { color: #fff; } }
.pn-seg-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); max-width: 60ch; min-height: 1.5em; }

/* settings cards (General, Health) */
.pn-gcs { display: grid; gap: 14px; }
.pn-gcs > .pn-h3 { margin-bottom: 0; }
.pn-managed { display: grid; gap: 14px; }
.pn-managed > .pn-h3 { margin: 4px 0 0; }
.pn-managed-cards { display: grid; gap: 14px; transition: opacity .25s, filter .25s; }
.pn-managed.is-ro .pn-managed-cards { opacity: .5; filter: saturate(.6); pointer-events: none; user-select: none; }
.pn-managed-st { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); font-size: 14px; }
.pn-managed-st .pn-ic { width: 20px; height: 20px; flex: none; color: var(--sky); }
.pn-managed-st > span { flex: 1 1 260px; }
.pn-managed-st b { color: var(--text); }
.pn-managed-st.on { border-color: rgba(74,222,128,.4); }
.pn-managed-st.on .pn-ic { color: var(--pn-ok); }
.pn-gc { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 14px; min-width: 0; }
.pn-gcs .pn-gc, .pn-managed .pn-gc { margin-bottom: 0; }
.pn-gc-h { display: flex; align-items: flex-start; gap: 14px; }
.pn-gc-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--pn-tile); color: var(--sky); display: grid; place-items: center; flex: none; }
.pn-gc-ic .pn-ic { width: 20px; height: 20px; }
.pn-gc-t { flex: 1; min-width: 0; }
.pn-gc-t h3 { margin: 0; font: 700 16px var(--font); letter-spacing: -.01em; }
.pn-gc-t p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 62ch; }
.pn-gc-h > .pn-toggle { flex: none; }
.pn-gc-h > .pn-toggle .pn-switch-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pn-gc-b { margin-top: 16px; padding-left: 52px; transition: opacity .2s; }
.pn-gc.is-off .pn-gc-b { opacity: .55; }
.pn-gc-b > :last-child { margin-bottom: 0; }
.pn-gc-b .pn-fields { margin-top: 0; }
.pn-fields-time { display: flex; gap: 16px; }
.pn-time { width: 150px; color-scheme: dark; }
@media (prefers-color-scheme: light) { .pn-time { color-scheme: light; } }
.pn-unit { width: auto; min-width: 110px; }
select.co-input { appearance: auto; }
.pn-callout .pn-ic { margin-top: 2px; }

/* range */
.pn-range-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pn-range-row small { color: var(--dim); }
.pn-range { flex: 1 1 220px; min-width: 160px; height: 22px; appearance: none; background: transparent; cursor: pointer; }
.pn-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sky) var(--p, 33%), var(--surface-2) var(--p, 33%)); border: 1px solid var(--border-2); }
.pn-range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); }
.pn-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--sky); }
.pn-range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pn-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); }
.pn-range:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 6px; }
.pn-range-val { font-weight: 700; min-width: 90px; font-variant-numeric: tabular-nums; }
.pn-range-out { font: 700 20px var(--display); color: var(--text); }

/* days + hours bar */
.pn-days { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-day { min-width: 52px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--pn-field); color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pn-day:hover { color: var(--text); border-color: var(--sky); }
.pn-day[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #04131c; }
@media (prefers-color-scheme: light) { .pn-day[aria-pressed="true"] { color: #fff; } }
.pn-hb { margin: 6px 0 10px; }
.pn-hb-track { position: relative; height: 18px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-2); overflow: hidden; }
.pn-hb-seg { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--sky-deep), var(--sky)); }
.pn-hb-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--pn-card-solid, rgba(0,0,0,.4)); }
.pn-hb-ticks { position: relative; height: 16px; margin: 4px 0 0; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pn-hb-ticks span { position: absolute; transform: translateX(-50%); }
.pn-hb-ticks span:first-child { transform: none; }
.pn-hb-ticks span:last-child { transform: translateX(-100%); }
.pn-hb-txt { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.pn-hb-txt b { color: var(--text); font-weight: 600; }

/* objection tester */
.pn-test { margin: 0 0 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--border-2); background: var(--pn-tile); display: grid; gap: 10px; }
.pn-test-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-test-h .pn-ic { width: 18px; height: 18px; color: var(--sky); }
.pn-test-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pn-test-samples small { color: var(--muted); }
.pn-sample { padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--border-2); background: transparent; color: var(--muted); font: 12.5px var(--font); cursor: pointer; }
.pn-sample:hover { color: var(--text); border-color: var(--sky); }
.pn-test-out > p { margin: 0; font-size: 14px; }
.pn-test-res { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--pn-card-solid, var(--surface)); border: 1px solid var(--border); }
.pn-test-res .pn-ic { width: 22px; height: 22px; flex: none; color: var(--pn-ok); }
.pn-test-res.none .pn-ic { color: var(--muted); }
.pn-test-res p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.pn-test-lbl { margin: 10px 0 6px !important; font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .08em; }
.pn-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pn-bubble { max-width: 100%; padding: 8px 13px; border-radius: 16px 16px 16px 4px; background: var(--sky); color: #04131c; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
@media (prefers-color-scheme: light) { .pn-bubble { color: #fff; } }
.pn-guide { margin: 0; padding: 8px 12px; border-left: 3px solid var(--pn-c4); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }

/* phases timeline */
.pn-tl { margin: 0 0 14px; }
.pn-tl-bar { display: flex; gap: 3px; min-height: 58px; }
.pn-tl-seg { --pc: var(--pn-c1); position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 64px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); overflow: hidden; }
.pn-tl-seg b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-tl-seg small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pn-tl-seg.ph1 { --pc: var(--pn-c4); } .pn-tl-seg.ph2 { --pc: var(--pn-c2); } .pn-tl-seg.ph3 { --pc: var(--pn-c3); } .pn-tl-seg.ph4 { --pc: var(--pn-c5); }
.pn-tl-end { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.pn-tl-end .pn-ic { width: 16px; height: 16px; color: var(--sky); }
.pn-tl-scroll { overflow-x: auto; }

/* follow-ups timeline */
.pn-fl { display: flex; align-items: flex-start; margin: 4px 0 16px; padding: 14px 10px 6px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.pn-fl-n { position: relative; flex: 1 0 96px; text-align: center; font-size: 13px; color: var(--text); font-weight: 600; padding-top: 22px; font-variant-numeric: tabular-nums; }
.pn-fl-n i { position: absolute; top: 3px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--pn-tile); }
.pn-fl-n::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--border-2); }
.pn-fl-n.start { flex: 0 0 120px; color: var(--muted); }
.pn-fl-n.start::before { display: none; }
.pn-fl-n.start i { background: var(--dim); box-shadow: 0 0 0 4px var(--surface-2); }
.pn-fl-n.unused { opacity: .45; }
.pn-fl-n.unused i { background: var(--dim); }
.pn-schedule-note { display: flex; align-items: center; gap: 6px; }
.pn-schedule-note .pn-ic { width: 16px; height: 16px; flex: none; }

/* ---------- statistics ---------- */
.pn-stats-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pn-stats-top .pn-h3 { margin: 0 0 2px; }
.pn-range-tg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--pn-field); }
.pn-rt { padding: 7px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; }
.pn-rt.on { background: var(--sky); color: #04131c; }
@media (prefers-color-scheme: light) { .pn-rt.on { color: #fff; } }
.pn-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pn-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.pn-kpi-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.pn-kpi-v { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pn-kpis-sm .pn-kpi-v { font-size: 21px; }
.pn-kpi-d { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pn-kpi-d small { font-weight: 500; color: var(--dim); font-size: 11.5px; }
.pn-kpi-d.good { color: var(--pn-ok); } .pn-kpi-d.bad { color: var(--pn-bad); }
.pn-kpi-n { color: var(--dim); font-size: 11.5px; }
.tri { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.tri.up { border-bottom: 7px solid currentColor; } .tri.dn { border-top: 7px solid currentColor; }
.pn-charts { display: grid; gap: 14px; margin-top: 18px; }
.pn-chart { padding: 16px 16px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.pn-chart-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pn-legend { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.pn-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pn-lg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.c1 { --c: var(--pn-c1); } .c2 { --c: var(--pn-c2); } .c3 { --c: var(--pn-c3); }
.pn-stage { position: relative; min-height: 170px; border-radius: 10px; outline: none; touch-action: pan-y; }
.pn-stage:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.pn-svg { display: block; overflow: visible; }
.pn-svg .grid { stroke: var(--pn-grid); stroke-width: 1; }
.pn-svg .axis { stroke: var(--border-2); stroke-width: 1; }
.pn-svg .tick { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.pn-svg .bar { fill: var(--c); opacity: .9; }
.pn-svg .line { stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pn-svg .area { fill: var(--c); opacity: .12; }
.pn-svg .dot { fill: var(--c); stroke: var(--bg-2); stroke-width: 1.5; }
.pn-svg .guide { stroke: var(--text); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 3; }
.pn-tip2 { position: absolute; top: 4px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 10px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-2); box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 12.5px; white-space: nowrap; }
.pn-tip2 .pn-lg { color: var(--text); }
.pn-tbl-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.pn-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pn-tbl th, .pn-tbl td { padding: 9px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.pn-tbl thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--muted); font-size: 12px; z-index: 1; }
.pn-tbl tbody th { font-weight: 600; color: var(--text); }
.pn-tbl .num { text-align: right; }
.pn-tbl tr.zero td, .pn-tbl tr.zero th { color: var(--dim); }
.pn-tbl tbody tr:last-child > * { border-bottom: 0; }
.pn-foot { margin-top: 14px; }
.pn-stats .pn-state { margin-top: 8px; }
.pn-stats .pn-empty { margin-top: 10px; }

/* ---------- health ---------- */
.pn-health-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 12px; }
.pn-health-sum .pn-ic { width: 22px; height: 22px; }
.pn-health-sum small { color: var(--muted); margin-left: auto; }
.pn-health-sum.ok { border-color: rgba(74,222,128,.4); } .pn-health-sum.ok .pn-ic { color: var(--pn-ok); }
.pn-health-sum.warn { border-color: rgba(251,191,36,.5); } .pn-health-sum.warn .pn-ic { color: var(--pn-warn); }
.pn-checks { display: grid; gap: 8px; }
.pn-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.pn-check > div { flex: 1; min-width: 0; }
.pn-check p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pn-check-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.pn-check-ic .pn-ic { width: 22px; height: 22px; }
.pn-check.pass .pn-check-ic { color: var(--pn-ok); } .pn-check.info .pn-check-ic { color: var(--sky); } .pn-check.warn .pn-check-ic { color: var(--pn-warn); }
.pn-check.warn { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.05); }
.pn-check.pass { padding-top: 9px; padding-bottom: 9px; }
.pn-check .btn { flex: none; }
.pn-tplrows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.pn-tplrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); }
.pn-tplrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pn-tplrow small { color: var(--muted); font-size: 12.5px; }
.pn-tplrow .pn-gc-ic { width: 32px; height: 32px; border-radius: 10px; }
.pn-tplrow .pn-gc-ic .pn-ic { width: 17px; height: 17px; }
.pn-io-msg { margin-top: 10px; }
.pn-import { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--pn-tile); }
.pn-import p { margin: 8px 0; font-size: 14px; }
.pn-import ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.pn-import li b { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) { .pn-layout { grid-template-columns: 216px minmax(0, 1fr); gap: 18px; } .pn-main { padding: 20px; } }
@media (max-width: 820px) {
  .pn { padding-top: 104px; }
  .pn-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pn-side { position: sticky; top: 64px; z-index: 30; max-height: none; overflow: visible; gap: 0; margin: 0 -16px; padding: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .pn-tabs { flex-direction: row; gap: 0; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pn-tabs::-webkit-scrollbar { display: none; }
  .pn-grp { flex-direction: row; flex: none; gap: 4px; padding: 0 10px; border-left: 1px solid var(--border); }
  .pn-grp:first-child { padding-left: 0; border-left: 0; }
  .pn-grp-h { display: none; }
  .pn-tab { width: auto; flex: none; white-space: nowrap; padding: 9px 12px; }
  .pn-tab.on::before { display: none; }
  .pn-tab .pn-badge:not(.warn) { display: none; }
  .pn-soon { display: none; }
  .pn-main { padding: 16px; border-radius: 18px; }
  .pn-gc-b { padding-left: 0; }
}
@media (max-width: 480px) {
  .pn-main { padding: 14px; }
  .pn-sec-ic { width: 34px; height: 34px; }
  .pn-card { padding: 14px; }
  .pn-card-h { flex-wrap: wrap; }
  .pn-card-act { margin-left: 0; width: 100%; justify-content: flex-end; }
  .pn-gc { padding: 14px; }
  .pn-gc-h { gap: 10px; }
  .pn-gc-ic { width: 32px; height: 32px; }
  .pn-gc-h > .pn-toggle { margin-top: 2px; }
  .pn-seg { display: flex; width: 100%; }
  .pn-seg-l { flex: 1; text-align: center; padding: 8px 6px; font-size: 13px; }
  .pn-fields-time { width: 100%; }
  .pn-fields-time .pn-field { flex: 1; }
  .pn-time { width: 100%; }
  .pn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-kpi-v { font-size: 22px; }
  .pn-health-sum small { margin-left: 0; width: 100%; }
  .pn-check { flex-wrap: wrap; }
  .pn-check .btn { margin-left: 34px; }
  .pn-tl-seg { min-width: 56px; padding: 6px 8px; }
  .pn-togs { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pn-flash { animation: none; outline: 2px solid var(--pn-bad); } }

.pn-hb-now-t { display: block; margin-top: 2px; font-size: 13px; }
