/*
 * VELTRIX VX | Squared Blue refinement | 2026-11-04
 * Load LAST and use a new cache key. This patch is PRESENTATION ONLY:
 * no database, permissions, premium offers, commands or credits are changed.
 */
:root {
  --vx-corner-button: 7px;
  --vx-corner-input: 8px;
  --vx-corner-card: 11px;
  --vx-corner-panel: 12px;
  --vx-corner-chip: 7px;
  --vx-bg: #070d1e;
  --vx-panel: #101e39;
  --vx-panel-high: #152746;
  --vx-outline: #31527f;
  --vx-accent: #23aaff;
  --vx-accent-high: #6ad7ff;
  --vx-text: #eef7ff;
  --vx-subtle: #b7cce6;
}
/* Crisp, compact controls: no pill-shaped action buttons. */
body :is(.btn,.btn-primary,.btn-outline,.btn-soft,.btn-danger,.btn-mini,.full-btn,
  .owner-admin-remove,.public-menu-toggle,.mobile-menu,.vx-gallery-close,
  .vx-partner-filter,.vx-guild-view button,.vx-guild-filter,.vx-command-tools select,
  .vx-guild-search,.vx-autosave-state,.vx-pick-button,.vtx-rules-accept,
  .vtx-rules-card button,.vx-request-actions button,.owner-heading-actions .btn,
  .nav-actions .btn,.hero-actions .btn,.vtx-home-credit),
body .nav-link,
body .public-nav .nav-actions > a,
body .sidebar .nav-link,
body .topbar .userchip,
body .topbar .chip,
body :is(button,input[type=button],input[type=submit],input[type=reset]) {
  border-radius: var(--vx-corner-button) !important;
}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select,textarea,.field input,.field select,.field textarea,
  .owner-admin-add-row input,.vx-command-tools label,.vx-guild-search,
  .vx-command-tools select,.vtx-rules-text,.vx-dropzone) {
  border-radius: var(--vx-corner-input) !important;
}
/* Cards and containers intentionally less round than the earlier 18-35px theme. */
body :is(.box,.card,.feature-card,.floating-panel,.template-card,.document-card,
  .plan-card,.stat-card,.metric-card,.metric,.dashboard-card,.owner-admin-section,
  .owner-admin-row,.owner-plan-section,.pricing-card,.premium-card,.hero-card,.quick-card,
  .guild-card,.toast,.modal-content,.vtx-legal-card,.legal-card,.vx-market-head,
  .vx-collab-card,.vx-image-card,.vx-request-card,.notice,.preview-box,
  .premium-empty-state,.vtx-credit-balance,.vtx-credit-next,.vtx-credit-week,
  .vx-selected-card,.vx-selected-wrap,.vx-gallery-dialog,.vx-crop-panel,
  .vx-wallet-card,.vx-command-card,.vx-command-tools,.vx-public-metrics > div,
  .vx-home-news-list > article,.vx-gallery-dialog,.owner-admin-list,
  .vx-partner-empty,.vx-collab-staff-quicklink,.vx-guild-empty-filter,
  .vtx-rules-card,.vx-home-green-banner img,.vx-upload-preview) {
  border-radius: var(--vx-corner-card) !important;
}
body :is(.feature-icon,.metric-icon,.quick-card > span,.preview-avatar,
  .guild-avatar,.vx-guild-card-top .guild-avatar,.guild-card .guild-avatar,
  .floating-panel > i,.panel-two > i,.template-art,.vx-selected-thumb,
  .vx-picker-item,.vx-picker-item img,.vx-image-card img,
  .vx-field-preview,.vx-list-actions,.owner-admin-avatar,
  .vx-upload-preview img,.vx-crop-canvas) {
  border-radius: var(--vx-corner-input) !important;
}
/* Keep real avatar / badge circles circular; reduce decorative pills into rounded rectangles. */
body :is(.eyebrow,.kicker,.tag,.pill,.status-label,.chip,.vx-brand-chip,
  .panel-counter,.plan-badge,.vx-command-stats span,.vx-partner-status,
  .vx-card-status,.hero-sub > span,.hero-sub > a,
  .vtx-home-credit,.vx-wallet-card,.vx-guild-card-caption) {
  border-radius: var(--vx-corner-chip) !important;
}
body :is(.status-dot,.pulse,.online,.userchip img,.public-nav .brand img,
  .sidebar .brand img,.vtx-footer-brand img) {
  border-radius: 50% !important;
}
body .hero-mark.vx-bot-hero,
body .hero-mark.vx-bot-hero img,
body .hero-logo-stage img {
  border-radius: 12px !important;
}
/* The pale green legacy homepage banner is not part of the blue theme. */
body .feature-strip,
body .public-body .feature-strip,
body .landing-section + .feature-strip {
  background: linear-gradient(105deg,#122647,#0c1b35) !important;
  background-color:#122647 !important;
  color: #d0e7ff !important;
  border: 1px solid #315b8c !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px #02091b45 !important;
  gap: 14px 24px !important;
}
body .feature-strip > span {color: #d0e7ff !important; white-space:normal;}
body .feature-strip > span > i {color:#58caff!important;}
body .hero-sub > span,
body .hero-sub > a,
body .hero-sub .vtx-home-credit {
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  background:#142b4d !important;
  border:1px solid #315e95 !important;
  color:#c9e3ff !important;
  box-shadow:none !important;
  padding:8px 11px !important;
  text-decoration:none !important;
  font-weight:700 !important;
}
body .hero-sub :is(a,span) :is(i,svg) {color:#60ceff!important;}
body .hero-sub > a:hover {background:#204575!important;color:#fff!important;}
/* Support all old footer classes; no white rectangle, invisible wordmark or pale links. */
html body .public-footer,
html body .app-footer,
html body .vtx-footer-modern,
html body .public-footer.vtx-footer-modern,
html body .app-footer.vtx-footer-modern {
  background:#0a172d!important;
  background-image:none!important;
  border:0!important;
  border-top:1px solid #31527f!important;
  box-shadow:none!important;
  color:#d8e9ff!important;
}
html body .vtx-footer-modern :is(.vtx-footer-identity,.vtx-footer-wordmark,
  .vtx-footer-brand strong,.vtx-footer-brand span,.vtx-footer-credit,
  .vtx-footer-links a,.vtx-footer-links a:visited) {color:#d8e9ff!important;}
html body .vtx-footer-modern .vtx-footer-wordmark {color:#f7fbff!important;}
html body .vtx-footer-modern .vtx-footer-credit a,
html body .vtx-footer-modern .vtx-footer-credit a strong {color:#6ed4ff!important;}
html body .vtx-footer-modern .vtx-footer-links a:hover {color:#ffffff!important;}
html body .vtx-footer-modern .vtx-footer-links a::after {background:#49bcff!important;}
/* Owner/admin: remove the last white form, dark labels and tiny invisible badges. */
html body .owner-admin-section .owner-admin-add,
html body .owner-admin-section form.owner-admin-add,
html body .owner-admin-add,
html body .owner-admin-add-row {
  background:#101f3b!important;
  background-image:none!important;
  color:#f1f7ff!important;
  border-color:#31527f!important;
  border-radius:10px!important;
}
html body .owner-admin-add > label,
html body .owner-admin-add label,
html body .owner-admin-section label,
html body .owner-admin-add-row label {color:#b9d1ef!important;}
html body .owner-admin-add-row input,
html body .owner-admin-add-row input::placeholder {
  color:#eaf6ff!important;
}
html body .owner-admin-add-row input {
  background:#0b1b33!important;
  border:1px solid #3c6998!important;
  border-radius:8px!important;
}
html body .owner-admin-add-row input::placeholder {color:#90afd3!important;}
html body .owner-admin-add-row input:focus {border-color:#59caff!important;box-shadow:0 0 0 3px #1687ff2b!important;}
html body .owner-admin-person strong,
html body .owner-admin-row strong,
html body .owner-admin-person small {color:#eaf6ff!important;}
html body .owner-admin-person small {color:#a1bcdb!important;}
html body :is(.owner-admin-person code,.owner-admin-row code,.vx-request-card code) {
  display:inline-block;
  background:#142c50!important;
  color:#bde7ff!important;
  border:1px solid #325e91!important;
  border-radius:5px!important;
  padding:2px 6px;
  overflow-wrap:anywhere;
}
html body :is(.owner-admin-avatar,.owner-admin-avatar img) {border-radius:9px!important;}
html body .panel-counter {background:#173354!important;color:#b8e3ff!important;border:1px solid #345d88!important;}
/* Previously unstyled staff filters were overlapping. Apply to the real class used by /staff. */
html body .vx-staff-panel .vx-partner-filters,
html body .vx-suite-wrap .vx-partner-filters {
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-flow:row wrap!important;
  gap:10px!important;
  margin:0 0 16px!important;
  padding:0!important;
  overflow:visible!important;
}
html body .vx-staff-panel .vx-partner-filter,
html body .vx-suite-wrap .vx-partner-filter {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  min-height:39px!important;
  padding:9px 13px!important;
  margin:0!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  font-size:.86rem!important;
  font-weight:750!important;
  line-height:1.15!important;
  color:#c9e4ff!important;
  background:#102643!important;
  border:1px solid #315987!important;
  border-radius:7px!important;
}
html body .vx-staff-panel .vx-partner-filter:hover,
html body .vx-suite-wrap .vx-partner-filter:hover {
  background:#1a4273!important;
  border-color:#56aaff!important;
  color:#fff!important;
}
html body .vx-staff-panel .vx-partner-filter.is-active,
html body .vx-suite-wrap .vx-partner-filter.is-active {
  background:#1e4c8e!important;
  color:#fff!important;
  border-color:#53bdff!important;
  box-shadow:inset 0 -2px 0 #55ccff!important;
}
html body .vx-partner-filter span {
  background:#1a3a68!important;
  color:#bce5ff!important;
  border-radius:5px!important;
  padding:2px 7px!important;
  line-height:1.3!important;
}
/* Command catalogue: unreadable white code badges on blue background -> dark code chips. */
html body .vx-command-card {
  background:linear-gradient(155deg,#152747,#0e1c34)!important;
  border:1px solid #2c527e!important;
  border-radius:10px!important;
}
html body .vx-command-card > span {color:#6bd1ff!important;}
html body .vx-command-card h2,
html body .vx-command-card h2 code,
html body .vx-command-card code {
  color:#dbf3ff!important;
  -webkit-text-fill-color:#dbf3ff!important;
}
html body .vx-command-card h2 code {
  display:inline-block!important;
  max-width:100%!important;
  padding:6px 9px!important;
  border:1px solid #2d5a89!important;
  border-radius:6px!important;
  background:#0b2142!important;
  font-size:.95rem!important;
  font-weight:750!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
html body .vx-command-card small {color:#a8c4e4!important;}
html body .vx-command-card p {color:#c0d1e6!important;}
html body .vx-command-tools label {
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:#0e223e!important;
  border:1px solid #325987!important;
  border-radius:8px!important;
}
html body .vx-command-tools input {
  flex:1!important;
  min-width:0!important;
  width:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
  border-radius:0!important;
  padding:12px 0!important;
}
html body .vx-command-tools select {border-radius:8px!important;}
html body .vx-command-stats span {background:#132d50!important;color:#a8e5ff!important;border:1px solid #315f8f!important;}
/* Real partner description can be lengthy: preserve line breaks and wrap URLs rather than stretch the page. */
html body .vx-collab-card {border-radius:10px!important;overflow:hidden;}
html body .vx-collab-info {overflow-wrap:anywhere;}
html body .vx-collab-info p {white-space:pre-wrap;line-height:1.75;color:#bbd0ed!important;}
html body .vx-collab-card :is(h3,h2,strong) {color:#eef7ff!important;}
/* Navigation and cards: squared, consistent outlines and contrast. */
html body .nav-link.active,html body .nav-link[aria-current=page] {
  background:#163863!important;
  color:#eaf7ff!important;
  border:1px solid #3477b7!important;
  border-radius:7px!important;
  box-shadow:inset 3px 0 #4bccff!important;
}
html body .nav-link.active::before {background:#4bccff!important;border-color:#4bccff!important;}
html body .public-body .public-nav .nav-actions > a:not(.btn),
html body .public-nav .nav-actions > a:not(.btn) {border-radius:7px!important;}
html body .guild-grid .guild-card,
html body .guild-grid .guild-card:hover,
html body .plans-grid .plan-card {border-radius:10px!important;}
html body .guild-card .guild-avatar,
html body .guild-card .guild-avatar img {border-radius:8px!important;}
html body .guild-card .full-btn,
html body .plan-card .full-btn {border-radius:7px!important;}
html body .vx-guild-view,html body .vx-guild-search,html body .vx-guild-filter {
  border-radius:8px!important;
}
html body .vx-guild-view button {border-radius:6px!important;}
/* Keep hover light and blue, without changing functionality. */
html body :is(.btn,.nav-link,.vx-partner-filter,.vx-command-card,.guild-card):focus-visible {
  outline:2px solid #77dcff!important;
  outline-offset:2px!important;
}
@media(max-width:760px){
  html body .vx-staff-panel .vx-partner-filters {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  html body .vx-staff-panel .vx-partner-filter {width:100%!important;white-space:normal!important;min-width:0!important;}
  html body .owner-admin-add-row {display:flex!important;flex-direction:column!important;gap:10px!important;}
  html body .owner-admin-add-row .btn {width:100%!important;}
  html body .feature-strip {justify-content:flex-start!important;}
}
@media(prefers-reduced-motion:reduce){html body .vx-command-card{transition:none!important}}
/* Higher specificity than legacy header/mobile button rounding. */
html body.public-body .public-nav .nav-actions > .btn,
html body.public-body .public-nav .nav-actions > a.btn,
html body .public-nav .nav-actions > .btn,
html body .public-nav .nav-actions > a.btn,
html body .public-nav .public-menu-toggle,
html body .vx-staff-panel .vx-request-actions .btn,
html body .owner-admin-section .owner-admin-add-row > .btn,
html body .owner-admin-section .owner-admin-add-row > button.btn {
  border-radius:7px!important;
}
