@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --tg-page-bg: #03050f;
  --tg-page-bg-secondary: #0a1324;
  --tg-surface: rgba(12, 18, 33, 0.9);
  --tg-surface-elevated: rgba(8, 12, 24, 0.9);
  --tg-surface-soft: rgba(255, 255, 255, 0.08);
  --tg-border: rgba(255, 255, 255, 0.1);
  --tg-border-strong: rgba(255, 255, 255, 0.15);
  --tg-text-primary: #f4f4f6;
  --tg-text-soft: rgba(255, 255, 255, 0.78);
  --tg-text-subtle: rgba(255, 255, 255, 0.6);
  --tg-accent: #39c6ff;
  --tg-accent-strong: #2563eb;
  --tg-accent-soft: #7f8dff;
  --tg-accent-contrast: #041628;
  --tg-success: #8bd59e;
  --tg-header-bg: #124660;
  --tg-header-text: #ffffff;
  --tg-nav-muted: rgba(255, 255, 255, 0.82);
  --tg-primary-start: #39c6ff;
  --tg-primary-end: #2563eb;
  --tg-primary-shadow: rgba(57, 198, 255, 0.24);
  --tg-ghost-bg: rgba(255, 255, 255, 0.08);
  --tg-input-bg: rgba(255, 255, 255, 0.06);
  --tg-metric-bg: rgba(255, 255, 255, 0.06);
  --tg-shadow-lg: 0 35px 90px rgba(3, 7, 17, 0.7);
  --tg-shadow-md: 0 30px 80px rgba(3, 7, 17, 0.75);
  --tg-radius-lg: 30px;
  --tg-radius-md: 22px;
}

html[data-theme='studio'] {
  color-scheme: light;
  --tg-page-bg: #edf4ef;
  --tg-page-bg-secondary: #e4efe8;
  --tg-surface: #ffffff;
  --tg-surface-elevated: #e4efe8;
  --tg-surface-soft: rgba(139, 213, 158, 0.2);
  --tg-border: rgba(18, 70, 96, 0.34);
  --tg-border-strong: rgba(18, 70, 96, 0.48);
  --tg-text-primary: #124660;
  --tg-text-soft: rgba(18, 70, 96, 0.8);
  --tg-text-subtle: rgba(18, 70, 96, 0.64);
  --tg-accent: #1b9476;
  --tg-accent-strong: #124660;
  --tg-accent-soft: #8bd59e;
  --tg-accent-contrast: #ffffff;
  --tg-header-bg: #124660;
  --tg-primary-start: #1b9476;
  --tg-primary-end: #124660;
  --tg-primary-shadow: rgba(18, 70, 96, 0.2);
  --tg-ghost-bg: rgba(18, 70, 96, 0.06);
  --tg-input-bg: rgba(18, 70, 96, 0.045);
  --tg-metric-bg: #e8f3ed;
  --tg-shadow-lg: 0 0 0 rgba(0, 0, 0, 0);
  --tg-shadow-md: 0 0 0 rgba(0, 0, 0, 0);
}

html[data-theme='dark'] {
  --tg-accent: #124660;
  --tg-accent-strong: #124660;
  --tg-accent-soft: #1b5a7e;
  --tg-accent-contrast: #ffffff;
  --tg-primary-start: #124660;
  --tg-primary-end: #124660;
  --tg-primary-shadow: rgba(18, 70, 96, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--tg-text-primary);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--tg-accent-soft) 24%, transparent), transparent 46%),
    radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--tg-accent) 18%, transparent), transparent 52%),
    linear-gradient(180deg, var(--tg-page-bg), var(--tg-page-bg-secondary));
  font-size: 16px;
  transition: background-color 240ms ease, color 240ms ease;
}

html[data-theme='dark'] body,
html[data-theme='studio'] body {
  background: var(--tg-page-bg);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tg-accent) 78%, transparent);
  outline-offset: 3px;
}

.tg-site-shell {
  min-height: 100vh;
}

.tg-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: transparent;
}

.tg-site-topband {
  display: flex;
  width: 100%;
  min-height: 4.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--tg-border);
  background: color-mix(in srgb, var(--tg-surface-elevated) 86%, transparent);
  box-shadow: 0 14px 28px rgba(3, 7, 17, 0.14);
  backdrop-filter: saturate(118%) blur(14px);
}

html[data-theme='studio'] .tg-site-topband {
  border-bottom-color: rgba(18, 70, 96, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(18, 70, 96, 0.08);
}

html[data-theme='dark'] .tg-site-topband {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  background: #080c18;
  box-shadow: none;
  backdrop-filter: none;
}

.tg-site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: flex-end;
  gap: 0.55rem;
  color: var(--tg-text-primary);
  text-decoration: none;
}

.tg-site-brand:hover .tg-site-brand-slogan {
  color: var(--tg-accent);
}

.tg-site-logo-frame {
  display: inline-flex;
  width: clamp(9.4rem, 13vw, 13.2rem);
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.16rem 0.28rem;
  border: 1px solid rgba(18, 70, 96, 0.13);
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 70, 96, 0.13);
}

html[data-theme='dark'] .tg-site-logo-frame {
  border: 0;
  box-shadow: none;
}

.tg-site-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tg-site-brand-copy {
  display: grid;
  align-content: end;
  gap: 0.2rem;
  padding-bottom: 0.18rem;
}

.tg-site-brand-slogan {
  color: var(--tg-text-primary);
  font-size: clamp(0.92rem, 1.3vw, 1.12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 160ms ease;
}

.tg-site-brand-product {
  color: var(--tg-text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tg-site-topband-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.tg-site-identity {
  display: grid;
  gap: 0.14rem;
  max-width: 14rem;
  padding-right: 0.75rem;
  border-right: 1px solid var(--tg-border);
  text-align: right;
}

.tg-site-identity-role {
  overflow: hidden;
  color: var(--tg-text-subtle);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tg-site-identity-name {
  overflow: hidden;
  color: var(--tg-text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.12rem;
  min-height: 2.1rem;
  padding: 0.14rem;
  border: 1px solid var(--tg-border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tg-surface) 86%, transparent);
  box-shadow: 0 4px 10px rgba(3, 7, 17, 0.08);
}

.lang-btn,
.theme-btn {
  min-width: 2.25rem;
  min-height: 1.8rem;
  padding: 0 0.62rem;
  border: 0;
  border-radius: 999px;
  color: var(--tg-text-soft);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-btn:hover,
.theme-btn:hover {
  color: var(--tg-text-primary);
  background: var(--tg-surface-soft);
}

.lang-btn.active,
.theme-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, var(--tg-primary-start), var(--tg-primary-end));
  box-shadow: 0 8px 16px var(--tg-primary-shadow);
}

html[data-theme='studio'] .lang-btn.active {
  background: #1b9476;
}

html[data-theme='studio'] .theme-btn.active {
  background: #124660;
}

html[data-theme='dark'] .lang-btn.active,
html[data-theme='dark'] .theme-btn.active {
  background: #124660;
  background-image: none;
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.23rem;
  flex-direction: column;
  border: 1px solid var(--tg-border-strong);
  border-radius: 0.75rem;
  color: var(--tg-text-primary);
  background: var(--tg-surface-soft);
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(0.25rem) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.25rem) rotate(-45deg);
}

.tg-site-nav-shell {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--tg-header-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tg-site-nav {
  display: flex;
  gap: 0.44rem;
  width: 100%;
  padding: 0.24rem clamp(1rem, 4vw, 4rem) 0.3rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tg-site-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tg-site-nav-link {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.58rem 0.96rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--tg-nav-muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tg-site-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(7, 31, 44, 0.16);
}

.tg-site-nav-link-active {
  border-color: rgba(139, 213, 158, 0.65);
  color: #ffffff;
  background: linear-gradient(180deg, #24a585, #1b9476);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(9, 48, 39, 0.2);
}

html[data-theme='dark'] .tg-site-nav-link-active {
  border-color: rgba(255, 255, 255, 0.2);
  background: #124660;
  background-image: none;
  box-shadow: none;
}

html[data-theme='dark'] .tg-site-nav-link:hover {
  box-shadow: none;
}

main.app-shell {
  display: flex;
  width: min(100%, 1280px);
  min-height: 0;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1rem, 4vw, 4rem) 3rem;
}

.hero {
  display: flex;
  max-width: 960px;
  flex-direction: column;
  gap: 1rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.eyebrow,
.card-eyebrow {
  margin: 0;
  color: var(--tg-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-badge,
.hero-meta span {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--tg-accent) 35%, transparent);
  border-radius: 999px;
  color: var(--tg-text-soft);
  background: color-mix(in srgb, var(--tg-accent) 10%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 890px;
  margin-bottom: 0;
  color: var(--tg-text-primary);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h2 {
  margin-bottom: 0;
  color: var(--tg-text-primary);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--tg-text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.panel.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  color: var(--tg-text-primary);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tg-surface) 96%, transparent), color-mix(in srgb, var(--tg-surface-elevated) 76%, transparent));
  box-shadow: var(--tg-shadow-lg);
  backdrop-filter: blur(16px);
}

html[data-theme='dark'] .card {
  border-color: rgba(255, 255, 255, 0.15);
  background: #080c18;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme='studio'] .card {
  border-color: rgba(18, 70, 96, 0.22);
  background: linear-gradient(145deg, #ffffff, #eef7f3);
  box-shadow: var(--tg-shadow-md);
}

.card--session {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tg-surface) 84%, var(--tg-accent-strong)), color-mix(in srgb, var(--tg-surface-elevated) 88%, var(--tg-accent) 12%));
}

html[data-theme='dark'] .card--session {
  border-color: rgba(255, 255, 255, 0.2);
  background: #124660;
}

html[data-theme='studio'] .card--session {
  border-color: rgba(18, 70, 96, 0.26);
  color: #ffffff;
  background: linear-gradient(145deg, #124660, #1b9476);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.card-heading .card-eyebrow {
  margin-bottom: 0.45rem;
}

.card-mark {
  display: inline-flex;
  min-width: 2.3rem;
  min-height: 2.3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border-strong);
  border-radius: 0.8rem;
  color: var(--tg-text-subtle);
  background: var(--tg-surface-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card--session .card-eyebrow,
.card--session h2,
.card--session .status,
.card--session .countdown-hint,
.card--session .label {
  color: rgba(255, 255, 255, 0.78);
}

.card--session h2,
.card--session .timer,
.card--session .session-data p:not(.label) {
  color: #ffffff;
}

.live-dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.48rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tg-success);
  box-shadow: 0 0 0 0.35rem rgba(139, 213, 158, 0.13), 0 0 18px rgba(139, 213, 158, 0.62);
}

html[data-theme='dark'] .live-dot {
  box-shadow: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: var(--tg-text-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

input[type='number'],
input[type='text'],
input[type='email'],
input[type='tel'] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--tg-border);
  border-radius: 0.85rem;
  color: var(--tg-text-primary);
  background: var(--tg-input-bg);
  box-shadow: inset 0 1px 2px rgba(2, 8, 23, 0.08);
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: var(--tg-text-subtle);
}

input[type='number']:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus {
  border-color: var(--tg-accent);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tg-accent) 25%, transparent);
}

input[type='range'] {
  width: 100%;
  accent-color: var(--tg-accent);
}

.field-with-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.field-with-indicator input[type='range'] {
  flex: 1;
}

.field-with-indicator input[type='number'] {
  width: 5.75rem;
  flex: 0 0 5.75rem;
  text-align: right;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--tg-border);
  border-radius: 0.95rem;
  background: var(--tg-metric-bg);
}

.metric__label {
  color: var(--tg-text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric__value {
  color: var(--tg-text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

button {
  min-height: 2.85rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--tg-text-primary);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

button.primary {
  color: var(--tg-accent-contrast);
  background: linear-gradient(180deg, var(--tg-primary-start), var(--tg-primary-end));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 24px var(--tg-primary-shadow);
}

button.primary:not(:disabled):hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 30px var(--tg-primary-shadow);
}

html[data-theme='dark'] button.primary {
  color: #ffffff;
  background: #124660;
  background-image: none;
  box-shadow: 0 14px 24px rgba(18, 70, 96, 0.2);
}

html[data-theme='dark'] button.primary:not(:disabled):hover {
  box-shadow: 0 18px 30px rgba(18, 70, 96, 0.2);
}

button.ghost {
  border-color: var(--tg-border-strong);
  color: var(--tg-text-primary);
  background: var(--tg-ghost-bg);
}

button.ghost:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--tg-accent) 48%, var(--tg-border-strong));
  background: color-mix(in srgb, var(--tg-accent) 12%, var(--tg-ghost-bg));
}

.actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.session {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.session .card-heading {
  margin-bottom: 0.15rem;
}

.timer {
  color: var(--tg-text-primary);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--tg-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cta-group {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.card--session .ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.card--session .ghost:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.17);
}

.countdown-hint {
  min-height: 1.2rem;
  color: var(--tg-text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.progress-wrapper {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tg-success), var(--tg-accent));
  transition: width 0.2s ease;
}

html[data-theme='dark'] .progress {
  background: #124660;
  background-image: none;
}

.session-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.session-data > div {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.session-data p {
  margin: 0;
}

.session-data .label {
  margin-bottom: 0.28rem;
  color: var(--tg-text-subtle);
  font-size: 0.7rem;
  font-weight: 700;
}

.session-data p:not(.label) {
  color: var(--tg-text-primary);
  font-size: 1rem;
  font-weight: 800;
}

.info {
  max-width: 100%;
}

.info .card-heading {
  margin-bottom: 1rem;
}

.info ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: instructions;
}

.info li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--tg-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  counter-increment: instructions;
}

.info li::before {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--tg-accent) 34%, transparent);
  border-radius: 0.7rem;
  color: var(--tg-accent);
  background: color-mix(in srgb, var(--tg-accent) 9%, transparent);
  content: counter(instructions, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 0.25rem;
  padding: 1.4rem 1rem 2.5rem;
  color: var(--tg-text-subtle);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.legal-content a,
.legal-downloads a {
  color: var(--tg-accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.legal-content a:hover,
.legal-downloads a:hover {
  text-decoration: underline;
}

.auth-overlay {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(3, 7, 17, 0.82);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease;
}

html[data-theme='studio'] .auth-overlay {
  background: rgba(18, 70, 96, 0.32);
}

.auth-overlay[aria-hidden='true'] {
  pointer-events: none;
  opacity: 0;
}

.auth-modal-shell {
  display: flex;
  width: min(100%, 620px);
  max-width: calc(100vw - 2rem);
  min-width: 0;
  flex-direction: column;
  gap: 0.8rem;
  margin: auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-overlay-bar {
  max-width: 100%;
  padding: 0.2rem;
}

.brand-strip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  display: block;
  width: 8.5rem;
  height: 2.6rem;
  object-fit: contain;
  padding: 0.14rem 0.25rem;
  border: 1px solid rgba(18, 70, 96, 0.16);
  border-radius: 0.64rem;
  background: #ffffff;
}

.brand-tagline {
  margin: 0;
  color: var(--tg-text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  border: 1px solid var(--tg-border-strong);
  border-radius: 1.65rem;
  color: var(--tg-text-primary);
  background: var(--tg-surface-elevated);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.38);
}

html[data-theme='studio'] .auth-card {
  border-color: rgba(18, 70, 96, 0.24);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(18, 70, 96, 0.2);
}

.auth-stage.hidden {
  display: none;
}

.auth-header {
  margin-bottom: 1.25rem;
}

.auth-header h2 {
  margin-top: 0.42rem;
}

.auth-lede {
  margin: 0.55rem 0 0;
  color: var(--tg-text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.required-indicator {
  color: var(--tg-accent);
}

.auth-disclaimer {
  margin: 0 0 1rem;
  color: var(--tg-text-subtle);
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.auth-actions.space-between {
  justify-content: space-between;
}

.auth-message {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: var(--tg-text-primary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-message.error {
  color: #d87a67;
}

.auth-message.success {
  color: var(--tg-success);
}

.legal-page {
  gap: 1.2rem;
}

.legal-page .hero {
  max-width: 960px;
}

.legal-content {
  color: var(--tg-text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-content h2,
.legal-content h3 {
  color: var(--tg-text-primary);
}

.legal-content h2 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 1rem;
}

.legal-content p {
  margin: 0 0 0.75rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-downloads {
  margin: 0;
}

@media (max-width: 980px) {
  .tg-site-identity {
    display: none;
  }

  .tg-site-topband-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 760px) {
  .tg-site-topband {
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .tg-site-brand {
    max-width: calc(100% - 3.2rem);
  }

  .tg-site-logo-frame {
    width: clamp(8.2rem, 34vw, 10.4rem);
    height: 2.75rem;
  }

  .tg-site-brand-copy {
    display: none;
  }

  .tg-site-topband-actions {
    flex-wrap: nowrap;
  }

  .theme-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .tg-site-nav-shell {
    position: relative;
  }

  .tg-site-nav {
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 1rem 0.85rem;
  }

  .tg-site-nav.tg-site-nav-open {
    display: flex;
  }

  .tg-site-nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  main.app-shell {
    padding-top: 2rem;
  }

  .panel.layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.8rem);
  }
}

@media (max-width: 560px) {
  .auth-modal-shell {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
  }

  .tg-site-topband-actions .lang-switch {
    display: none;
  }

  main.app-shell {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .card {
    border-radius: 1.45rem;
  }

  .field-with-indicator {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }

  .field-with-indicator input[type='number'] {
    width: 100%;
    flex-basis: auto;
    text-align: left;
  }

  .cta-group,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-group button,
  .actions button {
    width: 100%;
  }

  .session-data,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full-width {
    grid-column: auto;
  }

  .auth-actions,
  .auth-actions.space-between {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .auth-actions button {
    width: 100%;
  }

  .auth-overlay-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 0.5rem;
  }

  .auth-overlay-bar .brand-strip {
    width: 100%;
  }

  .auth-overlay-bar .lang-switch,
  .auth-overlay-bar .theme-switch {
    display: inline-flex;
  }

  .auth-overlay-bar .theme-switch {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Training Guide login component parity */
.auth-overlay {
  align-items: flex-start;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  overscroll-behavior: contain;
}

.auth-overlay[aria-hidden='true'] {
  visibility: hidden;
}

.auth-overlay[aria-hidden='false'] {
  visibility: visible;
}

.tg-login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  height: auto;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  padding: 2.5rem 1rem;
  color: var(--tg-text-primary);
  background:
    radial-gradient(circle at 50% 0%, rgba(57, 198, 255, 0.1), transparent 44%),
    linear-gradient(180deg, var(--tg-page-bg), var(--tg-page-bg-secondary));
}

html[data-theme='dark'] .tg-login-page {
  background: var(--tg-page-bg);
}

html[data-theme='studio'] .tg-login-page {
  background: var(--tg-page-bg);
}

.tg-login-page-inner {
  display: flex;
  width: 100%;
  max-width: 72rem;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-overlay.auth-overlay-register .tg-login-page-inner {
  justify-content: flex-start;
}

.tg-login-card {
  width: 100%;
  max-width: 28rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--tg-border);
  border-radius: 32px;
  color: var(--tg-text-primary);
  background: var(--tg-surface-elevated);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

html[data-theme='dark'] .tg-login-card {
  border-color: rgba(255, 255, 255, 0.15);
  background: #080c18;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
}

html[data-theme='studio'] .tg-login-card {
  border-width: 3px;
  border-color: rgba(18, 70, 96, 0.86);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(18, 70, 96, 0.18),
    0 32px 70px rgba(18, 70, 96, 0.2);
}

.tg-login-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.tg-login-controls .lang-switch,
.tg-login-controls .theme-switch {
  display: inline-flex;
  min-height: 34px;
  height: 34px;
  padding: 2px;
  border-color: var(--tg-border-strong);
  background: var(--tg-surface);
  box-shadow: none;
}

html[data-theme='dark'] .tg-login-controls .lang-switch,
html[data-theme='dark'] .tg-login-controls .theme-switch {
  background: #0c1221;
  box-shadow: none;
}

.tg-login-controls .tg-pill-button {
  min-width: 2.2rem;
  min-height: 30px;
  height: 30px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  color: var(--tg-text-soft);
  background: transparent;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1;
}

.tg-login-controls .tg-pill-button:hover {
  color: var(--tg-text-primary);
  background: var(--tg-surface-soft);
}

.tg-login-controls .tg-pill-button--active {
  color: #ffffff !important;
  background: linear-gradient(180deg, var(--tg-primary-start), var(--tg-primary-end)) !important;
  box-shadow: 0 8px 16px var(--tg-primary-shadow);
}

html[data-theme='dark'] .tg-login-controls .tg-pill-button--active {
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none;
}

html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'] {
  background: #1b9476 !important;
  background-image: none !important;
}

html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'] {
  background: #124660 !important;
  background-image: none !important;
}

html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active {
  background: #1b9476 !important;
  background-image: none !important;
}

html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active {
  background: #124660 !important;
  background-image: none !important;
}

.tg-login-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tg-login-brand-shell {
  display: flex;
  width: 100%;
  max-width: 18.25rem;
  height: 5.375rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.75rem;
  background: #ffffff !important;
  box-shadow: none !important;
}

html[data-theme='studio'] .tg-login-brand-shell {
  background: transparent !important;
}

.tg-login-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tg-login-brand-slogan {
  margin: 2px 0 0 !important;
  color: var(--tg-text-primary);
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.25rem !important;
}

html[data-theme='studio'] .tg-login-brand-slogan {
  color: #124660;
}

.tg-login-access-note {
  display: inline-block;
  margin: 18px auto 0 !important;
  padding: 0.2rem 0.7rem !important;
  border: 1.5px solid rgba(18, 70, 96, 0.42);
  border-radius: 999px;
  color: #124660;
  background: rgba(18, 70, 96, 0.09);
  font-family: inherit;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1rem !important;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-theme='studio'] .tg-login-access-note {
  border-color: rgba(18, 70, 96, 0.42);
  color: #124660;
  background: rgba(18, 70, 96, 0.09);
}

html[data-theme='dark'] .tg-login-access-note {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tg-login-title {
  margin: 12px 0 0 !important;
  color: var(--tg-text-primary) !important;
  font-size: 1.875rem !important;
  font-weight: 600 !important;
  line-height: 2.25rem !important;
}

.tg-login-subtitle {
  max-width: 22rem;
  margin: 8px 0 0 !important;
  color: var(--tg-text-soft) !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.tg-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.tg-login-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--tg-text-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.tg-login-label > span:first-child {
  color: var(--tg-text-soft);
}

.tg-login-label .required-indicator {
  margin-left: 0.18rem;
  color: var(--tg-accent);
}

.tg-form-input {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--tg-border);
  border-radius: 1rem;
  color: var(--tg-text-primary);
  background: var(--tg-input-bg);
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tg-form-input::placeholder {
  color: var(--tg-text-subtle);
}

.tg-form-input:focus {
  border-color: var(--tg-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tg-accent) 22%, transparent);
}

html[data-theme='studio'] .tg-form-input {
  border-width: 2px;
  border-color: rgba(18, 70, 96, 0.56);
  color: #124660;
  background: #ffffff;
}

html[data-theme='studio'] .tg-form-input::placeholder {
  color: rgba(18, 70, 96, 0.58);
}

html[data-theme='studio'] .tg-form-input:focus {
  border-color: #124660;
  box-shadow: 0 0 0 3px rgba(18, 70, 96, 0.2);
}

.tg-login-submit {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 1rem !important;
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: 0 15px 25px rgba(18, 70, 96, 0.25);
  font-size: 0.875rem;
  font-weight: 500 !important;
  line-height: 1.25rem;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.tg-login-submit:not(:disabled):hover {
  background: #1b9476 !important;
  background-image: none !important;
  filter: none;
  transform: translateY(-1px);
}

.tg-login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.tg-login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tg-login-signup-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--tg-border-strong);
  border-radius: 999px;
  color: var(--tg-accent);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500 !important;
  line-height: 1rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tg-login-signup-button:hover {
  border-color: var(--tg-accent);
  background: var(--tg-surface-soft);
  transform: translateY(-1px);
}

html[data-theme='studio'] .tg-login-signup-button {
  border-color: #1b9476;
  color: #ffffff;
  background: #1b9476;
}

html[data-theme='studio'] .tg-login-signup-button:hover {
  border-color: #157a62;
  background: #157a62;
}

.tg-login-form .auth-message {
  min-height: 0;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--tg-text-primary);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.tg-login-form .auth-message:empty {
  display: none;
}

.tg-login-form .auth-message.error {
  border: 0;
  color: #ffffff;
  background: #b86f3e;
}

.tg-login-form .auth-message.success {
  border-color: var(--tg-success);
  color: var(--tg-text-primary);
  background: color-mix(in srgb, var(--tg-success) 20%, transparent);
}

html[data-theme='studio'] .tg-login-form .auth-message.error {
  border: 0;
  color: #ffffff;
  background: #b86f3e;
}

.tg-login-register-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.tg-login-register-form .form-grid .full-width {
  grid-column: 1 / -1;
}

.tg-login-register-form .tg-login-label {
  gap: 0.4rem;
}

.tg-login-register-form .tg-form-input {
  margin-top: 0.35rem;
}

.tg-login-register-form .auth-disclaimer {
  margin: 0;
  color: var(--tg-text-subtle);
  font-size: 0.76rem;
  line-height: 1.5;
}

.tg-login-stage.hidden,
.auth-stage.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .tg-login-controls .theme-switch {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .tg-login-page {
    align-items: flex-start;
    padding: 1.25rem 0.85rem;
  }

  .tg-login-card {
    max-width: 100%;
    padding: 1.75rem 1.25rem;
    border-radius: 24px;
  }

  .tg-login-controls {
    margin-bottom: 1rem;
  }

  .tg-login-brand-shell {
    max-width: 16rem;
  }

  .tg-login-register-form .form-grid {
    grid-template-columns: 1fr;
  }

  .tg-login-register-form .form-grid .full-width {
    grid-column: auto;
  }
}

/* Shared Training Guide shell parity: keep ESWT, the legal page and the admin
   front on the same brand rhythm, controls and navigation components. */
.tg-pro-vitrine-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.tg-pro-vitrine-topband {
  width: 100%;
  min-height: 0;
  padding: 0.25rem clamp(1rem, 4vw, 4rem) 0.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  border-bottom: 1px solid rgba(18, 70, 96, 0.12);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(18, 70, 96, 0.08);
  backdrop-filter: saturate(118%) blur(10px);
}

.tg-pro-vitrine-brand {
  width: auto;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.32rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #124660;
  text-decoration: none;
}

.tg-pro-vitrine-brand:focus-visible {
  outline: 2px solid rgba(18, 70, 96, 0.42);
  outline-offset: 0.3rem;
  border-radius: 0.6rem;
}

.tg-pro-vitrine-logo {
  width: clamp(10.8rem, 12.5vw, 14.2rem);
  height: auto;
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
  image-rendering: auto;
  margin: 0;
}

.tg-pro-vitrine-brand-slogan {
  width: max-content;
  margin: 0 0 0.5rem;
  text-align: center;
  color: #124660;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tg-pro-vitrine-topband-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tg-pro-vitrine-identity {
  display: grid;
  gap: 0.15rem;
  max-width: 15rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(18, 70, 96, 0.16);
  text-align: right;
}

.tg-pro-vitrine-identity-role {
  color: rgba(18, 70, 96, 0.65);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-pro-vitrine-identity-name {
  overflow: hidden;
  color: #124660;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-pro-vitrine-header .tg-pill-group {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.12rem;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(18, 70, 96, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.06);
  color: #124660;
}

.tg-pro-vitrine-header .tg-pill-button {
  min-width: 2.2rem;
  min-height: 30px;
  height: 30px;
  margin: 0;
  padding: 0 0.58rem;
  border: 0;
  border-radius: 999px;
  color: #124660;
  background: transparent;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.tg-pro-vitrine-header .tg-pill-button:hover {
  background: rgba(18, 70, 96, 0.08);
}

.tg-pro-vitrine-header .tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active {
  background: #1b9476 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active {
  background: #124660 !important;
}

.tg-pro-vitrine-logout {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(18, 70, 96, 0.7);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  background: linear-gradient(180deg, #1b6287, #124660);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(18, 70, 96, 0.16);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51;
  background: linear-gradient(180deg, #165777, #0f3a51);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(18, 70, 96, 0.2);
}

.tg-pro-vitrine-logout[hidden] {
  display: none;
}

.tg-pro-vitrine-nav-shell {
  width: 100%;
  background: #124660;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tg-pro-vitrine-nav-toggle {
  display: none;
}

.tg-pro-vitrine-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.44rem;
  padding: 0.24rem clamp(1rem, 4vw, 4rem) 0.3rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tg-pro-vitrine-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tg-pro-vitrine-nav-link {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.58rem 0.96rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tg-pro-vitrine-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(7, 31, 44, 0.16);
}

.tg-pro-vitrine-nav-link-active {
  border-color: rgba(139, 213, 158, 0.65);
  color: #ffffff;
  background: linear-gradient(180deg, #24a585, #1b9476);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(9, 48, 39, 0.2);
}

main.app-shell.tg-pro-vitrine-canvas {
  width: min(100%, 1520px);
  margin: 1rem auto 0;
  border: 1px solid rgba(18, 70, 96, 0.16);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

html[data-theme='studio'] main.app-shell.tg-pro-vitrine-canvas {
  border-color: rgba(18, 70, 96, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

html[data-theme='dark'] .tg-pro-vitrine-topband {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  background: #080c18;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme='dark'] .tg-pro-vitrine-brand-slogan,
html[data-theme='dark'] .tg-pro-vitrine-identity-name {
  color: #ffffff;
  text-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-logo {
  padding: 0.12rem 0.22rem;
  border-radius: 0.4rem;
  background: #ffffff;
}

html[data-theme='dark'] .tg-pro-vitrine-identity-role {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme='dark'] .tg-pro-vitrine-identity {
  border-right-color: rgba(255, 255, 255, 0.15);
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group {
  border-color: rgba(255, 255, 255, 0.15);
  background: #0c1221;
  box-shadow: none;
  color: #ffffff;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button--active,
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  box-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-logout {
  border-color: #124660;
  background: #124660;
  box-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-logout:hover {
  border-color: #1b9476;
  background: #1b9476;
  box-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-nav-shell {
  background: #0d1b29;
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-nav-link {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .tg-pro-vitrine-nav-link-active {
  border-color: #124660;
  background: #124660;
  box-shadow: none;
}

html[data-theme='dark'] main.app-shell.tg-pro-vitrine-canvas {
  border-color: rgba(255, 255, 255, 0.15);
  background: #080c18;
}

html[data-theme='dark'] .legal-content a,
html[data-theme='dark'] .legal-downloads a {
  color: #7bb8dc;
}

button.primary {
  color: #ffffff;
  background: #124660;
  background-image: none;
  box-shadow: 0 15px 25px rgba(18, 70, 96, 0.25);
  font-weight: 500;
}

button.primary:not(:disabled):hover {
  background: #1b9476;
  background-image: none;
  box-shadow: 0 18px 30px rgba(18, 70, 96, 0.2);
}

html[data-theme='studio'] .tg-login-register-form .auth-disclaimer {
  color: #124660 !important;
}

.site-footer {
  width: min(100%, 1520px);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem clamp(1rem, 4vw, 4rem) 2rem;
  border-top: 1px solid rgba(18, 70, 96, 0.16);
  color: var(--tg-text-subtle);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer-links {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(18, 70, 96, 0.48);
  border-radius: 0.9rem;
  color: var(--tg-text-primary) !important;
  background: rgba(18, 70, 96, 0.04);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-footer-link:hover {
  border-color: rgba(18, 70, 96, 0.68);
  background: rgba(18, 70, 96, 0.08);
  transform: translateY(-1px);
}

html[data-theme='dark'] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

html[data-theme='dark'] .site-footer-link {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .site-footer-link:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .tg-pro-vitrine-identity {
    max-width: 11rem;
  }
}

@media (max-width: 760px) {
  .tg-pro-vitrine-topband {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.1875rem;
    padding-bottom: 0.125rem;
  }

  .tg-pro-vitrine-topband-actions {
    width: 100%;
    gap: 0.5rem;
    padding-bottom: 0.2rem;
  }

  .tg-pro-vitrine-identity {
    display: none;
  }

  .tg-pro-vitrine-brand {
    gap: 0.28rem;
  }

  .tg-pro-vitrine-logo {
    width: clamp(9.5rem, 35vw, 11.6rem);
  }

  .tg-pro-vitrine-brand-slogan {
    margin-bottom: 0.34rem;
    font-size: clamp(0.86rem, 2.7vw, 0.98rem);
  }

  .tg-pro-vitrine-topband-actions {
    justify-content: flex-end;
  }

  .tg-pro-vitrine-header .tg-pill-button {
    min-height: 1.875rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.8125rem;
  }

  .tg-pro-vitrine-logout {
    min-height: 2.25rem;
    padding: 0.58rem 0.9rem;
    font-size: 0.8rem;
  }

  .tg-pro-vitrine-nav-shell {
    padding: 0.5rem 1rem 0.7rem;
  }

  .tg-pro-vitrine-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.15rem;
    padding: 0.82rem 0.96rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font: inherit;
    text-align: left;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 24px rgba(7, 31, 44, 0.16);
  }

  .tg-pro-vitrine-nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
  }

  .tg-pro-vitrine-nav-toggle-icon {
    width: 1.125rem;
    min-width: 1.125rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
  }

  .tg-pro-vitrine-nav-toggle-icon span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .tg-pro-vitrine-nav-toggle-active .tg-pro-vitrine-nav-toggle-icon span:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
  }

  .tg-pro-vitrine-nav-toggle-active .tg-pro-vitrine-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .tg-pro-vitrine-nav-toggle-active .tg-pro-vitrine-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
  }

  .tg-pro-vitrine-nav-toggle-copy {
    min-width: 0;
    display: grid;
    flex: 1;
    gap: 0.16rem;
  }

  .tg-pro-vitrine-nav-toggle-title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .tg-pro-vitrine-nav-toggle-current {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tg-pro-vitrine-nav-toggle-chevron {
    width: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    line-height: 1;
    text-align: center;
  }

  .tg-pro-vitrine-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0 0;
    overflow-x: visible;
  }

  .tg-pro-vitrine-nav-open {
    display: flex;
  }

  .tg-pro-vitrine-nav-link {
    width: 100%;
    padding: 0.72rem 0.96rem;
    font-size: 0.9rem;
  }

  main.app-shell.tg-pro-vitrine-canvas {
    margin-top: 0.75rem;
    border-radius: 26px;
  }
}

@media (max-width: 560px) {
  .tg-pro-vitrine-header .lang-switch,
  .tg-pro-vitrine-header .theme-switch {
    display: inline-flex !important;
  }

  .tg-pro-vitrine-topband-actions {
    flex-wrap: wrap;
  }
}

html[data-theme='dark'] .tg-pro-vitrine-nav-toggle {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* The legacy menu selector styles every nested span as a hamburger bar. The
   vitrine toggle has two text spans as well, so restore their component role. */
@media (max-width: 760px) {
  .tg-pro-vitrine-nav-toggle {
    height: auto;
    flex-direction: row;
  }

  .tg-pro-vitrine-nav-toggle .tg-pro-vitrine-nav-toggle-copy {
    width: auto;
    height: auto;
    min-width: 0;
    display: grid;
    flex: 1;
    flex-direction: column;
    gap: 0.16rem;
    background: transparent;
  }

  .tg-pro-vitrine-nav-toggle .tg-pro-vitrine-nav-toggle-title,
  .tg-pro-vitrine-nav-toggle .tg-pro-vitrine-nav-toggle-current {
    width: auto;
    height: auto;
    display: block;
    background: transparent;
  }
}

/* Final Training Guide parity pass: flat controls, consistent states and
   the same dark-blue / deep-green action language across the tool. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0;
  padding: 2px;
  border: 1px solid rgba(18, 70, 96, 0.22);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  border: 0 !important;
  border-radius: 999px;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  font-weight: 800 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  font-weight: 800 !important;
}

.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: rgba(18, 70, 96, 0.08) !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(255, 255, 255, 0.2);
  background: #0c1221;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active),
html[data-theme='dark'] .tg-login-controls .tg-pill-button:not(.tg-pill-button--active) {
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
}

.tg-pro-vitrine-nav-link,
.tg-pro-vitrine-nav-link-active {
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-nav-link {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.tg-pro-vitrine-nav-link-active {
  border-color: #1b9476;
  background: #1b9476;
}

.tg-pro-vitrine-logout,
.tg-pro-vitrine-logout:hover {
  border-color: #124660;
  background: #124660;
  background-image: none;
  box-shadow: none;
}

.tg-pro-vitrine-logout:hover {
  border-color: #1b9476;
  background: #1b9476;
}

.card--session,
html[data-theme='studio'] .card--session,
html[data-theme='dark'] .card--session {
  border-color: #124660;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.card--session button.primary,
.card--session button.ghost:not(:disabled),
.actions button:not(:disabled) {
  border-color: #1b9476 !important;
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 500;
}

.card--session button.primary:not(:disabled):hover,
.card--session button.ghost:not(:disabled):hover,
.actions button:not(:disabled):hover {
  border-color: #167a63 !important;
  background: #167a63 !important;
  box-shadow: none !important;
}

.card--session button:disabled {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.58) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.card--session .progress {
  background: #8bd59e !important;
  background-image: none !important;
}

.info,
html[data-theme='studio'] .info,
html[data-theme='dark'] .info {
  border-color: #124660;
  color: #ffffff;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.info .card-eyebrow,
.info h2 {
  color: #ffffff !important;
}

.info ol {
  gap: 0.65rem;
}

.info li {
  min-height: 3.2rem;
  align-items: center;
  padding: 0.72rem 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.info li::before {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.65rem;
  color: #ffffff;
  background: #1b9476;
  box-shadow: none;
}

.site-footer .footer-copy a {
  color: #124660 !important;
  font-weight: 700;
}

html[data-theme='dark'] .site-footer .footer-copy a {
  color: #7bb8dc !important;
}

.legal-back-top-wrap {
  margin: 1.35rem 0 0;
  text-align: center;
}

.legal-back-top {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 1px solid #124660;
  border-radius: 999px;
  color: #ffffff !important;
  background: #124660;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.legal-back-top:hover {
  border-color: #1b9476;
  background: #1b9476;
  transform: translateY(-1px);
}

/* 2026-10-14 visual parity: match the Training Guide navigation controls. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem;
  padding: 2px;
  border-color: #124660 !important;
  background: #124660 !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active,
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #124660 !important;
  background: #8bd59e !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #8bd59e !important;
}

/* The professional fronts keep the top header white in dark mode. */
html[data-theme='dark'] .tg-pro-vitrine-topband {
  border-bottom-color: rgba(18, 70, 96, 0.16);
  background: #ffffff !important;
  color: #124660;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme='dark'] .tg-pro-vitrine-brand-slogan,
html[data-theme='dark'] .tg-pro-vitrine-identity-name {
  color: #124660 !important;
  text-shadow: none;
}

html[data-theme='dark'] .tg-pro-vitrine-identity-role {
  color: rgba(18, 70, 96, 0.66) !important;
}

html[data-theme='dark'] .tg-pro-vitrine-identity {
  border-right-color: rgba(18, 70, 96, 0.18);
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: #124660 !important;
  background: #124660 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-nav-shell {
  background: #124660;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.tg-pro-vitrine-logout,
.tg-pro-vitrine-logout:hover {
  min-height: 2.35rem;
  padding: 0.58rem 0.96rem;
  border-color: #124660;
  color: #ffffff;
  background: #124660;
  background-image: none;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51;
  background: #0f3a51;
  transform: translateY(-1px);
}

/* Remove the large page-level frame; the individual cards remain framed. */
main.app-shell.tg-pro-vitrine-canvas,
html[data-theme='studio'] main.app-shell.tg-pro-vitrine-canvas,
html[data-theme='dark'] main.app-shell.tg-pro-vitrine-canvas {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.card--session .session-data .label {
  color: #dff5eb !important;
  font-size: 0.75rem;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  opacity: 1;
}

.card--session .session-data p:not(.label) {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600 !important;
}

.card--session #pause,
.card--session #reset,
.card--session #pause:disabled,
.card--session #reset:disabled {
  border-color: #b86f3e !important;
  color: #ffffff !important;
  background: #b86f3e !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  opacity: 0.78;
}

.card--session #pause:not(:disabled):hover,
.card--session #reset:not(:disabled):hover {
  border-color: #8f512f !important;
  background: #8f512f !important;
  opacity: 1;
}

.legal-brand-name {
  color: #124660 !important;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}

html[data-theme='dark'] .legal-brand-name {
  color: #ffffff !important;
}

.legal-top-actions {
  margin: 0.35rem 0 0;
}

.legal-back-tool {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  border: 1px solid #124660;
  border-radius: 999px;
  color: #ffffff !important;
  background: #124660;
  font-size: 0.84rem;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.legal-back-tool:hover {
  border-color: #1b9476;
  background: #1b9476;
}

#politique-cookies {
  scroll-margin-top: 8rem;
}

/* Cookie consent, matching the shared Training Guide front. */
.tg-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 1200;
  width: min(1080px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(18, 70, 96, 0.16);
  border-radius: 1.35rem;
  color: #124660;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(5, 23, 34, 0.18);
  transform: translateX(-50%);
}

.tg-cookie-banner-copy {
  display: grid;
  gap: 0.35rem;
}

.tg-cookie-banner-copy p {
  margin: 0;
}

.tg-cookie-banner-copy p:not(.tg-cookie-chip) {
  color: rgba(18, 70, 96, 0.78);
  line-height: 1.5;
}

.tg-cookie-banner-copy a {
  width: max-content;
  color: #124660;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
}

.tg-cookie-chip {
  color: #1b9476;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tg-cookie-banner-actions,
.tg-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tg-cookie-banner-actions {
  flex-shrink: 0;
}

.tg-cookie-action-button,
.tg-cookie-secondary-button,
.tg-cookie-close {
  min-height: 2.45rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid #124660;
  border-radius: 999px;
  color: #ffffff;
  background: #124660;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.1;
  cursor: pointer;
}

.tg-cookie-action-button--active,
.tg-cookie-action-button--confirmed {
  border-color: #8bd59e;
  color: #124660;
  background: #8bd59e;
}

.tg-cookie-secondary-button {
  background: #124660;
}

.tg-cookie-secondary-button--custom {
  color: #124660;
  background: #ffffff;
}

.tg-cookie-action-button:hover,
.tg-cookie-secondary-button:hover,
.tg-cookie-close:hover {
  border-color: #1b9476;
  background: #1b9476;
  color: #ffffff;
}

.tg-cookie-action-button--active:hover {
  border-color: #76c48b;
  background: #76c48b;
  color: #124660;
}

.tg-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  background: rgba(10, 32, 46, 0.72);
  backdrop-filter: blur(8px);
}

.tg-cookie-panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 1.4rem;
  border-radius: 1.6rem;
  color: #124660;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(5, 23, 34, 0.28);
}

.tg-cookie-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tg-cookie-panel h2 {
  margin: 0.25rem 0 0;
  color: #124660;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.tg-cookie-close {
  flex-shrink: 0;
}

.tg-cookie-text {
  margin: 1rem 0 0;
  color: rgba(18, 70, 96, 0.78);
  line-height: 1.6;
}

.tg-cookie-status {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(18, 70, 96, 0.14);
  border-radius: 0.95rem;
  color: #124660;
  background: rgba(18, 70, 96, 0.05);
  font-size: 0.82rem;
}

.tg-cookie-status--accepted {
  border-color: rgba(27, 148, 118, 0.24);
  color: #16624f;
  background: rgba(27, 148, 118, 0.12);
}

.tg-cookie-category-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tg-cookie-category-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(18, 70, 96, 0.12);
  border-radius: 1.1rem;
  background: rgba(18, 70, 96, 0.04);
}

.tg-cookie-category-card h3 {
  margin: 0;
  color: #124660;
  font-size: 0.98rem;
}

.tg-cookie-category-card p {
  margin: 0.4rem 0 0;
  color: rgba(18, 70, 96, 0.76);
  line-height: 1.5;
}

.tg-cookie-toggle {
  display: inline-flex;
  min-width: 6.2rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: #124660;
  font-size: 0.78rem;
  font-weight: 400;
}

.tg-cookie-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #1b9476;
}

.tg-cookie-settings-button {
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  z-index: 1190;
  min-height: 2.35rem;
  padding: 0.58rem 0.95rem;
  border: 1px solid #124660;
  border-radius: 999px;
  color: #ffffff;
  background: #124660;
  box-shadow: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
}

.tg-cookie-settings-button:hover {
  border-color: #1b9476;
  background: #1b9476;
}

@media (max-width: 760px) {
  .tg-cookie-banner {
    width: calc(100vw - 1rem);
    bottom: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
  }

  .tg-cookie-banner-actions,
  .tg-cookie-actions {
    width: 100%;
  }

  .tg-cookie-banner-actions > *,
  .tg-cookie-actions > * {
    flex: 1 1 0;
    justify-content: center;
  }

  .tg-cookie-category-card {
    flex-direction: column;
  }

  .tg-cookie-toggle {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tg-cookie-settings-button {
    right: 0.5rem;
    left: auto;
    bottom: 0.5rem;
  }
}

/* Keep the same pill colors when the legacy dark-theme selectors are active. */
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #124660 !important;
  background: #8bd59e !important;
  background-image: none !important;
  font-weight: 400 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active),
html[data-theme='dark'] .tg-login-controls .tg-pill-button:not(.tg-pill-button--active) {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  font-weight: 400 !important;
}

html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #124660 !important;
  background: #8bd59e !important;
  background-image: none !important;
  font-weight: 400 !important;
}

html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  font-weight: 400 !important;
}

/* Final parity with Refocused/pro: exact pill geometry, nav green and action
   colors. Keep disabled terracotta controls fully opaque so their color is not
   altered by the generic disabled-state veil. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem !important;
  height: 34px !important;
  padding: 2px !important;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.06) !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.58rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

.tg-pro-vitrine-header .tg-pill-button:hover,
.tg-login-controls .tg-pill-button:hover {
  color: #124660 !important;
  background: rgba(18, 70, 96, 0.05) !important;
  transform: translateY(-1px);
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.14) !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
}

.tg-pro-vitrine-nav-link-active,
.tg-pro-vitrine-nav-link-active:hover,
.tg-pro-vitrine-nav-link-active:focus-visible {
  border-color: #8bd59e !important;
  color: #124660 !important;
  background: #8bd59e !important;
  background-image: none !important;
  box-shadow: 0 10px 18px rgba(9, 48, 39, 0.2) !important;
}

.tg-pro-vitrine-logout,
.tg-pro-vitrine-logout:hover {
  min-height: 2.875rem !important;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #124660 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  background: #0f3a51 !important;
  transform: translateY(-1px);
}

.card--session #pause,
.card--session #reset,
.card--session #pause:disabled,
.card--session #reset:disabled {
  border-color: #b86f3e !important;
  color: #ffffff !important;
  background: #b86f3e !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.card--session #pause:not(:disabled):hover,
.card--session #reset:not(:disabled):hover {
  border-color: #8f512f !important;
  background: #8f512f !important;
}

/* Exact Refocused/pro control parity: a light capsule, green Clair/FR and
   regular blue inactive states. Keep the dark variant flat and reflection-free. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.06) !important;
  color: #124660 !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem;
  min-height: 30px;
  height: 30px;
  margin: 0;
  padding: 0 0.58rem;
  border: 0 !important;
  border-radius: 999px;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  line-height: 1;
}

.tg-pro-vitrine-header .tg-pill-button:hover,
.tg-login-controls .tg-pill-button:hover {
  color: #124660 !important;
  background: rgba(18, 70, 96, 0.05) !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.14) !important;
  font-weight: 600 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(18, 70, 96, 0.28) !important;
  background: #ffffff !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active),
html[data-theme='dark'] .tg-login-controls .tg-pill-button:not(.tg-pill-button--active) {
  color: #124660 !important;
  background: transparent !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pill-button--active,
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.14) !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
  box-shadow: none !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pill-button--active,
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  box-shadow: none !important;
}

/* Inactive controls stay white on hover, like the professional front. */
.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pill-button--active:hover,
.tg-login-controls .tg-pill-button--active:hover {
  transform: none !important;
}

.site-footer-link,
.site-footer-link[data-cookie-settings] {
  font-weight: 400 !important;
}

/* Override the legacy high-specificity active-pill weight as well. */
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  font-weight: 400 !important;
  box-shadow: none !important;
}

/* Last cascade layer: every ESWTbeep control now follows the same contract
   as the professional and user fronts, including dark mode and hover. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem !important;
  height: 34px !important;
  padding: 2px !important;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.58rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active,
.tg-pro-vitrine-header .tg-pill-button--active:hover,
.tg-login-controls .tg-pill-button--active:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover {
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(18, 70, 96, 0.28) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-logout {
  display: inline-flex;
  min-height: 2.875rem !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  border: 1px solid rgba(18, 70, 96, 0.7) !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.25rem !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1b6287, #124660) !important;
  background-image: linear-gradient(180deg, #1b6287, #124660) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(18, 70, 96, 0.16) !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transform: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #165777, #0f3a51) !important;
  background-image: linear-gradient(180deg, #165777, #0f3a51) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(18, 70, 96, 0.2) !important;
  transform: translateY(-1px);
}

.tg-pro-vitrine-logout[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .tg-pro-vitrine-logout {
    min-height: 2.25rem !important;
    padding: 0.58rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

/* One shared control contract: the standalone ESWTbeep front uses the same
   geometry, colors, regular weight and hover behavior as the other fronts. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem !important;
  height: 34px !important;
  padding: 2px !important;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.58rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active,
.tg-pro-vitrine-header .tg-pill-button--active:hover,
.tg-login-controls .tg-pill-button--active:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover {
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(18, 70, 96, 0.28) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-logout {
  display: inline-flex;
  min-height: 2.875rem !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  border: 1px solid rgba(18, 70, 96, 0.7) !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.25rem !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1b6287, #124660) !important;
  background-image: linear-gradient(180deg, #1b6287, #124660) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(18, 70, 96, 0.16) !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transform: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #165777, #0f3a51) !important;
  background-image: linear-gradient(180deg, #165777, #0f3a51) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(18, 70, 96, 0.2) !important;
  transform: translateY(-1px);
}

.tg-pro-vitrine-logout[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .tg-pro-vitrine-logout {
    min-height: 2.25rem !important;
    padding: 0.58rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active {
  font-weight: 400 !important;
}

/* Override the older studio selectors with the Refocused green active state. */
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.14) !important;
  font-weight: 600 !important;
}

html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

/* Final Refocused parity overrides. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem !important;
  height: 34px !important;
  padding: 2px !important;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.06) !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.58rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

.tg-pro-vitrine-header .tg-pill-button:hover,
.tg-login-controls .tg-pill-button:hover {
  color: #124660 !important;
  background: rgba(18, 70, 96, 0.05) !important;
  transform: translateY(-1px);
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: 0 4px 10px rgba(18, 70, 96, 0.14) !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'] {
  color: #ffffff !important;
  background: #1b9476 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  color: #ffffff !important;
  background: #124660 !important;
}

.tg-pro-vitrine-nav-link-active,
.tg-pro-vitrine-nav-link-active:hover,
.tg-pro-vitrine-nav-link-active:focus-visible {
  border-color: #8bd59e !important;
  color: #124660 !important;
  background: #8bd59e !important;
  background-image: none !important;
  box-shadow: 0 10px 18px rgba(9, 48, 39, 0.2) !important;
}

.tg-pro-vitrine-logout,
.tg-pro-vitrine-logout:hover {
  min-height: 2.875rem !important;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #124660 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  background: #0f3a51 !important;
  transform: translateY(-1px);
}

.card--session #pause,
.card--session #reset,
.card--session #pause:disabled,
.card--session #reset:disabled {
  border-color: #b86f3e !important;
  color: #ffffff !important;
  background: #b86f3e !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.card--session #pause:not(:disabled):hover,
.card--session #reset:not(:disabled):hover {
  border-color: #8f512f !important;
  background: #8f512f !important;
}

/* Refocused cookie banner/modal geometry and action states. */
.tg-cookie-banner {
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(5, 23, 34, 0.16);
}

.tg-cookie-banner-actions,
.tg-cookie-actions {
  margin-top: 1.4rem;
  gap: 0.7rem;
}

.tg-cookie-action-button,
.tg-cookie-secondary-button,
.tg-cookie-close {
  min-height: 2.45rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.site-footer-link[data-cookie-settings] {
  min-height: 0;
  padding: 0.48rem 0.68rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
}

.site-footer-link[data-cookie-settings]:hover {
  transform: none;
}

.tg-cookie-action-button--neutral {
  border-color: rgba(18, 70, 96, 0.22);
  color: #124660;
  background: rgba(18, 70, 96, 0.06);
}

.tg-cookie-action-button--active,
.tg-cookie-action-button--confirmed,
.tg-cookie-secondary-button--active,
.tg-cookie-secondary-button--confirmed {
  border-color: #124660;
  color: #ffffff;
  background: #124660;
  box-shadow: 0 14px 28px rgba(18, 70, 96, 0.22);
  opacity: 1;
}

.tg-cookie-secondary-button {
  border-color: rgba(18, 70, 96, 0.22);
  color: #124660;
  background: rgba(18, 70, 96, 0.06);
}

.tg-cookie-secondary-button--custom {
  border-color: rgba(18, 70, 96, 0.22);
  color: #124660;
  background: rgba(18, 70, 96, 0.08);
}

.tg-cookie-action-button:hover,
.tg-cookie-secondary-button:hover,
.tg-cookie-close:hover {
  border-color: #0f3a51;
  color: #ffffff;
  background: #0f3a51;
}

.tg-cookie-action-button:disabled,
.tg-cookie-secondary-button:disabled {
  cursor: default;
  opacity: 1;
}

.tg-cookie-panel {
  border-radius: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tg-cookie-panel::-webkit-scrollbar {
  display: none;
}

.tg-cookie-toggle {
  min-width: 8.5rem;
  color: #124660;
  font-weight: 700;
}

.tg-cookie-toggle input {
  accent-color: #124660;
}

.tg-cookie-settings-button {
  right: auto;
  left: 1rem;
  bottom: 1rem;
  z-index: 1090;
  min-height: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(18, 70, 96, 0.18);
  color: #124660;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(5, 23, 34, 0.16);
  font-weight: 700;
}

/* Keep the login page clear and preserve the exact saved-state colors in the cookie modal. */
html[data-theme='studio'] .auth-overlay,
html[data-theme='dark'] .auth-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
}

.tg-cookie-action-button--active,
.tg-cookie-action-button--confirmed,
.tg-cookie-secondary-button--active,
.tg-cookie-secondary-button--confirmed {
  border-color: #124660 !important;
  color: #ffffff !important;
  background: #124660 !important;
  box-shadow: 0 14px 28px rgba(18, 70, 96, 0.22) !important;
  opacity: 1 !important;
}

.tg-cookie-action-button--active:hover,
.tg-cookie-action-button--confirmed:hover,
.tg-cookie-secondary-button--active:hover,
.tg-cookie-secondary-button--confirmed:hover {
  border-color: #0f3a51 !important;
  color: #ffffff !important;
  background: #0f3a51 !important;
}

/* Final reference-match details: fixed logo box and green primary cookie action. */
.tg-pro-vitrine-logo,
html[data-theme='dark'] .tg-pro-vitrine-logo {
  width: clamp(10.8rem, 12.5vw, 14.2rem) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-logout,
.tg-pro-vitrine-logout:hover {
  border: 1px solid rgba(18, 70, 96, 0.7) !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1b6287, #124660) !important;
  background-image: linear-gradient(180deg, #1b6287, #124660) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(18, 70, 96, 0.16) !important;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  background: linear-gradient(180deg, #165777, #0f3a51) !important;
  background-image: linear-gradient(180deg, #165777, #0f3a51) !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(18, 70, 96, 0.2) !important;
}

.tg-cookie-action-button--active,
.tg-cookie-action-button--confirmed {
  border-color: #1b9476 !important;
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: 0 14px 28px rgba(27, 148, 118, 0.22) !important;
}

.tg-cookie-action-button--active:hover,
.tg-cookie-action-button--confirmed:hover {
  border-color: #167f65 !important;
  color: #ffffff !important;
  background: #167f65 !important;
}

/* Keep the header controls at the same regular weight in both themes. */
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button,
html[data-theme='dark'] .tg-login-controls .tg-pill-button {
  font-weight: 400 !important;
}

/* Match the specificity of the legacy dark-theme rules for active/inactive pills. */
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active),
html[data-theme='dark'] .tg-login-controls .tg-pill-button:not(.tg-pill-button--active),
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active[data-lang],
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme] {
  font-weight: 400 !important;
}

/* "Tout accepter" is the shared green primary action, regardless of saved state. */
.tg-cookie-action-button[data-cookie-action='accept'] {
  border-color: #1b9476 !important;
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: 0 14px 28px rgba(27, 148, 118, 0.22) !important;
}

.tg-cookie-action-button[data-cookie-action='accept']:hover {
  border-color: #167f65 !important;
  color: #ffffff !important;
  background: #167f65 !important;
  background-image: none !important;
}

/* Keep the page shell and footer links anchored consistently on short pages. */
.tg-site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.tg-site-shell > main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.site-footer-links {
  align-items: stretch;
}

.site-footer-link,
.site-footer-link[data-cookie-settings] {
  min-height: 2.35rem !important;
  align-items: center;
  justify-content: center;
}

/* The green active navigation remains visible against the dark navy band. */
html[data-theme='dark'] .tg-site-nav-link-active,
html[data-theme='dark'] .tg-pro-vitrine-nav-link-active {
  border-color: rgba(139, 213, 158, 0.65) !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #24a585, #1b9476) !important;
  background-image: linear-gradient(180deg, #24a585, #1b9476) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(9, 48, 39, 0.2) !important;
}

html[data-theme='dark'] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme='dark'] .site-footer-link,
html[data-theme='dark'] .site-footer-link[data-cookie-settings] {
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme='dark'] .site-footer-link:hover,
html[data-theme='dark'] .site-footer-link[data-cookie-settings]:hover {
  border-color: rgba(139, 213, 158, 0.82) !important;
  background: rgba(27, 148, 118, 0.28) !important;
}

/* Keep dark controls exactly as contrasted as the professional front. */
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(18, 70, 96, 0.28) !important;
  background: #ffffff !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pill-button--active {
  box-shadow: none !important;
}

/* Final hover parity: inactive header pills remain white, never green. */
.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pill-button--active:hover,
.tg-login-controls .tg-pill-button--active:hover {
  transform: none !important;
}

/* Legal footer labels use the same bold weight as the public site. */
.site-footer-link,
.site-footer-link[data-cookie-settings] {
  font-weight: 700 !important;
}

/* Override the legacy high-specificity active-pill weight as well. */
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='studio'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='studio'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='studio'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-fr.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--language-en.tg-pill-button--active,
html[data-theme='dark'] .tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
html[data-theme='dark'] .tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
html[data-theme='dark'] .tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'] {
  font-weight: 400 !important;
  box-shadow: none !important;
}

/* Absolute final layer: keep every visible control identical after all legacy
   theme selectors have been loaded. */
.tg-pro-vitrine-header .tg-pill-group,
.tg-login-controls .tg-pill-group {
  gap: 0.12rem !important;
  height: 34px !important;
  padding: 2px !important;
  border: 1px solid rgba(18, 70, 96, 0.16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-header .tg-pill-button,
.tg-login-controls .tg-pill-button {
  min-width: 2.2rem !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 0.58rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #124660 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
}

.tg-pro-vitrine-header .tg-pill-button:not(.tg-pill-button--active):hover,
.tg-login-controls .tg-pill-button:not(.tg-pill-button--active):hover {
  color: #124660 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pill-button--active,
.tg-login-controls .tg-pill-button--active,
.tg-pro-vitrine-header .tg-pill-button--active:hover,
.tg-login-controls .tg-pill-button--active:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  transform: none !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-fr:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='fr']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='studio']:hover {
  color: #ffffff !important;
  background: #1b9476 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en'],
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark'],
.tg-pro-vitrine-header .tg-pro-language-toggle .tg-pill-button--active.tg-pill-button--language-en:hover,
.tg-login-controls .tg-pro-language-toggle .tg-pill-button--active[data-lang='en']:hover,
.tg-pro-vitrine-header .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover,
.tg-login-controls .tg-pro-theme-toggle .tg-pill-button--active[data-theme='dark']:hover {
  color: #ffffff !important;
  background: #124660 !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}

html[data-theme='dark'] .tg-pro-vitrine-header .tg-pill-group,
html[data-theme='dark'] .tg-login-controls .tg-pill-group {
  border-color: rgba(18, 70, 96, 0.28) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tg-pro-vitrine-logout {
  display: inline-flex;
  min-height: 2.875rem !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  border: 1px solid rgba(18, 70, 96, 0.7) !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.25rem !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1b6287, #124660) !important;
  background-image: linear-gradient(180deg, #1b6287, #124660) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(18, 70, 96, 0.16) !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transform: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tg-pro-vitrine-logout:hover {
  border-color: #0f3a51 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #165777, #0f3a51) !important;
  background-image: linear-gradient(180deg, #165777, #0f3a51) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 28px rgba(18, 70, 96, 0.2) !important;
  transform: translateY(-1px);
}

.tg-pro-vitrine-logout[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .tg-pro-vitrine-logout {
    min-height: 2.25rem !important;
    padding: 0.58rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

/* Login is a page: keep the shared legal footer reachable below the card. */
.auth-overlay { position:relative; inset:auto; z-index:auto; order:1; flex:1 0 auto; overflow:visible; }
.auth-overlay[aria-hidden='true'] { display:none; }
.access-locked .tg-site-shell > header, .access-locked .tg-site-shell > main { display:none; }
.site-footer { order:2; }
.access-locked .footer-acceptance { display:none; }
.tg-login-page { min-height:0; padding:2.5rem 1rem; }
.tg-login-page-inner { min-height:0; }
/* Keep the legal divider close to the login card, including on tall screens. */
.access-locked .auth-overlay { flex:0 0 auto; }
.access-locked .site-footer { margin-top:0; }
.access-locked .tg-login-page { padding-bottom:1.5rem; }

/* Last cascade layer: preserve the phone layout after the legacy shared
   header and theme rules above have been loaded. */
@media (max-width: 760px) {
  .tg-pro-vitrine-topband {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
    padding: 0.5rem 0.75rem 0.4rem !important;
  }

  .tg-pro-vitrine-brand {
    flex: 0 1 auto !important;
    max-width: 100% !important;
  }

  .tg-pro-vitrine-logo {
    width: clamp(8.4rem, 42vw, 10rem) !important;
    max-width: 100% !important;
  }

  .tg-pro-vitrine-brand-slogan {
    display: none !important;
  }

  .tg-pro-vitrine-topband-actions {
    width: 100% !important;
    flex: 1 1 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding-bottom: 0 !important;
  }

  .tg-pro-vitrine-header .tg-pill-group,
  .tg-login-controls .tg-pill-group {
    height: 30px !important;
    min-height: 30px !important;
  }

  .tg-pro-vitrine-header .tg-pill-button,
  .tg-login-controls .tg-pill-button {
    min-width: 1.85rem !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 0.42rem !important;
    font-size: 0.68rem !important;
  }

  .tg-pro-vitrine-logout {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    min-height: 2.45rem !important;
    margin-left: 0 !important;
    padding: 0.58rem 0.7rem !important;
    font-size: 0.74rem !important;
  }

  .tg-pro-vitrine-nav-shell {
    padding: 0.45rem 0.65rem 0.6rem !important;
  }

  .tg-pro-vitrine-nav-toggle {
    width: 100% !important;
    border-radius: 1rem !important;
    padding: 0.7rem 0.8rem !important;
  }

  main.app-shell.tg-pro-vitrine-canvas {
    width: calc(100% - 1rem) !important;
    max-width: 100% !important;
    margin-top: 0.55rem !important;
    gap: 1.05rem !important;
    padding: 1rem 0.75rem 1.35rem !important;
    border-radius: 1.25rem !important;
    overflow: visible !important;
  }

  .hero {
    max-width: none !important;
    gap: 0.75rem !important;
  }

  h1 {
    font-size: clamp(1.9rem, 10.5vw, 3rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere !important;
  }

  .lede {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
  }

  .card {
    max-width: 100% !important;
    padding: 1rem !important;
    border-radius: 1.15rem !important;
  }

  .card-heading h2 {
    font-size: 1.28rem !important;
  }

  .timer {
    font-size: clamp(3rem, 17vw, 5.4rem) !important;
  }

  .metric__value {
    font-size: clamp(1.7rem, 9vw, 2.6rem) !important;
  }

  .workflow-illustration,
  .card img,
  .card svg {
    max-width: 100% !important;
  }

  .auth-overlay {
    align-items: flex-start !important;
    padding: 0.5rem !important;
  }

  .tg-login-page {
    padding: 1rem 0.35rem !important;
  }

  .tg-login-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 0.9rem !important;
    border-radius: 1.25rem !important;
  }

  .tg-login-controls {
    gap: 0.45rem !important;
    margin-bottom: 0.9rem !important;
  }

  .tg-login-form .form-grid {
    grid-template-columns: 1fr !important;
  }

  .tg-login-form .form-grid .full-width {
    grid-column: auto !important;
  }

  .tg-login-form button,
  .auth-actions button {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  main.app-shell.tg-pro-vitrine-canvas {
    width: calc(100% - 0.7rem) !important;
    padding-right: 0.6rem !important;
    padding-left: 0.6rem !important;
  }

  .tg-login-card {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }
}
