/* MINI_GIFT_SEVEN_V10 — scoped exclusively to the already-approved hero mini-program.
   No selectors target the photo, gender picker, global nav, or other pages. */
.hero-main .gift-mini{margin-top:17px;border-top:1px solid rgba(248,219,164,.36);padding-top:15px;color:inherit}
.hero-main .gift-mini__top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hero-main .gift-mini__eyebrow{display:inline-flex;align-items:center;gap:7px;font:750 11px/1.3 system-ui,Arial,sans-serif;letter-spacing:1.05px;text-transform:uppercase;color:#f6d99b}
.hero-main .gift-mini__badge{font:720 11px/1.25 system-ui,Arial,sans-serif;padding:5px 9px;border-radius:999px;background:rgba(247,213,140,.17);color:#fff0c8;border:1px solid rgba(250,215,156,.38)}
.hero-main .gift-mini__head{margin:10px 0 6px!important;font:700 clamp(20px,2.1vw,28px)/1.18 Georgia,'Times New Roman',serif!important;letter-spacing:-.25px;color:#fff8e8!important}
.hero-main .gift-mini__intro{font-size:13px!important;line-height:1.52!important;max-width:560px!important;margin:7px 0 13px!important;color:#f9f2e1!important}
.hero-main .gift-mini__help{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#f3ddb0;font:600 11px/1.4 system-ui,Arial,sans-serif;margin-bottom:8px}
.hero-main .gift-mini__arrows{display:flex;gap:6px}
.hero-main .gift-mini__arrow{display:grid;place-items:center;border:1px solid rgba(247,221,172,.53);border-radius:10px;min-width:35px;min-height:32px;padding:0 6px;background:rgba(8,46,35,.53);color:#fff0cb;font:700 23px/1 system-ui,Arial,sans-serif;cursor:pointer}
.hero-main .gift-mini__arrow:disabled{opacity:.28;cursor:default}
.hero-main .gift-mini__arrow:focus-visible,.hero-main .gift-mini__day:focus-visible,.hero-main .gift-mini__reopen:focus-visible{outline:3px solid #f7d88d;outline-offset:2px}
.hero-main .gift-mini__rail{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#d9ba7f transparent;padding:2px 2px 10px;margin:0 -2px}
.hero-main .gift-mini__day{scroll-snap-align:start;flex:0 0 149px;min-height:157px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;cursor:pointer;padding:13px 12px 12px;border-radius:15px;border:1px solid rgba(247,217,155,.45);background:linear-gradient(149deg,rgba(12,91,68,.67),rgba(6,48,37,.68));color:#fff7e8;font:inherit;box-shadow:0 4px 12px rgba(0,22,18,.12);transition:border-color .15s,background .15s,transform .12s}
.hero-main .gift-mini__day:hover{border-color:#ffe1a8;background:rgba(30,100,68,.87)}
.hero-main .gift-mini__day:active{transform:scale(.985)}
.hero-main .gift-mini__day.is-current{border-color:#f8d58e;background:linear-gradient(146deg,rgba(95,101,47,.78),rgba(21,86,61,.85));box-shadow:inset 0 0 0 1px rgba(245,222,159,.16)}
.hero-main .gift-mini__day.is-finished{border-color:rgba(153,223,179,.7);background:linear-gradient(145deg,rgba(23,105,62,.79),rgba(10,73,49,.77))}
.hero-main .gift-mini__day.is-locked{opacity:.69;background:rgba(20,49,43,.66)}
.hero-main .gift-mini__daytop{width:100%;display:flex;align-items:center;justify-content:space-between;gap:4px}
.hero-main .gift-mini__icon{font-size:26px;line-height:1;filter:drop-shadow(0 2px 4px rgba(0,0,0,.15))}
.hero-main .gift-mini__indicator{font:700 10px/1.2 system-ui,Arial,sans-serif;color:#f8dba6}
.hero-main .gift-mini__number{font:750 10px/1.15 system-ui,Arial,sans-serif;letter-spacing:.75px;text-transform:uppercase;color:#f4d7a1}
.hero-main .gift-mini__name{font:650 15px/1.2 Georgia,'Times New Roman',serif;color:#fffbea}
.hero-main .gift-mini__desc{font:500 11px/1.37 system-ui,Arial,sans-serif;color:#f4edd9}
.hero-main .gift-mini__progress{height:4px;width:100%;overflow:hidden;border-radius:10px;background:rgba(255,255,255,.20);margin-top:auto}
.hero-main .gift-mini__progress>span{display:block;height:100%;background:#f2ce7d;border-radius:10px}
.hero-main .gift-mini__foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.hero-main .gift-mini__foot span{font:500 11px/1.4 system-ui,Arial,sans-serif;color:#f5dfb7}
.hero-main .gift-mini__reopen{border:1px solid rgba(246,221,164,.65);border-radius:10px;background:rgba(247,216,156,.17);color:#fff1cd;min-height:37px;padding:8px 11px;font:650 12px/1.2 system-ui,Arial,sans-serif;cursor:pointer}
.hero-main .gift-mini.is-collapsed .gift-mini__help,.hero-main .gift-mini.is-collapsed .gift-mini__rail{display:none}
.hero-main .gift-mini.is-collapsed .gift-mini__intro{margin-bottom:3px!important}
#course-selection{display:none!important} /* Old duplicate 7/8 chooser only; program/lessons unaffected. */
@media(max-width:759px){
 .hero-main .gift-mini{margin-top:12px;padding-top:12px}
 .hero-main .gift-mini__head{font-size:21px!important}
 .hero-main .gift-mini__day{flex-basis:139px;min-height:151px;padding:11px}
 .hero-main .gift-mini__intro{font-size:12px!important}
 .hero-main .gift-mini__foot{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.hero-main .gift-mini__day{transition:none}}

/* The same mini-program remains legible in the existing light female atmosphere. */
body[data-gender="female"] .hero-main .gift-mini{border-top-color:rgba(165,133,91,.42);color:#264b3c}
body[data-gender="female"] .hero-main .gift-mini__eyebrow{color:#7c5739}
body[data-gender="female"] .hero-main .gift-mini__badge{background:rgba(205,173,111,.17);border-color:rgba(164,130,78,.38);color:#5a6848}
body[data-gender="female"] .hero-main .gift-mini__head{color:#20503e!important}
body[data-gender="female"] .hero-main .gift-mini__intro{color:#416052!important}
body[data-gender="female"] .hero-main .gift-mini__help{color:#6b624b}
body[data-gender="female"] .hero-main .gift-mini__arrow{background:#eff4ea;border-color:#c5ba9b;color:#335441}
body[data-gender="female"] .hero-main .gift-mini__day{background:linear-gradient(145deg,rgba(250,251,243,.93),rgba(226,240,226,.96));border-color:#c5cdb8;color:#284838}
body[data-gender="female"] .hero-main .gift-mini__day.is-current{background:linear-gradient(145deg,#e1efdd,#f5ead5);border-color:#ad9762}
body[data-gender="female"] .hero-main .gift-mini__day.is-finished{background:#e2f3df;border-color:#80b794}
body[data-gender="female"] .hero-main .gift-mini__day.is-locked{background:rgba(240,240,231,.8)}
body[data-gender="female"] .hero-main .gift-mini__indicator{color:#746744}
body[data-gender="female"] .hero-main .gift-mini__number{color:#8b7149}
body[data-gender="female"] .hero-main .gift-mini__name{color:#244e39}
body[data-gender="female"] .hero-main .gift-mini__desc{color:#526a59}
body[data-gender="female"] .hero-main .gift-mini__progress{background:#cddcca}
body[data-gender="female"] .hero-main .gift-mini__progress>span{background:#3d9166}
body[data-gender="female"] .hero-main .gift-mini__foot span{color:#526b57}
body[data-gender="female"] .hero-main .gift-mini__reopen{background:#f0f4e9;color:#35513d;border-color:#c7c7aa}

/* GIFT_PROGRAM_COMPLETION_V11: the seminar disappears after confirmed graduation.
   All preapproved photo, gender, nav and independent tool styling remains intact. */
.hero-main .gift-mini__congrats{
  width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;
  gap:10px;padding:15px 16px;border-radius:15px;
  border:1px solid rgba(244,210,139,.74);
  background:linear-gradient(130deg,rgba(39,102,65,.90),rgba(13,65,46,.93));
  box-shadow:0 8px 25px rgba(0,29,21,.18);color:#fff8e9;
}
.hero-main .gift-mini__congrats strong{font:700 19px/1.25 Georgia,'Times New Roman',serif;color:#ffe4a3}
.hero-main .gift-mini__congrats span{font:500 12px/1.55 system-ui,Arial,sans-serif;color:#fcf3db}
.hero-main .gift-mini__finish{
  cursor:pointer;border:1px solid #f3d38d;border-radius:12px;
  min-height:43px;padding:11px 17px;
  background:#f4d38e;color:#173e30;font:750 13px/1.3 system-ui,Arial,sans-serif;
}
.hero-main .gift-mini__finish:hover,.hero-main .gift-mini__finish:focus-visible{
  background:#ffe6ae;outline:2px solid #ffe6ae;outline-offset:2px;
}
body.gift-course-closed .hero-main .gift-mini,
body.gift-course-closed .hero-main > .actions{
  display:none!important;
}
body.gift-course-closed .app > .nav #nav-plan,
body.gift-course-closed .app > .nav #nav-preparation,
body.gift-course-closed main.content > .sectionhead,
body.gift-course-closed main.content > .journey{
  display:none!important;
}
/* Remove the expired learning widgets, never the actual habits/diet/journal pages. */
body.gift-course-closed #homeView > .grid{
  grid-template-columns:minmax(0,1fr)!important;
}
body.gift-course-closed #homeView > .grid > .panel:first-child,
body.gift-course-closed #homeView > .grid > .stack > .panel:first-child{
  display:none!important;
}
body.gift-course-closed #profileView > .grid > .stack > .panel:first-child{
  display:none!important;
}
.gift-first-milestone{
  display:flex;align-items:center;gap:16px;
  border:1px solid #d3bb84;border-radius:19px;
  background:linear-gradient(120deg,#fff9e9,#f1f6ea);
  box-shadow:0 8px 25px rgba(25,74,48,.10);
  color:#214532;padding:17px clamp(14px,3vw,24px);margin:0 0 19px;
}
.gift-first-milestone__award{
  display:grid;place-items:center;width:65px;height:65px;flex:0 0 65px;
  background:#f1e2b6;border:1px solid #d9bc75;border-radius:16px;font-size:33px;
}
.gift-first-milestone__eyebrow{
  display:block;font:800 10px/1.4 system-ui,Arial,sans-serif;letter-spacing:1.5px;color:#83673b;
}
.gift-first-milestone h2{font:700 clamp(21px,3vw,28px)/1.2 Georgia,'Times New Roman',serif;color:#214e39;margin:4px 0 5px}
.gift-first-milestone p{margin:0 0 5px;font:600 13px/1.4 system-ui,Arial,sans-serif;color:#3a5b45}
.gift-first-milestone small{display:block;font:500 12px/1.5 system-ui,Arial,sans-serif;color:#687a66}
.gift-first-milestone__check{
  margin-left:auto;display:grid;place-items:center;border:1px solid #b2d8ae;
  width:32px;height:32px;flex:0 0 32px;border-radius:50%;
  background:#e8f4e5;color:#297c4a;font:800 18px/1 system-ui,Arial,sans-serif;
}
@media(max-width:540px){
 .gift-first-milestone{gap:11px;align-items:flex-start;padding:14px}
 .gift-first-milestone__award{width:49px;height:49px;flex-basis:49px;font-size:27px;border-radius:13px}
 .gift-first-milestone__check{width:26px;height:26px;flex-basis:26px;font-size:15px}
 .gift-first-milestone h2{font-size:21px}
}
body[data-gender="female"] .hero-main .gift-mini__congrats{
  background:#eff5e9;border-color:#cfbc88;color:#254a37;
}
body[data-gender="female"] .hero-main .gift-mini__congrats strong{color:#315a3e}
body[data-gender="female"] .hero-main .gift-mini__congrats span{color:#516c56}
