/* Journal de fermentation Hippie Moderne.
   Même système visuel que le diagnostic (HM Diagnostic) : jetons en trois couches,
   primitives (palette Blocksy du site) > rôles > composants. Préfixe .hmj partout. */
.hmj{
  /* primitives */
  --hmj-navy:var(--theme-palette-color-4,#12143a);
  --hmj-blue:var(--theme-palette-color-1,#164C75);
  --hmj-blue-2:var(--theme-palette-color-2,#346F9F);
  --hmj-cream:#FBF3E4;
  --hmj-cream-line:#EFE2CB;
  --hmj-clay:#A34E32;
  --hmj-clay-bg:#F7E8DD;
  --hmj-white:#fff;
  /* rôles */
  --hmj-fg:var(--hmj-navy);
  --hmj-muted:#575d76;
  --hmj-surface:var(--hmj-white);
  --hmj-tint:#EEF3F8;
  --hmj-tint-2:#F6F8FB;
  --hmj-line:#E2E7EE;
  --hmj-field-line:#CDD5DF;
  --hmj-accent:var(--hmj-blue);
  --hmj-focus:var(--hmj-blue-2);
  --hmj-ok:#23704E;
  --hmj-warn-bg:#FBEFD9;--hmj-warn-line:#E9CF9F;
  /* composants */
  --hmj-r-card:20px;--hmj-r-item:14px;--hmj-r-ctl:12px;--hmj-r-pill:999px;
  --hmj-pad:clamp(18px,4cqi,32px);
  --hmj-shadow:0 1px 2px rgba(18,20,58,.05),0 10px 30px -12px rgba(18,20,58,.16);
  --hmj-shadow-lift:0 14px 30px -14px rgba(18,20,58,.32);
  --hmj-ease:cubic-bezier(.2,.7,.2,1);
  container-type:inline-size;
  position:relative;max-width:1040px;margin:28px auto;text-align:left;isolation:isolate;
  background:var(--hmj-surface);color:var(--hmj-fg);border:1px solid var(--hmj-line);border-radius:var(--hmj-r-card);box-shadow:var(--hmj-shadow);overflow:hidden;overflow:clip;
  font-family:inherit;font-size:16px;line-height:1.55;scroll-margin-top:96px
}
.hmj *,.hmj *::before,.hmj *::after{box-sizing:border-box}
.hmj [hidden]{display:none!important}
.hmj [inert]{opacity:.55}
.hmj button,.hmj input,.hmj select,.hmj textarea{font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none}
.hmj button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hmj h2,.hmj h3,.hmj h4,.hmj h5,.hmj p{margin:0}
.hmj h2,.hmj h3,.hmj h4,.hmj h5{color:var(--hmj-fg);text-wrap:balance}
.hmj p{overflow-wrap:anywhere}
.hmj a{color:var(--hmj-accent);text-decoration:underline;text-decoration-color:rgba(22,76,117,.35);text-underline-offset:3px}
.hmj a:hover{text-decoration-color:currentColor}
.hmj .hmj-small{font-size:13.5px;line-height:1.55;color:var(--hmj-muted)}
.hmj .hmj-eyebrow{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:12px;line-height:1;letter-spacing:.14em;text-transform:uppercase;color:var(--hmj-accent);margin:0 0 10px}
.hmj .hmj-eyebrow::before{content:"";width:18px;height:2px;border-radius:2px;background:currentColor}
.hmj .hmj-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hmj .hmj-icon{display:inline-block;width:18px;height:18px;fill:currentColor;flex-shrink:0;vertical-align:middle}
.hmj :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--hmj-focus);outline-offset:2px}
.hmj button:disabled{opacity:.45;cursor:not-allowed}

/* --- en-tête crème, bulles dessinées en CSS --- */
.hmj-header{position:relative;padding:var(--hmj-pad) calc(var(--hmj-pad) + 90px) calc(var(--hmj-pad) * .85) var(--hmj-pad);border-bottom:1px solid var(--hmj-cream-line);background:
  radial-gradient(circle at calc(100% - 56px) 40px,rgba(22,76,117,.13) 0 16px,transparent 17px),
  radial-gradient(circle at calc(100% - 104px) 82px,rgba(22,76,117,.09) 0 8px,transparent 9px),
  radial-gradient(circle at calc(100% - 40px) 104px,rgba(22,76,117,.08) 0 6px,transparent 7px),
  radial-gradient(circle at calc(100% - 140px) 30px,rgba(163,78,50,.12) 0 5px,transparent 6px),
  var(--hmj-cream);transition:padding .3s var(--hmj-ease)}
.hmj .hmj-header h2{font-size:clamp(25px,4.6cqi,34px);line-height:1.12;letter-spacing:-.02em}
.hmj .hmj-intro{margin:10px 0 0;max-width:56ch;font-size:15.5px;color:var(--hmj-muted)}
/* dans un lot : en-tête réduit, plus de place pour le carnet */
.hmj.is-inside .hmj-header{padding-block:13px;background:radial-gradient(circle at calc(100% - 40px) 50%,rgba(22,76,117,.13) 0 9px,transparent 10px),radial-gradient(circle at calc(100% - 66px) 34%,rgba(22,76,117,.09) 0 5px,transparent 6px),radial-gradient(circle at calc(100% - 84px) 64%,rgba(163,78,50,.12) 0 3px,transparent 4px),var(--hmj-cream)}
.hmj.is-inside .hmj-header .hmj-eyebrow,.hmj.is-inside .hmj-intro{display:none}
.hmj.is-inside .hmj-header h2{font-size:16px;line-height:1.3;letter-spacing:0}

.hmj-body{padding:calc(var(--hmj-pad) * .9) var(--hmj-pad) var(--hmj-pad)}
[data-workspace]>*{animation:hmj-in .35s var(--hmj-ease) both}
@keyframes hmj-in{from{transform:translateY(8px);opacity:.4}to{transform:none;opacity:1}}

/* --- titres de section --- */
.hmj-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:0 0 20px}
.hmj .hmj-title-row h3{font-size:clamp(22px,3.8cqi,28px);line-height:1.2;letter-spacing:-.015em}
.hmj h4{font-size:18px;font-weight:700;line-height:1.35;margin:0 0 14px}
.hmj h5{font-size:15px;font-weight:600;line-height:1.35}
.hmj-crumbs{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:-6px 0 14px}

/* --- boutons --- */
.hmj .hmj-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border:1.5px solid var(--hmj-line);border-radius:var(--hmj-r-pill);background:var(--hmj-surface);color:var(--hmj-accent);font-size:14.5px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;white-space:normal;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s,color .18s}
.hmj .hmj-button:hover{background:var(--hmj-tint);border-color:var(--hmj-blue-2);color:var(--hmj-accent)}
.hmj .hmj-button.hmj-primary{background:var(--hmj-accent);border-color:var(--hmj-accent);color:#fff}
.hmj .hmj-button.hmj-primary:hover{background:var(--hmj-navy);border-color:var(--hmj-navy);color:#fff;box-shadow:0 8px 18px -8px rgba(18,20,58,.5)}
.hmj .hmj-button.hmj-link{min-height:44px;padding:0 10px;margin-left:-10px;border:0;background:none;border-radius:10px}
.hmj .hmj-button.hmj-link:hover{background:var(--hmj-tint);box-shadow:none}
.hmj .hmj-button.is-active{background:var(--hmj-accent);border-color:var(--hmj-accent);color:#fff}
.hmj .hmj-icon-button{display:inline-grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--hmj-accent);cursor:pointer;transition:background .15s,color .15s}
.hmj .hmj-icon-button:hover{background:var(--hmj-tint)}
.hmj .hmj-icon-button[data-action="delete-observation"]{color:#8a6b5f}
.hmj .hmj-icon-button[data-action="delete-observation"]:hover{color:var(--hmj-clay);background:var(--hmj-clay-bg)}
.hmj-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 0}

/* --- pastilles de choix (filtres, types) --- */
.hmj-filters,.hmj-types{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.hmj :is(.hmj-filters,.hmj-types) .hmj-button{min-height:40px;padding:0 15px;font-size:14px;font-weight:500;color:var(--hmj-fg);background:var(--hmj-tint-2)}
.hmj :is(.hmj-filters,.hmj-types) .hmj-button.is-active{background:var(--hmj-accent);border-color:var(--hmj-accent);color:#fff;font-weight:600}

/* --- étagère : cartes de lots --- */
.hmj-lots{display:grid;gap:14px}
.hmj-lot{position:relative;display:flex;flex-direction:column;min-width:0;padding:20px;border:1.5px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface);transition:border-color .18s,box-shadow .18s,transform .18s var(--hmj-ease)}
.hmj-lot-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.hmj .hmj-lot h4{font-size:20px;line-height:1.25;margin:0 0 12px;overflow-wrap:anywhere}
.hmj-lot>.hmj-actions{margin-top:auto;padding-top:16px}
.hmj .hmj-lot .hmj-stretch::after{content:"";position:absolute;inset:0;border-radius:var(--hmj-r-item)}
.hmj .hmj-lot .hmj-actions .hmj-button:not(.hmj-stretch){position:relative;z-index:1}
@media (hover:hover){
  .hmj-lot:hover{border-color:var(--hmj-blue-2);box-shadow:var(--hmj-shadow-lift);transform:translateY(-2px)}
}
.hmj-lot:has(.hmj-stretch:focus-visible){outline:3px solid var(--hmj-focus);outline-offset:2px}
.hmj .hmj-lot .hmj-stretch:focus-visible{outline:0}
.hmj-lot.is-complete{background:var(--hmj-tint-2)}
.hmj-lot-learning{display:flex;align-items:flex-start;gap:12px;margin:12px 0 0;padding:12px 14px;border-radius:12px;background:var(--hmj-cream);border:1px solid var(--hmj-cream-line)}
.hmj-lot-learning strong{font-size:22px;line-height:1;color:var(--hmj-clay);white-space:nowrap}
.hmj-lot-learning strong small{font-size:12px;color:var(--hmj-muted);font-weight:500}
.hmj .hmj-lot-learning p{margin:0;font-size:14px}

.hmj-tag{display:inline-flex;align-items:center;font-size:11.5px;font-weight:700;line-height:1;letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint);color:var(--hmj-accent)}
.hmj-tag.amber,.hmj-tag.terra{background:var(--hmj-clay-bg);color:#85452f}
.hmj-tag.sage{background:#E4EFEA;color:#2D6250}
.hmj-tag.cream{background:var(--hmj-cream);color:#6f5a2c}

/* --- progression d'un lot : jour, fenêtre indicative, prochain repère --- */
.hmj-progress-head{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.hmj .hmj-day{font-size:26px;font-weight:700;line-height:1;letter-spacing:-.02em;color:var(--hmj-accent);font-variant-numeric:tabular-nums}
.hmj-progress-head>span{font-size:14px;color:var(--hmj-muted)}
.hmj-rail{position:relative;height:8px;margin:14px 0 6px;border-radius:var(--hmj-r-pill);background:var(--hmj-line)}
.hmj-rail-window{position:absolute;top:0;bottom:0;border-radius:var(--hmj-r-pill);background:repeating-linear-gradient(135deg,rgba(163,78,50,.32) 0 4px,rgba(163,78,50,.16) 4px 8px)}
.hmj-rail-fill{position:absolute;left:0;top:0;bottom:0;border-radius:var(--hmj-r-pill);background:linear-gradient(90deg,var(--hmj-blue),var(--hmj-blue-2));opacity:.9}
.hmj-rail-now{position:absolute;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--hmj-surface);border:4px solid var(--hmj-accent);box-shadow:0 1px 4px rgba(18,20,58,.25)}
.hmj-rail-legend{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.35;color:var(--hmj-muted)}
.hmj-rail-legend span:last-child{color:var(--hmj-clay);text-align:right}
.hmj .hmj-next{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:14px;color:var(--hmj-fg)}
.hmj .hmj-next .hmj-icon{width:16px;height:16px;margin-top:2px;color:var(--hmj-accent)}
.hmj-progress.is-compact .hmj-day{font-size:20px}
.hmj-progress.is-compact .hmj-next{font-size:13.5px}

/* --- accueil vide : pot et mode d'emploi --- */
.hmj-empty{padding:clamp(24px,5cqi,40px) 18px;text-align:center;border:1.5px dashed var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-tint-2)}
.hmj .hmj-empty h4{font-size:clamp(20px,3.4cqi,24px);margin:0 0 18px}
.hmj-jar{position:relative;width:60px;height:72px;margin:0 auto 20px;border:2px solid rgba(22,76,117,.45);border-radius:10px 10px 16px 16px;background:rgba(22,76,117,.06)}
.hmj-jar::before{content:"";position:absolute;left:-5px;right:-5px;top:-7px;height:10px;border-radius:3px;background:var(--hmj-accent)}
.hmj-jar span{position:absolute;left:7px;right:7px;bottom:7px;height:38px;border-radius:4px 4px 9px 9px;background:linear-gradient(180deg,rgba(52,111,159,.28),rgba(22,76,117,.45))}
.hmj-jar span::before,.hmj-jar span::after{content:"";position:absolute;border-radius:50%;border:1.5px solid rgba(255,255,255,.85)}
.hmj-jar span::before{width:7px;height:7px;left:9px;top:10px}
.hmj-jar span::after{width:5px;height:5px;right:12px;top:20px}
.hmj-howto{list-style:none;counter-reset:hmjh;display:grid;gap:12px;max-width:760px;margin:0 auto 24px;padding:0;text-align:left}
.hmj-howto li{counter-increment:hmjh;position:relative;padding:14px 14px 14px 56px;border-radius:12px;background:var(--hmj-surface);border:1px solid var(--hmj-line)}
.hmj-howto li::before{content:counter(hmjh);position:absolute;left:14px;top:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--hmj-cream);border:1px solid var(--hmj-cream-line);color:var(--hmj-accent);font-weight:700;font-size:13.5px}
.hmj-howto strong{display:block;font-size:15px;line-height:1.3}
.hmj-howto span{display:block;margin-top:3px;font-size:13.5px;line-height:1.45;color:var(--hmj-muted)}

/* --- nouvelle fournée --- */
.hmj-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;counter-reset:hmjs}
.hmj-steps li{counter-increment:hmjs;display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint-2);font-size:13px;font-weight:500;color:var(--hmj-muted)}
.hmj-steps li::before{content:counter(hmjs);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--hmj-surface);border:1px solid var(--hmj-line);font-size:12px;font-weight:700}
.hmj-steps li.is-current{background:var(--hmj-tint);color:var(--hmj-accent);font-weight:600}
.hmj-steps li.is-current::before{background:var(--hmj-accent);border-color:var(--hmj-accent);color:#fff}
.hmj-steps li.is-done::before{content:"✓";color:var(--hmj-ok)}
.hmj-recipes{display:grid;gap:12px}
.hmj .hmj-recipe{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:176px;padding:20px;border:1.5px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface);color:var(--hmj-fg);font:inherit;text-align:left;line-height:1.5;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s var(--hmj-ease)}
.hmj .hmj-recipe strong{font-size:20px;line-height:1.25;font-weight:700;margin-top:4px}
.hmj .hmj-recipe>span:not(.hmj-tag):not(.hmj-recipe-cta){font-size:14px;color:var(--hmj-muted)}
.hmj .hmj-recipe-cta{margin-top:auto;padding-top:8px;font-weight:600;font-size:14.5px;color:var(--hmj-accent)}
.hmj .hmj-recipe-cta span{display:inline-block;transition:transform .2s var(--hmj-ease)}
@media (hover:hover){
  .hmj .hmj-recipe:hover{border-color:var(--hmj-blue-2);box-shadow:var(--hmj-shadow-lift);transform:translateY(-2px)}
  .hmj .hmj-recipe:hover .hmj-recipe-cta span{transform:translateX(4px)}
}
.hmj .hmj-recipe.hmj-custom{border-style:dashed;background:var(--hmj-tint-2)}
.hmj-custom .hmj-tag{background:var(--hmj-surface);color:var(--hmj-muted);border:1px solid var(--hmj-line)}
.hmj-other-type-choice{max-width:440px;margin:0 0 18px;padding:16px;border-radius:var(--hmj-r-item);background:var(--hmj-tint)}
.hmj-other-type-choice .hmj-field{margin:0}

/* bandeau de recette : nom du lot et date de départ */
.hmj-recipe-cutout{position:relative;margin:0 0 14px;padding:22px var(--hmj-pad) 20px;border-radius:var(--hmj-r-item);overflow:hidden;color:#fff;background:
  radial-gradient(circle at calc(100% + 30px) calc(100% + 40px),rgba(255,255,255,.12) 0 70px,transparent 71px),
  radial-gradient(circle at calc(100% - 70px) calc(100% - 18px),rgba(255,255,255,.10) 0 7px,transparent 8px),
  linear-gradient(115deg,var(--hmj-blue) 0%,var(--hmj-blue-2) 100%);box-shadow:0 10px 24px -14px rgba(22,76,117,.6)}
.hmj .hmj-cutout-tag{display:block;margin:0 0 14px;padding-right:200px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#d9e8f3;overflow-wrap:anywhere}
.hmj .hmj-lot-name,.hmj .hmj-date-wrap{position:relative;z-index:1;display:block}
.hmj .hmj-lot-name>span,.hmj .hmj-date-caption{display:block;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#d9e8f3}
.hmj .hmj-lot-name input{display:block;width:100%;min-width:0;margin:4px 0 0;padding:2px 0 8px;background:transparent!important;border:0!important;border-bottom:1.5px solid rgba(255,255,255,.45)!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;font-family:inherit!important;font-size:clamp(23px,4cqi,32px)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.015em}
.hmj .hmj-lot-name input::placeholder{color:#c9dcea}
.hmj .hmj-lot-name input:hover,.hmj .hmj-lot-name input:focus{border-bottom-color:#fff!important}
.hmj .hmj-lot-name input:focus-visible{outline:2px solid #fff;outline-offset:4px}
.hmj .hmj-date-wrap{position:absolute;top:18px;right:var(--hmj-pad);text-align:right}
.hmj .hmj-date-caption{margin-bottom:5px}
.hmj .hmj-button.hmj-date-display{min-height:40px;padding:0 12px;gap:8px;border:1.5px solid rgba(255,255,255,.55);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:14px}
.hmj .hmj-button.hmj-date-display:hover{background:rgba(255,255,255,.22);border-color:#fff;color:#fff}
.hmj .hmj-date-display .hmj-icon{width:16px;height:16px}
.hmj .hmj-date-display .hmj-icon:last-child{width:12px;height:12px;opacity:.8}
.hmj .hmj-date-display:focus-visible{outline-color:#fff}
.hmj .hmj-date-editor .hmj-field{margin:0;max-width:220px}
.hmj .hmj-date-editor .hmj-field>span{display:none}
.hmj .hmj-recipe-cutout>.hmj-field{position:relative;z-index:1;max-width:420px;margin:0 0 16px;color:#fff}
.hmj .hmj-source{margin:0 0 18px;font-size:13.5px;color:var(--hmj-muted)}
.hmj-learning{margin:0 0 16px;padding:16px 18px;border-radius:var(--hmj-r-item);background:var(--hmj-cream);border:1px solid var(--hmj-cream-line)}
.hmj .hmj-learning h4{font-size:15px;margin:0 0 8px;color:var(--hmj-clay)}
.hmj .hmj-learning p{margin:4px 0 0;font-size:14.5px}

/* rappels repliés dans la création */
.hmj .hmj-fold{margin:16px 0 0;border:1.5px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface)}
.hmj .hmj-fold>summary{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;list-style:none;cursor:pointer;color:var(--hmj-fg);border-radius:var(--hmj-r-item)}
.hmj .hmj-fold>summary::-webkit-details-marker{display:none}
.hmj .hmj-fold>summary::after{content:"";flex:none;margin-left:auto;width:9px;height:9px;border-right:2px solid var(--hmj-accent);border-bottom:2px solid var(--hmj-accent);transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s var(--hmj-ease)}
.hmj .hmj-fold[open]>summary::after{transform:rotate(-135deg)}
.hmj .hmj-fold>summary:hover{background:var(--hmj-tint-2)}
.hmj .hmj-fold>summary strong{display:block;font-size:15px}
.hmj .hmj-fold>summary small{display:block;font-size:13.5px;font-weight:400;color:var(--hmj-muted)}
.hmj-fold-icon{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--hmj-tint);color:var(--hmj-accent)}
.hmj .hmj-fold>.hmj-reminder-planner{margin:0;border:0;border-top:1px solid var(--hmj-line);border-radius:0 0 var(--hmj-r-item) var(--hmj-r-item);box-shadow:none}
.hmj .hmj-fold>.hmj-reminder-planner .hmj-planner-heading{display:none}
/* barre d'action qui reste visible pendant la saisie */
.hmj .hmj-sticky-actions{position:sticky;bottom:0;z-index:3;justify-content:space-between;margin:20px calc(var(--hmj-pad) * -1) 0;padding:12px var(--hmj-pad);background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--hmj-line)}

/* --- champs --- */
.hmj-fields{display:grid;gap:16px}
.hmj .hmj-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0 0 16px;font-size:14px;font-weight:600;color:var(--hmj-fg)}
.hmj-fields .hmj-field{margin:0}
.hmj .hmj-field :is(input,select,textarea){width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 13px;border:1.5px solid var(--hmj-field-line);border-radius:var(--hmj-r-ctl);background:var(--hmj-surface);color:var(--hmj-fg);font-size:16px;font-weight:400;line-height:1.4;transition:border-color .15s,box-shadow .15s}
.hmj .hmj-field :is(input,select,textarea):hover{border-color:#AEB9C7}
.hmj .hmj-field :is(input,select,textarea):focus{outline:none;border-color:var(--hmj-blue-2);box-shadow:0 0 0 4px rgba(52,111,159,.18)}
.hmj .hmj-field textarea{min-height:84px;resize:vertical}
.hmj .hmj-field ::placeholder{color:#8a92a6}
.hmj-panel{margin:0 0 16px;padding:clamp(16px,3cqi,24px);border:1px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface)}
.hmj-panel>.hmj-fields{margin:4px 0 0}
.hmj .hmj-panel>p{margin:0 0 16px;font-size:14.5px;color:var(--hmj-muted)}
.hmj details{margin:14px 0 0}
.hmj summary{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--hmj-accent);font-size:14px;font-weight:600;cursor:pointer;border-radius:8px}
.hmj details[open]>summary{margin-bottom:8px}

/* --- carnet d'un lot --- */
.hmj-lot-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 20px;align-items:start;margin:0 0 18px;padding:clamp(16px,3cqi,22px);border-radius:var(--hmj-r-item);background:var(--hmj-tint-2);border:1px solid var(--hmj-line)}
.hmj .hmj-lot-hero h3{font-size:clamp(22px,4cqi,28px);line-height:1.2;margin:10px 0 2px;overflow-wrap:anywhere}
.hmj .hmj-lot-hero .hmj-small{margin:0}
.hmj-phase .hmj-field{margin:0;font-size:13px;color:var(--hmj-muted)}
.hmj-phase select{min-height:42px!important;padding-block:8px!important;font-size:15px!important;font-weight:600!important;color:var(--hmj-accent)!important}
.hmj-lot-hero>.hmj-progress{grid-column:1/-1;padding-top:14px;border-top:1px solid var(--hmj-line)}
.hmj-tabs{display:flex;gap:4px;margin:0 0 20px;padding:4px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint)}
.hmj .hmj-tabs .hmj-button{flex:1 1 0;min-width:0;min-height:42px;padding:0 10px;border:0;background:transparent;color:var(--hmj-muted);font-weight:600}
.hmj .hmj-tabs .hmj-button:hover{background:rgba(255,255,255,.7);color:var(--hmj-accent)}
.hmj .hmj-tabs .hmj-button.is-active{background:var(--hmj-surface);color:var(--hmj-accent);box-shadow:0 1px 3px rgba(18,20,58,.14)}

/* formulaire d'observation */
.hmj-form-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:0 0 16px}
.hmj .hmj-form-head h4{margin:0;font-size:clamp(19px,3.2cqi,22px)}
.hmj-observation-top{display:flex;gap:10px;flex-wrap:wrap}
.hmj .hmj-observation-top .hmj-field{margin:0;min-width:150px;font-size:13px;color:var(--hmj-muted)}
.hmj .hmj-observation-top :is(input,select){min-height:42px;padding-block:7px;font-size:15px}
.hmj .hmj-measures{grid-template-columns:repeat(2,minmax(0,200px));gap:12px;margin:0 0 20px}
.hmj .hmj-measures .hmj-field{font-size:13px;color:var(--hmj-muted)}
.hmj .hmj-signs{margin:0 0 18px;padding:0;border:0;min-width:0}
.hmj legend{margin:0 0 8px;padding:0;font-size:15px;font-weight:600;color:var(--hmj-fg)}
.hmj-chips{display:flex;flex-wrap:wrap;gap:8px}
.hmj-chips label{position:relative;margin:0;cursor:pointer}
.hmj-chips input{position:absolute;opacity:0;width:1px;height:1px}
.hmj-chips span{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 15px;border:1.5px solid var(--hmj-line);border-radius:var(--hmj-r-pill);background:var(--hmj-surface);font-size:14px;line-height:1.3;color:var(--hmj-fg);transition:border-color .15s,background .15s,color .15s}
.hmj-chips label:hover span{border-color:var(--hmj-blue-2)}
.hmj-chips input:checked+span{background:var(--hmj-tint);border-color:var(--hmj-accent);color:var(--hmj-accent);font-weight:600}
.hmj-chips input:checked+span::before{content:"";width:5px;height:9px;margin:-3px 2px 0 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.hmj-chips input:focus-visible+span{outline:3px solid var(--hmj-focus);outline-offset:2px}
.hmj .hmj-other{max-width:520px;margin-top:10px}
.hmj .hmj-other .hmj-field{margin:0}
.hmj .hmj-check{display:flex;align-items:center;gap:12px;min-height:52px;margin:4px 0 16px;padding:0 16px;border-radius:12px;background:var(--hmj-cream);border:1px solid var(--hmj-cream-line);font-size:15px;font-weight:600;color:var(--hmj-fg);cursor:pointer}
.hmj .hmj-check input{width:20px;height:20px;margin:0;accent-color:var(--hmj-accent)}
[data-taste]{margin:-4px 0 18px;padding:4px 16px 14px;border:1px solid var(--hmj-cream-line);border-top:0;border-radius:0 0 12px 12px}
.hmj-check:has(input:checked){border-radius:12px 12px 0 0;margin-bottom:0}
[data-taste]>.hmj-small{margin:12px 0 0}
[data-taste]>.hmj-field{margin:16px 0 0}

/* jauges de goût : centre = à mon goût, aucune valeur présélectionnée */
.hmj-taste-axis{padding:18px 0 12px;border-top:1px solid var(--hmj-line)}
.hmj-taste-axis:first-of-type{border-top:0}
.hmj-taste-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hmj .hmj-taste-heading h5{font-size:15px}
.hmj .hmj-axis-state{flex:none;max-width:55%;padding:4px 10px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint-2);color:var(--hmj-muted);font-size:13px;line-height:1.3;text-align:right}
.hmj .hmj-axis-state:not([data-value="none"]){background:var(--hmj-tint);color:var(--hmj-accent);font-weight:600}
.hmj .hmj-axis-state[data-value="0"]{background:var(--hmj-accent);color:#fff}
.hmj .hmj-axis{margin:0;padding:0;border:0;min-width:0}
.hmj-taste-rail{position:relative;display:grid;grid-template-columns:repeat(5,1fr);margin:10px 0 2px;isolation:isolate}
.hmj-taste-rail::before{content:"";position:absolute;z-index:-1;top:50%;left:10%;right:10%;height:6px;margin-top:-3px;border-radius:var(--hmj-r-pill);background:linear-gradient(90deg,#DDB8A2,#D5DFE8 30%,#7FA6C6 50%,#D5DFE8 70%,#DDB8A2)}
.hmj .hmj-taste-stop{position:relative;display:grid;place-items:center;height:48px;margin:0;cursor:pointer}
.hmj .hmj-taste-stop input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.hmj .hmj-taste-stop span{width:14px;height:14px;border-radius:50%;background:var(--hmj-surface);border:2px solid #A9B8C6;pointer-events:none;transition:transform .15s var(--hmj-ease),background .15s,border-color .15s}
.hmj .hmj-taste-stop:nth-child(3) span{width:20px;height:20px;border-color:var(--hmj-blue-2)}
.hmj .hmj-taste-stop:hover span{transform:scale(1.2);border-color:var(--hmj-accent)}
.hmj .hmj-taste-stop input:checked+span{width:26px;height:26px;background:var(--hmj-accent);border:5px solid #fff;box-shadow:0 0 0 2px var(--hmj-accent),0 4px 10px -2px rgba(22,76,117,.5);transform:none}
.hmj .hmj-taste-stop input:focus-visible+span{outline:3px solid var(--hmj-focus);outline-offset:4px}
.hmj-taste-anchors{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;font-size:12.5px;line-height:1.35;color:var(--hmj-muted)}
.hmj-taste-anchors span:nth-child(2){color:var(--hmj-accent);font-weight:600;text-align:center}
.hmj-taste-anchors span:last-child{text-align:right}
.hmj .hmj-remark{margin-top:8px}
.hmj .hmj-remark summary{font-size:13.5px;color:var(--hmj-clay)}
.hmj .hmj-remark .hmj-field{margin:0}
.hmj-transfer-note{margin:14px 0;padding:14px 18px;border-left:4px solid var(--hmj-accent);border-radius:0 var(--hmj-r-item) var(--hmj-r-item) 0;background:var(--hmj-tint-2);color:var(--hmj-fg)}
.hmj-transfer-note p{margin:4px 0 0;font-size:14px;color:var(--hmj-muted)}
.hmj-compare-entry{display:flex;justify-content:flex-end;margin:-6px 0 12px}
.hmj .hmj-compare-entry .hmj-button{color:var(--hmj-accent);font-weight:700}
.hmj-compare-selectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.hmj .hmj-compare-selectors .hmj-field{min-width:0;margin:0}
.hmj-compare-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface)}
.hmj-compare-scroll:focus-visible{outline:3px solid var(--hmj-focus);outline-offset:3px}
.hmj-compare-table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed;font-size:14px}
.hmj-compare-table th,.hmj-compare-table td{padding:12px 14px;border-bottom:1px solid var(--hmj-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.hmj-compare-table thead th{background:var(--hmj-tint-2);color:var(--hmj-accent);font-weight:700}
.hmj-compare-table tbody th{width:32%;color:var(--hmj-muted);font-weight:600}
.hmj-compare-table tr:last-child>*{border-bottom:0}
@container (max-width:700px){.hmj-compare-selectors{grid-template-columns:1fr}}

/* fil chronologique */
.hmj-history{padding:8px 0 0}
.hmj .hmj-history>h4{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.hmj .hmj-history>h4 span{font-size:13.5px;font-weight:400;color:var(--hmj-muted)}
.hmj .hmj-timeline{list-style:none;margin:6px 0 0;padding:0}
.hmj .hmj-moment{position:relative;display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;margin:0;padding:0 0 18px 30px;min-width:0}
.hmj .hmj-moment::before{content:"";position:absolute;left:8px;top:18px;bottom:-14px;width:2px;background:var(--hmj-line)}
.hmj .hmj-moment:last-child::before{display:none}
.hmj .hmj-timeline-dot{position:absolute;left:0;top:12px;z-index:1;display:grid;place-items:center;width:18px;height:18px;border:2px solid var(--hmj-blue-2);border-radius:50%;background:var(--hmj-surface);color:#fff;font-size:10px;line-height:1}
.hmj .hmj-moment-start .hmj-timeline-dot,.hmj .hmj-moment-result .hmj-timeline-dot{background:var(--hmj-accent);border-color:var(--hmj-accent)}
.hmj .hmj-moment-date{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding-top:9px;font-size:13px;color:var(--hmj-muted)}
.hmj .hmj-moment-date>span{padding:2px 8px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint);color:var(--hmj-accent);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.hmj .hmj-moment-card{min-width:0;padding:14px 16px;border:1px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface);font-size:14px}
.hmj .hmj-moment-start .hmj-moment-card,.hmj .hmj-moment-result .hmj-moment-card{background:var(--hmj-tint-2)}
.hmj .hmj-moment-card p{margin:8px 0 0}
.hmj .hmj-moment-card.is-editing{border-color:var(--hmj-accent);box-shadow:0 0 0 3px rgba(22,76,117,.14)}
.hmj .hmj-moment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.hmj .hmj-moment-head>strong{font-size:15px;color:var(--hmj-fg)}
.hmj .hmj-moment-actions{display:flex;gap:2px;flex-wrap:wrap;margin:-8px -8px -8px 0}
.hmj .hmj-entry-label{display:inline-block;min-width:62px;margin-right:6px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--hmj-muted)}
.hmj .hmj-entry-measures,.hmj .hmj-taste-summary{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.hmj .hmj-entry-measures span{padding:3px 10px;border-radius:var(--hmj-r-pill);background:var(--hmj-tint);color:var(--hmj-accent);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.hmj .hmj-taste-summary span{padding:3px 10px;border-radius:var(--hmj-r-pill);background:var(--hmj-cream);border:1px solid var(--hmj-cream-line);font-size:13px}
.hmj .hmj-entry-note{padding-left:12px;border-left:2px solid var(--hmj-cream-line);white-space:pre-wrap;color:#41465f}
.hmj .hmj-timeline-empty{margin:-4px 0 0 30px}
.hmj .hmj-delete-confirm{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--hmj-clay-bg)}
.hmj .hmj-delete-confirm p{margin:0 0 8px}
.hmj .hmj-delete-confirm .hmj-moment-actions{margin:0;gap:8px}
.hmj .hmj-timeline-action{min-height:40px;padding:0 14px;font-size:14px}
.hmj .hmj-delete-action{background:var(--hmj-clay);border-color:var(--hmj-clay);color:#fff}
.hmj .hmj-delete-action:hover{background:#7f3b25;border-color:#7f3b25;color:#fff}
.hmj .hmj-edit-form{margin:0;padding:0;border:0;background:transparent}

/* bilan */
.hmj-criteria-toggle{display:flex;justify-content:flex-end;margin:4px 0 0}
.hmj .hmj-criteria-toggle .hmj-button{min-height:40px;color:var(--hmj-accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hmj-criteria-editor{margin:8px 0 18px;padding:clamp(14px,2cqi,20px);border:1px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-tint-2)}
.hmj .hmj-criteria-editor>.hmj-small{margin:0 0 12px}
.hmj-criterion{padding:13px 0;border-top:1px solid var(--hmj-line)}
.hmj-criterion-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.hmj-criterion-head strong{font-size:15px;color:var(--hmj-fg)}
.hmj-criterion-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hmj .hmj-criterion-fields .hmj-field{margin:0}
.hmj .hmj-criterion-fields .hmj-field span{font-size:12px}
.hmj .hmj-criterion-fields input{min-width:0}
.hmj .hmj-criterion-add{min-height:42px;margin-top:12px;border:1px solid var(--hmj-blue-2);background:var(--hmj-surface);color:var(--hmj-accent);font-weight:700}
.hmj .hmj-retired{margin-top:16px;padding-top:10px;border-top:1px solid var(--hmj-line)}
.hmj .hmj-retired>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0}
.hmj .hmj-retired .hmj-button{min-height:38px;color:var(--hmj-accent)}
.hmj .hmj-sensory{margin-top:8px;padding-top:6px;border-top:1px solid var(--hmj-line)}
.hmj-descriptor{margin-top:14px;padding-top:14px;border-top:1px solid var(--hmj-line)}
.hmj-sensory>.hmj-descriptor:first-of-type{margin-top:4px;padding-top:4px;border:0}
.hmj-descriptor>.hmj-field{margin:0}
.hmj .hmj-field:has(input[name="r-rating"]){max-width:200px}
@container (max-width:600px){.hmj-criterion-fields{grid-template-columns:1fr}.hmj-criterion-fields .hmj-field{width:100%}}

/* outils : calendrier et exports */
.hmj .hmj-utility-bar{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--hmj-line)}
.hmj .hmj-utility-bar .hmj-button.is-active{background:var(--hmj-accent);color:#fff}
.hmj .hmj-export-panel{margin-top:14px;padding:16px;border-radius:var(--hmj-r-item);background:var(--hmj-tint-2)}
.hmj .hmj-export-panel .hmj-actions{margin:0 0 6px}
.hmj .hmj-custom-reminder{margin:14px 0 0}
.hmj .hmj-custom-reminder form{padding:16px;border-radius:var(--hmj-r-item);background:var(--hmj-tint-2)}
.hmj .hmj-custom-reminder .hmj-button{margin-top:14px}
.hmj-reminder-planner{margin:16px 0 0;padding:clamp(16px,3cqi,24px);border:1px solid var(--hmj-line);border-radius:var(--hmj-r-item);background:var(--hmj-surface)}
.hmj-planner-heading h4{margin:0}
.hmj .hmj-reminder-planner>.hmj-small{margin:6px 0 0}
.hmj-calendar-layout{display:grid;gap:22px;margin-top:18px;align-items:start}
.hmj-calendar{min-width:0;padding:14px;border-radius:var(--hmj-r-item);background:var(--hmj-tint-2);border:1px solid var(--hmj-line)}
.hmj-month-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.hmj-month-heading strong{font-size:16px;text-transform:capitalize;color:var(--hmj-fg)}
.hmj-weekdays,.hmj-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.hmj-weekdays span{padding-bottom:6px;text-align:center;font-size:12px;font-weight:600;color:var(--hmj-muted)}
.hmj .hmj-calendar-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:44px;padding:6px 0 4px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--hmj-fg);font-size:13px;cursor:pointer}
.hmj .hmj-calendar-day.phase-first{background:#DCE8F2}
.hmj .hmj-calendar-day.phase-second{background:var(--hmj-clay-bg);border-style:dashed;border-color:#D7A88B}
.hmj .hmj-calendar-day.is-outside:not(.phase-first):not(.phase-second){color:#A6AEBB}
.hmj .hmj-calendar-day.is-today>span:first-child{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.hmj .hmj-calendar-day:hover,.hmj .hmj-calendar-day.is-selected{border:1px solid var(--hmj-accent);box-shadow:inset 0 0 0 1px var(--hmj-accent)}
.hmj-day-marks{display:flex;align-items:center;gap:4px;min-height:7px}
.hmj :is(.hmj-day-marks,.hmj-calendar-legend) i{display:inline-block;flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--hmj-accent)}
.hmj :is(.hmj-day-marks,.hmj-calendar-legend) .event-taste{background:var(--hmj-clay);border-radius:1px;transform:rotate(45deg)}
.hmj .hmj-day-marks .event-second{background:transparent;border:1.5px solid var(--hmj-clay)}
.hmj-calendar-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;padding-top:12px;border-top:1px solid var(--hmj-line);font-size:12px;color:var(--hmj-muted)}
.hmj-calendar-legend span{display:flex;align-items:center;gap:6px}
.hmj .hmj-calendar-legend .phase-first{width:14px;height:10px;border-radius:3px;background:#DCE8F2}
.hmj .hmj-calendar-legend .phase-second{width:14px;height:10px;border-radius:3px;background:var(--hmj-clay-bg);border:1px dashed #C08B68}
.hmj-day-preview{margin-top:12px;padding-top:12px;border-top:1px solid var(--hmj-line);font-size:13.5px}
.hmj .hmj-day-preview p{margin:4px 0 0}
.hmj .hmj-agenda>h5{margin:0}
.hmj .hmj-agenda>.hmj-small{margin:2px 0 14px}
.hmj-agenda-event{min-width:0;margin-bottom:14px;padding:0 0 0 12px;border-left:3px solid #A9C4DA}
.hmj-agenda-event.event-taste{border-left-color:var(--hmj-clay)}
.hmj-agenda-event.event-second{border-left-style:dashed;border-left-color:#D7A88B}
.hmj-agenda-event.is-disabled{opacity:.5}
.hmj .hmj-event-label{display:flex;align-items:flex-start;gap:10px;min-height:32px;margin:0;cursor:pointer}
.hmj .hmj-event-label input{flex-shrink:0;width:18px;height:18px;margin:2px 0 0;accent-color:var(--hmj-accent)}
.hmj .hmj-event-label strong{display:block;font-size:14.5px;line-height:1.35}
.hmj .hmj-event-label small{display:block;font-size:12.5px;color:var(--hmj-muted)}
.hmj .hmj-event-edit{margin:0 0 0 28px}
.hmj .hmj-event-edit summary{display:flex;align-items:center;gap:7px;min-height:36px;list-style:none;font-size:13.5px;font-weight:500;color:var(--hmj-accent)}
.hmj .hmj-event-edit summary::-webkit-details-marker{display:none}
.hmj .hmj-event-edit .hmj-icon{width:13px;height:13px}
.hmj .hmj-event-edit .hmj-field{margin:0;font-size:13px}
.hmj .hmj-event-edit input{font-size:15px}
.hmj-calendar-download{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-top:18px;padding-top:18px;border-top:1px solid var(--hmj-line)}
.hmj-calendar-download>span{font-size:13px;line-height:1.5;color:var(--hmj-muted)}
.hmj .hmj-calendar-disclaimer{margin:14px 0 0;font-size:12.5px}

/* --- pied du journal --- */
.hmj .hmj-feedback{position:fixed;z-index:50;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));width:max-content;max-width:min(520px,calc(100vw - 32px));margin:0;padding:12px 18px 12px 42px;border-radius:14px;background:var(--hmj-navy);color:#fff;font-size:14.5px;font-weight:500;line-height:1.4;box-shadow:0 12px 30px -8px rgba(18,20,58,.45);transform:translateX(-50%);animation:hmj-toast .3s var(--hmj-ease) both}
.hmj .hmj-feedback::before{content:"";position:absolute;left:18px;top:50%;width:6px;height:11px;margin-top:-7px;border-right:2px solid #8FD3B0;border-bottom:2px solid #8FD3B0;transform:rotate(45deg)}
.hmj .hmj-feedback:empty{display:none}
.hmj:has(.hmj-sticky-actions) .hmj-feedback{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@keyframes hmj-toast{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translateX(-50%)}}
.hmj-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--hmj-line);font-size:13.5px;color:var(--hmj-muted)}
.hmj-footer-top{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.hmj-save-state{display:inline-flex;align-items:center;gap:8px}
.hmj-save-state::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hmj-ok);box-shadow:0 0 0 3px rgba(35,112,78,.15)}
.hmj-save-state.is-error::before{background:var(--hmj-clay);box-shadow:0 0 0 3px rgba(163,78,50,.18)}
.hmj .hmj-feedback-link{display:inline-flex;align-items:center;min-height:40px;font-size:13.5px}
.hmj-footer details{margin-top:4px}
.hmj .hmj-footer p{margin:8px 0 0;font-size:13.5px}
.hmj .hmj-footer .hmj-actions{margin-top:12px}
.hmj-alert{margin:0 0 16px;padding:14px 16px;border-radius:12px;background:var(--hmj-warn-bg);border:1px solid var(--hmj-warn-line);font-size:14.5px;overflow-wrap:anywhere}
.hmj-alert .hmj-button{margin:8px 6px 0 0}

/* --- largeurs : le journal s'adapte à sa colonne --- */
@container (min-width:600px){
  .hmj-lots,.hmj-recipes,.hmj-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hmj-howto{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hmj-howto li{padding:52px 16px 16px}
}
@container (min-width:760px){
  .hmj-recipes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hmj-calendar-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}
@container (max-width:599px){
  .hmj-header{padding-right:var(--hmj-pad);background-size:auto}
  .hmj .hmj-header h2{padding-right:70px}
  .hmj.is-inside .hmj-header h2{padding-right:0}
  .hmj .hmj-cutout-tag{padding-right:150px}
  .hmj .hmj-date-wrap{top:14px}
  .hmj .hmj-button.hmj-date-display{font-size:13px;padding:0 10px;gap:6px}
  .hmj-lot-hero{grid-template-columns:minmax(0,1fr)}
  .hmj-phase{max-width:280px}
  .hmj .hmj-tabs .hmj-button{font-size:13.5px;padding:0 6px}
  .hmj .hmj-moment{grid-template-columns:minmax(0,1fr);gap:6px;padding-left:28px}
  .hmj .hmj-moment-date{flex-direction:row;align-items:center;gap:8px;padding-top:9px}
  .hmj .hmj-entry-label{display:block;margin:0 0 2px}
  .hmj .hmj-observation-top{width:100%}
  .hmj .hmj-observation-top .hmj-field{flex:1 1 140px}
  .hmj .hmj-sticky-actions{flex-direction:row-reverse}
  .hmj .hmj-sticky-actions .hmj-primary{flex:1}
}
@container (max-width:400px){
  .hmj .hmj-measures{grid-template-columns:1fr 1fr}
  .hmj .hmj-tab-more{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hmj-steps li{font-size:0;padding-right:5px}
  .hmj-steps li.is-current{font-size:13px;padding-right:12px}
  .hmj .hmj-sticky-actions .hmj-link{font-size:0;gap:0;width:44px;margin:0;justify-content:center}
  .hmj .hmj-sticky-actions .hmj-link::before{content:"←";font-size:20px}
  .hmj .hmj-cutout-tag{padding-right:0;margin-bottom:62px}
}
@media (max-width:480px){
  .hmj{margin:16px 0;border-radius:16px}
}
@media (prefers-reduced-motion:reduce){
  .hmj *,.hmj *::before,.hmj *::after{animation:none!important;transition:none!important}
}
