/* =========================================================
   PARAM UI — CSS COMPLET (Full Kit ~600 lignes)
   - Pixel-like: cards, glass, spacing, grid stable
   - Support: chips OU card dans param-compose__chips
   - Dropdown AJAX results
   - Sidebar sticky + phone preview
========================================================= */

/* ------------------------------
   THEME / TOKENS
------------------------------ */
:root{
  --param-bg: #f6f1ff;

  --param-surface: rgba(255,255,255,.76);
  --param-surface-soft: rgba(255,255,255,.58);
  --param-surface-hard: rgba(255,255,255,.92);

  --param-border: rgba(231,222,250,.90);
  --param-border-soft: rgba(231,222,250,.62);

  --param-text: #241b33;
  --param-muted: #7a7191;
  --param-muted-2: rgba(122,113,145,.78);

  --param-primary: #6f2cff;
  --param-primary-2: #8a5cff;
  --param-primary-3: #9c77ff;

  --param-shadow: 0 18px 40px rgba(30, 12, 70, .14);
  --param-shadow-soft: 0 10px 24px rgba(30, 12, 70, .10);
  --param-shadow-inset: inset 0 1px 0 rgba(255,255,255,.85);

  --param-radius-xl: 28px;
  --param-radius-lg: 20px;
  --param-radius-md: 14px;
  --param-radius-sm: 12px;

  --param-blur: 10px;

  --param-gap: 22px;
  --param-gap-sm: 14px;
  --param-gap-xs: 10px;

  --param-focus: rgba(111,44,255,.25);
  --param-hover: rgba(111,44,255,.10);

  --param-line: 1px solid var(--param-border-soft);
}

/* ------------------------------
   RESET + BASE
------------------------------ */
*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

body{
  overflow-x:hidden;
  overflow-y:auto;
  color: var(--param-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";

  background:
    radial-gradient(1200px 650px at 50% -5%, rgba(111,44,255,.20), transparent 60%),
    radial-gradient(900px 650px at 12% 10%, rgba(111,44,255,.12), transparent 60%),
    radial-gradient(900px 650px at 92% 10%, rgba(111,44,255,.10), transparent 60%),
    var(--param-bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin:0; }
small{ font-size: 12px; }

button{
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input, select, textarea{
  font: inherit;
  color: inherit;
}

::selection{ background: rgba(111,44,255,.18); }

:focus-visible{
  outline: 3px solid var(--param-focus);
  outline-offset: 2px;
  border-radius: 10px;
}

[hidden]{ display:none !important; }

/* ------------------------------
   HELPERS
------------------------------ */
.param-muted{ color: var(--param-muted); font-weight: 800; }
.param-muted-2{ color: var(--param-muted-2); font-weight: 750; }

.param-ellipsis{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.param-sep{ border-top: var(--param-line); }
.param-p-18{ padding: 18px 20px 20px; }
.param-p-20{ padding: 20px; }
.param-mt-8{ margin-top: 8px; }
.param-mt-12{ margin-top: 12px; }
.param-mb-12{ margin-bottom: 12px; }
.param-w-100{ width:100%; }
.param-center{ display:grid; place-items:center; }
.param-right{ margin-left:auto; }

/* ------------------------------
   PAGE WRAPPER
------------------------------ */
.param-page{
  min-height: 100vh;
  width: 100%;
  padding: 26px 26px 40px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.param-container{
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

/* ------------------------------
   TOPBAR
------------------------------ */
.param-topbar{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 16px;

  border-radius: var(--param-radius-xl);
  border: 1px solid var(--param-border);
  background: var(--param-surface);

  backdrop-filter: blur(var(--param-blur));
  box-shadow: var(--param-shadow);
}

.param-logo{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;

  background: rgba(111,44,255,.12);
  color: var(--param-primary);
  font-weight: 950;
  flex: 0 0 auto;
}

.param-search{
  flex: 1;
  min-width: 340px;

  display:flex;
  align-items:center;
  gap: 10px;

  height: 46px;
  padding: 0 14px;

  border-radius: 16px;
  border: 1px solid var(--param-border);
  background: var(--param-surface-hard);

  box-shadow: var(--param-shadow-inset);
}

.param-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size: 14px;
}
.param-search input::placeholder{ color: rgba(122,113,145,.75); }

.param-topbar__actions{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.param-btn{
  height: 46px;
  padding: 0 16px;

  border-radius: 16px;
  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.74);

  font-weight: 850;
  display:inline-flex;
  align-items:center;
  gap: 10px;

  white-space: nowrap;
  box-shadow: var(--param-shadow-soft);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease, filter .14s ease;
}

.param-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.82);
}
.param-btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}

.param-btn--primary{
  background: linear-gradient(180deg, var(--param-primary-2), var(--param-primary));
  border-color: transparent;
  color:#fff;
  box-shadow: 0 14px 30px rgba(111,44,255,.26);
}
.param-btn--primary:hover{ filter: brightness(1.02); }

.param-btn--ghost{
  background: rgba(255,255,255,.58);
}

.param-btn--sm{
  height: 40px;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 850;
}

.param-icon-btn{
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--param-muted);
  font-size: 22px;
  transition: background .14s ease, color .14s ease;
}
.param-icon-btn:hover{ background: var(--param-hover); color: var(--param-text); }

/* ------------------------------
   FILTERS
------------------------------ */
.param-filters{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  padding: 0 2px;
}

.param-pill{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;

  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.58);

  backdrop-filter: blur(var(--param-blur));
  box-shadow: 0 10px 20px rgba(30, 12, 70, .06);

  color: var(--param-muted);
  font-weight: 850;
  font-size: 13px;
  white-space: nowrap;

  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.param-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.72);
}

.param-pill.is-active{
  background: rgba(111,44,255,.14);
  border-color: rgba(111,44,255,.26);
  color: var(--param-primary);
}

/* =========================================================
   MAIN GRID + COLS (stable + align top)
========================================================= */
.param-main{
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(420px, .90fr) minmax(320px, .70fr);
  gap: var(--param-gap);

  /* 🔑 alignement en haut dans le grid */
  align-items: start;
  align-content: start;
}

/* évite overflow qui “pousse” les colonnes */
.param-main > *{ min-width: 0; }

/* Colonnes */
.param-col{
  display: flex;
  flex-direction: column;
  gap: var(--param-gap);

  /* 🔑 toutes les colonnes démarrent au même niveau */
  align-self: start;

  /* anti parasite */
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Supprime tout margin-top sur le 1er enfant de chaque colonne */
.param-col > *:first-child{
  margin-top: 0 !important;
}

/* =========================================================
   CARD (clean)
========================================================= */
.param-card{
  width: 100%;
  min-width: 0;
  margin: 0; /* 🔑 pas de décalage */

  border-radius: var(--param-radius-lg);
  border: 1px solid var(--param-border);
  background: var(--param-surface);
  backdrop-filter: blur(var(--param-blur));
  box-shadow: var(--param-shadow);
  overflow: hidden;
}

/* Variante soft */
.param-card--soft{
  background: rgba(255,255,255,.70);
  box-shadow: var(--param-shadow-soft);
}

.param-card__head{
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(255,255,255,.36);
  border-bottom: var(--param-line);
}

.param-card__title{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width:0;
}

.param-card__title h2,
.param-card__title h3{
  margin:0;
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.param-card__body{
  padding: 18px 20px 20px;
}

.param-icon{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(111,44,255,.14);
  color: var(--param-primary);
  font-weight: 950;
  flex: 0 0 auto;
}

/* =========================================================
   COMPOSER (Search + Results + Chips/Card + Row)
========================================================= */
.param-compose__search{
  position: relative;
  margin: 16px 20px 12px;
  display:flex;
  align-items:center;
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--param-border);
  background: var(--param-surface-hard);
  box-shadow: var(--param-shadow-inset);
}

.param-compose__search input[type="search"]{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size: 14px;
  font-weight: 800;
}
.param-compose__search input::placeholder{
  color: rgba(122,113,145,.75);
}

/* Dropdown results (AJAX) */
.param-compose__search .results{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% + 8px);
  z-index: 100;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--param-border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(30,12,70,.18);
  max-height: 280px;
  overflow:auto;
  display:none;
}
.param-compose__search .results ul{ padding: 6px; }
.param-compose__search .results li{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 850;
  cursor:pointer;
  transition: background .12s ease, transform .12s ease;
}
.param-compose__search .results li:hover{
  background: rgba(111,44,255,.12);
  transform: translateX(2px);
}

/* Scrollbar (dropdown) */
.param-compose__search .results::-webkit-scrollbar{ width: 10px; }
.param-compose__search .results::-webkit-scrollbar-thumb{
  background: rgba(111,44,255,.22);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.80);
}

/* Chips container */
.param-compose__chips{
  padding: 0 20px 14px;
}

/* Chips mode */
.param-compose__chips.has-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

/* Card mode */
.param-compose__chips.has-card{
  display:block;
  padding: 0 20px 18px;
}

/* fallback */
.param-compose__chips > .param-card{
  box-shadow: var(--param-shadow-soft);
}

/* Chips */
.param-chip{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.60);
  color: #5a4d77;
  font-weight: 900;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
}

/* Row fields */
.param-compose__row{
  padding: 0 20px 20px;
  display:grid;
  grid-template-columns: 120px 1fr 1fr 160px;
  gap: 12px;
  align-items:center;
}

.param-field{
  height: 46px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0 12px;

  border-radius: 16px;
  border: 1px solid var(--param-border);
  background: var(--param-surface-hard);

  min-width:0;
  box-shadow: var(--param-shadow-inset);
}

.param-field input,
.param-field select{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  font-size: 14px;
}

.param-field select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
}

/* =========================================================
   LIST / ITEMS
========================================================= */
.param-list{
  display:flex;
  flex-direction:column;
  gap: var(--param-gap-sm);
}

.param-row{
  display:flex;
  align-items:center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 16px;

  border: 1px solid rgba(231,222,250,.80);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 18px rgba(30, 12, 70, .06);
}

.param-thumb{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(111,44,255,.12);
  flex: 0 0 auto;
}

.param-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.param-meta b{ font-weight: 950; }
.param-meta small{ color: var(--param-muted); font-weight: 800; }

/* =========================================================
   SPLIT (Two panes)
========================================================= */
/* 1) Le split ne doit PAS contraindre la table */
.param-split{
  display: block !important;  /* si tu n'as qu'un seul pane dedans */
}

/* 2) Le pane doit pouvoir s'étirer */
.param-pane{
  width: 100%;
  min-width: 0;
}

/* 3) Le wrapper autorise la table à occuper toute la largeur */
.param-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* 4) La table doit remplir la card */
.param-table.ingredientTable{
  width: 100%;
  min-width: 1200px; /* + grand pour que ça fasse "large" */
  table-layout: fixed; /* ✅ pour respecter tes widths */
}

.param-pane__head{
  padding: 16px 20px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.param-pane__head h3{
  margin:0;
  font-size: 15px;
  font-weight: 950;
}

/* Overlay */
#qtyOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  display: none;
}

/* Modal wrapper */
#qtyModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 18px;
}

/* Modal card */
#qtyModal .qty-modal__card{
  position: relative;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  padding: 18px 18px 16px;

  transform: translateY(8px);
  opacity: 0;
  animation: qtyPop .16s ease-out forwards;
}

@keyframes qtyPop{
  to { transform: translateY(0); opacity: 1; }
}

/* Close button */
#qtyModal .qty-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;

  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;

  border: none;
  border-radius: 10px;
  cursor: pointer;

  font-size: 26px;
  line-height: 1;
  color: #222;
  background: rgba(0,0,0,.06);
}

#qtyModal .qty-modal__close:hover{ background: rgba(0,0,0,.10); }
#qtyModal .qty-modal__close:active{ transform: translateY(1px); }

/* Body */
#qtyContent{
  padding-top: 8px;
}

/* Mobile */
@media (max-width: 520px){
  #qtyModal{ padding: 12px; }
  #qtyModal .qty-modal__card{
    border-radius: 14px;
    padding: 14px 14px 12px;
    max-height: 85vh;
  }
}

/* =========================================================
   TABLE
========================================================= */
/* =========================================================
   TABLEAU DES QUANTITÉS — STYLE FINAL (agréable + large)
   Cible: .param-table-wrap + .param-table.ingredientTable
========================================================= */

/* Wrapper: plus large, scroll horizontal propre */
.param-table-wrap{
  padding: 0 20px 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  border-radius: 18px;
}

/* Table: respire + évite compression */
.param-table.ingredientTable{
  width: 100%;
  min-width: 1040px;        /* 🔑 rend la table "large" */
  table-layout: auto;        /* 🔑 laisse les colonnes vivre */
  border-collapse: separate;
  border-spacing: 0;

  border-radius: 18px;
  border: 1px solid var(--param-border-soft);
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 22px rgba(30, 12, 70, .06);
  overflow: hidden;
}

/* Header */
.param-table.ingredientTable thead th{
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 950;
  color: var(--param-muted);
  text-align: left;

  background: rgba(246,241,255,.55);
  border-bottom: 1px solid var(--param-border-soft);
}

/* Body cells */
.param-table.ingredientTable tbody td{
  padding: 16px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--param-border-soft);
  background: rgba(255,255,255,.62);

  color: var(--param-text);
  font-weight: 850;
}

/* Dernière ligne */
.param-table.ingredientTable tbody tr:last-child td{
  border-bottom: 0;
}

/* Alternance légère + hover */
.param-table.ingredientTable tbody tr:nth-child(2n) td{
  background: rgba(255,255,255,.72);
}
.param-table.ingredientTable tbody tr:hover td{
  background: rgba(111,44,255,.06);
}

/* =========================================================
   Largeurs colonnes (stables + lisibles)
========================================================= */
.param-table.ingredientTable th:nth-child(1),
.param-table.ingredientTable td:nth-child(1){ width: 110px; } /* Image */

.param-table.ingredientTable th:nth-child(2),
.param-table.ingredientTable td:nth-child(2){ width: 260px; } /* Ingrédient */

.param-table.ingredientTable th:nth-child(3),
.param-table.ingredientTable td:nth-child(3){ width: 160px; } /* Gramme */

.param-table.ingredientTable th:nth-child(4),
.param-table.ingredientTable td:nth-child(4){ width: 170px; } /* Unité */

.param-table.ingredientTable th:nth-child(5),
.param-table.ingredientTable td:nth-child(5){ width: 240px; } /* Compartiment */

.param-table.ingredientTable th:nth-child(6),
.param-table.ingredientTable td:nth-child(6){ width: 150px; } /* Actions */

/* Ingrédient ellipsis */
.param-table.ingredientTable td:nth-child(2){
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empêche les retours moches dans les colonnes “boutons” */
.param-table.ingredientTable td:nth-child(3),
.param-table.ingredientTable td:nth-child(4),
.param-table.ingredientTable td:nth-child(6){
  white-space: nowrap;
}

/* =========================================================
   Colonne image + overlay
========================================================= */
.imageColumn{
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.ingredientImageWrapper{
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  overflow: hidden;

  background: rgba(111,44,255,.08);
  border: 1px solid var(--param-border-soft);
  box-shadow: var(--param-shadow-inset);
}

.ingredientAvatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Modifier */
.editOverlay{
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;

  background: linear-gradient(180deg, var(--param-primary-2), var(--param-primary));
  box-shadow: 0 12px 22px rgba(111,44,255,.22);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease, filter .14s ease;
}

.ingredientImageWrapper:hover .editOverlay{
  opacity: 1;
  transform: translateY(0);
}
.editOverlay:hover{ filter: brightness(1.03); }

/* =========================================================
   Liens “Modifier” (quantité / unité) en pills
========================================================= */
.formulaireQuantite,
.btnParametreType{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 30px;
  padding: 0 12px;
  margin-left: 10px;

  border-radius: 999px;
  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.75);

  font-size: 12px;
  font-weight: 950;
  color: var(--param-primary);

  box-shadow: 0 10px 18px rgba(30,12,70,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.formulaireQuantite:hover,
.btnParametreType:hover{
  transform: translateY(-1px);
  background: rgba(111,44,255,.08);
  border-color: rgba(111,44,255,.22);
}

/* =========================================================
   Select compartiment (app UI)
========================================================= */
.selectPreparation{
  width: 100%;
  max-width: 240px;
  height: 38px;
  padding: 0 12px;

  border-radius: 14px;
  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.82);

  font-size: 13px;
  font-weight: 900;
  color: var(--param-text);

  box-shadow: var(--param-shadow-inset);
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  /* flèche */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(122,113,145,.95) 50%),
    linear-gradient(135deg, rgba(122,113,145,.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 12px) 15px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.selectPreparation:focus{
  border-color: rgba(111,44,255,.35);
  box-shadow: var(--param-shadow-inset), 0 0 0 4px rgba(111,44,255,.14);
}

/* =========================================================
   Supprimer (soft danger)
========================================================= */
.btnDelete{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 14px;

  border-radius: 14px;
  border: 1px solid var(--param-border);
  background: rgba(255,255,255,.75);

  font-weight: 950;
  font-size: 13px;
  color: #3a2f53;

  box-shadow: 0 10px 18px rgba(30,12,70,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.btnDelete:hover{
  transform: translateY(-1px);
  background: rgba(255, 66, 110, .10);
  border-color: rgba(255, 66, 110, .25);
  color: #c8224a;
}

/* =========================================================
   Scrollbar (wrapper horizontal)
========================================================= */
.param-table-wrap::-webkit-scrollbar{ height: 12px; }
.param-table-wrap::-webkit-scrollbar-thumb{
  background: rgba(111,44,255,.18);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.75);
}

/* =========================================================
   Responsive: on assume le scroll horizontal, on évite l'écrasement
========================================================= */
@media (max-width: 980px){
  .param-table.ingredientTable{
    min-width: 900px;
  }
}
@media (max-width: 760px){
  .param-table-wrap{
    padding: 0 14px 16px;
  }
  .param-table.ingredientTable{
    min-width: 860px;
  }
}


/* =========================================================
   KPI
========================================================= */
.param-kpi{
  padding: 12px 20px 20px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.param-kpi__line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  border-bottom: var(--param-line);
  color: var(--param-muted);
  font-weight: 900;
}
.param-kpi__line:last-child{ border-bottom:0; }
.param-kpi__value{ color: var(--param-text); }

/* =========================================================
   STEPS
========================================================= */
.param-steps{
  padding: 12px 20px 20px;
  display:flex;
  flex-direction:column;
  gap: var(--param-gap-sm);
}

.param-step{
  display:flex;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(231,222,250,.80);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 18px rgba(30, 12, 70, .06);
}

.param-badge{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(111,44,255,.15);
  color: var(--param-primary);
  font-weight: 1000;
  flex: 0 0 auto;
}

.param-step p{
  margin:0;
  color: #52466e;
  font-weight: 900;
  line-height: 1.35;
}

/* =========================================================
   ACTIVITY
========================================================= */
.param-activity{
  padding: 18px 20px 22px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  color: var(--param-muted);
  font-weight: 900;
}

/* =========================================================
   SIDEBAR + PHONE (sticky)
========================================================= */
.param-sidebar{
  position: sticky;
  top: 24px;
  width:100%;
  min-width:0;

  border-radius: var(--param-radius-xl);
  border: 1px solid var(--param-border);
  background: var(--param-surface);

  backdrop-filter: blur(var(--param-blur));
  box-shadow: var(--param-shadow);

  padding: 14px;
}

.param-phone{
  border-radius: 26px;
  border: 1px solid rgba(231,222,250,.90);
  background: linear-gradient(180deg, rgba(246,241,255,.65), rgba(246,241,255,.35));
  padding: 14px;
}

.param-mini{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(231,222,250,.80);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 22px rgba(30, 12, 70, .08);
  margin-bottom: 12px;
}

.param-mini h4{
  margin: 2px 0 8px;
  font-size: 18px;
  font-weight: 1000;
}
.param-mini__muted{
  color: var(--param-muted);
  font-weight: 900;
  font-size: 13px;
}

/* =========================================================
   SCROLLBARS (optional)
========================================================= */
.param-list::-webkit-scrollbar,
.param-steps::-webkit-scrollbar{
  width: 10px;
}
.param-list::-webkit-scrollbar-thumb,
.param-steps::-webkit-scrollbar-thumb{
  background: rgba(111,44,255,.18);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.70);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px){
  .param-main{ grid-template-columns: 1fr .95fr; }
  .param-sidebar{ display:none; }
}

@media (max-width: 980px){
  .param-page{ padding: 18px 14px 30px; }
  .param-topbar{ flex-wrap:wrap; gap: 12px; }
  .param-search{ min-width: 100%; }

  .param-main{ grid-template-columns: 1fr; }

  .param-split{ grid-template-columns: 1fr; }
  .param-pane + .param-pane{
    border-left: 0;
    border-top: var(--param-line);
  }

  .param-compose__row{ grid-template-columns: 1fr 1fr; }
  .param-compose__row .param-btn--primary{ grid-column: 1 / -1; }
}

@media (max-width: 560px){
  .param-compose__row{ grid-template-columns: 1fr; }
  .param-btn{ width:100%; justify-content:center; }
}
