:root{--bg:#f4f6f8;--panel:#fff;--line:#d9dee7;--ink:#111827;--muted:#667085;--blue:#1f5ea8;--green:#18733c;--red:#b42318;--amber:#b05a00;--shadow:0 5px 18px rgba(15,23,42,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,select{font:inherit}.trade-shell{width:min(1700px,calc(100% - 28px));margin:auto;padding:22px 0 60px}.trade-header{display:flex;justify-content:space-between;align-items:end;gap:20px;background:#173a5e;color:#fff;border-radius:18px;padding:24px 26px;box-shadow:var(--shadow)}.eyebrow{margin:0 0 5px;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:900}.trade-header h1{margin:0;font-size:clamp(34px,4vw,54px);line-height:1}.sub{margin:8px 0 0;color:#dbe6f2}.header-actions{display:flex;gap:8px;flex-wrap:wrap}button{border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:8px;padding:9px 13px;font-weight:800;cursor:pointer}button:disabled{background:#aeb7c3;border-color:#aeb7c3;color:#f2f4f7;cursor:not-allowed}button.secondary{background:#fff;color:#174a7e;border-color:#cdd7e5}button.ghost{background:transparent;color:inherit;border-color:rgba(255,255,255,.35)}.team-card .ghost{color:#667085;border-color:#d0d5dd;background:#fff}.global-banner{margin:16px 0;padding:12px 14px;border-radius:10px;border:1px solid var(--line);font-weight:800}.global-banner.neutral{background:#fff;color:#475467}.global-banner.ok{background:#ecfdf3;color:#067647;border-color:#abefc6}.global-banner.error{background:#fef3f2;color:#b42318;border-color:#fecdca}.global-banner.warn{background:#fffaeb;color:#b54708;border-color:#fedf89}.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.team-grid.three{grid-template-columns:repeat(3,minmax(320px,1fr))}.team-grid.four{grid-template-columns:repeat(4,minmax(300px,1fr))}.team-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;min-width:0}.team-card-head{display:flex;gap:8px;padding:12px;background:#f8fafc;border-bottom:1px solid var(--line)}.team-select-wrap{flex:1}.team-select{width:100%;min-height:40px;border:1px solid #cfd6df;border-radius:8px;padding:7px 10px;font-weight:850;background:#fff}.team-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.team-summary>div{background:#fff;padding:9px 10px;display:grid;gap:3px}.team-summary span{font-size:10px;text-transform:uppercase;color:var(--muted);font-weight:800}.team-summary strong{font-size:13px}.team-status{margin:10px;border-radius:9px;padding:9px 10px;display:grid;gap:2px;border:1px solid}.team-status.neutral{background:#f8fafc;border-color:#d0d5dd;color:#475467}.team-status.ok{background:#ecfdf3;border-color:#abefc6;color:#067647}.team-status.error{background:#fef3f2;border-color:#fecdca;color:#b42318}.team-status.warn{background:#fffaeb;border-color:#fedf89;color:#b54708}.team-status span{font-size:11px}.section-title{padding:9px 12px 6px;font-size:11px;font-weight:900;text-transform:uppercase;color:#344054}.assets-scroll{max-height:410px;overflow:auto;border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6}.asset{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid #eef1f4;background:#fff;cursor:grab}.asset:hover{background:#f8fbff}.asset.dragging{opacity:.45}.asset-name{min-width:0}.asset-name strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-name small{display:block;font-size:10px;color:#667085}.asset-value{font-size:12px;font-weight:900}.asset-badge{font-size:9px;padding:3px 5px;border-radius:999px;background:#eef2f6;color:#475467;font-weight:900}.pick{background:#fbfcfd}.incoming-zone{min-height:110px;margin:0 10px 12px;border:2px dashed #c8d0da;border-radius:10px;padding:7px;background:#fafbfc}.incoming-zone.drag-over{border-color:#2563eb;background:#eff6ff}.incoming-zone .asset{border:1px solid #d9dee7;border-radius:8px;margin:4px 0}.empty-drop{color:#98a2b3;font-size:11px;text-align:center;padding:30px 8px}.submit-area{display:grid;justify-items:center;gap:7px;margin:22px 0}#submit-trade{font-size:17px;min-width:260px;padding:13px 22px}.submit-help{font-size:11px;color:#667085}.result-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}.hidden{display:none!important}.result-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.result-head h2{margin:0}.result-team{margin-top:10px;padding:10px;border-radius:9px;background:#f8fafc;border:1px solid #e4e7ec}.result-team h3{margin:0 0 5px;font-size:14px}.result-team ul{margin:5px 0 0;padding-left:18px}.result-team li{margin:3px 0;font-size:12px}.forum-text{width:100%;margin-top:12px;border:1px solid #d0d5dd;border-radius:9px;padding:12px;font-family:Consolas,monospace}@media(max-width:1250px){.team-grid.three,.team-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.trade-shell{width:min(100% - 16px,1700px)}.trade-header{align-items:stretch;flex-direction:column}.team-grid,.team-grid.three,.team-grid.four{grid-template-columns:1fr}.team-summary{grid-template-columns:repeat(2,1fr)}.result-head{align-items:stretch;flex-direction:column}}
.asset.warning{border-left:4px solid #f59e0b}


/* ============================================================
   v0.4.1 · Visual refresh basado en Depth Chart
   ============================================================ */

body{
  background:#f3f6fa;
}
.trade-shell{
  width:min(1680px,calc(100% - 24px));
}
.trade-header{
  background:linear-gradient(135deg,#173a5e,#21598f);
  border-radius:20px;
  box-shadow:0 10px 28px rgba(15,23,42,.13);
}
.team-grid{gap:18px}
.team-card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid #d6dee8;
  box-shadow:0 8px 22px rgba(15,23,42,.08);
  background:#fff;
}

/* Compact hero inspired by Depth Chart */
.team-minihero{
  position:relative;
  min-height:132px;
  display:grid;
  grid-template-columns:92px minmax(0,1fr) minmax(230px,320px);
  align-items:center;
  gap:10px;
  padding:14px 15px;
  color:#fff;
  background:#173a5e center/cover no-repeat;
  isolation:isolate;
}
.team-minihero__veil{
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(7,21,39,.94),rgba(7,21,39,.74) 58%,rgba(7,21,39,.9));
}
.team-minihero__logo{
  width:74px;
  height:74px;
  object-fit:contain;
  justify-self:center;
  filter:drop-shadow(0 6px 11px rgba(0,0,0,.28));
}
.team-minihero__copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.team-minihero__kicker{
  color:#d8e4f2;
  text-transform:uppercase;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
}
.team-minihero__name{
  font-size:19px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.team-minihero__meta{
  color:#d8e4f2;
  font-size:10px;
}
.team-minihero__controls{
  display:flex;
  align-items:center;
  gap:8px;
}
.team-minihero .team-select{
  width:100%;
  min-width:0;
  min-height:42px;
  background:rgba(255,255,255,.97);
  color:#172033;
  border:0;
  border-radius:9px;
  padding:8px 10px;
  font-weight:850;
}
.team-minihero .remove-team{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(255,255,255,.96);
  color:#667085;
  border:1px solid rgba(255,255,255,.5);
  padding:0;
}

/* Finance summary */
.team-summary{
  background:#dbe2ea;
}
.team-summary>div{
  padding:10px 12px;
  background:#fff;
}
.team-summary span{
  color:#667085;
  font-size:9px;
  font-weight:900;
  letter-spacing:.045em;
}
.team-summary strong{
  font-size:13px;
  color:#101828;
}

/* Status */
.team-status{
  margin:11px 12px;
  padding:10px 12px;
  border-radius:11px;
}
.team-status strong{font-size:14px}
.team-status span{font-size:10px}

/* Sections */
.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  padding:10px 13px 7px;
}
.section-title span{
  font-size:10px;
  font-weight:900;
  color:#344054;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.section-title small{
  color:#98a2b3;
  font-size:9px;
  font-weight:600;
}

/* Assets */
.assets-scroll{
  max-height:445px;
  border-top:1px solid #edf0f4;
  border-bottom:1px solid #edf0f4;
}
.asset{
  min-height:51px;
  padding:8px 12px;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:9px;
  border-bottom:1px solid #edf0f4;
}
.asset:hover{
  background:#f7faff;
}
.asset-badge{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#edf2f7;
  color:#475467;
  font-size:8px;
  font-weight:900;
}
.asset-badge--pick{
  background:#e6edf6;
  color:#344054;
}
.asset-name strong{
  font-size:11.5px;
}
.asset-name small{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:3px;
  color:#667085;
  font-size:8.5px;
}
.asset-value{
  color:#101828;
  font-size:11.5px;
  font-weight:900;
}
.asset-chevron{
  color:#98a2b3;
  font-size:20px;
}
.asset.warning{
  border-left:4px solid #f59e0b;
  padding-left:8px;
}

/* Ratings: same square language as Depth Chart */
.rating-inline{
  display:inline-flex;
  align-items:center;
  gap:3px;
}
.rating-dot{
  width:9px;
  height:9px;
  display:inline-block;
  border-radius:2px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);
}
.rating-dot--green{background:#22c55e}
.rating-dot--blue{background:#2563eb}
.rating-dot--yellow{background:#facc15}
.rating-dot--orange{background:#f97316}
.rating-dot--red{background:#ef4444}
.rating-dot--purple{background:#9333ea}
.rating-dot--gray,.rating-dot--grey{background:#94a3b8}
.rating-dot--lime{background:#84cc16}
.rating-dot--teal{background:#14b8a6}
.rating-sep{color:#98a2b3;margin:0 1px}
.tag{
  display:inline-flex;
  border-radius:999px;
  padding:2px 5px;
  font-size:7.5px;
  font-weight:850;
}
.tag-minimum{
  background:#eef4ff;
  color:#3538cd;
}
.tag-recent{
  background:#fff4e5;
  color:#b54708;
}

/* Incoming */
.incoming-zone{
  margin:0 11px 13px;
  min-height:118px;
  padding:7px;
  border:2px dashed #c7d3e0;
  border-radius:12px;
  background:#fafcff;
}
.incoming-zone.drag-over{
  border-color:#3b82f6;
  background:#eff6ff;
}
.incoming-zone .asset{
  border:1px solid #dbe3ec;
  border-radius:9px;
  margin:4px 0;
  box-shadow:0 1px 4px rgba(15,23,42,.04);
}

/* Submit */
.submit-area{
  position:sticky;
  bottom:8px;
  z-index:10;
  width:max-content;
  max-width:calc(100% - 20px);
  margin:22px auto;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(214,222,232,.95);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(15,23,42,.14);
}
#submit-trade{
  min-width:280px;
}

/* Result */
.result-card{
  border-radius:16px;
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}

@media(max-width:1100px){
  .team-minihero{
    grid-template-columns:75px minmax(0,1fr);
  }
  .team-minihero__controls{
    grid-column:1/-1;
  }
}
@media(max-width:760px){
  .team-minihero{
    grid-template-columns:62px 1fr;
    min-height:118px;
    padding:12px;
  }
  .team-minihero__logo{
    width:54px;height:54px;
  }
  .team-minihero__name{
    font-size:16px;
  }
  .team-minihero__controls{
    flex-direction:row;
  }
  .section-title small{display:none}
}

/* v0.4.2 - correcciones visuales */
.team-summary strong.money-negative{
  color:#c62828 !important;
  font-weight:900;
}


/* v0.4.4 - cabecera compacta en trades de 4 franquicias */
.team-grid.four .team-minihero{
  grid-template-columns:72px minmax(0,1fr);
  min-height:104px;
  padding:12px 13px;
}
.team-grid.four .team-minihero__copy{
  display:none;
}
.team-grid.four .team-minihero__logo{
  width:58px;
  height:58px;
}
.team-grid.four .team-minihero__controls{
  grid-column:auto;
  width:100%;
}
.team-grid.four .team-minihero .team-select{
  min-width:0;
}
