
/* TP Polaris Nexus 4.0 advanced modules */
.tp-version-list,.tp-step-list,.tp-notice-list{display:grid;gap:12px}.tp-version-item,.tp-step,.tp-notice-list article{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--tp-border,#22314a);border-radius:16px;background:var(--tp-surface,#0d1420);color:var(--tp-text,#eef5ff)}.tp-version-badge,.tp-step-number{min-width:56px;height:44px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#177eff,#8a3ffc);color:#fff;font-weight:800}.tp-version-copy{flex:1}.tp-version-copy p,.tp-step p,.tp-notice-list p{margin:4px 0 0;color:var(--tp-muted,#9aa8bd)}.tp-step-number{border-radius:50%;min-width:48px;height:48px}.tp-requirement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tp-requirement-grid>div{padding:16px;border:1px solid var(--tp-border,#22314a);border-radius:14px;background:var(--tp-surface,#0d1420)}.tp-requirement-grid span,.tp-requirement-grid strong{display:block}.tp-requirement-grid span{color:var(--tp-muted,#9aa8bd);font-size:12px}.tp-table-wrap{overflow:auto}.tp-table-wrap table{width:100%;border-collapse:collapse}.tp-table-wrap th,.tp-table-wrap td{padding:12px 14px;border:1px solid var(--tp-border,#22314a)}.tp-terminal{margin:24px 0;border:1px solid #21304a;border-radius:16px;overflow:hidden;background:#050b12;color:#d9f3ff;box-shadow:0 18px 40px rgba(0,0,0,.18)}.tp-terminal-head{display:flex;justify-content:space-between;padding:10px 14px;background:#0c1522;font-size:12px}.tp-terminal pre{margin:0;padding:18px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.tp-collection .tp-card-grid,.tp-related-posts .tp-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.tp-server-monitor{padding:18px;border:1px solid var(--tp-border,#22314a);border-radius:16px;background:var(--tp-surface,#0d1420)}.tp-server-monitor-head{display:flex;justify-content:space-between}.tp-server-state{font-size:12px}.tp-server-state.is-online{color:#4ade80}.tp-server-state.is-offline{color:#fb7185}.tp-server-stats{display:flex;gap:12px;margin-top:14px}.tp-server-stats span{padding:10px 12px;border-radius:10px;background:rgba(127,151,185,.09)}.tp-local-library{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tp-local-library-col{padding:18px;border:1px solid var(--tp-border,#22314a);border-radius:16px;background:var(--tp-surface,#0d1420)}.tp-local-item{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--tp-border,#22314a)}.tp-local-item a{color:var(--tp-text,#eef5ff)}.tp-reactions{display:flex;align-items:center;gap:10px;margin:18px 0;padding:12px 14px;border:1px solid var(--tp-border,#22314a);border-radius:14px}.tp-reactions button{border:0;background:transparent;font-size:22px;cursor:pointer}.tp-install-app{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid var(--tp-border,#22314a);border-radius:16px;background:var(--tp-surface,#0d1420)}.tp-install-app span{display:block;color:var(--tp-muted,#9aa8bd);font-size:13px}.tp-install-app button{border:0;border-radius:10px;padding:9px 14px;background:#207cff;color:#fff}.tp-local-library a:hover,.tp-notice-list article:hover,.tp-version-item:hover{border-color:#2c71ff}@media(max-width:900px){.tp-requirement-grid,.tp-local-library,.tp-collection .tp-card-grid,.tp-related-posts .tp-card-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.tp-requirement-grid,.tp-local-library,.tp-collection .tp-card-grid,.tp-related-posts .tp-card-grid{grid-template-columns:1fr}.tp-version-item{align-items:flex-start;flex-wrap:wrap}}
html.tp-light .tp-version-item,html.tp-light .tp-step,html.tp-light .tp-notice-list article,html.tp-light .tp-requirement-grid>div,html.tp-light .tp-server-monitor,html.tp-light .tp-local-library-col,html.tp-light .tp-reactions,html.tp-light .tp-install-app{background:#fff;color:#0f172a;border-color:#d9e1ec}.tp-light .tp-version-copy p,.tp-light .tp-step p,.tp-light .tp-notice-list p,.tp-light .tp-install-app span,.tp-light .tp-requirement-grid span{color:#5d6b7e}.tp-light .tp-terminal{background:#101722}

/* TP Polaris Nexus 4.0.1 visual fixes */
.tp-version-list{gap:14px}.tp-version-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-height:96px}.tp-version-badge{min-width:82px;padding:0 14px;white-space:nowrap}.tp-version-copy strong{font-size:15px}.tp-version-copy p{line-height:1.7}.tp-version-copy p:empty{display:none}
.tp-server-monitor{box-shadow:0 12px 30px rgba(0,0,0,.12)}.tp-server-monitor-empty{border-style:dashed}.tp-server-monitor-empty p{margin:10px 0 0;color:var(--tp-muted,#9aa8bd)}.tp-server-state.is-warning{color:#f59e0b}.tp-server-updated{display:block;margin-top:12px;color:var(--tp-muted,#9aa8bd);font-size:11px}
.tp-server-stats{flex-wrap:wrap}.tp-server-stats span{min-width:110px}
.tp-reactions{flex-wrap:wrap}.tp-reactions-label{margin-right:auto;font-size:13px;color:var(--tp-text,#eef5ff)}.tp-reactions button{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid transparent;border-radius:9px}.tp-reactions button:hover,.tp-reactions button.is-selected{background:rgba(96,165,250,.10);border-color:var(--tp-border,#22314a)}.tp-reactions button b{font-size:12px;font-weight:700;color:var(--tp-muted,#9aa8bd)}
.tp-ui-comparison{overflow:hidden}.tp-ui-comparison-scroll{overflow-x:auto}.tp-ui-comparison table{min-width:620px}.tp-ui-comparison td,.tp-ui-comparison th{vertical-align:top;line-height:1.7}.tp-ui-comparison td p:last-child,.tp-ui-comparison td ul:last-child,.tp-ui-comparison td ol:last-child{margin-bottom:0}.tp-ui-comparison td a{color:#60a5fa;text-decoration:underline}
.tp-ui-accordion details>div{line-height:1.75}.tp-ui-accordion details>div p:first-child{margin-top:0}.tp-ui-accordion details>div p:last-child{margin-bottom:0}.tp-ui-accordion details>div pre{overflow:auto;padding:14px;border-radius:10px;background:#050b12}.tp-ui-accordion details>div img{max-width:100%;height:auto}
.tp-ui-embed,.tp-video-wrap{width:100%;margin:24px 0;border-radius:16px;overflow:hidden;background:#05090e;border:1px solid var(--tp-line,#1b2a45);aspect-ratio:16/9}.tp-ui-embed iframe,.tp-video-wrap iframe{display:block;width:100%;height:100%;border:0}
.tp-install-app{position:relative}.tp-install-app[hidden]{display:none!important}
@media(max-width:600px){.tp-version-item{grid-template-columns:1fr}.tp-version-badge{width:max-content}.tp-version-item .tp-btn{width:max-content}.tp-reactions-label{width:100%;margin-right:0}.tp-server-stats span{flex:1;min-width:calc(50% - 6px)}}

/* Botble comment form: prevent the legacy inline form styling seen under posts. */
.tp-post-content-card #comments,.tp-post-content-card .comments-area,.tp-post-content-card .comment-form-wrap,.tp-post-content-card .comment-form{width:100%;max-width:100%}
.tp-post-content-card #comments input:not([type="checkbox"]):not([type="radio"]),.tp-post-content-card #comments textarea,.tp-post-content-card .comments-area input:not([type="checkbox"]):not([type="radio"]),.tp-post-content-card .comments-area textarea,.tp-post-content-card .comment-form input:not([type="checkbox"]):not([type="radio"]),.tp-post-content-card .comment-form textarea{box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:46px;padding:12px 14px!important;border:1px solid var(--tp-line,#1b2a45)!important;border-radius:10px!important;background:var(--tp-input,#07101a)!important;color:var(--tp-text,#eef5ff)!important;display:block!important;font:inherit!important;line-height:1.45!important}
.tp-post-content-card .comment-form textarea,.tp-post-content-card #comments textarea{min-height:130px;resize:vertical}
.tp-post-content-card #comments label,.tp-post-content-card .comments-area label,.tp-post-content-card .comment-form label{display:block!important;margin:0 0 6px!important;color:var(--tp-text,#eef5ff)!important;font-size:13px!important;font-weight:600!important}
.tp-post-content-card #comments p,.tp-post-content-card .comments-area p,.tp-post-content-card .comment-form p{margin:0 0 14px}.tp-post-content-card #comments .form-group,.tp-post-content-card .comments-area .form-group,.tp-post-content-card .comment-form .form-group{width:100%!important;display:block!important}
.tp-post-content-card #comments button,.tp-post-content-card #comments input[type="submit"],.tp-post-content-card .comments-area button,.tp-post-content-card .comments-area input[type="submit"],.tp-post-content-card .comment-form button,.tp-post-content-card .comment-form input[type="submit"]{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:10px 18px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#177eff,#8a3ffc)!important;color:#fff!important;font-weight:700!important;cursor:pointer!important}
html.tp-light .tp-post-content-card #comments input:not([type="checkbox"]):not([type="radio"]),html.tp-light .tp-post-content-card #comments textarea,html.tp-light .tp-post-content-card .comments-area input:not([type="checkbox"]):not([type="radio"]),html.tp-light .tp-post-content-card .comments-area textarea,html.tp-light .tp-post-content-card .comment-form input:not([type="checkbox"]):not([type="radio"]),html.tp-light .tp-post-content-card .comment-form textarea{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}
.tp-collection-empty,.tp-project-dashboard-empty{padding:22px;border:1px dashed var(--tp-border,#22314a);border-radius:16px;background:var(--tp-surface,#0d1420);color:var(--tp-muted,#9aa8bd)}.tp-collection-empty p,.tp-project-dashboard-empty p{margin:8px 0 0}.tp-project-dashboard{padding:22px;border:1px solid var(--tp-border,#22314a);border-radius:18px;background:var(--tp-surface,#0d1420);color:var(--tp-text,#eef5ff)}.tp-project-dashboard-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tp-project-dashboard-head h2{margin:4px 0 0}.tp-project-status{padding:7px 10px;border-radius:999px;background:rgba(74,222,128,.12);color:#4ade80;font-size:12px;font-weight:700}.tp-project-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.tp-project-facts>div{padding:13px;border:1px solid var(--tp-border,#22314a);border-radius:12px}.tp-project-facts small{display:block;color:var(--tp-muted,#9aa8bd);font-size:11px}.tp-project-facts strong{display:block;margin-top:4px}.tp-project-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.tp-project-links a{display:inline-flex;padding:9px 13px;border:1px solid var(--tp-border,#22314a);border-radius:10px}.tp-project-links a.primary{background:#207cff;color:#fff;border-color:#207cff}@media(max-width:600px){.tp-project-facts{grid-template-columns:1fr 1fr}.tp-project-dashboard-head{flex-direction:column}}
.tp-status-page{padding:22px;border:1px solid var(--tp-border,#22314a);border-radius:18px;background:var(--tp-surface,#0d1420)}.tp-status-page .tp-section-head{margin-bottom:16px}.tp-status-grid{display:grid;gap:10px}.tp-status-grid article{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid var(--tp-border,#22314a);border-radius:12px;background:rgba(127,151,185,.04)}.tp-status-dot{width:10px;height:10px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.10)}.tp-status-dot.is-online{background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.10)}.tp-status-grid strong{display:block}.tp-status-grid small{display:block;margin-top:3px;color:var(--tp-muted,#9aa8bd)}.tp-status-grid article>span{font-size:12px;font-weight:700;color:#22c55e}.tp-status-grid article>span:not(:empty){white-space:nowrap}.tp-light .tp-status-page,.tp-light .tp-status-grid article{background:#fff;border-color:#d9e1ec;color:#0f172a}

/* TP Polaris 4.0.4: comment form fallback. Botble may mount comments outside the article card. */
.tp-post-page #comments,.tp-post-page .comments-area,.tp-post-page .comment-form-wrap,.tp-post-page .comment-form{width:100%;max-width:100%;box-sizing:border-box}
.tp-post-page #comments input:not([type="checkbox"]):not([type="radio"]),.tp-post-page #comments textarea,.tp-post-page .comments-area input:not([type="checkbox"]):not([type="radio"]),.tp-post-page .comments-area textarea,.tp-post-page .comment-form input:not([type="checkbox"]):not([type="radio"]),.tp-post-page .comment-form textarea{box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:46px;padding:12px 14px!important;border:1px solid var(--tp-line,#1b2a45)!important;border-radius:10px!important;background:var(--tp-input,#07101a)!important;color:var(--tp-text,#eef5ff)!important;display:block!important;font:inherit!important;line-height:1.45!important}
.tp-post-page #comments textarea,.tp-post-page .comments-area textarea,.tp-post-page .comment-form textarea{min-height:130px;resize:vertical}
.tp-post-page #comments label,.tp-post-page .comments-area label,.tp-post-page .comment-form label{display:block!important;margin:0 0 6px!important;color:var(--tp-text,#eef5ff)!important;font-size:13px!important;font-weight:600!important}
.tp-post-page #comments p,.tp-post-page .comments-area p,.tp-post-page .comment-form p{margin:0 0 14px}.tp-post-page #comments .form-group,.tp-post-page .comments-area .form-group,.tp-post-page .comment-form .form-group{width:100%!important;display:block!important}
.tp-post-page #comments button,.tp-post-page #comments input[type="submit"],.tp-post-page .comments-area button,.tp-post-page .comments-area input[type="submit"],.tp-post-page .comment-form button,.tp-post-page .comment-form input[type="submit"]{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:10px 18px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#177eff,#8a3ffc)!important;color:#fff!important;font-weight:700!important;cursor:pointer!important}
.tp-video-wrap video{display:block;width:100%;height:100%;object-fit:contain;background:#000}

/* TP Polaris 4.0.5 */
.tp-video-invalid{display:grid!important;place-items:center;min-height:180px;padding:24px;aspect-ratio:auto!important}
.tp-video-invalid-inner{display:grid;gap:8px;text-align:center;color:var(--tp-text,#eef5ff)}
.tp-video-invalid-inner span{color:var(--tp-muted,#9aa8bd);font-size:13px}
.post--single #comments,.post--single .comments-area,.post--single .comment-form-wrap,.post--single .comment-form{width:100%;max-width:100%;box-sizing:border-box}
.post--single #comments input:not([type="checkbox"]):not([type="radio"]),.post--single #comments textarea,.post--single .comments-area input:not([type="checkbox"]):not([type="radio"]),.post--single .comments-area textarea,.post--single .comment-form input:not([type="checkbox"]):not([type="radio"]),.post--single .comment-form textarea{box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:46px;padding:12px 14px!important;border:1px solid var(--tp-line,#1b2a45)!important;border-radius:10px!important;background:var(--tp-input,#07101a)!important;color:var(--tp-text,#eef5ff)!important;display:block!important;font:inherit!important;line-height:1.45!important}
.post--single #comments textarea,.post--single .comments-area textarea,.post--single .comment-form textarea{min-height:130px;resize:vertical}
.post--single #comments label,.post--single .comments-area label,.post--single .comment-form label{display:block!important;margin:0 0 6px!important;color:var(--tp-text,#eef5ff)!important;font-size:13px!important;font-weight:600!important}
.post--single #comments p,.post--single .comments-area p,.post--single .comment-form p{margin:0 0 14px}
.post--single #comments .form-group,.post--single .comments-area .form-group,.post--single .comment-form .form-group{width:100%!important;display:block!important}
.post--single #comments button,.post--single #comments input[type="submit"],.post--single .comments-area button,.post--single .comments-area input[type="submit"],.post--single .comment-form button,.post--single .comment-form input[type="submit"]{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:10px 18px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#177eff,#8a3ffc)!important;color:#fff!important;font-weight:700!important;cursor:pointer!important}
html.tp-light .post--single #comments input:not([type="checkbox"]):not([type="radio"]),html.tp-light .post--single #comments textarea,html.tp-light .post--single .comments-area input:not([type="checkbox"]):not([type="radio"]),html.tp-light .post--single .comments-area textarea,html.tp-light .post--single .comment-form input:not([type="checkbox"]):not([type="radio"]),html.tp-light .post--single .comment-form textarea{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}


/* TP Polaris 4.0.6: Botble comments can be mounted by the comment plugin
   with different wrappers depending on whether the content is a post or page. */
body .tp-post-page #comments,
body .tp-post-page .comments-area,
body .tp-post-page .comment-form-wrap,
body .tp-post-page .comment-form,
body .tp-generic-page #comments,
body .tp-generic-page .comments-area,
body .tp-generic-page .comment-form-wrap,
body .tp-generic-page .comment-form,
body .post--single #comments,
body .post--single .comments-area,
body .post--single .comment-form-wrap,
body .post--single .comment-form{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
body .tp-post-page #comments input:not([type=checkbox]):not([type=radio]),
body .tp-post-page #comments textarea,
body .tp-post-page .comments-area input:not([type=checkbox]):not([type=radio]),
body .tp-post-page .comments-area textarea,
body .tp-post-page .comment-form input:not([type=checkbox]):not([type=radio]),
body .tp-post-page .comment-form textarea,
body .tp-generic-page #comments input:not([type=checkbox]):not([type=radio]),
body .tp-generic-page #comments textarea,
body .tp-generic-page .comments-area input:not([type=checkbox]):not([type=radio]),
body .tp-generic-page .comments-area textarea,
body .tp-generic-page .comment-form input:not([type=checkbox]):not([type=radio]),
body .tp-generic-page .comment-form textarea,
body .post--single #comments input:not([type=checkbox]):not([type=radio]),
body .post--single #comments textarea,
body .post--single .comments-area input:not([type=checkbox]):not([type=radio]),
body .post--single .comments-area textarea,
body .post--single .comment-form input:not([type=checkbox]):not([type=radio]),
body .post--single .comment-form textarea{width:100%!important;max-width:100%!important;min-height:46px!important;box-sizing:border-box!important;display:block!important;padding:12px 14px!important;border:1px solid var(--tp-line,#1b2a45)!important;border-radius:10px!important;background:var(--tp-input,#07101a)!important;color:var(--tp-text,#eef5ff)!important;font:inherit!important;line-height:1.45!important}
body .tp-post-page #comments textarea,body .tp-generic-page #comments textarea,body .post--single #comments textarea{min-height:130px!important;resize:vertical!important}
body .tp-post-page #comments label,body .tp-generic-page #comments label,body .post--single #comments label{display:block!important;margin:0 0 6px!important;color:var(--tp-text,#eef5ff)!important;font-size:13px!important;font-weight:600!important}
body .tp-post-page #comments p,body .tp-generic-page #comments p,body .post--single #comments p{margin:0 0 14px!important}
body .tp-post-page #comments .form-group,body .tp-generic-page #comments .form-group,body .post--single #comments .form-group{width:100%!important;display:block!important}
body .tp-post-page #comments button,body .tp-post-page #comments input[type=submit],body .tp-generic-page #comments button,body .tp-generic-page #comments input[type=submit],body .post--single #comments button,body .post--single #comments input[type=submit]{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px!important;padding:10px 18px!important;border:0!important;border-radius:10px!important;background:linear-gradient(135deg,#177eff,#8a3ffc)!important;color:#fff!important;font-weight:700!important;cursor:pointer!important}
.tp-video-placeholder,.tp-embed-placeholder{display:grid!important;place-items:center;min-height:180px;padding:24px!important;background:var(--tp-surface,#0d1420);color:var(--tp-text,#eef5ff)}
.tp-video-placeholder-inner{display:grid;gap:7px;text-align:center}.tp-video-placeholder-inner span{font-size:11px;color:var(--tp-muted,#9aa8bd);text-transform:uppercase;letter-spacing:.08em}.tp-video-placeholder-inner strong{font-size:15px}
.tp-video-wrap video,.tp-video-wrap iframe,.tp-ui-embed iframe{display:block;width:100%;height:100%;border:0}


/* TP Polaris Nexus 4.0.7 — robust light-mode surface/text system */
:root{
  --tp-adv-surface:#0d1420;
  --tp-adv-surface-2:#050b12;
  --tp-adv-text:#eef5ff;
  --tp-adv-muted:#9aa8bd;
  --tp-adv-border:#22314a;
}
html.tp-light{
  --tp-adv-surface:#ffffff;
  --tp-adv-surface-2:#f5f8fc;
  --tp-adv-text:#0f172a;
  --tp-adv-muted:#5d6b7e;
  --tp-adv-border:#d9e1ec;
}

/* Advanced components use theme variables instead of hard-coded dark colors. */
.tp-version-item,
.tp-step,
.tp-notice-list article,
.tp-requirement-grid>div,
.tp-server-monitor,
.tp-local-library-col,
.tp-reactions,
.tp-install-app,
.tp-collection-empty,
.tp-project-dashboard,
.tp-status-page{
  background:var(--tp-adv-surface)!important;
  color:var(--tp-adv-text)!important;
  border-color:var(--tp-adv-border)!important;
}
.tp-version-copy p,.tp-step p,.tp-notice-list p,
.tp-install-app span,.tp-requirement-grid span,
.tp-server-updated,.tp-server-monitor-empty p,
.tp-reactions-label,.tp-reactions button b,
.tp-project-facts small,.tp-status-grid small{
  color:var(--tp-adv-muted)!important;
}
.tp-version-copy strong,.tp-step strong,.tp-notice-list strong,
.tp-requirement-grid strong,.tp-server-monitor-head,
.tp-local-library-col h3,.tp-reactions,
.tp-project-dashboard-head h2,.tp-project-facts strong,
.tp-status-page,.tp-status-grid strong{
  color:var(--tp-adv-text)!important;
}
.tp-collection .tp-card-grid .tp-card,
.tp-related-posts .tp-card-grid .tp-card{
  background:var(--tp-adv-surface)!important;
  color:var(--tp-adv-text)!important;
  border-color:var(--tp-adv-border)!important;
}
.tp-terminal{
  background:var(--tp-adv-surface-2)!important;
  color:var(--tp-adv-text)!important;
  border-color:var(--tp-adv-border)!important;
}
.tp-terminal-head{
  background:var(--tp-adv-surface)!important;
  color:var(--tp-adv-text)!important;
}
.tp-terminal pre,.tp-terminal code{
  color:var(--tp-adv-text)!important;
}
.tp-table-wrap,
.tp-ui-comparison{
  color:var(--tp-adv-text)!important;
}
.tp-table-wrap table,.tp-ui-comparison table{
  color:var(--tp-adv-text)!important;
}
.tp-table-wrap th,.tp-table-wrap td,
.tp-ui-comparison th,.tp-ui-comparison td{
  border-color:var(--tp-adv-border)!important;
  color:var(--tp-adv-text)!important;
}
.tp-ui-accordion details>div pre{
  background:var(--tp-adv-surface-2)!important;
  color:var(--tp-adv-text)!important;
}

/* Explicit light surfaces for the advanced portal blocks. */
html.tp-light .tp-terminal{
  background:#f5f8fc!important;
  color:#0f172a!important;
}
html.tp-light .tp-terminal-head{
  background:#eaf0f7!important;
  color:#0f172a!important;
}
html.tp-light .tp-terminal pre,
html.tp-light .tp-terminal code{
  color:#0f172a!important;
}
html.tp-light .tp-collection-empty,
html.tp-light .tp-project-dashboard,
html.tp-light .tp-status-page{
  background:#fff!important;
  color:#0f172a!important;
  border-color:#d9e1ec!important;
}

/* Do not let editor/label overlays steal input clicks. */
.tp-page form.contact-form label,
.tp-page form.contact-form .contact-label,
.tp-article-content form.contact-form label,
.tp-article-content form.contact-form .contact-label{
  pointer-events:none!important;
}
.tp-page form.contact-form input,
.tp-page form.contact-form textarea,
.tp-page form.contact-form select,
.tp-article-content form.contact-form input,
.tp-article-content form.contact-form textarea,
.tp-article-content form.contact-form select{
  pointer-events:auto!important;
  position:relative!important;
  z-index:60!important;
  user-select:text!important;
  -webkit-user-select:text!important;
  touch-action:manipulation!important;
}
.tp-page form.contact-form .form-group,
.tp-page form.contact-form .contact-form-group,
.tp-article-content form.contact-form .form-group,
.tp-article-content form.contact-form .contact-form-group{
  position:relative!important;
  z-index:55!important;
}


/* 4.0.7 component descendants: override legacy card typography in light mode. */
html.tp-light .tp-collection .tp-card,
html.tp-light .tp-collection .tp-card h3,
html.tp-light .tp-collection .tp-card p,
html.tp-light .tp-collection .tp-card small,
html.tp-light .tp-collection .tp-card strong,
html.tp-light .tp-collection .tp-card span{
  color:#0f172a!important;
}
html.tp-light .tp-collection .tp-card p,
html.tp-light .tp-collection .tp-card small{
  color:#5d6b7e!important;
}
html.tp-light .tp-project-dashboard,
html.tp-light .tp-project-dashboard h2,
html.tp-light .tp-project-dashboard h3,
html.tp-light .tp-project-dashboard p,
html.tp-light .tp-project-dashboard strong,
html.tp-light .tp-project-dashboard span,
html.tp-light .tp-project-dashboard a{
  color:#0f172a!important;
}
html.tp-light .tp-project-dashboard .tp-kicker{color:#2563eb!important;}
html.tp-light .tp-project-status{color:#15803d!important;}
html.tp-light .tp-project-facts small{color:#64748b!important;}
html.tp-light .tp-project-links a{
  color:#0f172a!important;
  background:#f5f8fc!important;
}
html.tp-light .tp-project-links a.primary{
  color:#fff!important;
  background:#207cff!important;
  border-color:#207cff!important;
}
html.tp-light .tp-version-item a,
html.tp-light .tp-step a,
html.tp-light .tp-notice-list a,
html.tp-light .tp-server-monitor a,
html.tp-light .tp-local-library a{
  color:#2563eb!important;
}
html.tp-light .tp-version-item .tp-version-copy p,
html.tp-light .tp-step p,
html.tp-light .tp-notice-list p{
  color:#5d6b7e!important;
}


/* TP Polaris Nexus 4.0.8 - forced light surfaces for advanced blocks. */
html.tp-light .tp-terminal,
html.tp-light .tp-terminal-head,
html.tp-light .tp-terminal pre,
html.tp-light .tp-terminal code,
html.tp-light .tp-collection-empty,
html.tp-light .tp-project-dashboard,
html.tp-light .tp-project-dashboard .tp-project-facts>div,
html.tp-light .tp-server-monitor,
html.tp-light .tp-version-item,
html.tp-light .tp-step,
html.tp-light .tp-notice-list article,
html.tp-light .tp-requirement-grid>div,
html.tp-light .tp-local-library-col,
html.tp-light .tp-reactions,
html.tp-light .tp-install-app {
  background-color:#ffffff !important;
  color:#0f172a !important;
  border-color:#d9e1ec !important;
}
html.tp-light .tp-terminal { background:#f5f8fc !important; }
html.tp-light .tp-terminal-head { background:#eaf0f7 !important; }
html.tp-light .tp-terminal pre,
html.tp-light .tp-terminal code { color:#0f172a !important; }
html.tp-light .tp-project-dashboard .tp-project-status { color:#166534 !important; background:#dcfce7 !important; }
html.tp-light .tp-project-dashboard .tp-kicker { color:#2563eb !important; }
html.tp-light .tp-project-dashboard .tp-project-facts small,
html.tp-light .tp-project-dashboard p,
html.tp-light .tp-project-dashboard .tp-project-status + * { color:#64748b !important; }
html.tp-light .tp-collection .tp-card,
html.tp-light .tp-collection .tp-card * { color:#0f172a !important; }
html.tp-light .tp-collection .tp-card p,
html.tp-light .tp-collection .tp-card small { color:#64748b !important; }
html.tp-light .tp-server-monitor .tp-server-updated,
html.tp-light .tp-server-monitor small { color:#64748b !important; }

/* Contact forms: use broad selectors because Botble Contact plugin wrappers vary by version. */
html body form.contact-form,
html body .contact-form,
html body .contact-form-wrapper,
html body .contact-form-wrapper form,
html body .contact-form-container,
html body .contact-form-container form {
  position:relative !important;
  z-index:1000 !important;
  pointer-events:auto !important;
  isolation:isolate !important;
  overflow:visible !important;
}
html body form.contact-form::before,
html body form.contact-form::after,
html body .contact-form-wrapper::before,
html body .contact-form-wrapper::after,
html body .contact-form-container::before,
html body .contact-form-container::after {
  pointer-events:none !important;
}
html body form.contact-form input,
html body form.contact-form textarea,
html body form.contact-form select,
html body .contact-form input,
html body .contact-form textarea,
html body .contact-form select,
html body .contact-form-wrapper input,
html body .contact-form-wrapper textarea,
html body .contact-form-wrapper select,
html body .contact-form-container input,
html body .contact-form-container textarea,
html body .contact-form-container select {
  position:relative !important;
  z-index:1002 !important;
  pointer-events:auto !important;
  user-select:text !important;
  -webkit-user-select:text !important;
  touch-action:manipulation !important;
  cursor:text !important;
}
html body form.contact-form label,
html body .contact-form label,
html body .contact-form-wrapper label,
html body .contact-form-container label {
  pointer-events:none !important;
  position:relative !important;
  z-index:1001 !important;
}
html.tp-light body form.contact-form input,
html.tp-light body form.contact-form textarea,
html.tp-light body form.contact-form select,
html.tp-light body .contact-form input,
html.tp-light body .contact-form textarea,
html.tp-light body .contact-form select,
html.tp-light body .contact-form-wrapper input,
html.tp-light body .contact-form-wrapper textarea,
html.tp-light body .contact-form-wrapper select {
  background:#fff !important;
  color:#0f172a !important;
  border-color:#cbd5e1 !important;
}

/* TP Polaris Nexus 4.0.9 - contact isolation and block stacking fix */
/* Keep shortcode blocks in normal document flow so one block cannot sit over another. */
html body .tp-article-content > .tp-shortcode-block,
html body .tp-page-main > .tp-shortcode-block,
html body .tp-home-editor-content > .tp-shortcode-block {
  position: relative !important;
  float: none !important;
  clear: both !important;
  z-index: 1 !important;
  transform: none !important;
  isolation: isolate;
}
/* Forms get their own top stacking layer. */
html body .tp-article-content > .tp-shortcode-block:has(form),
html body .tp-page-main > .tp-shortcode-block:has(form) {
  z-index: 9999 !important;
}
html body form.contact-form,
html body form[class*="contact" i],
html body .contact-form,
html body [class*="contact-form" i] {
  position: relative !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  z-index: 10000 !important;
  isolation: isolate !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
html body form.contact-form input,
html body form.contact-form textarea,
html body form.contact-form select,
html body form[class*="contact" i] input,
html body form[class*="contact" i] textarea,
html body form[class*="contact" i] select,
html body .contact-form input,
html body .contact-form textarea,
html body .contact-form select,
html body [class*="contact-form" i] input,
html body [class*="contact-form" i] textarea,
html body [class*="contact-form" i] select {
  position: relative !important;
  float: none !important;
  z-index: 10001 !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  touch-action: manipulation !important;
  cursor: text !important;
}
/* Do not let unrelated absolute layers cover the contact area. */
html body form.contact-form ~ *,
html body .contact-form ~ * {
  pointer-events: auto;
}


/* TP Polaris 4.1 - real-time monitor */
.tp-server-monitor-title{display:block;font-weight:800;font-size:15px}.tp-server-monitor-target{display:block;margin-top:4px;color:var(--tp-muted,#9aa8bd);font-size:11px;word-break:break-all}.tp-server-state.is-degraded{color:#f59e0b}.tp-server-monitor-checks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.tp-monitor-check{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--tp-border,#22314a);border-radius:10px;background:rgba(127,151,185,.05);font-size:11px}.tp-monitor-check strong{font-size:11px}.tp-monitor-check small{color:var(--tp-muted,#9aa8bd)}.tp-monitor-check-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.10)}.tp-monitor-check.is-online .tp-monitor-check-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.10)}.tp-monitor-check.is-offline .tp-monitor-check-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.10)}.tp-monitor-check.is-blocked .tp-monitor-check-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.10)}.tp-server-stats{margin-top:10px}.tp-server-state{font-weight:800}.tp-server-state.is-offline{color:#ef4444}.tp-server-state.is-online{color:#22c55e}.tp-server-state.is-warning{color:#f59e0b}.tp-light .tp-monitor-check{background:#fff;border-color:#d9e1ec}.tp-light .tp-server-monitor-target,.tp-light .tp-server-updated,.tp-light .tp-monitor-check small{color:#64748b}

/* v4.2 portal refinements */
html.tp-light .tp-status-grid article>span.is-warning{color:#b45309!important}
html.tp-light .tp-status-grid article>span.is-offline{color:#b91c1c!important}
html.tp-light .tp-status-grid article>span.is-unknown{color:#64748b!important}
.tp-status-dot.is-offline{background:#ef4444!important;box-shadow:0 0 0 5px rgba(239,68,68,.10)!important}
.tp-status-dot.is-unknown{background:#94a3b8!important;box-shadow:0 0 0 5px rgba(148,163,184,.10)!important}
.tp-status-grid article>span.is-online{color:#22c55e!important}
.tp-status-grid article>span.is-warning{color:#f59e0b!important}
.tp-status-grid article>span.is-offline{color:#ef4444!important}
.tp-status-grid article>span.is-unknown{color:#94a3b8!important}

/* v4.2 live server cards */
.tp-server-live-state{display:flex;align-items:center;gap:7px;margin:7px 0 2px;font-size:11px;font-weight:700}
.tp-monitor-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.10)}
.tp-monitor-live-dot.is-online{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.10)}
.tp-monitor-live-dot.is-degraded{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.10)}
.tp-monitor-live-dot.is-offline{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.10)}
.tp-monitor-live-dot.is-blocked{background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.10)}
.tp-server-live-state .tp-monitor-live-text{color:var(--tp-muted,#9aa8bd)}
html.tp-light .tp-server-live-state .tp-monitor-live-text{color:#64748b}


/* TP Polaris Nexus 4.3.0 — independent custom contact forms */
.tp-contact-form{margin:28px 0;padding:28px;border:1px solid var(--tp-adv-border,#22314a);border-radius:16px;background:var(--tp-adv-surface,#0d1420);color:var(--tp-adv-text,#eef5ff);box-sizing:border-box;isolation:isolate;position:relative;z-index:2}
.tp-contact-form-head{margin-bottom:22px}.tp-contact-form-head h2{margin:6px 0 8px;color:inherit;font-size:26px;line-height:1.15}.tp-contact-form-head p{margin:0;color:var(--tp-adv-muted,#9aa8bd)}
.tp-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tp-contact-field{min-width:0;position:relative;z-index:3}.tp-contact-field-full{grid-column:1/-1}.tp-contact-field label{display:block;margin:0 0 7px;color:inherit;font-weight:700;font-size:14px;pointer-events:none}.tp-contact-field label span{color:#ef4444}
.tp-custom-contact-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.tp-custom-contact-form select,.tp-custom-contact-form textarea{width:100%;box-sizing:border-box;min-height:46px;border:1px solid var(--tp-adv-border,#22314a);border-radius:10px;background:var(--tp-adv-surface-2,#050b12);color:var(--tp-adv-text,#eef5ff);padding:12px 14px;font:inherit;outline:none;position:relative;z-index:5;pointer-events:auto;user-select:text;touch-action:manipulation}
.tp-custom-contact-form textarea{min-height:150px;resize:vertical}.tp-custom-contact-form input[type=file]{display:block;width:100%;padding:10px;border:1px dashed var(--tp-adv-border,#22314a);border-radius:10px;color:var(--tp-adv-text,#eef5ff);background:transparent}
.tp-custom-contact-form input:focus,.tp-custom-contact-form select:focus,.tp-custom-contact-form textarea:focus{border-color:#177eff;box-shadow:0 0 0 3px rgba(23,126,255,.14)}
.tp-contact-submit{margin-top:20px;border:0;border-radius:10px;min-height:46px;padding:11px 20px;background:linear-gradient(135deg,#177eff,#8a3ffc);color:#fff;font:inherit;font-weight:800;cursor:pointer;position:relative;z-index:6}.tp-contact-submit:disabled{opacity:.65;cursor:wait}.tp-contact-result{margin-top:14px;min-height:20px;font-weight:700}.tp-contact-result.is-success{color:#22c55e}.tp-contact-result.is-error{color:#ef4444}.tp-contact-error{display:block;min-height:16px;margin-top:5px;color:#ef4444;font-size:12px}.tp-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
html.tp-light .tp-contact-form{background:#fff;color:#0f172a;border-color:#d9e1ec}.tp-light .tp-custom-contact-form input:not([type=checkbox]):not([type=radio]):not([type=file]),html.tp-light .tp-custom-contact-form select,html.tp-light .tp-custom-contact-form textarea{background:#f8fafc;color:#0f172a;border-color:#cbd5e1}.tp-light .tp-custom-contact-form input[type=file]{color:#0f172a;border-color:#cbd5e1}
@media(max-width:700px){.tp-contact-grid{grid-template-columns:1fr}.tp-contact-field-half{grid-column:1/-1}.tp-contact-form{padding:20px}.tp-contact-submit{width:100%}}

.tp-contact-choice-list{display:flex;flex-wrap:wrap;gap:10px}.tp-contact-choice{display:inline-flex!important;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--tp-adv-border,#22314a);border-radius:10px;background:var(--tp-adv-surface-2,#050b12);color:var(--tp-adv-text,#eef5ff)!important;pointer-events:auto!important}.tp-contact-choice input{width:auto!important;min-height:auto!important;position:static!important;z-index:auto!important}.tp-contact-check{width:max-content;margin:0}.tp-light .tp-contact-choice{background:#f8fafc;color:#0f172a!important;border-color:#cbd5e1}

/* TP Forms 4.3.1 - automatic form + inbox-safe layout */
.tp-contact-form-auto{margin-top:32px;clear:both;position:relative;z-index:1}
.tp-contact-form-auto input,.tp-contact-form-auto textarea,.tp-contact-form-auto select{pointer-events:auto!important;position:relative;z-index:2}
.tp-contact-form-auto label{position:relative;z-index:3}

/* TP Contact Form submission status */
.tp-contact-submit-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px}
.tp-contact-submit-row .tp-contact-result{margin:0;min-height:24px;display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;line-height:1.35;opacity:1;visibility:visible}
.tp-contact-submit-row .tp-contact-result:empty{display:none}
.tp-contact-submit-row .tp-contact-result.is-success{color:#22c55e}
.tp-contact-submit-row .tp-contact-result.is-success::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;font-size:12px}
.tp-contact-submit-row .tp-contact-result.is-error{color:#ef4444}
.tp-contact-submit-row .tp-contact-result.is-error::before{content:"!";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;font-size:12px}
.tp-contact-submit:disabled{opacity:.65;cursor:wait}

/* TP Polaris Nexus 4.5.0 - Advanced Server Monitor */
.tp-server-monitor-v2{position:relative;overflow:hidden;padding:22px;border-radius:20px;background:linear-gradient(180deg,var(--tp-adv-surface,#0d1420),var(--tp-adv-surface-2,#08101b));border:1px solid var(--tp-adv-border,#22314a);box-shadow:0 18px 50px rgba(0,0,0,.16);color:var(--tp-adv-text,#eef5ff)}
.tp-server-monitor-v2:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:2px;background:linear-gradient(90deg,#177eff,#8a3ffc,transparent);opacity:.9}
.tp-server-monitor-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tp-server-monitor-brand{display:flex;align-items:center;gap:12px;min-width:0}.tp-server-monitor-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#177eff,#8a3ffc);color:#fff;font-size:23px;font-weight:900;box-shadow:0 10px 25px rgba(23,126,255,.2)}
.tp-server-monitor-v2 .tp-server-monitor-title{font-size:17px;font-weight:900;line-height:1.2;color:var(--tp-adv-text,#eef5ff)}.tp-server-monitor-v2 .tp-server-monitor-target{margin-top:4px;color:var(--tp-adv-muted,#9aa8bd);font-size:11px;max-width:52ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-server-monitor-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.tp-server-game-badge{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid var(--tp-adv-border,#22314a);border-radius:999px;background:rgba(23,126,255,.07);color:var(--tp-adv-muted,#9aa8bd);font-size:10px;font-weight:800;letter-spacing:.04em}.tp-server-state{font-size:11px;font-weight:900;letter-spacing:.04em}.tp-server-state.is-online{color:#22c55e}.tp-server-state.is-offline{color:#ef4444}.tp-server-state.is-degraded{color:#f59e0b}.tp-server-state.is-warning{color:#f59e0b}
.tp-server-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:20px;padding:16px;border:1px solid var(--tp-adv-border,#22314a);border-radius:16px;background:rgba(127,151,185,.04)}.tp-server-primary{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;min-width:0}.tp-server-primary [data-srv-headline]{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-server-primary [data-srv-subtitle]{grid-column:2;margin-top:4px;color:var(--tp-adv-muted,#9aa8bd);font-size:11px}.tp-server-live-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 5px rgba(148,163,184,.1)}.tp-server-live-dot.is-online{background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.1)}.tp-server-live-dot.is-degraded{background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.1)}.tp-server-live-dot.is-offline{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.1)}
.tp-server-ping-card{min-width:92px;text-align:right}.tp-server-ping-card small{display:block;color:var(--tp-adv-muted,#9aa8bd);font-size:10px}.tp-server-ping-card strong{font-size:24px;line-height:1.15}.tp-server-ping-card span{font-size:10px;color:var(--tp-adv-muted,#9aa8bd);margin-left:2px}
.tp-server-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.tp-server-metric{padding:13px 14px;border:1px solid var(--tp-adv-border,#22314a);border-radius:14px;background:rgba(127,151,185,.025);min-width:0}.tp-server-metric span{display:block;color:var(--tp-adv-muted,#9aa8bd);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.tp-server-metric strong{display:block;margin-top:6px;color:var(--tp-adv-text,#eef5ff);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-server-checks-v2{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.tp-monitor-check-v2{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:7px 10px;border:1px solid var(--tp-adv-border,#22314a);border-radius:999px;background:rgba(127,151,185,.04);font-size:10px}.tp-monitor-check-v2 strong{font-size:10px}.tp-monitor-check-v2 small{color:var(--tp-adv-muted,#9aa8bd);font-size:10px}.tp-monitor-check-v2.is-online .tp-monitor-check-dot{background:#22c55e}.tp-monitor-check-v2.is-offline .tp-monitor-check-dot{background:#ef4444}.tp-monitor-check-v2.is-blocked .tp-monitor-check-dot{background:#f59e0b}
.tp-server-footer{display:flex;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--tp-adv-border,#22314a);color:var(--tp-adv-muted,#9aa8bd);font-size:10px}.tp-server-footer b{color:var(--tp-adv-text,#eef5ff)}
html.tp-light .tp-server-monitor-v2{background:linear-gradient(180deg,#fff,#f5f8fc);color:#0f172a;border-color:#d9e1ec;box-shadow:0 18px 45px rgba(15,23,42,.07)}html.tp-light .tp-server-monitor-v2 .tp-server-monitor-title,html.tp-light .tp-server-metric strong,html.tp-light .tp-server-footer b{color:#0f172a}html.tp-light .tp-server-monitor-v2 .tp-server-monitor-target,html.tp-light .tp-server-primary [data-srv-subtitle],html.tp-light .tp-server-ping-card small,html.tp-light .tp-server-ping-card span,html.tp-light .tp-server-metric span,html.tp-light .tp-server-footer,html.tp-light .tp-monitor-check-v2 small{color:#64748b}html.tp-light .tp-server-hero,html.tp-light .tp-server-metric,html.tp-light .tp-monitor-check-v2,html.tp-light .tp-server-game-badge{background:#fff;border-color:#d9e1ec}
@media(max-width:900px){.tp-server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-server-top{display:block}.tp-server-right{margin-top:12px;justify-content:flex-start}}
@media(max-width:600px){.tp-server-monitor-v2{padding:16px;border-radius:16px}.tp-server-monitor-top{display:block}.tp-server-monitor-right{justify-content:flex-start;margin-top:10px}.tp-server-hero{align-items:flex-start;flex-direction:column}.tp-server-ping-card{text-align:left}.tp-server-grid{grid-template-columns:1fr 1fr}.tp-server-footer{flex-direction:column}}


/* TP Polaris Nexus 4.6.0 - Universal Server Monitor */
.tp-server-monitor-v3{position:relative;overflow:hidden;padding:22px;border-radius:22px;background:linear-gradient(180deg,#0d1420,#08101b);border:1px solid #22314a;box-shadow:0 18px 55px rgba(0,0,0,.16);color:#eef5ff}
.tp-server-monitor-v3:after{content:"";position:absolute;inset:auto 16px 0;height:1px;background:linear-gradient(90deg,transparent,#22314a,transparent);opacity:.8}
.tp-server-monitor-v3 .tp-server-monitor-icon svg{width:20px;height:20px;fill:currentColor}
.tp-server-monitor-v3 .tp-server-monitor-icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
.tp-server-monitor-v3 .tp-server-hero{background:linear-gradient(135deg,rgba(23,126,255,.08),rgba(138,63,252,.06));border-color:#22314a}
.tp-server-monitor-v3 .tp-server-metric{background:rgba(127,151,185,.035)}
.tp-server-monitor-v3 .tp-server-state{padding:6px 9px;border-radius:999px;border:1px solid #22314a;background:rgba(255,255,255,.02)}
.tp-server-monitor-v3 .tp-server-diagnostic{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-server-foot-right{display:flex;gap:14px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.tp-server-history{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:10px;margin-top:13px}
.tp-server-history-label{font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#718198}
.tp-server-history-empty{font-size:10px;color:#718198}
.tp-server-history-bars{height:34px;display:flex;align-items:flex-end;gap:3px;min-width:0}
.tp-server-history-bars i{display:block;flex:1;min-width:4px;max-width:14px;border-radius:3px 3px 1px 1px;background:#64748b;opacity:.9}
.tp-server-history-bars i.is-ok{background:#22c55e}.tp-server-history-bars i.is-bad{background:#ef4444}
html.tp-light .tp-server-monitor-v3{background:linear-gradient(180deg,#fff,#f6f9fc);color:#0f172a;border-color:#d9e1ec;box-shadow:0 18px 45px rgba(15,23,42,.07)}
html.tp-light .tp-server-monitor-v3 .tp-server-monitor-title,html.tp-light .tp-server-monitor-v3 .tp-server-metric strong,html.tp-light .tp-server-monitor-v3 .tp-server-footer b{color:#0f172a}
html.tp-light .tp-server-monitor-v3 .tp-server-monitor-target,html.tp-light .tp-server-monitor-v3 .tp-server-primary [data-srv-subtitle],html.tp-light .tp-server-monitor-v3 .tp-server-ping-card small,html.tp-light .tp-server-monitor-v3 .tp-server-ping-card span,html.tp-light .tp-server-monitor-v3 .tp-server-metric span,html.tp-light .tp-server-monitor-v3 .tp-server-footer,html.tp-light .tp-server-monitor-v3 .tp-monitor-check-v2 small,html.tp-light .tp-server-history-label,html.tp-light .tp-server-history-empty{color:#64748b}
html.tp-light .tp-server-monitor-v3 .tp-server-hero,html.tp-light .tp-server-monitor-v3 .tp-server-metric,html.tp-light .tp-server-monitor-v3 .tp-monitor-check-v2,html.tp-light .tp-server-monitor-v3 .tp-server-game-badge{background:#fff;border-color:#d9e1ec}
@media(max-width:700px){.tp-server-monitor-v3{padding:16px;border-radius:18px}.tp-server-monitor-v3 .tp-server-monitor-top{display:block}.tp-server-monitor-v3 .tp-server-monitor-right{justify-content:flex-start;margin-top:10px}.tp-server-monitor-v3 .tp-server-diagnostic{max-width:100%;white-space:normal}.tp-server-foot-right{justify-content:flex-start}.tp-server-history{grid-template-columns:1fr}.tp-server-history-bars{height:28px}}

/* TP Polaris Nexus 4.6.2 — universal monitor polish */
.tp-server-monitor-v3 .tp-server-monitor-title{min-width:0;max-width:52ch;overflow-wrap:anywhere;word-break:break-word}
.tp-server-monitor-v3 .tp-server-primary [data-srv-headline]{white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
.tp-server-monitor-v3 .tp-server-game-badge{max-width:min(42vw,280px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-server-monitor-v3 .tp-server-metric{min-height:64px;display:flex;flex-direction:column;justify-content:center}
.tp-server-monitor-v3 .tp-server-metric strong{white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tp-server-monitor-v3 .tp-server-checks-bottom{margin-top:12px;justify-content:flex-start}
.tp-server-monitor-v3 .tp-server-banner-icon{width:34px;height:34px;object-fit:cover;border-radius:10px;border:1px solid #2a3a55;box-shadow:0 8px 20px rgba(0,0,0,.16);margin-left:4px;flex:0 0 auto}
html.tp-light .tp-server-monitor-v3 .tp-server-banner-icon{border-color:#d9e1ec}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-game-badge{max-width:55vw}.tp-server-monitor-v3 .tp-server-banner-icon{width:32px;height:32px}}


/* TP Polaris Nexus 4.6.3 — server banner + semantic metadata */
.tp-server-monitor-v3 .tp-server-banner{display:block;margin:16px 0 0;overflow:hidden;border:1px solid var(--tp-adv-border,#22314a);border-radius:14px;background:#08101b;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.tp-server-monitor-v3 .tp-server-banner[hidden]{display:none}
.tp-server-monitor-v3 .tp-server-banner img{display:block;width:100%;height:auto;max-height:180px;object-fit:cover}
.tp-server-monitor-v3 .tp-server-primary [data-srv-subtitle]:empty{display:none}
.tp-server-monitor-v3 .tp-server-checks-bottom{margin-top:12px;justify-content:flex-start}
.tp-server-monitor-v3 .tp-server-footer{margin-top:12px}
.tp-server-monitor-v3 .tp-server-monitor-title,.tp-server-monitor-v3 .tp-server-primary [data-srv-headline],.tp-server-monitor-v3 .tp-server-primary [data-srv-subtitle]{overflow-wrap:anywhere;word-break:break-word}
html.tp-light .tp-server-monitor-v3 .tp-server-banner{background:#f7f9fc;border-color:#d9e1ec}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-banner img{max-height:115px}}


/* TP Server Monitor 4.6.4 refinements */
.tp-server-monitor-v3 .tp-server-brand-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.tp-server-monitor-v3 .tp-server-monitor-title{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
.tp-server-monitor-v3 .tp-server-monitor-target{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.tp-server-monitor-v3 .tp-server-monitor-description{margin-top:5px;max-width:min(72ch,100%);color:var(--tp-adv-muted,#9aa8bd);font-size:11px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.tp-server-monitor-v3 .tp-server-monitor-description[hidden]{display:none}
.tp-server-monitor-v3 .tp-server-hero{margin-top:16px}
.tp-server-monitor-v3 .tp-server-primary [data-srv-headline]{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.tp-server-monitor-v3 .tp-server-banner{margin-top:14px}
.tp-server-monitor-v3 .tp-server-banner img{max-height:220px;object-fit:cover}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-monitor-description{max-width:100%}.tp-server-monitor-v3 .tp-server-banner img{max-height:140px}}
html.tp-light .tp-server-monitor-v3 .tp-server-monitor-description{color:#64748b}




/* TP Polaris Nexus 4.6.10 — keep the original icon position, enlarge only its box. */
.tp-server-monitor-v3 .tp-server-monitor-icon{width:46px;height:46px;min-width:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;overflow:hidden}
.tp-server-monitor-v3 .tp-server-monitor-icon svg{width:28px;height:28px}
.tp-server-monitor-v3 .tp-server-monitor-icon img{width:100%;height:100%;object-fit:cover;border-radius:12px}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-monitor-icon{width:42px;height:42px;min-width:42px;flex-basis:42px}.tp-server-monitor-v3 .tp-server-monitor-icon svg{width:25px;height:25px}}

/* TP Polaris Nexus 4.6.5 — manual banner + game icon placement */
.tp-server-monitor-v3 .tp-server-monitor-brand{align-items:center}
.tp-server-monitor-v3 .tp-server-brand-copy{flex:1 1 auto;min-width:0}
.tp-server-monitor-v3 .tp-server-game-icon{width:38px;height:38px;flex:0 0 38px;margin-left:10px;display:grid;place-items:center;border:1px solid var(--tp-adv-border,#22314a);border-radius:10px;background:rgba(23,126,255,.07);overflow:hidden}
.tp-server-monitor-v3 .tp-server-game-icon[hidden]{display:none}
.tp-server-monitor-v3 .tp-server-game-icon img{display:block;width:100%;height:100%;object-fit:cover}
.tp-server-monitor-v3 .tp-server-monitor-target{font-size:11px;line-height:1.35}
.tp-server-monitor-v3 .tp-server-banner img{display:block;width:100%;max-height:240px;height:auto;object-fit:cover}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-game-icon{width:34px;height:34px;flex-basis:34px;margin-left:8px}.tp-server-monitor-v3 .tp-server-banner img{max-height:150px}}
html.tp-light .tp-server-monitor-v3 .tp-server-game-icon{background:#fff;border-color:#d9e1ec}


/* TP Polaris Nexus 4.6.11 — reference card polish; existing icon position is unchanged. */
.tp-server-monitor-v3{padding:12px;border-radius:18px}
.tp-server-monitor-v3 .tp-server-monitor-top{gap:12px;align-items:center}
.tp-server-monitor-v3 .tp-server-monitor-brand{gap:12px;min-width:0;flex:1 1 auto}
.tp-server-monitor-v3 .tp-server-monitor-icon{width:54px;height:54px;min-width:54px;flex:0 0 54px;border-radius:13px}
.tp-server-monitor-v3 .tp-server-monitor-icon svg{width:34px;height:34px}
.tp-server-monitor-v3 .tp-server-monitor-title{font-size:28px;font-style:italic;font-weight:800;line-height:1.08;letter-spacing:-.02em}
.tp-server-monitor-v3 .tp-server-monitor-target{font-size:10px;margin-top:3px}
.tp-server-monitor-v3 .tp-server-brand-copy{min-width:0}
.tp-server-monitor-v3 .tp-server-right{flex:0 0 auto}
.tp-server-monitor-v3 .tp-server-game-badge{font-size:10px;padding:6px 9px}
.tp-server-monitor-v3 .tp-server-state{font-size:10px;padding:6px 9px}
.tp-server-monitor-v3 .tp-server-banner{margin:10px 0 0;border-radius:14px}
.tp-server-monitor-v3 .tp-server-banner img{display:block;width:100%;height:auto;max-height:190px;object-fit:cover}
.tp-server-monitor-v3 .tp-server-hero{margin-top:10px;padding:10px 12px;border-radius:14px}
.tp-server-monitor-v3 .tp-server-grid{gap:8px;margin-top:8px}
.tp-server-monitor-v3 .tp-server-metric{padding:10px 12px;min-height:56px;border-radius:12px}
.tp-server-monitor-v3 .tp-server-footer{margin-top:9px;padding-top:9px}
@media(max-width:700px){
  .tp-server-monitor-v3{padding:10px;border-radius:16px}
  .tp-server-monitor-v3 .tp-server-monitor-icon{width:50px;height:50px;min-width:50px;flex-basis:50px}
  .tp-server-monitor-v3 .tp-server-monitor-icon svg{width:31px;height:31px}
  .tp-server-monitor-v3 .tp-server-monitor-title{font-size:22px}
}

/* TP Polaris Nexus 4.6.12 — stable server-card fit */
.tp-server-monitor-v3 .tp-server-monitor-title{max-width:100%;height:2.24em;min-height:2.24em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;line-height:1.12}
.tp-server-monitor-v3 .tp-server-monitor-target-row{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.tp-server-monitor-v3 .tp-server-monitor-target{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-server-monitor-v3 .tp-server-copy-ip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 8px;border:1px solid var(--tp-adv-border,#22314a);border-radius:7px;background:rgba(23,126,255,.08);color:var(--tp-adv-text,#eef5ff);font-size:9px;font-weight:800;line-height:1;cursor:pointer}
.tp-server-monitor-v3 .tp-server-copy-ip:hover{background:rgba(23,126,255,.15)}
.tp-server-monitor-v3 .tp-server-banner{width:100%;height:180px}
.tp-server-monitor-v3 .tp-server-banner img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;border-radius:13px}
.tp-server-monitor-v3 .tp-server-monitor-icon{width:58px;height:58px;min-width:58px;flex:0 0 58px}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-monitor-icon{width:52px;height:52px;min-width:52px;flex-basis:52px}.tp-server-monitor-v3 .tp-server-banner{height:150px}}


/* TP Polaris Nexus 4.6.13 — monitor visual fixes: transparent icon, compact title, non-cropping banner. */
.tp-server-monitor-v3 .tp-server-monitor-icon{background:transparent!important;box-shadow:none!important;border:0!important;}
.tp-server-monitor-v3 .tp-server-monitor-icon img{width:100%;height:100%;object-fit:contain!important;border-radius:10px;background:transparent!important;}
.tp-server-monitor-v3 .tp-server-monitor-title{font-size:15px!important;line-height:1.18!important;height:2.36em!important;min-height:2.36em!important;max-height:2.36em!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
.tp-server-monitor-v3 .tp-server-banner{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:0!important;height:auto!important;max-height:180px!important;overflow:hidden!important;}
.tp-server-monitor-v3 .tp-server-banner img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:180px!important;object-fit:contain!important;object-position:center!important;border-radius:13px!important;}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-monitor-title{font-size:13px!important;line-height:1.18!important;height:2.36em!important;min-height:2.36em!important;max-height:2.36em!important;}.tp-server-monitor-v3 .tp-server-banner{max-height:140px!important;}.tp-server-monitor-v3 .tp-server-banner img{max-height:140px!important;}}

/* TP Polaris Nexus 4.6.14 — copy control sits beside latency without changing card geometry. */
.tp-server-monitor-v3 .tp-server-ping-card{min-width:150px}
.tp-server-monitor-v3 .tp-server-ping-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.tp-server-monitor-v3 .tp-server-ping-line .tp-server-copy-ip{height:28px;min-width:68px;padding:0 11px;border-radius:8px;font-size:10px}
.tp-server-monitor-v3 .tp-server-ping-line .tp-server-copy-ip:active{transform:translateY(1px)}
@media(max-width:700px){.tp-server-monitor-v3 .tp-server-ping-card{min-width:0}.tp-server-monitor-v3 .tp-server-ping-line{justify-content:flex-start}.tp-server-monitor-v3 .tp-server-ping-line .tp-server-copy-ip{height:27px}}
