.ak-bp-wrap,
.ak-bp-wrap *{box-sizing:border-box}
.ak-bp-wrap{--ak-bp-bg:#ffffff;--ak-bp-card:#ffffff;--ak-bp-text:#111827;--ak-bp-muted:#64748b;--ak-bp-line:#e5e7eb;--ak-bp-soft:#f8fafc;--ak-bp-accent:#2563eb;--ak-bp-good:#059669;--ak-bp-bad:#dc2626;--ak-bp-shadow:0 18px 48px rgba(15,23,42,.08);max-width:100%;width:100%;margin:22px 0;padding:18px;border:1px solid var(--ak-bp-line);border-radius:24px;background:linear-gradient(180deg,var(--ak-bp-bg),var(--ak-bp-soft));color:var(--ak-bp-text);box-shadow:var(--ak-bp-shadow);overflow:hidden;container-type:inline-size}
.ak-bp-wrap :where(h2,h3,p){margin:0}
.ak-bp-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;margin-bottom:14px}
.ak-bp-head.only-status{grid-template-columns:1fr;justify-items:end}
.ak-bp-title{font-size:clamp(20px,2.2vw,30px);line-height:1.2;color:var(--ak-bp-text);letter-spacing:-.02em;font-weight:800}
.ak-bp-subtitle{margin-top:7px;color:var(--ak-bp-muted);font-size:14px;line-height:1.65;max-width:760px}
.ak-bp-status{display:inline-flex;align-items:center;justify-content:center;min-height:34px;max-width:100%;padding:7px 11px;border:1px solid var(--ak-bp-line);border-radius:999px;background:rgba(255,255,255,.72);color:var(--ak-bp-muted);font-size:12px;line-height:1.3;white-space:normal;text-align:center;overflow-wrap:anywhere}
.ak-bp-error-text{color:var(--ak-bp-bad)!important;border-color:color-mix(in srgb,var(--ak-bp-bad) 35%,var(--ak-bp-line))!important}
.ak-bp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 14px}
.ak-bp-stats[hidden]{display:none!important}
.ak-bp-stat{min-width:0;padding:12px;border:1px solid var(--ak-bp-line);border-radius:18px;background:rgba(255,255,255,.76)}
.ak-bp-stat .k{font-size:12px;line-height:1.35;color:var(--ak-bp-muted)}
.ak-bp-stat .v{margin-top:6px;font-size:clamp(17px,2vw,24px);line-height:1.1;font-weight:850;color:var(--ak-bp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ak-bp-stat .v.good,.ak-bp-good{color:var(--ak-bp-good)}
.ak-bp-stat .v.bad,.ak-bp-bad{color:var(--ak-bp-bad)}
.ak-bp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;max-width:100%}
.ak-bp-grid.is-single{grid-template-columns:1fr}
.ak-bp-card{min-width:0;border:1px solid var(--ak-bp-line);border-radius:20px;background:var(--ak-bp-card);overflow:hidden}
.ak-bp-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 14px 4px}
.ak-bp-card h3{font-size:16px;line-height:1.35;font-weight:800;color:var(--ak-bp-text)}
.ak-bp-meta{font-size:12px;line-height:1.35;color:var(--ak-bp-muted);text-align:right;max-width:52%;overflow-wrap:anywhere}
.ak-bp-chart{width:100%;height:var(--ak-bp-chart-height,280px);padding:8px 10px 12px;overflow:hidden;position:relative}
.ak-bp-chart svg{display:block;width:100%;height:100%;overflow:visible}
.ak-bp-empty,.ak-bp-error{padding:20px 14px;color:var(--ak-bp-muted);font-size:14px;line-height:1.7}
.ak-bp-error{color:var(--ak-bp-bad)}
.ak-bp-axis{font-size:11px;fill:var(--ak-bp-muted)}
.ak-bp-gridline{stroke:var(--ak-bp-line);stroke-width:1;opacity:.9}
.ak-bp-line-equity{fill:none;stroke:var(--ak-bp-accent);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ak-bp-line-return{fill:none;stroke:var(--ak-bp-good);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ak-bp-area-equity{fill:var(--ak-bp-accent);opacity:.08}
.ak-bp-area-return{fill:var(--ak-bp-good);opacity:.08}
.ak-bp-point{fill:var(--ak-bp-card);stroke-width:2;opacity:.95}
@media (prefers-color-scheme: dark){
  .ak-bp-wrap{--ak-bp-bg:#0b1220;--ak-bp-card:#111827;--ak-bp-text:#e5e7eb;--ak-bp-muted:#a6b0c3;--ak-bp-line:#263244;--ak-bp-soft:#0f172a;--ak-bp-shadow:0 18px 48px rgba(0,0,0,.35)}
  .ak-bp-status,.ak-bp-stat{background:rgba(17,24,39,.82)}
}
@media (max-width: 920px){
  .ak-bp-grid{grid-template-columns:1fr}
  .ak-bp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .ak-bp-wrap{margin:16px 0;padding:12px;border-radius:18px;overflow:hidden}
  .ak-bp-head{grid-template-columns:1fr;gap:9px;margin-bottom:10px}
  .ak-bp-head.only-status{justify-items:start}
  .ak-bp-status{justify-self:start;width:auto;max-width:100%;font-size:11px;min-height:30px;padding:6px 10px}
  .ak-bp-subtitle{font-size:13px;line-height:1.55}
  .ak-bp-stats{grid-template-columns:1fr 1fr;gap:8px}
  .ak-bp-stat{padding:10px;border-radius:14px}
  .ak-bp-stat .k{font-size:11px}
  .ak-bp-stat .v{font-size:16px;white-space:normal;overflow-wrap:anywhere}
  .ak-bp-card{border-radius:16px}
  .ak-bp-card-head{padding:12px 12px 0;display:block}
  .ak-bp-card h3{font-size:15px}
  .ak-bp-meta{display:block;margin-top:4px;max-width:100%;text-align:left;font-size:11px}
  .ak-bp-chart{height:var(--ak-bp-chart-mobile-height,230px);padding:6px 8px 10px}
  .ak-bp-axis{font-size:10px}
}
@media (max-width: 360px){
  .ak-bp-stats{grid-template-columns:1fr}
}
