/* ==========================================================================
   PomoMed — session menu (#session-steps, under the timer controls: rhythm
   chips + optional pills with inline panels), the rhythm colours
   (--rhythm-*), daily goal (panel + "Seu dia" block #day-goal) and the
   "focusing on" line (#focus-on). Owner: SESSION.
   Everything here sits on the coloured mode background (white text). Themes can
   retune the --sess-* tokens; text always uses var(--text).
   ========================================================================== */

:root {
  --sess-bg: rgba(0, 0, 0, .14);
  --sess-bg-hover: rgba(0, 0, 0, .2);
  --sess-bg-open: rgba(0, 0, 0, .26);
  --sess-panel: rgba(0, 0, 0, .17);
  --sess-line: rgba(255, 255, 255, .34);
  --sess-line-strong: rgba(255, 255, 255, .7);
  --sess-sel: #ffffff;
  --sess-accent: #fde047;
  --sess-accent-text: #422006;
  --sess-warn: #fef08a;
  --sess-radius: 14px;
  --sess-edge: rgba(255, 255, 255, .16);
  --sess-edge-hover: rgba(255, 255, 255, .55);
  --sess-glow-text: #ffffff;

  /* Rhythm colours. Pastel fills, so the dark ink on top stays ≥ 7:1 on any
     skin, and the dot stays visible on every (dark-enough-for-white-text)
     mode background. --rhythm-accent / --rhythm-ink resolve per [data-rhythm]. */
  --rhythm-classic: #6ee7b7;      /* mint */
  --rhythm-plantao: #fcd34d;      /* amber */
  --rhythm-deep: #c4b5fd;         /* violet */
  --rhythm-custom: #e2e8f0;       /* neutral */
  --rhythm-classic-ink: #053d2e;
  --rhythm-plantao-ink: #3f2405;
  --rhythm-deep-ink: #2b1468;
  --rhythm-custom-ink: #1e293b;
  /* Selected chip: one shared yellow for every rhythm (the rhythm's own colour
     stays on the dot, the INICIAR ring and the ECG line). */
  --rhythm-selected: #fcd34d;
  --rhythm-selected-ink: #3f2405;
}
/* Declared on body (not :root) so it follows the mode/skin tokens set there. */
body { --sess-glow: var(--mode-light); }
body,
[data-rhythm="classic"] { --rhythm-accent: var(--rhythm-classic); --rhythm-ink: var(--rhythm-classic-ink); }
[data-rhythm="plantao"] { --rhythm-accent: var(--rhythm-plantao); --rhythm-ink: var(--rhythm-plantao-ink); }
[data-rhythm="deep"]    { --rhythm-accent: var(--rhythm-deep);    --rhythm-ink: var(--rhythm-deep-ink); }
[data-rhythm="custom"]  { --rhythm-accent: var(--rhythm-custom);  --rhythm-ink: var(--rhythm-custom-ink); }
body[data-theme="dark"] {
  /* a touch less luminous on the near-black mode colours */
  --rhythm-classic: #5fdcaa;
  --rhythm-plantao: #f6c445;
  --rhythm-deep: #b8a6fc;
  --rhythm-custom: #cfd8e3;
  --rhythm-selected: #f6c445;
  --sess-bg: rgba(255, 255, 255, .07);
  --sess-bg-hover: rgba(255, 255, 255, .11);
  --sess-bg-open: rgba(0, 0, 0, .3);
  --sess-panel: rgba(0, 0, 0, .26);
  --sess-line: rgba(255, 255, 255, .26);
  --sess-line-strong: rgba(255, 255, 255, .6);
  --sess-edge: rgba(255, 255, 255, .12);
  --sess-edge-hover: rgba(255, 255, 255, .45);
  --sess-glow-text: var(--mode-light);
}

/* ---------- Container ---------- */
.session-steps {
  container-type: inline-size;
  margin: 26px 0 0;
  text-align: left;
}
.session-steps:empty { display: none; }
.sess { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.sess__body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* ---------- Rhythm chips (always visible, one colour per rhythm) ----------
   Unselected: quiet glass + a dot in the rhythm's colour.
   Selected: filled with the rhythm colour, dark ink text (≥ 7:1 on every
   skin, because the fill is opaque) and the dot turns into a check. */
.sess-rhythms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
@container (min-width: 520px) {
  .sess-rhythms { display: flex; flex-wrap: nowrap; justify-content: center; }
}

.sess-card {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 14px 0 12px;
  border: 1px solid var(--sess-edge);
  border-radius: var(--radius-pill);
  background: var(--sess-bg);
  color: var(--text);
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: background-color var(--t-fast, .16s), border-color var(--t-fast, .16s), color var(--t-fast, .16s), box-shadow var(--t-med, .2s), transform var(--t-fast, .16s) var(--ease);
}
.sess-card:hover { border-color: color-mix(in srgb, var(--rhythm-accent) 75%, transparent); background: var(--sess-bg-hover); }
.sess-card:active { transform: scale(.97); }
.sess-card:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--radius-pill); }

.sess-card__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rhythm-accent);
  color: var(--rhythm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rhythm-accent) 20%, transparent);
  transition: width var(--t-med, .2s) var(--ease), height var(--t-med, .2s) var(--ease), background-color var(--t-fast, .16s), box-shadow var(--t-fast, .16s);
}
.sess-card__mark .pm-icon { display: none; width: 10px; height: 10px; }
.sess-card__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.sess-card__nums {
  flex: none;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.sess-card__gear { flex: none; display: inline-grid; place-items: center; }
.sess-card__gear .pm-icon { width: 14px; height: 14px; }

.sess-card[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%), var(--rhythm-selected);
  color: var(--rhythm-selected-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 6px 18px -8px color-mix(in srgb, var(--rhythm-selected) 85%, transparent),
    0 0 0 3px color-mix(in srgb, var(--rhythm-selected) 18%, transparent);
}
.sess-card[aria-pressed="true"] .sess-card__mark {
  width: 16px;
  height: 16px;
  background: var(--rhythm-selected-ink);
  box-shadow: none;
}
.sess-card[aria-pressed="true"] .sess-card__mark .pm-icon { display: block; }
.sess-card[aria-pressed="true"] .sess-card__nums { font-weight: 700; }

/* Phones: slightly tighter chips so "Deep Study 90/20" fits two per row. */
@container (max-width: 360px) {
  .sess-card { gap: 6px; padding: 0 11px 0 10px; }
  .sess-card__name { letter-spacing: -.015em; }
  .sess-card__nums { font-size: .6875rem; letter-spacing: -.03em; }
}
@container (max-width: 300px) {
  .sess-card { font-size: .78rem; padding: 0 8px 0 7px; gap: 5px; }
  .sess-card[aria-pressed="true"] .sess-card__mark { width: 14px; height: 14px; }
}
/* 320px phones: chips size to their content and wrap (still centred, single-line). */
@container (max-width: 270px) {
  .sess-rhythms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 5px; }
  .sess-card { font-size: .75rem; padding: 0 8px 0 7px; gap: 5px; }
  .sess-card__nums { font-size: .65rem; }
}

.sess__helper {
  margin: 10px 0 0;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
}
.sess__helper[hidden] { display: none; }

/* ---------- Optional pills ----------
   Unset/skipped: a 40px icon-only circle (state in aria-label + tooltip).
   Set: icon + value. Dashed = untouched, faint solid = "no thanks", filled = set. */
.sess-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}
.sess-pill {
  appearance: none;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  max-width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 12px;
  border: 1px dashed var(--sess-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sess-pill:not([data-state="set"]) { width: 40px; padding: 0; }
.sess-pill:hover { background: var(--sess-bg); border-color: #fff; }
.sess-pill:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-pill); }
.sess-pill__icon { flex: none; display: inline-grid; place-items: center; line-height: 1; }
.sess-pill__icon .pm-icon { width: 18px; height: 18px; }
.sess-pill[data-state="set"] .sess-pill__icon .pm-icon { width: 16px; height: 16px; }
.sess-pill__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sess-pill__text:empty { display: none; }
.sess-pill__val {
  min-width: 0;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sess-pill .goal-ring { flex: none; }
.sess-pill[data-pill="goal"][data-state="set"] .sess-pill__icon { display: none; } /* the ring takes its place */

/* set: a real choice — solid glass */
.sess-pill[data-state="set"] {
  border-style: solid;
  border-color: var(--sess-line);
  background: var(--sess-bg);
}
.sess-pill[data-state="set"]:hover { border-color: var(--sess-line-strong); background: var(--sess-bg-hover); }
/* skip: remembered "no thanks" — faint solid ring */
.sess-pill[data-state="skip"] { border-style: solid; border-color: var(--sess-line); }

/* exam reminder tones */
.sess-pill[data-tone="soon"],
.sess-pill[data-tone="today"] { border-color: var(--sess-accent); }
.sess-pill[data-tone="today"] { box-shadow: 0 0 0 3px rgba(253, 224, 71, .22); }
.sess-pill[data-tone="past"] { border-style: dashed; border-color: var(--sess-warn); }
.sess-pill[data-tone="soon"] .sess-pill__val,
.sess-pill[data-tone="today"] .sess-pill__val { font-weight: 800; }

/* music playing: a tiny live dot */
.sess-pill[data-tone="playing"] .sess-pill__val::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--sess-accent);
  vertical-align: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .sess-pill[data-tone="playing"] .sess-pill__val::after { animation: sess-blink 1.6s ease-in-out infinite; }
}
@keyframes sess-blink { 50% { opacity: .35; } }

/* open */
.sess-pill.is-open {
  border-style: solid;
  border-color: var(--sess-sel);
  background: var(--sess-bg-open);
}

/* ---------- Inline panels (one at a time) ---------- */
.sess-panel {
  margin-top: 10px;
  padding: 14px 12px 12px;
  border-radius: var(--sess-radius);
  background: var(--sess-panel);
  color: var(--text);
  --ctx-text: var(--text);
  --ctx-muted: var(--text);
}
@media (prefers-reduced-motion: no-preference) {
  .sess-panel:not([hidden]) { animation: sess-panel-in .22s var(--ease); }
}
@keyframes sess-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
}

.sess-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sess-note,
.sess-empty {
  margin: 8px 0 0;
  font-size: .8125rem;
  line-height: 1.4;
}
.sess-empty { margin: 0 0 4px; font-size: .875rem; }
.sess-err {
  margin: 8px 0 0;
  font-size: .875rem;
  font-weight: 700;
  color: var(--sess-warn);
}
.sess-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.session-steps .btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.session-steps .input,
.session-steps .select { min-height: 42px; }

/* Panel footer: the visible "skip" choice + done/close */
.sess-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sess-line);
}
.sess-skip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid var(--sess-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.sess-skip:hover { background: var(--sess-bg-hover); border-color: var(--sess-sel); }
.sess-skip:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-pill); }
.sess-foot .sess-close { color: var(--text); }

/* task */
.sess-tasks {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sess-task {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1.5px solid var(--sess-line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sess-task:hover { background: var(--sess-bg-hover); border-color: var(--sess-line-strong); }
.sess-task[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--mode-bg); }
.sess-task__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-task__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sess-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 4px; }
.sess-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sess-quick {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sess-line);
  display: grid;
  gap: 10px;
}
.sess-quick .sess-sub { margin: 0; }
.sess-quick__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 34%);
  gap: 10px;
  align-items: end;
}
.sess-quick .field > label { font-size: .8125rem; font-weight: 700; color: var(--text); }
.sess-opt { font-weight: 500; }
.sess-quick .sess-actions { margin-top: 2px; }
.sess-quick .input[aria-invalid="true"] { border-color: var(--sess-warn); }

/* music — fallback text if the player never mounted */
.sess-music-mount:not(:empty) + .sess-music-fallback { display: none; }
.sess-music-fallback { margin: 0; font-size: .875rem; }

/* exam */
.exam__form { display: grid; gap: 10px; }
.exam__form .sess-sub { margin: 0; }
.exam__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
}
.exam__field > label { font-size: .8125rem; font-weight: 700; color: var(--text); }
.exam__field .input { min-height: 42px; }
.session-steps input[type="date"] { color-scheme: dark; min-width: 0; }
.exam__field .input[aria-invalid="true"] { border-color: var(--sess-warn); }
.exam__hint { margin: 0; }
.exam__form .sess-foot { margin-top: 2px; }
.exam__pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  justify-self: start;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exam__pro svg { color: var(--sess-accent); flex: none; }
@container (max-width: 340px) {
  .exam__fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Collapsed one-line summary (timer running) ---------- */
.sess__collapsed {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  min-height: 42px;
  margin: 0;
  padding: 5px 5px 5px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--sess-bg);
  color: var(--text);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sess__collapsed:hover { background: var(--sess-bg-hover); }
.sess__collapsed:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-pill); }
.sess__collapsed-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sess__cl-item { white-space: nowrap; }
.sess__cl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--rhythm-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rhythm-accent) 22%, transparent);
  vertical-align: 1px;
}
.sess__cl-icon { display: inline-block; vertical-align: -3px; margin-right: 5px; }
.sess__cl-icon .pm-icon { width: 15px; height: 15px; }
.sess__cl-item .spec-dot,
.sess__cl-item .goal-ring { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.sess__cl-item .spec-dot { vertical-align: 0; }
.sess__cl-sep { margin: 0 7px; opacity: .85; }
.sess__collapsed-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--sess-bg-open);
  font-weight: 700;
}
.sess.is-running:not(.is-collapsed) .sess__body {
  padding-top: 4px;
}

/* ---------- Goal ring + goal panel ---------- */
.goal-ring { flex: none; display: block; }
.goal-ring__track { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 2.6; }
.goal-ring__fill {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: stroke-dashoffset .45s var(--ease);
}
.goal-ring.is-full .goal-ring__fill { stroke: var(--sess-accent); }

.goal { display: grid; gap: 12px; container-type: inline-size; }
.goal__head { display: flex; align-items: center; gap: 12px; }
.goal__ring-wrap { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.goal__ring-wrap .goal-ring { position: absolute; inset: 0; width: 44px; height: 44px; }
.goal__pct {
  position: relative;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.goal__progress { min-width: 0; }
.goal__title { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.goal__status { margin: 2px 0 0; font-size: .875rem; font-weight: 600; line-height: 1.35; }

.goal__fields { display: grid; gap: 12px; }
.goal__field { display: grid; gap: 6px; min-width: 0; }
.goal__label { font-size: .8125rem; font-weight: 700; }
.goal__stepper { display: flex; align-items: center; gap: 6px; }
.goal__step {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
  color: var(--text);
  cursor: pointer;
}
.goal__step:hover:not(:disabled) { background: rgba(0, 0, 0, .3); }
body[data-theme="dark"] .goal__step { background: rgba(255, 255, 255, .12); }
body[data-theme="dark"] .goal__step:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.goal__input.input {
  width: 76px;
  min-height: 40px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.goal__input::-webkit-outer-spin-button,
.goal__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.goal__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.goal__chip.chip { min-width: 46px; justify-content: center; font-family: var(--font-mono); }
.goal__hint { margin: 0; font-size: .8125rem; line-height: 1.4; }
.goal .sess-foot { margin-top: 0; }

@container (min-width: 400px) {
  .goal__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- "Seu dia" goal block (div#day-goal in the aside) ---------- */
.day-goal-host { container-type: inline-size; }
.day-goal__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "ring body"
    "ring edit";
  align-items: center;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  color: var(--text);
}
.day-goal__ring {
  grid-area: ring;
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  align-self: start;
}
.day-goal__ring .goal-ring { position: absolute; inset: 0; width: 64px; height: 64px; }
.day-goal__card .goal-ring__track,
.day-goal__card .goal-ring__fill { stroke-width: 1.9; }
.day-goal__card .goal-ring__track { stroke: rgba(255, 255, 255, .26); }
.day-goal__pct {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.day-goal__pct small { font-size: .65em; margin-left: 1px; }
.day-goal__pct svg { opacity: .9; }
.day-goal__body { grid-area: body; min-width: 0; }
.day-goal__title {
  margin: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.day-goal__line {
  margin: 3px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.day-goal__bars { display: grid; gap: 6px; margin-top: 8px; }
.day-goal__bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.day-goal__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.day-goal__card[data-state="met"] .day-goal__fill { background: var(--sess-accent); }
.day-goal__note { margin: 2px 0 0; font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.day-goal__edit {
  grid-area: edit;
  justify-self: start;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: 6px 0 0;
  padding: 0 14px 0 12px;
  border: 1.5px solid var(--sess-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.day-goal__edit:hover { background: var(--sess-bg-hover); border-color: var(--sess-sel); }
.day-goal__edit:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-pill); }
.day-goal__card[data-state="none"] .day-goal__edit { background: #fff; border-color: #fff; color: var(--mode-bg); }
@container (min-width: 380px) {
  .day-goal__card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ring body edit"; }
  .day-goal__edit { margin: 0; align-self: start; }
}

/* ---------- "Focando em" line under the timer ---------- */
.focus-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
  max-width: 100%;
  margin: -20px auto 24px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.focus-on[hidden] { display: none; }
.focus-on__label { font-weight: 500; }
.focus-on__title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}
.focus-on__sep { opacity: .85; }
.focus-on__spec { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* ---------- Accessibility modes ---------- */
@media (prefers-reduced-motion: reduce) {
  .sess-card,
  .sess-card__mark,
  .sess-pill,
  .goal-ring__fill,
  .day-goal__fill,
  .sess-panel { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .sess-card,
  .sess-pill,
  .sess-skip,
  .sess-task,
  .sess__collapsed,
  .day-goal__card,
  .day-goal__edit { border: 1px solid ButtonText; }
  .sess-card[aria-pressed="true"],
  .sess-task[aria-pressed="true"],
  .sess-pill.is-open { outline: 3px solid Highlight; outline-offset: 1px; }
  .sess-card__mark { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .sess-card[aria-pressed="true"] .sess-card__mark { background: Highlight; color: HighlightText; }
  .goal-ring__fill { stroke: Highlight; }
  .day-goal__fill { background: Highlight; }
}
@media print {
  .session-steps, .focus-on, .day-goal__edit { display: none !important; }
}

/* v4 strip (≥700px): the column itself is the card (app.css §17). */
@media (min-width: 700px) {
  .day-panel .day-goal__card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
}
@media (forced-colors: active) {
  .sess__cl-dot { forced-color-adjust: none; background: CanvasText; }
}

/* ---------- Active rhythm colour on the timer (subtle) ----------
   session.js mirrors the chosen rhythm as data-rhythm on #timer-card and <body>.
   Used only for: the progress outline around START, START's glow while running,
   and the ECG progress line under the header. */
.timer-card .start-ring__fill {
  stroke: color-mix(in srgb, var(--rhythm-accent) 80%, #ffffff);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rhythm-accent) 85%, transparent));
}
.timer-card .btn-start.is-running {
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .12),
    inset 0 0 0 1px color-mix(in srgb, var(--rhythm-accent) 60%, transparent),
    inset 0 -10px 20px -12px var(--rhythm-accent),
    0 8px 24px -12px var(--rhythm-accent);
}
#ecg-progress #ecg-fill {
  stroke: color-mix(in srgb, var(--rhythm-accent) 70%, #ffffff);
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--rhythm-accent) 70%, transparent));
}
#ecg-progress .ecg-head {
  background: color-mix(in srgb, var(--rhythm-accent) 55%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rhythm-accent) 25%, transparent), 0 0 10px 2px color-mix(in srgb, var(--rhythm-accent) 60%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  #ecg-progress #ecg-fill { filter: none; }
}
@media (forced-colors: active) {
  #ecg-progress #ecg-fill { stroke: Highlight; filter: none; }
  .timer-card .start-ring__fill { stroke: Highlight; filter: none; }
}
