.vft-title-mini-badge{
  display:inline-flex;align-items:center;gap:.35rem;margin-top:.35rem;width:max-content;
  padding:.25rem .55rem;border:1px solid rgba(232,188,70,.34);border-radius:999px;
  color:#dbc274;background:rgba(183,133,24,.11);font-size:.68rem;font-weight:800;letter-spacing:.04em;
}
.vft-title-mini-badge.is-active{color:#81efbd;border-color:rgba(55,211,143,.4);background:rgba(29,157,105,.14)}
.vft-portfolio-panel{
  margin-top:.9rem;padding:1rem;border:1px solid rgba(216,177,66,.25);border-radius:18px;
  background:linear-gradient(145deg,rgba(7,23,43,.95),rgba(12,34,58,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.vft-portfolio-panel.is-active{border-color:rgba(42,213,143,.38);box-shadow:0 12px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04)}
.vft-portfolio-panel.is-mismatch{border-color:rgba(255,103,103,.38)}
.vft-portfolio-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.vft-portfolio-kicker{display:block;color:#d8b64c;font-size:.67rem;font-weight:900;letter-spacing:.14em;margin-bottom:.3rem}
.vft-portfolio-head h4{margin:0;color:#f5f7fb;font-size:1rem}
.vft-portfolio-head p{margin:.28rem 0 0;color:#90a1b6;font-size:.78rem;line-height:1.55;max-width:620px}
.vft-portfolio-state{display:flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border-radius:999px;background:rgba(255,255,255,.04);white-space:nowrap}
.vft-state-dot{width:.55rem;height:.55rem;border-radius:50%;background:#d3a837;box-shadow:0 0 0 4px rgba(211,168,55,.12)}
.is-active .vft-state-dot{background:#37d58f;box-shadow:0 0 0 4px rgba(55,213,143,.13),0 0 14px rgba(55,213,143,.4)}
.is-mismatch .vft-state-dot{background:#ff7070;box-shadow:0 0 0 4px rgba(255,112,112,.13)}
.vft-portfolio-state strong{font-size:.78rem;color:#e9edf4}
/* VELAEA_VFT_BADGE_ROW_CLEAN_V60 */
.vft-portfolio-badge-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:.75rem 1rem;
  margin-top:.95rem;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.vft-portfolio-badges{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-width:0}
.vft-portfolio-badges img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.28))}
.vft-portfolio-badge-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.vft-portfolio-badge-copy strong{color:#fff;font-size:.94rem;line-height:1.28;overflow-wrap:anywhere}
.vft-portfolio-badge-copy span,.vft-portfolio-badge-copy small{color:#91a4bb;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}
.vft-portfolio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin-top:.8rem}
.vft-portfolio-grid>div{padding:.68rem;border-radius:12px;background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.05);min-width:0}
.vft-portfolio-grid span{display:block;color:#7f92aa;font-size:.68rem;margin-bottom:.25rem}
.vft-portfolio-grid b{display:block;color:#e8edf5;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vft-portfolio-match{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;margin-top:.8rem}
.vft-portfolio-match>span{display:grid;grid-template-columns:auto 1fr;column-gap:.4rem;align-items:center;padding:.55rem;border-radius:11px;background:rgba(255,255,255,.025)}
.vft-portfolio-match i{grid-row:1/3;width:.45rem;height:.45rem;border-radius:50%;background:#8b98a8}
.vft-portfolio-match b{font-size:.68rem;color:#cdd6e2}
.vft-portfolio-match em{font-style:normal;font-size:.63rem;color:#8393a6}
.vft-portfolio-match .is-matched i{background:#37d58f}
.vft-portfolio-match .is-mismatch i{background:#ff7070}
.vft-portfolio-match .is-neutral i{background:#d0aa48}
.vft-portfolio-footer{display:flex;justify-content:space-between;align-items:center;gap:.8rem;margin-top:.85rem;padding-top:.8rem;border-top:1px solid rgba(255,255,255,.06)}
.vft-portfolio-visibility{font-size:.72rem;font-weight:800;padding:.35rem .55rem;border-radius:999px;background:rgba(255,255,255,.04);color:#9aa8b8}
.vft-portfolio-visibility.is-public{color:#74e8b2;background:rgba(31,170,111,.14)}
.vft-portfolio-visibility-btn{border:1px solid rgba(218,177,60,.42);background:rgba(184,131,19,.12);color:#e8c662;border-radius:10px;padding:.5rem .75rem;font-weight:800;cursor:pointer}
.vft-portfolio-visibility-btn:hover{transform:translateY(-1px);background:rgba(184,131,19,.2)}
.vft-portfolio-visibility-btn:disabled{opacity:.55;cursor:wait}
@media (max-width:1000px){
  .vft-portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vft-portfolio-match{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:640px){
  .vft-portfolio-panel{padding:.8rem;border-radius:14px}
  .vft-portfolio-head{flex-direction:column}
  .vft-portfolio-state{align-self:flex-start}
  .vft-portfolio-badge-row{grid-template-columns:1fr;align-items:flex-start;gap:.58rem;margin-top:.8rem}
  .vft-portfolio-badges{justify-content:flex-start}
  .vft-portfolio-badges img{width:50px;height:50px}
  .vft-portfolio-badge-copy strong{font-size:.9rem}
  .vft-portfolio-badge-copy span,.vft-portfolio-badge-copy small{font-size:.72rem}
  .vft-portfolio-grid,.vft-portfolio-match{grid-template-columns:1fr 1fr}
  .vft-portfolio-footer{align-items:stretch;flex-direction:column}
  .vft-portfolio-visibility-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .vft-portfolio-visibility-btn{transition:none!important}
  .vft-portfolio-visibility-btn:hover{transform:none}
}

.vft-portfolio-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.vft-view-portfolio-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:.5rem .8rem;border-radius:10px;border:1px solid rgba(49,211,143,.42);background:rgba(35,167,111,.14);color:#78ebb5;text-decoration:none;font-weight:850;font-size:.74rem;cursor:pointer}.vft-view-portfolio-btn:hover{background:rgba(35,167,111,.23);transform:translateY(-1px)}.vft-view-portfolio-btn.is-disabled{opacity:.55;cursor:not-allowed;transform:none}@media(max-width:640px){.vft-portfolio-actions{width:100%;display:grid;grid-template-columns:1fr}.vft-view-portfolio-btn,.vft-portfolio-visibility-btn{width:100%}}

/* Verified Forward reuses the canonical Backtest stamp slot. */
.mt5-port-summary-button .verified-forward-runtime-stamp{
  width:min(138px,38%);max-width:38%;height:auto;object-fit:contain;
  margin-left:10px;align-self:center;flex:0 0 auto;
}
.mt5-port-title+.verified-forward-runtime-stamp{display:block}
@media(max-width:720px){.mt5-port-summary-button .verified-forward-runtime-stamp{width:min(112px,34%);max-width:34%;margin-left:6px}}

/* Light theme: keep the verified runtime panel consistent with the portfolio canvas. */
body.light-mode .vft-portfolio-panel,
html[data-theme="light"] body .vft-portfolio-panel{
  border-color:rgba(180,128,18,.28);
  background:linear-gradient(145deg,#fffefb 0%,#f7f3e9 100%);
  box-shadow:0 14px 32px rgba(99,72,20,.09),inset 0 1px 0 #fff;
}
body.light-mode .vft-portfolio-panel.is-active,
html[data-theme="light"] body .vft-portfolio-panel.is-active{
  border-color:rgba(26,151,99,.42);
  box-shadow:0 15px 34px rgba(28,93,67,.11),inset 0 1px 0 #fff;
}
body.light-mode .vft-portfolio-kicker,
html[data-theme="light"] body .vft-portfolio-kicker{color:#9b6800}
body.light-mode .vft-portfolio-head h4,
html[data-theme="light"] body .vft-portfolio-head h4{color:#17263a}
body.light-mode .vft-portfolio-head p,
html[data-theme="light"] body .vft-portfolio-head p{color:#647287}
body.light-mode .vft-portfolio-state,
html[data-theme="light"] body .vft-portfolio-state{
  background:#eef8f3;border:1px solid rgba(31,157,105,.16)
}
body.light-mode .vft-portfolio-state strong,
html[data-theme="light"] body .vft-portfolio-state strong{color:#176846}
body.light-mode .vft-portfolio-grid>div,
html[data-theme="light"] body .vft-portfolio-grid>div{
  background:rgba(255,255,255,.78);border-color:rgba(44,65,88,.11);
  box-shadow:0 4px 14px rgba(50,64,82,.045)
}
body.light-mode .vft-portfolio-grid span,
html[data-theme="light"] body .vft-portfolio-grid span{color:#758196}
body.light-mode .vft-portfolio-grid b,
html[data-theme="light"] body .vft-portfolio-grid b{color:#243247}
body.light-mode .vft-portfolio-match>span,
html[data-theme="light"] body .vft-portfolio-match>span{
  background:#f0f4f7;border:1px solid rgba(44,65,88,.07)
}
body.light-mode .vft-portfolio-match b,
html[data-theme="light"] body .vft-portfolio-match b{color:#344157}
body.light-mode .vft-portfolio-match em,
html[data-theme="light"] body .vft-portfolio-match em{color:#778398}
body.light-mode .vft-portfolio-footer,
html[data-theme="light"] body .vft-portfolio-footer{border-top-color:rgba(44,65,88,.11)}
body.light-mode .vft-portfolio-visibility,
html[data-theme="light"] body .vft-portfolio-visibility{background:#edf1f5;color:#59687b}
body.light-mode .vft-portfolio-visibility.is-public,
html[data-theme="light"] body .vft-portfolio-visibility.is-public{background:#e3f6ed;color:#14704b}
body.light-mode .vft-view-portfolio-btn,
html[data-theme="light"] body .vft-view-portfolio-btn{
  border-color:rgba(25,139,92,.38);background:#e8f7f0;color:#126b47;
  box-shadow:0 4px 12px rgba(26,126,86,.08)
}
body.light-mode .vft-portfolio-visibility-btn,
html[data-theme="light"] body .vft-portfolio-visibility-btn{
  border-color:rgba(176,125,15,.38);background:#fff6dc;color:#8b5d00;
  box-shadow:0 4px 12px rgba(151,105,13,.08)
}
body.light-mode .vft-portfolio-badge-copy strong,
html[data-theme="light"] body .vft-portfolio-badge-copy strong{color:#253248}
body.light-mode .vft-portfolio-badge-copy span,
body.light-mode .vft-portfolio-badge-copy small,
html[data-theme="light"] body .vft-portfolio-badge-copy span,
html[data-theme="light"] body .vft-portfolio-badge-copy small{color:#6b788c}
