/* Tharvik - clone2.css (2026-11-19, second pass on the ChatGPT look). Loaded AFTER clone.css; every rule hangs on html.cl.cl-in like the first file.
   Jorge: "me encanta cómo está... las sesiones son un pegote... el calendario: alguna caja con sentido, con coherencia... y que recupere su esencia de color".
   1. GROUPS: a session is one card (the day's header) + one card per exercise; the exercise being worked on is lifted (gold ring + glow), its tools, set chips and
      editor sit in one inset panel inside it. The calendar month is one card, "your week" is one card with four tiles.
   2. COLOUR: gold tints (never new hues), a soft glow behind the top of each screen, gold glow under the main button, a lit tab, a lit chat row.
   Colours are plain rgba() of the gold (no color-mix) so older iPhones draw them too. */

html.cl.cl-in{
  --cl-tint:rgba(244,176,74,.13); --cl-tint-2:rgba(244,176,74,.24); --cl-gold-ring:rgba(244,176,74,.55);
  --cl-glow:0 10px 26px rgba(244,176,74,.28);
  --cl-inset:rgba(0,0,0,.2);          /* a panel sunk into a card */
  --cl-top-glow:rgba(244,176,74,.075);
}
html.cl.cl-in[data-theme="light"]{ --cl-inset:rgba(0,0,0,.045); --cl-tint:rgba(224,150,40,.13); --cl-tint-2:rgba(224,150,40,.22); --cl-glow:0 10px 24px rgba(224,150,40,.30); --cl-top-glow:rgba(244,176,74,.16); }

/* ---------------------------------------------------------------- colour: a glow behind the top of every screen */
html.cl.cl-in #app{ background:radial-gradient(130% 46% at 50% -6%, var(--cl-top-glow), transparent 70%), linear-gradient(180deg, var(--cl-card-a) 0%, var(--cl-card-b) 100%) !important; }
html.cl.cl-in #app > [id$="Panel"]:not(#sidePanel){ background-image:radial-gradient(130% 40% at 50% -4%, var(--cl-top-glow), transparent 70%) !important; background-repeat:no-repeat !important; }

/* the main buttons: a little light on top, a gold glow underneath */
html.cl.cl-in .hy-go, html.cl.cl-in .sx-start, html.cl.cl-in .sx-td-go, html.cl.cl-in .cl-primary, html.cl.cl-in .bs-primary, html.cl.cl-in .pe-btn.pe-primary, html.cl.cl-in .tc-btn.primary,
html.cl.cl-in .sa-btn.primary, html.cl.cl-in .q-continue, html.cl.cl-in .calorie-upload-btn, html.cl.cl-in .sx-ctl-btn.sx-ctl-finish, html.cl.cl-in .sx-q.sx-primary, html.cl.cl-in .cl-pill{
  background-image:linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 55%) !important;
  box-shadow:var(--cl-glow), inset 0 1px 0 rgba(255,255,255,.35) !important;
}
html.cl.cl-in .hy-go:active, html.cl.cl-in .sx-start:active, html.cl.cl-in .sx-td-go:active, html.cl.cl-in .cl-primary:active, html.cl.cl-in .sx-ctl-btn:active, html.cl.cl-in .sx-q:active{ transform:scale(.97); }

/* the open tab is lit; the open chat row in the menu carries a gold tint */
html.cl.cl-in .tb-item[aria-current] svg{ filter:drop-shadow(0 0 7px rgba(244,176,74,.6)); }
html.cl.cl-in .side-chat-row.active{ background:var(--cl-tint-2) !important; }
/* the Discover rows: the icons take the gold */
html.cl.cl-in .disc-card svg{ color:var(--gold); }

/* ---------------------------------------------------------------- a session = header card + one card per exercise */
html.cl.cl-in .sx-hero{
  background-color:var(--cl-fill-2) !important; background-image:linear-gradient(155deg, rgba(244,176,74,.18) 0%, rgba(244,176,74,0) 62%) !important;
  border-radius:26px !important; padding:20px 18px 14px !important; margin:6px 0 4px !important; box-shadow:inset 0 0 0 1px rgba(244,176,74,.18) !important;
}
html.cl.cl-in .sx-hero .sx-eyebrow{ font-size:13px !important; font-weight:600 !important; color:var(--gold) !important; }
html.cl.cl-in .sx-hero .sx-title{ font-size:32px !important; line-height:1.1; margin:2px 0 4px; }
html.cl.cl-in .sx-hero .sx-mus{ color:var(--cl-dim); }
/* the muscle figures sit top right: every line of text keeps clear of them (the title rule above had reset that margin, so long titles ran under the drawing) */
html.cl.cl-in .sx-hero.has-maps .sx-eyebrow, html.cl.cl-in .sx-hero.has-maps .sx-title, html.cl.cl-in .sx-hero.has-maps .sx-meta,
html.cl.cl-in .sx-hero.has-maps .sx-notes, html.cl.cl-in .sx-hero.has-maps .sx-mus{ margin-right:108px !important; }
html.cl.cl-in .sx-hero.has-maps .sx-title{ overflow-wrap:anywhere; }
html.cl.cl-in .sx-bar{ height:8px !important; border-radius:4px !important; background:var(--cl-hair) !important; overflow:hidden; margin-top:14px !important; }
html.cl.cl-in .sx-bar i{ border-radius:4px !important; background:linear-gradient(90deg, rgba(244,176,74,.7), #F4B04A) !important; box-shadow:0 0 12px rgba(244,176,74,.55); }
html.cl.cl-in .sx-barlbl{ margin-top:8px; }
html.cl.cl-in .sx-hero .sx-start{ margin-top:14px !important; }
html.cl.cl-in .shc-hero-row{ margin-top:4px; }
html.cl.cl-in .shc-open-btn{ background:none !important; color:var(--cl-dim) !important; padding:0 !important; min-height:34px !important; font-size:14px !important; font-weight:500 !important; }
html.cl.cl-in .shc-open-btn svg{ color:var(--gold); }
html.cl.cl-in .sx-ctl-more{ padding-left:0 !important; }

html.cl.cl-in .sx-sec-head{ margin:22px 4px 10px !important; padding:0 !important; border:0 !important; }
html.cl.cl-in .sx-sec-top b, html.cl.cl-in .sx-block-head b{ font-size:19px !important; }
html.cl.cl-in .sx-sec-head .sx-sec-n{ background:var(--cl-tint-2) !important; color:var(--gold) !important; border:0 !important; border-radius:999px !important; padding:3px 11px !important; font-size:13px !important; font-weight:600 !important; }

html.cl.cl-in .ex-card-wrap.sx-ex{
  background:none !important; border:0 !important; border-bottom:1px solid var(--cl-hair) !important; border-radius:0 !important; margin:0 !important; padding-bottom:16px !important; box-shadow:none !important;
  transition:box-shadow .25s ease, background .25s ease;
}
html.cl.cl-in .ex-card-wrap.sx-ex.sx-fold, html.cl.cl-in .ex-card-wrap.sx-ex.no-sets{ padding-bottom:0 !important; }
html.cl.cl-in .sx-ex .ex-card{ padding:14px 16px 2px !important; gap:12px !important; }
html.cl.cl-in .sx-ex.sx-fold .ex-card, html.cl.cl-in .sx-ex.no-sets .ex-card{ padding-bottom:14px !important; }
html.cl.cl-in .sx-ex.is-done .ex-name{ color:var(--cl-dim) !important; }
html.cl.cl-in .sx-ex .ex-check{ border-color:var(--cl-line-strong, rgba(255,255,255,.25)); }
html.cl.cl-in .sx-ex.is-done .ex-check, html.cl.cl-in .sx-ex .ex-check.done{ background:var(--gold) !important; border-color:var(--gold) !important; color:var(--ink) !important; }
/* the one you are working on: lifted */
html.cl.cl-in .ex-card-wrap.sx-ex.sx-current{
  background-color:var(--cl-fill-2) !important; border-bottom:0 !important; border-radius:22px !important; margin:6px 0 10px !important;
  background-image:linear-gradient(160deg, rgba(244,176,74,.14) 0%, rgba(244,176,74,0) 55%) !important;
  box-shadow:inset 0 0 0 1.5px var(--cl-gold-ring), 0 12px 30px rgba(244,176,74,.14) !important;
}
html.cl.cl-in .sx-ex.sx-current .sx-now{ font-size:12px !important; font-weight:700 !important; color:var(--gold) !important; letter-spacing:.08em !important; }
html.cl.cl-in .sx-ex .ex-name{ font-size:18px !important; font-weight:600 !important; }
html.cl.cl-in .sx-ex .ex-detail{ font-size:15px !important; color:var(--cl-dim) !important; }
html.cl.cl-in .sx-ex .sx-goal{ font-size:14px !important; font-weight:600 !important; color:var(--gold) !important; }
/* supersets: the cards stay together */
html.cl.cl-in .sx-ex.sx-inblock{ box-shadow:inset 3px 0 0 var(--gold) !important; }
html.cl.cl-in .sx-ex.sx-inblock:not(.sx-blast){ margin-bottom:3px !important; border-bottom-left-radius:8px !important; border-bottom-right-radius:8px !important; }
html.cl.cl-in .sx-ex.sx-inblock:not(.sx-bfirst){ border-top-left-radius:8px !important; border-top-right-radius:8px !important; }

/* inside the open exercise: three tools in a row, the set chips centred, the editor as one sunk panel */
html.cl.cl-in .sx-ex.sx-current .sx-tools, html.cl.cl-in .sx-ex.sx-open .sx-tools{ gap:8px !important; padding:12px 16px 0 !important; }
html.cl.cl-in .sx-tool{ background:var(--cl-inset) !important; border:0 !important; border-radius:14px !important; min-height:42px !important; justify-content:center; color:var(--text) !important; font-size:14px !important; font-weight:600 !important; box-shadow:none !important; }
html.cl.cl-in .sx-tool svg{ color:var(--gold); }
html.cl.cl-in .sx-sets{ padding:14px 16px 0 !important; gap:8px !important; justify-content:center; }
html.cl.cl-in .sx-set{ min-width:54px; min-height:52px; border:0 !important; border-radius:15px !important; background:var(--cl-inset) !important; color:var(--text) !important; transition:transform .15s ease, background .2s ease, box-shadow .2s ease; }
html.cl.cl-in .sx-set b{ font-size:18px !important; font-weight:600 !important; }
html.cl.cl-in .sx-set small{ font-size:11px !important; font-weight:500 !important; color:var(--cl-dim) !important; }
html.cl.cl-in .sx-set.now{ background:var(--cl-tint) !important; box-shadow:inset 0 0 0 1.5px var(--gold) !important; }
html.cl.cl-in .sx-set.now:not(.done) b{ color:var(--gold) !important; }
html.cl.cl-in .sx-set.done{ background:var(--gold) !important; box-shadow:0 4px 12px rgba(244,176,74,.32) !important; color:var(--ink) !important; }
html.cl.cl-in .sx-set.done small, html.cl.cl-in .sx-set.done b{ color:var(--ink) !important; }
html.cl.cl-in .sx-edit{ margin:12px 16px 0 !important; padding:16px !important; border:0 !important; border-radius:20px !important; background:var(--cl-inset) !important; }
html.cl.cl-in .sx-edit-head{ text-transform:none !important; letter-spacing:0 !important; font-size:15px !important; font-weight:600 !important; color:var(--text) !important; margin-bottom:12px !important; }
html.cl.cl-in .sx-kg{ font-size:26px !important; font-weight:600 !important; border:0 !important; border-radius:14px !important; background:var(--cl-fill-2) !important; color:var(--text) !important; }
html.cl.cl-in .sx-sb, html.cl.cl-in .sx-rb{ border:0 !important; background:var(--cl-fill-2) !important; color:var(--text) !important; box-shadow:none !important; }
html.cl.cl-in .sx-rv{ font-size:16px !important; font-weight:600 !important; }
html.cl.cl-in .sx-q{ border:0 !important; border-radius:999px !important; min-height:46px !important; background:var(--cl-fill-2) !important; color:var(--text) !important; font-size:16px !important; font-weight:600 !important; }
html.cl.cl-in .sx-q.sx-primary{ background-color:var(--gold) !important; color:var(--ink) !important; }
html.cl.cl-in .sx-hint{ font-size:13px !important; color:var(--cl-dim) !important; }

/* ---------------------------------------------------------------- the day: quiet edit buttons */
html.cl.cl-in .sx-wd.sel{ background:var(--cl-tint-2) !important; box-shadow:inset 0 0 0 1.5px var(--gold) !important; }
html.cl.cl-in .sx-wd.today b{ color:var(--gold) !important; }
html.cl.cl-in .sx-wd.complete s, html.cl.cl-in .sx-wd.planned s{ background:var(--gold) !important; }
html.cl.cl-in .cal-day-title{ margin:14px 0 10px !important; }
html.cl.cl-in .pe-bar{ gap:8px !important; margin:0 0 14px !important; }
html.cl.cl-in .pe-bar .pe-btn{ min-height:38px !important; font-size:14px !important; color:var(--cl-dim) !important; }

/* ---------------------------------------------------------------- the month: one card; done days are soft gold discs, today a solid one */
/* #calMonthView also holds "your week" and "your own plan", so the month card is drawn by its three parts, edge to edge: nav on top, weekday letters, grid below */
/* (no card behind the month: the numbers sit straight on the screen) */
html.cl.cl-in .cal-day .cal-ring{ inset:5px !important; }
html.cl.cl-in .cal-day.complete .cal-ring{ -webkit-mask:none !important; mask:none !important; background:var(--cl-tint-2) !important; }
html.cl.cl-in .cal-day.complete .cal-daynum{ color:var(--gold) !important; font-weight:700 !important; }
html.cl.cl-in .cal-day.recovery .cal-ring{ background:conic-gradient(#4F9DFF calc(var(--pct,0) * 1%), rgba(79,157,255,.28) 0) !important; }
html.cl.cl-in .cal-day.recovery.complete .cal-ring{ background:rgba(79,157,255,.28) !important; }
html.cl.cl-in .cal-day.recovery .cal-daynum{ color:#7DB6FF !important; }
html.cl.cl-in .cal-day.today .cal-ring{ -webkit-mask:none !important; mask:none !important; background:var(--gold) !important; box-shadow:0 6px 16px rgba(244,176,74,.34); }
html.cl.cl-in .cal-day.today .cal-daynum{ color:var(--ink) !important; }
html.cl.cl-in .cal-legend{ margin:12px 4px 0 !important; }
html.cl.cl-in .sx-weekcard{ margin-top:16px !important; }
html.cl.cl-in .sx-wk-stat b svg{ color:var(--gold); }

/* ---------------------------------------------------------------- Today: the rings and the week sit in cards too */
html.cl.cl-in .hy-session{ background-image:linear-gradient(155deg, rgba(244,176,74,.16) 0%, rgba(244,176,74,0) 60%) !important; box-shadow:inset 0 0 0 1px rgba(244,176,74,.16); }
