/* ─────────────────────────────────────────────────────────────────────────────
   KreaBoard - Dashboard créateur
   Design proche capture validée. Données dynamiques uniquement.
   ───────────────────────────────────────────────────────────────────────────── */

.kb-dashboardRoot{
  width:100%;
  max-width:1560px;
  margin:0 auto;
  padding:8px 24px 36px;
}.kb-dashboardRoot *{
  box-sizing:border-box;
}.kb-dashboardTop{
  display:grid;
  grid-template-columns:minmax(420px,1fr) minmax(620px,680px);
  gap:22px;
  align-items:start;
  margin-bottom:18px;
}.kb-dashboardWelcome{
  min-height:168px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:22px;
  padding-top:4px;
}.kb-dashboardWelcome h2{
  margin:0;
  color:#0b1744;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.035em;
}.kb-dashboardWelcome p{
  margin:8px 0 0;
  color:#5d6b86;
  font-size:15px;
}.kb-dashboardWelcomeActions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}.kb-dashboardButton{
  min-height:48px;
  min-width:150px;
  border-radius:999px;
  border:1px solid #dbe4f0;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  text-decoration:none;
  cursor:pointer;
  font-size:14px;
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}.kb-dashboardButton:hover,
.kb-dashboardKpi:hover,
.kb-dashboardUniverse:hover{
  transform:translateY(-1px);
}.kb-dashboardButton--primary{
  color:#fff;
  border-color:#3157ff;
  background:linear-gradient(135deg,#2563ff 0%,#4f46e5 100%);
  box-shadow:0 14px 30px rgba(37,99,255,.24);
}.kb-dashboardButton--primary b{
  font-size:18px;
}.kb-dashboardButton--light{
  background:#fff;
  color:#0b1744;
}.kb-dashboardPlanCard,
.kb-dashboardKpi,
.kb-dashboardPanel,
.kb-dashboardUniverse{
  background:#fff;
  border:1px solid #dfe7f2;
  box-shadow:0 14px 34px rgba(15,23,42,.055);
}.kb-dashboardPlanCard{
  min-height:178px;
  border-radius:22px;
  padding:20px 22px;
}.kb-dashboardPlanTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}.kb-dashboardPlanTop span{
  display:block;
  color:#0b1744;
  font-size:14px;
  font-weight:900;
}.kb-dashboardPlanBadge{
  display:inline-flex;
  margin-top:4px;
  padding:5px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:950;
  letter-spacing:.04em;
  background:#efe7ff;
  color:#6d28d9;
}.kb-dashboardPlanStatus{
  display:flex;
  align-items:center;
  gap:7px;
  margin:14px 0 6px;
  color:#16a34a;
  font-size:13px;
  font-weight:850;
}.kb-dashboardPlanStatus span{
  font-size:10px;
}.kb-dashboardPlanDetail{
  margin:0 0 10px;
  color:#66738c;
  font-size:13px;
  line-height:1.45;
}.kb-dashboardPlanAction{
  margin-top:8px;
}.kb-dashboardPlanAction span{
  color:#66738c;
  font-size:12px;
  font-weight:800;
}.kb-dashboardPlanLink{
  display:inline-flex;
  align-items:center;
  margin-top:4px;
  color:#3157ff;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
}.kb-dashboardPlanLink--muted{
  color:#3157ff;
}.kb-dashboardKpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px;
}.kb-dashboardKpi{
  min-height:112px;
  border-radius:18px;
  padding:18px 20px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  align-items:center;
  gap:18px;
  text-align:left;
  cursor:pointer;
}.kb-dashboardKpiIcon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
}.kb-dashboardKpiIcon--purple{ background:#efe7ff; color:#7c3aed; }.kb-dashboardKpiIcon--green{ background:#dcfce7; color:#16a34a; }.kb-dashboardKpiIcon--orange{ background:#ffedd5; color:#f97316; }.kb-dashboardKpiIcon--blue{ background:#e0ecff; color:#2563eb; }.kb-dashboardKpiBody{
  display:flex;
  min-width:0;
  flex-direction:column;
}.kb-dashboardKpi small{
  color:#64748b;
  font-size:13px;
  font-weight:800;
}.kb-dashboardKpi strong{
  margin-top:3px;
  color:#071335;
  font-size:27px;
  line-height:1;
  letter-spacing:-.035em;
}.kb-dashboardKpi em{
  margin-top:7px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  font-style:normal;
}.kb-dashboardMiddle{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.35fr) minmax(320px,.95fr);
  align-items:stretch;
  gap:16px;
  margin-bottom:26px;
}.kb-dashboardPanel{
  border-radius:20px;
  padding:22px;
  min-width:0;
  height:100%;
}.kb-dashboardPanelHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}.kb-dashboardPanelHead h3{
  margin:0;
  color:#071335;
  font-size:19px;
  line-height:1.15;
  letter-spacing:-.02em;
}.kb-dashboardPanelHead > span{
  min-width:24px;
  height:24px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#efe7ff;
  color:#6d28d9;
  font-size:12px;
  font-weight:900;
}.kb-dashboardPanelHead button{
  border:0;
  background:transparent;
  color:#3157ff;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}.kb-dashboardEmpty{
  min-height:94px;
  border:1px dashed #cbd8e8;
  border-radius:16px;
  background:#f8fbff;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}.kb-dashboardEmpty strong{
  color:#071335;
  font-size:14px;
}.kb-dashboardEmpty span{
  color:#66738c;
  font-size:12px;
  line-height:1.4;
}.kb-dashboardEmpty--chart{
  min-height:194px;
  align-items:center;
  text-align:center;
}.kb-dashboardTabs{
  display:flex;
  gap:8px;
}.kb-dashboardTabs span{
  padding:7px 13px;
  border-radius:999px;
  background:#eef3ff;
  color:#3157ff;
  font-size:12px;
  font-weight:850;
}.kb-dashboardTabs span + span{
  background:transparent;
  color:#64748b;
}.kb-dashboardChart{
  height:188px;
  display:flex;
  align-items:end;
  gap:10px;
  padding:18px;
  border-radius:16px;
  background:
    repeating-linear-gradient(to top,#eef2f7 0,#eef2f7 1px,transparent 1px,transparent 46px),
    #fff;
}.kb-dashboardChart span{
  flex:1;
  min-width:10px;
  border-radius:999px 999px 0 0;
  background:linear-gradient(180deg,#3157ff 0%,#c4b5fd 100%);
}.kb-dashboardActivityFooter{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:16px;
  border:1px solid #edf2f7;
  border-radius:16px;
  overflow:hidden;
}.kb-dashboardActivityFooter div{
  padding:13px 16px;
}.kb-dashboardActivityFooter div + div{
  border-left:1px solid #edf2f7;
}.kb-dashboardActivityFooter small{
  display:block;
  color:#64748b;
  font-size:12px;
}.kb-dashboardActivityFooter strong{
  color:#071335;
  font-size:18px;
}.kb-dashboardAppointment{
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:12px;
  align-items:center;
}.kb-dashboardAppointment > span{
  width:50px;
  min-height:58px;
  border-radius:14px;
  background:#eef3ff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}.kb-dashboardAppointment > span small{
  color:#3157ff;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}.kb-dashboardAppointment > span strong{
  color:#071335;
  font-size:19px;
}.kb-dashboardAppointment em{
  color:#3157ff;
  font-size:11px;
  font-weight:900;
  font-style:normal;
}.kb-dashboardAppointment strong{
  display:block;
  color:#071335;
  font-size:14px;
}.kb-dashboardAppointment small{
  color:#66738c;
  font-size:12px;
}.kb-dashboardUniverses{
  margin-bottom:24px;
}.kb-dashboardUniverses h3{
  margin:0 0 14px;
  color:#071335;
  font-size:19px;
  letter-spacing:-.02em;
}.kb-dashboardUniverseGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}.kb-dashboardUniverse{
  min-height:154px;
  border-radius:20px;
  padding:18px;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}.kb-dashboardUniverse--purple{ background:linear-gradient(135deg,#faf5ff 0%,#fff 100%); border-color:#eadcff; }.kb-dashboardUniverse--green{ background:linear-gradient(135deg,#f0fdf4 0%,#fff 100%); border-color:#d7f3df; }.kb-dashboardUniverse--orange{ background:linear-gradient(135deg,#fff7ed 0%,#fff 100%); border-color:#fedfc2; }.kb-dashboardUniverse--blue{ background:linear-gradient(135deg,#eff6ff 0%,#fff 100%); border-color:#d9e8ff; }.kb-dashboardUniverse span{
  width:48px;
  height:48px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.7);
  font-size:23px;
  margin-bottom:12px;
}.kb-dashboardUniverse strong{
  display:block;
  color:#071335;
  font-size:16px;
}.kb-dashboardUniverse small{
  display:block;
  margin-top:5px;
  color:#66738c;
  line-height:1.4;
}.kb-dashboardUniverse footer{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.28);
  display:flex;
  align-items:center;
  gap:13px;
}.kb-dashboardUniverse footer em{
  color:#42526b;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}.kb-dashboardUniverse footer b{
  margin-left:auto;
  color:#3157ff;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Dashboard - Barre outils externes + partage rapide
   ───────────────────────────────────────────────────────────────────────────── */

.kb-dashboardToolbarGrid{
  display:grid;
  grid-template-columns:minmax(0, 1.18fr) minmax(420px, .92fr);
  gap:18px;
  align-items:stretch;
}

.kb-dashboardExternalToolbar,
.kb-dashboardShareToolbar{
  background:#fff;
  border:1px solid #dce8f7;
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 28px rgba(15,35,80,.04);
}

.kb-dashboardToolbarHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.kb-dashboardToolbarHead h3{
  margin:0;
  color:#071f4a;
  font-size:18px;
  line-height:1.2;
  font-weight:850;
}

.kb-dashboardToolbarLink{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#3264ff;
  font-size:12px;
  line-height:1;
  font-weight:850;
  text-decoration:none;
  white-space:nowrap;
}

.kb-dashboardExternalToolbarGrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}

.kb-dashboardExternalTool{
  min-height:74px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 16px;
  align-items:center;
  gap:11px;
  padding:13px 12px;
  border:1px solid #dce8f7;
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  color:#071f4a;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.kb-dashboardExternalTool:hover{
  transform:translateY(-1px);
  border-color:#c8daf5;
  background:#fbfdff;
  box-shadow:0 8px 22px rgba(15,35,80,.07);
}

.kb-dashboardExternalToolIcon{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#f5f8ff;
  overflow:hidden;
}

.kb-dashboardExternalToolIcon img{
  width:28px;
  height:28px;
  display:block;
  object-fit:contain;
}

.kb-dashboardExternalToolText{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.kb-dashboardExternalToolText strong{
  color:#071f4a;
  font-size:13px;
  line-height:1.2;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-dashboardExternalToolText small{
  color:#64748b;
  font-size:11px;
  line-height:1.25;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-dashboardExternalToolArrow{
  color:#8aa0c7;
  font-size:14px;
  font-weight:850;
}

.kb-dashboardShareToolbarRow{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
  align-items:center;
}

.kb-dashboardShareTool{
  width:100%;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 10px;
  border:1px solid #dce8f7;
  border-radius:12px;
  background:#fff;
  color:#071f4a;
  text-decoration:none;
  font-size:12px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}

.kb-dashboardShareTool:hover{
  transform:translateY(-1px);
  border-color:#c8daf5;
  background:#fbfdff;
}

.kb-dashboardShareToolIcon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.kb-dashboardShareToolIcon img{
  width:20px;
  height:20px;
  display:block;
  object-fit:contain;
}

.kb-dashboardShareToolIcon--text{
  font-size:17px;
  line-height:1;
}

.kb-dashboardShareToolbarHint{
  margin:14px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
  font-weight:650;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Dashboard - Plan évolution horizontal compact
   ───────────────────────────────────────────────────────────────────────────── */

.kb-dashboardPlanCard--evolution{
  min-height:auto;
  padding:14px;
  border-radius:18px;
  overflow:visible;
}

.kb-dashboardPlanEvolutionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.kb-dashboardPlanEvolutionHead h3{
  margin:0;
  color:#071f4a;
  font-size:14px;
  line-height:1.2;
  font-weight:950;
}

.kb-dashboardPlanLevels{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:8px;
}

.kb-dashboardPlanLevel{
  position:relative;
  min-height:72px;
  padding:9px 8px 8px;
  border:1px solid #e5edf8;
  border-radius:12px;
  background:#fff;
  text-align:center;
}

.kb-dashboardPlanLevel--active{
  border-color:#bcd0ff;
  background:#f8faff;
}

.kb-dashboardPlanLevel--recommended{
  background:linear-gradient(135deg,#faf5ff 0%,#fff 100%);
  border-color:#e4d7ff;
}

.kb-dashboardPlanLevel strong{
  display:block;
  color:#071f4a;
  font-size:11px;
  line-height:1.1;
  font-weight:950;
}

.kb-dashboardPlanLevel em{
  display:inline-flex;
  margin-top:3px;
  padding:3px 7px;
  border-radius:999px;
  background:#e8f0ff;
  color:#3157ff;
  font-size:8px;
  line-height:1;
  font-style:normal;
  font-weight:950;
}

.kb-dashboardPlanLevel b{
  display:block;
  margin-top:5px;
  color:#071f4a;
  font-size:14px;
  line-height:1;
  font-weight:950;
}

.kb-dashboardPlanLevel b small{
  color:#64748b;
  font-size:8px;
  font-weight:750;
}

.kb-dashboardPlanLevel > span:not(.kb-dashboardPlanRecommended){
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:8px;
  line-height:1.15;
  font-weight:700;
}

.kb-dashboardPlanRecommended{
  position:absolute;
  top:-8px;
  right:-6px;
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  background:#6d3df5;
  color:#fff;
  font-size:7px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}

.kb-dashboardPlanProgress{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  margin:3px 6px 9px;
}

.kb-dashboardPlanProgressLine{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:4px;
  transform:translateY(-50%);
  border-radius:999px;
  background:#e4e9f4;
  overflow:hidden;
}

.kb-dashboardPlanProgressLine i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#3157ff 0%,#7c3aed 100%);
}

.kb-dashboardPlanProgress b{
  position:relative;
  z-index:1;
  justify-self:center;
  width:11px;
  height:11px;
  border-radius:999px;
  background:#d8dfed;
  border:2px solid #fff;
  box-shadow:0 0 0 1px #d8dfed;
}

.kb-dashboardPlanProgress b.is-active{
  background:#3157ff;
  box-shadow:0 0 0 1px #3157ff;
}

.kb-dashboardPlanUpgrade{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border-radius:14px;
  overflow:visible;
  background:linear-gradient(135deg,#fbf7ff 0%,#fff 100%);
  border:1px solid #eadcff;
}

.kb-dashboardPlanUpgradeText{
  min-width:0;
  padding:0;
}

.kb-dashboardPlanUpgradeText strong{
  display:block;
  margin-bottom:7px;
  color:#6d28d9;
  font-size:11px;
  line-height:1.25;
  font-weight:950;
}

.kb-dashboardPlanUpgradeText ul{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px 10px;
  margin:0;
  padding:0;
  list-style:none;
}

.kb-dashboardPlanUpgradeText li{
  position:relative;
  padding-left:16px;
  color:#334155;
  font-size:9px;
  line-height:1.22;
  font-weight:750;
}

.kb-dashboardPlanUpgradeText li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:-1px;
  width:11px;
  height:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  font-size:7px;
  font-weight:950;
}

.kb-dashboardPlanUpgradeActions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:8px;
  min-width:150px;
  padding:0;
  border-left:0;
  border-top:0;
}

.kb-dashboardPlanUpgradeButton{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  max-width:100%;
  padding:0 13px;
  border-radius:11px;
  background:linear-gradient(135deg,#6d28d9 0%,#8b5cf6 100%);
  color:#fff;
  text-decoration:none;
  font-size:10px;
  font-weight:950;
  white-space:nowrap;
}

.kb-dashboardPlanCompare{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#6d28d9;
  text-decoration:none;
  font-size:10px;
  font-weight:950;
  white-space:nowrap;
}
