/*
 * The components added in October 2026: accounts, profiles, the roadmap, the admin pages, the language switch.
 * Loaded after prosecco.css and written in the same language: Inter, cetome blue on white, hairlines, small
 * capitals for chrome. A later rule wins, so the few overrides of prosecco.css live here too.
 */

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 3000;
  padding: 0.5rem 1rem;
  background: var(--brand-blue);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: var(--text-label);
  font-weight: 700;
}
.skip-link:focus {
  left: 0.5rem;
  color: var(--white);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* the radios stay in the page, so the keyboard and screen readers reach them; only their box is hidden */
input[type="radio"] {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}
:focus-visible {
  outline: 2px solid var(--brand-blue-light);
  outline-offset: 2px;
}
/* on the blue band the light blue ring is too faint (2.2:1): white there (8.7:1) */
.hero-section :focus-visible {
  outline-color: var(--white);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Titles inside cards keep their case; only section titles carry the capitals and the square ---- */
.card-title,
h2.card-title,
h3.card-title {
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
h2.card-title::after,
h2.h5::after,
h2.h4::after,
h2.h6::after {
  content: none;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.card-help,
.section-help,
.selector-help,
.scale-note,
.list-note,
.field-help {
  font-size: var(--text-small);
  color: var(--slate-500);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.scale-note {
  margin: 0.75rem 0 0;
  font-size: var(--text-label);
}
.list-note {
  margin: 0.75rem 0 0;
}
.list-note.is-error {
  color: #b91c1c;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.section-head h2 {
  margin-bottom: 0;
}
.page-section {
  padding: 2.5rem 0;
}
.page-section + .page-section {
  padding-top: 0;
}
.page-head {
  margin-bottom: 1.5rem;
}
.page-head h1 {
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0;
}
.page-head h1::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.15em;
  background: var(--brand-blue);
}
.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  color: var(--slate-500);
  font-size: var(--text-small);
  text-align: center;
}
/* secondary text next to the main one: version numbers, placeholders, "First version" */
.muted {
  color: var(--slate-500);
}

/* ---- Hero ---- */
.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}
.hero-section .input-row label.input-addon {
  margin: 0;
}
.hero-form {
  padding: 4rem 0;
}
.form-card {
  max-width: 28rem;
  margin: 0 auto;
}
.form-card h1 {
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.form-card h1::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.15em;
  background: var(--brand-blue-light);
}
.form-card-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-small);
  margin-bottom: 1.5rem;
}
.form-card .field label {
  color: var(--white);
}
.form-card .field-help {
  color: rgba(255, 255, 255, 0.75);
}
.btn-on-blue,
.btn-on-blue:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--brand-blue);
}
.btn-on-blue:hover {
  background: var(--brand-blue);
  border-color: var(--white);
  color: var(--white);
}
.saved-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.saved-bar .picker {
  min-width: 14rem;
}
.btn-link-light {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}
/* a light link on the blue card keeps its light colour on hover: the site-wide a:hover blue would vanish on it */
a.btn-link-light:hover,
a.btn-link-light:focus {
  color: #fff;
}
.save-state {
  display: block;
  flex: 0 0 100%;
  text-align: center;
  min-height: 1.8em;   /* the line is always there (its full line height): a word appearing must not push the page down */
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.save-state.dirty { color: #fde68a; }
.save-state.saved { color: rgba(255, 255, 255, 0.85); }
.save-state.error { color: #fecaca; }

/* ---- Buttons ---- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--brand-blue);
  background: var(--slate-50);
  color: var(--brand-blue);
}
.btn-ghost.btn-danger {
  color: #b91c1c;
}
.btn-ghost.btn-danger:hover {
  border-color: #b91c1c;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.inline-form {
  display: inline;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  cursor: default;
  font-family: var(--font-sans);
}
.chip-blue {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: var(--white);
}
.chip-green {
  border-color: #15803d;
  background: #dcfce7;
  color: #166534;
}

/* ---- Notices ---- */
/* ---- Notices: toasts top right, below the bar; cetome blue, red only for errors ---- */
.toast-stack {
  position: fixed;
  top: calc(var(--nav-height) + 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(34rem, calc(100vw - 2rem));
  pointer-events: none;
}
.toast-note {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.6rem 0.8rem 1.1rem;
  border: 1px solid rgba(0, 68, 170, 0.18);
  border-radius: 999px;
  background: #e8eef7;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: var(--text-small);
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  animation: toast-in 0.3s ease-out;
}
.toast-note .material-icons {
  flex: 0 0 auto;
  font-size: 1.375rem;
  color: var(--brand-blue);
}
.toast-note.toast-error {
  background: #fdecec;
  border-color: rgba(185, 28, 28, 0.2);
  color: #991b1b;
}
.toast-note.toast-error .material-icons {
  color: #b91c1c;
}
.toast-text {
  flex: 1 1 auto;
}
/* a link in a notice keeps the notice's own colour (the red of an ended sign-in), not the link blue */
.toast-note a {
  color: inherit;
  text-decoration: underline;
}
.toast-close {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-blue);
  font-size: 1.25rem;
  line-height: 1;
}
.toast-close:hover {
  background: rgba(0, 68, 170, 0.1);
  color: var(--brand-blue);
}
.toast-error .toast-close {
  color: #991b1b;
}
.toast-note.is-leaving {
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast-note { animation: none; }
}
.notice {
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  color: var(--slate-800);
  font-size: var(--text-small);
  margin-bottom: 1rem;
}
.notice-error {
  border-left-color: #b91c1c;
}
.notice ul {
  padding-left: 1.1rem;
}
.notice li {
  font-size: var(--text-small);
}
.field-error {
  display: block;
  color: #b91c1c;
  font-size: var(--text-label);
  margin-top: 0.25rem;
}
.is-invalid {
  border-color: #b91c1c !important;
}

/* ---- Forms ---- */
.stacked-form .field,
.form-grid .field {
  margin-bottom: 1rem;
}
.field label,
.field-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.field label small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--slate-400);
}
.field .control,
.field .picker {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--slate-800);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  box-shadow: none;
}
.field .control:focus,
.field .picker:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(33, 122, 255, 0.2);
  outline: none;
}
/* a select in a form field: the base field style removes the native arrow, so draw the house chevron */
.field select.picker {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.2rem;
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230044aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 0.8rem center;
}
.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.6rem;
  align-items: center;
}
.field-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand-blue);
  margin: 0;
}
.field-check label {
  margin: 0;
}
.field-check .field-help {
  grid-column: 2;
  margin: 0;
}
.field-short {
  max-width: 12rem;
}
.field-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 1.5rem;
}
.form-grid .field-wide,
.form-grid .field-submit,
.form-grid .translation-block {
  grid-column: 1 / -1;
}
.translation-block {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
}
.translation-block summary {
  cursor: pointer;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.translation-block[open] summary {
  margin-bottom: 0.75rem;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-label);
  color: var(--slate-600);
}
.check-inline input {
  accent-color: var(--brand-blue);
}

/* ---- Language switch and the sign-out form in the bar ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.9rem;
}
.lang-link {
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-md);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--slate-500);
}
.lang-link.active {
  background: var(--slate-100);
  color: var(--slate-900);
}
.lang-link:hover {
  color: var(--brand-blue);
}
.nav-form {
  margin: 0;
}
.nav-form .btn-nav {
  margin-left: 1rem;
}
@media (max-width: 991.98px) {
  .lang-switch {
    padding: 0.75rem 0;
  }
  .nav-form .btn-nav {
    margin: 1rem 0 0;
  }
}

/* ---- The maturity card and where you stand ---- */
.featured-section {
  padding: 3rem 0 0;
}
.selector-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}
.selector-row label {
  flex: 0 0 auto;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.selector-row .picker {
  flex: 1 1 auto;
  min-width: 0;
}
.selector-help {
  margin: 0.25rem 0 0.75rem;
  font-size: var(--text-label);
}
.selector-help:empty {
  display: none;
}
.radar-wrap {
  position: relative;
  max-width: 30rem;
  margin: 0.5rem auto 0;
}
.radar-small {
  max-width: 18rem;
}
.score-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.score-tiles-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.score-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  min-width: 0;
}
.score-tile-product {
  border-color: var(--brand-blue);
  background: var(--white);
}
.tile-label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.tile-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}
.score-tile-product .tile-value {
  color: var(--brand-blue);
}
.tile-level,
.tile-sub {
  font-size: var(--text-label);
  color: var(--slate-600);
  line-height: 1.4;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.stat-row dt {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.stat-row dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
}
.compare-title {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}
.pillar-compare {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pc-row {
  display: grid;
  grid-template-columns: 9rem 1fr 7.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: var(--text-label);
}
.pc-name {
  font-weight: 700;
  color: var(--slate-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-bars {
  position: relative;
  height: 0.7rem;
  background: var(--slate-100);
  border-radius: 999px;
}
.pc-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--brand-blue);
  border-radius: 999px;
  transition: width 250ms ease;
}
.pc-marker {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
}
.pc-target {
  background: #e11d48;
}
.pc-bench {
  background: var(--slate-500);
}
.pc-values {
  text-align: right;
  color: var(--slate-600);
  white-space: nowrap;
}
.pc-values strong {
  color: var(--brand-blue);
}
.pc-delta {
  display: inline-block;
  min-width: 3.5rem;
  margin-left: 0.4rem;
  font-weight: 700;
}
.pc-delta.ok { color: #15803d; }
.pc-delta.gap { color: #b91c1c; }
.maturity_score.level-0 { background: var(--slate-500) !important; }
.maturity_score.level-2 { background: var(--brand-blue) !important; }
.is-scoring .score-tile-product .tile-value {
  opacity: 0.5;
}

/* ---- Priorities and roadmap ---- */
.roadmap-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.priority-list,
.roadmap .steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.priority {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--slate-200);
}
.priority:first-child {
  border-top: 0;
}
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  font-size: var(--text-label);
  font-weight: 800;
}
.priority-body,
.step {
  min-width: 0;
}
.priority .meta,
.step .meta {
  display: block;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.priority .title {
  display: block;
  font-size: var(--text-small);
  color: var(--slate-900);
}
.priority .statement,
.step .statement {
  margin: 0.25rem 0 0.4rem;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--slate-700);
}
.priority .levels,
.step .levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.gain {
  font-size: var(--text-label);
  font-weight: 800;
  color: #15803d;
}
.roadmap .phase {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.6rem;
  background: var(--white);
}
.roadmap .phase.empty {
  opacity: 0.6;
}
.roadmap summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}
.roadmap summary::-webkit-details-marker {
  display: none;
}
.roadmap summary::before {
  content: "chevron_right";
  font-family: 'Material Icons';
  font-feature-settings: 'liga';
  grid-row: 1 / span 3;
  font-size: 1.125rem;
  line-height: 1.44;
  color: var(--slate-400);
  transition: transform 150ms;
}
.roadmap .phase[open] summary::before {
  transform: rotate(90deg);
}
.phase-n {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.phase-title {
  grid-column: 2;
  font-size: var(--text-body);
  font-weight: 800;
  color: var(--slate-900);
}
.phase-meta {
  grid-column: 2;
  font-size: var(--text-label);
  color: var(--slate-500);
}
.roadmap .steps {
  padding: 0 1rem 0.5rem 2.6rem;
  counter-reset: step;
}
.roadmap .step {
  position: relative;
  padding: 0.6rem 0;
  border-top: 1px solid var(--slate-100);
}
.roadmap .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.6rem;
  top: 0.65rem;
  font-size: var(--text-label);
  font-weight: 800;
  color: var(--slate-400);
}
.roadmap .phase > .list-note {
  padding: 0 1rem 0.75rem;
  margin: 0;
}

/* ---- The questionnaire ---- */
.tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 1500;
  background: var(--white);
  margin-bottom: 2rem;
}
.tab-count {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.tab-count.complete {
  background: #dcfce7;
  color: #166534;
}
.pillar-description {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}
.enabler-block {
  margin-bottom: 1rem;
}
.enabler-block h4 {
  margin-bottom: 1rem;
}
.prosecco-contributing-element {
  min-width: 0;
  border: 1px solid transparent;
}
.prosecco-contributing-element legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.25rem;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--slate-600);
}
@media (min-width: 992px) {
  .prosecco-contributing-element legend {
    float: none;
    width: auto;
  }
}
.prosecco-contributing-element.answered {
  border-color: var(--slate-200);
}
.prosecco-contributing-element label .level-tag {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-400);
}
input[type="radio"]:checked + label .level-tag {
  color: rgba(255, 255, 255, 0.8);
}
.prosecco-contributing-element label.not-done {
  text-align: center;
  align-self: center;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 16rem;
}
.progress-text {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
}
.progress-bar-track {
  flex: 1 1 8rem;
  height: 0.5rem;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand-blue);
  border-radius: 999px;
  transition: width 250ms ease;
}
.feature-list {
  list-style: none;
  padding-left: 0;
}
.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-small);
  margin-bottom: 0.35rem;
}
/* a square bullet in cetome blue, as on cetome.com */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--brand-blue);
}
.premium-pitch img {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin: 0.5rem 0 1rem;
}
.faq-accordion {
  max-width: 56rem;
}
.faq-section .faq-heading {
  font-size: inherit;
}

/* ---- The sheet at the bottom ---- */
.cf_trigger {
  border: 0;
  border-top: 1px solid var(--slate-200);
  font-family: var(--font-sans);
}
.cf_trigger.offscreen {
  display: none;
}
/* the footer keeps room for the bar under its last row: the legal links, the privacy policy among them, stay in sight and clickable */
body:has(.cf_trigger) .site-footer {
  padding-bottom: 3.75rem;
}
.cf_close {
  border: 0;
  font-family: var(--font-sans);
}
.maturity_popup {
  height: auto;
  max-height: 60vh;
  overflow: auto;
}
.sheet-body {
  padding: 0 1.5rem 1rem;
  max-width: 36rem;
  margin: 0 auto;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
#cloned-prosecco-graph {
  max-height: 40vh;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  position: relative;   /* containing block of the visually-hidden spans in the cells: the scroll box clips them, so the page does not grow sideways on a phone */
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.data-table th {
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--slate-200);
  text-align: left;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
}
.data-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
  color: var(--slate-700);
}
.data-table td small {
  color: var(--slate-500);
}
.data-table .actions {
  text-align: right;
  white-space: nowrap;
}
.data-table .actions .btn-ghost,
.data-table .actions .inline-form {
  margin-left: 0.25rem;
}
.muted-row td {
  opacity: 0.6;
}
.level-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--brand-blue);
  color: var(--white);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.level-badge.level-0 { background: var(--slate-500); }

/* ---- Admin ---- */
.admin-bar {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.admin-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}
/* on a computer every tab stays in sight, on two rows when the labels need it (French). A phone keeps the one-row strip that scrolls sideways */
@media (min-width: 992px) {
  .admin-nav {
    flex-wrap: wrap;
  }
}
.admin-nav a {
  padding: 0.9rem 1rem;
  border-bottom: 2px solid transparent;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  white-space: nowrap;
}
.admin-nav a:hover {
  color: var(--brand-blue);
}
.admin-nav a.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 150ms;
}
.stat-card:hover {
  border-color: var(--brand-blue);
}
.stat-label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--slate-900);
}
.stat-value small {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--slate-500);
}
.tree-pillar {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}
.tree-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tree-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.tree-enabler {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
}
.kicker-inline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-right: 0.35rem;
}
.tree-elements {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.tree-elements li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--slate-200);
  font-size: var(--text-small);
}
.tree-elements li .tree-actions {
  margin-left: auto;
}
.tree-elements .key {
  font-size: 11px;
  color: var(--slate-400);
}
.model-badges {
  display: inline-flex;
  gap: 0.2rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.model-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: var(--radius-md);
  background: var(--brand-blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}
.model-badge.free {
  background: var(--slate-500);
}
.score-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.score-input label {
  display: block;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}
.score-input .control {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem;
}
.source-block {
  margin-bottom: 0.5rem;
}

/* ---- The profile editor ---- */
.editor-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.segmented .seg {
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-left: 1px solid var(--slate-300);
  border-radius: 0;
  background: var(--white);
  color: var(--slate-600);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.4;
  transition: background 150ms, color 150ms;
}
.segmented .seg:first-of-type,
.segmented input:first-child + .seg {
  border-left: 0;
}
.segmented .seg:hover {
  background: var(--slate-50);
  color: var(--brand-blue);
}
.segmented .seg.active,
.segmented input[type="radio"]:checked + .seg {
  background: var(--brand-blue);
  color: var(--white);
}
.segmented input[type="radio"]:focus-visible + .seg {
  outline: 2px solid var(--brand-blue-light);
  outline-offset: -2px;
}
.bulk-set {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.bulk-set label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.target-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: center;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  min-width: 0;
}
.target-row:nth-of-type(odd) {
  background: var(--slate-50);
}
.target-row.has-target {
  border-color: var(--slate-200);
}
.target-row legend {
  float: left;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.4;
}
.target-row .target-seg {
  justify-self: end;
}
.target-row .target-statement {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--text-label);
  line-height: 1.5;
  color: var(--slate-600);
}
.target-row .target-statement:empty {
  display: none;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 1400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.preview-card .tile-value {
  font-size: 1.5rem;
}

/* ---- Small screens ---- */
@media (max-width: 767.98px) {
  .score-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .pc-row {
    grid-template-columns: 6.5rem 1fr 6.5rem;
  }
  .tile-value {
    font-size: 1.5rem;
  }
  .target-row {
    grid-template-columns: 1fr;
  }
  .target-row .target-seg {
    justify-self: start;
  }
  .page-head h1 {
    font-size: 1.5rem;
  }
}

/* ---- Print: the report, not the chrome ---- */
@media print {
  .topbar, .hero-section .product-form, .hero-intro, .saved-bar, .toolbar, .cf_trigger, .maturity_popup,
  #prosecco-questionnaire, #premium, #faq, #contact, .site-footer, .selector-row select, .skip-link, .toast-stack, .chart-chip-action {
    display: none !important;
  }
  body {
    padding-top: 0;
    font-size: 12px;
  }
  .hero-section {
    padding: 1rem 0;
    background: none;
  }
  .hero-section h1, .hero-subtitle {
    color: var(--slate-900);
  }
  .custom-block {
    border: 1px solid var(--slate-300);
    break-inside: avoid;
  }
  .roadmap .phase {
    break-inside: avoid;
  }
  .radar-wrap {
    max-width: 22rem;
  }
}

/* ---- Air between the menu entries, and room for titles that wrap ---- */
.topbar-links {
  gap: 0.9rem;
}
.topbar-links .topbar-link {
  padding: 0.5rem 1.05rem;
  letter-spacing: 0.12em;
}
.topbar-links .topbar-link.active::before {
  left: 1.05rem;
  right: 1.05rem;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .topbar-links .topbar-link {
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 991.98px) {
  .topbar-links {
    gap: 0;
  }
  .topbar-links .topbar-link {
    padding: 0.8rem 0;
  }
  /* the link has no side padding in the burger menu: the underline starts under the first letter */
  .topbar-links .topbar-link.active::before {
    left: 0;
    right: auto;
  }
}
h1, h2, h3, h4, h5, h6, .page-head h1, .form-card h1 {
  line-height: 1.25;
}
.hero-section h1 {
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
h2 {
  line-height: 1.25;
  margin-bottom: 1.75rem;
}
.phase-title, .priority .title {
  line-height: 1.4;
}

/* ---- The ProSecCo logo in the bar and the footer, as on the other cetome tools ---- */
.brand .brand-logo {
  width: auto;
  height: 2.5rem;
}
@media (min-width: 992px) {
  .brand .brand-logo {
    height: 3rem;
  }
}
.site-footer .footer-brand .brand-logo {
  width: auto;
  height: 3rem;
  margin-bottom: 0.75rem;
}
.brand .brand-product {
  font-size: var(--text-micro);
  letter-spacing: 0.2em;
  color: var(--brand-blue);
}
/* under 390px the logo, the product label and the menu button do not fit on one row with room to spare (at 375px they are 1.6px apart): the logo alone */
@media (max-width: 389.98px) {
  .brand .brand-product {
    display: none;
  }
}

/* ---- The questionnaire grid (admin) ---- */
.grid-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.segmented a.seg {
  text-decoration: none;
}
.new-pillar-form {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: auto;
}
.new-pillar-form .control {
  width: 14rem;
  padding: 0.35rem 0.6rem;
  font-size: var(--text-label);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
}
.pillar-box {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.pillar-box .form-grid .field {
  margin-bottom: 0.5rem;
}
.grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: var(--text-label);
}
.grid-table thead th {
  position: sticky;
  top: var(--nav-height);
  z-index: 5;
}
.grid-table th {
  padding: 0.5rem 0.4rem;
  background: var(--white);
  border-bottom: 2px solid var(--slate-200);
  text-align: left;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.grid-table th small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}
.grid-table .col-handle { width: 1.6rem; }
.grid-table .col-del { width: 2.4rem; }
.grid-table .col-name { width: 16%; }
.grid-table td {
  padding: 0.3rem 0.25rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.grid-table tr.grid-group th {
  position: static;
  padding: 0.6rem 0.4rem 0.35rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  text-transform: none;
  letter-spacing: 0;
}
.group-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.group-head .group-name {
  flex: 0 1 24rem;
  padding: 0.3rem 0.6rem;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--slate-900);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
}
.group-head .group-name:hover,
.group-head .group-name:focus {
  border-color: var(--slate-300);
  background: var(--white);
}
.group-count {
  margin-left: auto;
  font-size: var(--text-micro);
  font-weight: 700;
  color: var(--slate-400);
}
.grid-table textarea.cell {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  line-height: 1.45;
  color: var(--slate-800);
  resize: none;
  overflow: hidden;
}
.grid-table textarea.cell:hover {
  border-color: var(--slate-300);
}
.grid-table textarea.cell:focus {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(33, 122, 255, 0.2);
  outline: none;
}
.grid-table textarea.cell-name {
  font-weight: 700;
  color: var(--slate-900);
}
.grid-table .key {
  display: block;
  padding: 0 0.5rem;
  font-size: 10px;
  color: var(--slate-400);
  overflow: hidden;
  text-overflow: ellipsis;
}
.drag-handle {
  display: inline-block;
  padding: 0.4rem 0.2rem;
  color: var(--slate-400);
  cursor: grab;
  user-select: none;
  letter-spacing: -0.2em;
}
tr.grid-row.dragging {
  opacity: 0.4;
}
tr.drop-before td, tr.drop-before th { border-top: 3px solid var(--brand-blue); }
tr.drop-after td { border-bottom: 3px solid var(--brand-blue); }
tr.grid-row.deleted textarea.cell {
  text-decoration: line-through;
  color: var(--slate-400);
}
tr.grid-row.deleted td {
  background: #fef2f2;
}
tr.grid-row-new td {
  background: #f0fdf4;
}
tr.grid-add td {
  padding: 0.25rem 0.4rem 0.75rem;
  border-bottom: 0;
}
.row-delete, .row-remove {
  padding: 0.2rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
}
.sticky-actions .new-enabler {
  width: 16rem;
  padding: 0.4rem 0.6rem;
  font-size: var(--text-label);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
}
.save-hint {
  margin-left: auto;
  font-size: var(--text-label);
  color: var(--slate-500);
}
.save-hint.is-error {
  color: #b91c1c;
}
.q-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
}
.q-switch label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.q-switch .picker {
  min-width: 16rem;
}
.q-pane[hidden] {
  display: none;
}

/* ---- Pillar by pillar: a row opens the elements of the pillar ---- */
.pc-row {
  display: block;
  padding: 0;
}
.pc-head {
  display: grid;
  grid-template-columns: 11rem 1fr 7.5rem;   /* room for the longest pillar names, French included */
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.45rem 0.35rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  text-align: left;
  cursor: pointer;
  transition: background 150ms;
}
.pc-head:hover,
.pc-head[aria-expanded="true"] {
  background: var(--slate-50);
}
.pc-head .pc-name::before {
  content: "chevron_right";
  font-family: 'Material Icons';
  font-feature-settings: 'liga';
  display: inline-block;
  width: 1rem;
  font-size: 0.95rem;
  line-height: 1.15rem;
  position: relative;
  top: 0.1em;
  color: var(--slate-400);
  transition: transform 150ms;
}
.pc-head[aria-expanded="true"] .pc-name::before {
  transform: rotate(90deg);
}
.pc-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0 0 0.1rem 1.1rem;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.pc-stats .ok { color: #15803d; }
.pc-stats .gap { color: #b91c1c; }
.pc-stats .muted { color: var(--slate-400); }
.pc-details {
  margin: 0.25rem 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.pc-details[hidden] {
  display: none;
}
.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-label);
}
.pc-table th {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.pc-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
  color: var(--slate-700);
}
.pc-table td.num {
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
}
.pc-table .el-enabler {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.status-chip {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-met { background: #dcfce7; color: #166534; }
.status-exceeds { background: #dbeafe; color: #1e40af; }
.status-gap { background: #fee2e2; color: #991b1b; }
.status-none, .status-out { background: var(--slate-100); color: var(--slate-500); }
/* on a phone the pillar name takes its own line, above its bar and figures */
@media (max-width: 767.98px) {
  .pc-head {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
  }
  .pc-head .pc-name {
    grid-column: 1 / -1;
  }
}

/* the two results cards no longer stretch to the same height, so an opened pillar does not leave the radar card empty */
.featured-section .grid.grid-gap {
  align-items: flex-start;
}

/* ---- The pillar popup ---- */
.pillar-dialog {
  width: min(56rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--slate-800);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.pillar-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.pillar-dialog .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pillar-dialog .dialog-head .kicker {
  margin-bottom: 0.25rem;
}
.pillar-dialog .dialog-head h2 {
  margin: 0;
}
.pillar-dialog .score-tiles {
  margin-bottom: 1rem;
}
.pillar-dialog .dialog-body {
  max-height: 55vh;
  overflow: auto;
  position: relative;   /* containing block of the visually-hidden labels in the history table: the scroll box clips them, so the popup does not scroll sideways on a phone */
}
.pillar-dialog .toolbar {
  justify-content: flex-end;
}
.pc-head {
  cursor: pointer;
}

/* ---- The level track in the pillar popup: Not done, 1, 2, 3, 4; the answer in blue, the gap in red up to the target line, the levels above it in light blue ---- */
.pc-table .col-track {
  width: 15rem;
}
.lvl-track {
  display: grid;
  grid-template-columns: 2.4rem repeat(var(--levels, 4), 1fr);
  gap: 2px;
  width: 100%;
}
.lvl-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  border-radius: 3px;
  background: var(--slate-100);
  font-size: var(--text-micro);
  font-weight: 800;
  color: var(--slate-700);
}
.lvl-scale .lvl-cell {
  height: auto;
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-size: 10px;
}
.lvl-cell.in-gap {
  background: #fecaca;
}
.lvl-cell.is-beyond {
  background: #dbeafe;
}
/* after is-beyond: on a row above its target the answer cell is also beyond it, and stays blue with its white digit */
.lvl-cell.is-answer {
  background: var(--brand-blue);
  color: var(--white);
}
.lvl-cell.is-target::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  right: -2px;
  width: 4px;
  border-radius: 2px;
  background: #e11d48;
}
.lvl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 0.75rem;
  font-size: var(--text-label);
  color: var(--slate-600);
}
.lvl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.lvl-legend .lvl-cell {
  width: 1.4rem;
  height: 1rem;
  margin-right: 4px;
}
.lvl-legend .lvl-cell.is-target {
  background: var(--slate-100);
}
@media (max-width: 575.98px) {
  .pc-table .col-track {
    width: 10rem;
  }
  .lvl-track {
    grid-template-columns: 1.6rem repeat(var(--levels, 4), 1fr);
  }
}

.pillar-dialog .dialog-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pillar-dialog .dialog-tools .picker {
  max-width: 16rem;
  padding: 0.35rem 0.6rem;
  font-size: var(--text-label);
}
/* the previous and next pillar: square arrow buttons, greyed at the first and last pillar */
.pillar-dialog .pillar-step {
  padding: 0.2rem 0.3rem;
}
.pillar-dialog .pillar-step .material-icons {
  font-size: 1.5rem;   /* the chevron as tall as the profile picker beside it */
}
.pillar-dialog .pillar-step:disabled {
  opacity: 0.35;
  cursor: default;
}
#pillar-dialog-position {
  color: var(--slate-500);
}

/* ---- The bar: a minimal menu, the languages under a globe, the user menu on the right ---- */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
}
.nav-icon-btn .material-icons {
  font-size: 1.3rem;
}
.nav-icon-btn:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}
.nav-icon-btn.drop-toggle::after,
.user-btn.drop-toggle::after {
  display: none;
}
.topbar .drop-menu {
  margin-top: 0.5rem;
  min-width: 13rem;
  padding: 0.4rem 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  font-family: var(--font-sans);
}
.topbar .drop-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-small);
  color: var(--slate-800);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}
.topbar .drop-item:hover,
.topbar .drop-item:focus {
  background: var(--slate-50);
  color: var(--brand-blue);
}
.topbar .drop-item.active {
  background: var(--brand-blue);
  color: var(--white);
}
.topbar .drop-header {
  padding: 0.5rem 1rem 0.6rem;
  font-size: var(--text-label);
  color: var(--slate-600);
  line-height: 1.4;
}
.topbar .drop-header strong {
  color: var(--slate-900);
}
.topbar .drop-divider {
  margin: 0.3rem 0;
  border-color: var(--slate-200);
}
.user-menu {
  margin-left: 1rem;
}
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  transition: border-color 150ms;
}
.user-btn:hover {
  border-color: var(--brand-blue);
}
.user-btn .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.user-btn .user-name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .lang-menu {
    padding: 0.5rem 0;
  }
  .user-menu {
    margin: 1rem 0 0;
  }
  .topbar .drop-menu {
    box-shadow: none;
  }
}

/* ---- The questionnaire row: the title on its own line, four equal level cards, a narrower "Not done" of the same height ---- */
@media (min-width: 992px) {
  .prosecco-contributing-element {
    grid-template-columns: repeat(var(--levels, 4), minmax(0, 1fr)) 7rem;
    gap: 0.6rem;
    padding: 0.6rem;
  }
  .prosecco-contributing-element legend {
    grid-column: 1 / -1;
    padding: 0.25rem 0.25rem 0.35rem;
  }
  .prosecco-contributing-element label.not-done {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }
}
.enabler-block {
  padding: 1.25rem 1.5rem 1rem;
}

/* ---- A picture that opens in a popup ---- */
.image-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.image-zoom .zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.image-dialog {
  width: min(96vw, 1400px);
  max-height: 96vh;
  padding: 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}
.image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
}
.image-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(96vh - 1.5rem);
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.image-dialog .image-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  font-size: 1.1rem;
}
/* the language menu is a form of buttons */
.topbar form.drop-menu {
  padding: 0.4rem 0;
}
/* the ALTCHA widget, shown only when the background check fails */
altcha-widget {
  display: block;
  margin: 0 0 1rem;
  --altcha-color-base: var(--white);
  --altcha-color-border: var(--slate-300);
  --altcha-color-text: var(--slate-800);
  --altcha-border-radius: 0.5rem;
}

/* ---- The language switch: a round flag and the code, the names in the list ---- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem 0.3rem 0.4rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--slate-900);
  cursor: pointer;
  transition: border-color 150ms;
}
.lang-btn:hover {
  border-color: var(--brand-blue);
}
.lang-btn .lang-chevron {
  font-size: 0.95rem;
  color: var(--slate-400);
}
.lang-btn.drop-toggle::after {
  display: none;
}
.flag {
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.lang-list .drop-item {
  gap: 0.6rem;
}
.lang-list .drop-item span {
  flex: 1 1 auto;
}
.lang-list .drop-item .lang-check {
  color: var(--brand-blue);
}
.lang-list .drop-item.active {
  background: var(--slate-50);
  color: var(--slate-900);
}
.lang-list .drop-item.active .lang-check {
  color: var(--brand-blue);
}

/* ---- The language pill sits on the same line as the menu and the Sign in button, its contents centred ---- */
.topbar .lang-menu {
  display: flex;
  align-items: center;
  padding: 0;
  margin-left: 0.5rem;
}
.lang-btn {
  height: 40px;
  padding: 0 0.7rem 0 0.4rem;
  line-height: 1;
}
.lang-btn .flag {
  width: 22px;
  height: 22px;
}
.lang-btn .lang-code {
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
  transform: translateY(0.5px);
}
.lang-btn .lang-chevron {
  display: inline-flex;
  line-height: 1;
}
.user-btn {
  height: 40px;
  line-height: 1;
}
@media (max-width: 991.98px) {
  .topbar .lang-menu {
    padding: 0.75rem 0;
    margin-left: 0;
  }
}

.custom-form input[readonly] {
  background: var(--slate-50);
  color: var(--slate-600);
  cursor: not-allowed;
}

.saved-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.saved-bar .picker:disabled {
  opacity: 0.7;
}

/* ---- Admin lists: chips in the house blue only, keys in grey, room for the name column ---- */
.chip {
  white-space: nowrap;
}
.chip-green {
  border-color: var(--brand-blue);
  background: var(--white);
  color: var(--brand-blue);
}
code.key,
.data-table code.key {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0;
  background: none;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}
.data-table td:first-child {
  min-width: 18rem;
}
.data-table td:first-child small {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.45;
}
.data-table td:first-child br {
  display: none;
}
.tab-count.complete {
  background: var(--slate-100);
  color: var(--brand-blue);
}

/* action buttons wrap onto a second line rather than widening the table */
.data-table .actions {
  white-space: normal;
  max-width: 28rem;
}
.data-table .actions .btn-ghost,
.data-table .actions .inline-form {
  margin-bottom: 0.3rem;
}

.import-rows {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  white-space: pre;
  overflow: auto;
}
.import-tree, .import-tree ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: var(--text-small);
}
.import-tree ul {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}
.import-tree li {
  margin: 0.15rem 0;
}

/* ---- A file input dressed as a ghost button (answers import), the level-name rows of the questionnaire form ---- */
.file-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.file-button:focus-within {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.import-note:empty {
  display: none;
}
.levels-block {
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 0.75rem 1rem 0.5rem;
}
.levels-block .field-label {
  font-weight: 700;
  font-size: var(--text-small);
  margin-bottom: 0.25rem;
}
.level-names {
  display: grid;
  gap: 0.35rem;
}
.level-name-row {
  display: grid;
  grid-template-columns: 11rem 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}
.level-name-label {
  font-size: var(--text-small);
  color: var(--slate-600);
}
@media (max-width: 575.98px) {
  .level-name-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }
}

/* ---- The grid header sticks to the window on wide screens (the wrapper must not be a scroll container there); inside the scrolling wrapper on small ones ---- */
@media (min-width: 992px) {
  .grid-form .table-wrap {
    overflow: visible;
  }
}
@media (max-width: 991.98px) {
  .grid-table thead th {
    top: 0;
  }
}

/* ---- Five or six levels: the cards get a little tighter so the row keeps its width ---- */
@media (min-width: 992px) {
  .prosecco-contributing-element.many-levels label {
    padding: 0.6rem 0.65rem;
    font-size: var(--text-small);
  }
  .prosecco-contributing-element.many-levels label .level-tag {
    font-size: 10px;
  }
}

/* ---- The translation page ---- */
.translate-table td {
  vertical-align: top;
}
.translate-table tr.missing td:last-child {
  background: #fff7ed;
}

/* ---- The questionnaire chooser: a light band under the hero with a tab strip. The label on the left, one tab per
   model (its description as a tooltip), the current one in cetome blue. The tabs are submit buttons, so the
   selectors stay specific enough to beat generic button rules. ---- */
.model-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 0;
}
.model-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.model-cards-label {
  margin-right: 0.5rem;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.model-cards .model-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0.45rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 6px !important;
  background: var(--white);
  color: var(--slate-800);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.model-cards .model-card:hover,
.model-cards .model-card:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  outline: none;
}
.model-cards .model-card.active,
.model-cards .model-card.active:hover {
  border: 1px solid var(--brand-blue);
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: none;
  cursor: default;
}
@media (max-width: 575.98px) {
  .model-cards-label {
    width: 100%;
    margin: 0 0 0.25rem;
  }
}

/* ---- The enabler arrows in the grid: small outline icon buttons, not primary buttons ---- */
.grid-form .group-head button.btn-icon {
  padding: 0.25rem 0.55rem;
  min-width: 0;
  background: var(--white);
  color: var(--brand-blue);
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  font-size: var(--text-small);
  line-height: 1.2;
}
.grid-form .group-head button.btn-icon:hover,
.grid-form .group-head button.btn-icon:focus-visible {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}

/* ---- "Level 1 = Not done": no separate card; the level-1 card looks like the "Not done" one; the track has no 0 cell ---- */
@media (min-width: 992px) {
  .prosecco-contributing-element.no-none {
    grid-template-columns: repeat(var(--levels, 4), minmax(0, 1fr));
  }
}
.prosecco-contributing-element label.is-none {
  background: var(--slate-50);
  border-style: dashed;
}
.prosecco-contributing-element input[type="radio"]:checked + label.is-none {
  background: var(--slate-600);
  border-style: solid;
  border-color: var(--slate-600);
}
.lvl-track.no-none {
  grid-template-columns: repeat(var(--levels, 4), 1fr);
}
.level-name-row.is-muted {
  opacity: 0.45;
}

/* ---- Previous / next pillar under each pane, with the list of pillars in between ---- */
.pillar-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}
.pillar-nav .pillar-nav-tabs {
  grid-column: 1 / -1;
  order: -1;
}
.pillar-nav .pillar-nav-prev {
  justify-self: start;
}
.pillar-nav .pillar-nav-next {
  justify-self: end;
}
@media (max-width: 991.98px) {
  .pillar-nav .btn-nav {
    text-align: center;
  }
}
/* ---- Under 768px the two pillar buttons do not fit side by side: one full-width button per line, a long label on two lines inside the 36px ---- */
@media (max-width: 767.98px) {
  .pillar-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar-nav > span:empty {
    display: none;
  }
  .pillar-nav .pillar-nav-prev,
  .pillar-nav .pillar-nav-next {
    justify-self: stretch;
    white-space: normal;
  }
}

/* the model band lands just under the fixed menu when the page comes back to #models */
.model-section {
  scroll-margin-top: calc(var(--nav-height) + 0.5rem);
}

/* while a model switch is in flight */
.model-cards.is-busy .model-card {
  opacity: 0.55;
  pointer-events: none;
}


/* ---- While a model switch is in flight: a spinner in the clicked tab, the rest of the page dimmed ---- */
.model-cards .model-card.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.model-cards .model-card.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(0, 68, 170, 0.25);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: model-spin 0.7s linear infinite;
}
.model-cards .model-card.is-loading.active::after {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
}
body.model-switching .featured-section,
body.model-switching .explore-section,
body.model-switching .priorities-section {
  opacity: 0.45;
  transition: opacity 0.2s;
  pointer-events: none;
}
@keyframes model-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .model-cards .model-card.is-loading::after {
    animation-duration: 1.5s;
  }
}

/* ---- Top priorities: a popup opened from the button under the comparison; the count sits on the button ---- */
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0 0.4em;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-blue);
  font-size: 11px;
  line-height: 1.5;
}
.count-pill:empty {
  display: none;
}
.btn-nav:hover .count-pill,
.btn-nav:focus-visible .count-pill {
  background: var(--brand-blue);
  color: var(--white);
}
.priorities-dialog {
  width: min(56rem, 94vw);
}
.priorities-dialog .dialog-body {
  max-height: min(60vh, 40rem);
  overflow: auto;
}
.priorities-dialog .toolbar {
  justify-content: flex-end;
}

/* ---- The bottom pillar bar: the same underline tabs as the top one, not sticky, centred between the two buttons ---- */
.pillar-nav .pillar-nav-tabs {
  position: static;
  justify-content: center;
  margin: 0;
  background: transparent;
  z-index: auto;
}
.pillar-nav .pillar-nav-tabs .tab {
  background: none;
}

/* ---- Secondary buttons on the blue band (Duplicate, New product) ---- */
.btn-on-blue-outline,
.btn-on-blue-outline:focus-visible {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-on-blue-outline:hover {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--white);
}

/* ---- Profile lists: one line per model with the targets set and the profile's own score ---- */
.model-scores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.model-scores li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--text-small);
}
.model-scores li.none {
  color: var(--slate-400);
}
.model-scores-name {
  font-weight: 700;
  min-width: 9rem;
}
.model-scores-cov {
  font-variant-numeric: tabular-nums;
  color: var(--slate-500);
}

/* ---- The admin profiles list: owner under the name, one line per model, actions in two rows ---- */
.profiles-table .profile-owner,
.profiles-table .profile-description {
  display: block;
  color: var(--slate-500);
}
.profiles-table .profile-owner {
  margin-top: 0.1rem;
}
.profiles-table .profile-description {
  margin-top: 0.25rem;
  max-width: 22rem;
}
.profiles-table .model-scores li {
  gap: 0.75rem;
}
.profiles-table .model-scores-name {
  min-width: 9rem;
}
.profiles-table .model-scores-cov {
  min-width: 7.5rem;
}
.profiles-table .model-scores li.none .model-scores-name {
  color: var(--slate-400);
}
.profiles-table td.actions {
  white-space: nowrap;
}
.action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
}
.action-row + .action-row {
  margin-top: 0.35rem;
}
.action-row .btn-icon {
  padding-inline: 0.5rem;
}

/* ---- The profile editor's action bar: stuck to the bottom of the window for the whole form; Delete is a red text link, apart from Save ---- */
.sticky-actions-wrap {
  position: sticky;
  bottom: 0;
  z-index: 1400;
  padding: 0.5rem 0 1rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0));
}
.sticky-actions-wrap .sticky-actions {
  position: static;
  margin-top: 0;
}
.btn-link-danger {
  background: none;
  border: 0;
  padding: 0.4rem 0.6rem;
  color: #b91c1c;
  font-size: var(--text-small);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.btn-link-danger:hover,
.btn-link-danger:focus-visible {
  background: #fef2f2;
  outline: none;
}

/* ---- Inside a form, a submit button that is meant to look secondary or dangerous must not take the form's primary style ---- */
.custom-form button.btn-ghost[type="submit"],
.custom-form .sticky-actions button.btn-ghost[type="submit"] {
  height: auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--brand-blue);
  letter-spacing: 0.08em;
}
.custom-form button.btn-ghost.btn-danger[type="submit"] {
  color: #b91c1c;
}
.custom-form button.btn-ghost.btn-danger[type="submit"]:hover {
  border-color: #b91c1c;
  background: #fef2f2;
}
.custom-form button.btn-link-danger[type="submit"],
.custom-form .sticky-actions button.btn-link-danger[type="submit"] {
  height: auto;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: #b91c1c;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
}
.custom-form button.btn-link-danger[type="submit"]:hover,
.custom-form button.btn-link-danger[type="submit"]:focus-visible {
  background: #fef2f2;
  color: #991b1b;
}
/* the light text link on the blue band (sign-in: Use another address, Cancel) keeps its own look */
.custom-form button.btn-link-light[type="submit"] {
  width: auto;
  padding-inline: 0.4rem;
  border-color: transparent;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
}
.custom-form button.btn-link-light[type="submit"]:hover,
.custom-form button.btn-link-light[type="submit"]:focus-visible {
  border-color: transparent;
  background: none;
  color: var(--white);
}

/* a quiet note next to a title (for example "Top 5 on the free assessment") */
.title-note {
  margin-left: 0.5rem;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: normal;
  text-transform: none;
}

/* ---- The products bar: a proper dropdown on the blue band (white, rounded, its own chevron) and the actions grouped ---- */
.saved-bar {
  justify-content: center;
  gap: 0.6rem 0.9rem;
}
.saved-bar .saved-label {
  white-space: nowrap;
}
.saved-bar .picker,
.saved-bar .picker:focus {
  appearance: none;
  -webkit-appearance: none;
  min-width: 17rem;
  max-width: 24rem;
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230044aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 0.9rem center;
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}
.saved-bar .picker:hover {
  border-color: rgba(255, 255, 255, 0.75);
}
.saved-bar .picker:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.saved-bar .picker:disabled {
  opacity: 0.6;
  cursor: default;
}
.saved-bar .picker option {
  color: var(--slate-800);
  font-weight: 500;
}
.saved-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.saved-bar .btn-nav {
  height: 38px;
  padding-inline: 1.1rem;
}
.saved-bar .btn-link-light {
  padding: 0.3rem 0.4rem;
}

/* ---- Room between an icon and its label, everywhere a button or link carries one ---- */
.btn-nav,
.btn-ghost,
.btn-link-light,
.btn-link-danger,
.file-button,
.back-link,
.pillar-nav .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ghost {
  gap: 0.45rem;
}
/* the link stands in the flow of the page: its words, not its icon, give the line its baseline */
.back-link {
  align-items: baseline;
}
.back-link .material-icons {
  align-self: center;
}
.topbar-link .material-icons,
.tab .material-icons,
.drop-item .material-icons,
.card-title .material-icons,
.model-card .material-icons {
  margin-right: 0.35rem;
}
.model-card .material-icons {
  margin-right: 0;
}

/* ---- Model tabs: the same height whether or not a tab carries the check icon ---- */
.model-cards .model-card {
  height: 2.5rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}
.model-cards .model-card .material-icons {
  font-size: 1.25em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ---- The three stats under the score tiles: labels may wrap, the numbers stay on one baseline ---- */
.stat-row > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 3.6rem;
}
.stat-row dt {
  margin-bottom: 0.3rem;
}
.stat-row dd {
  margin-top: auto;
  line-height: 1.2;
}

/* ---- The toolbar under the comparison: every button the same height, Top priorities included ---- */
.standing .toolbar .btn-nav,
.standing .toolbar .btn-ghost,
.standing .toolbar .file-button {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.standing .toolbar .btn-nav {
  padding-inline: 1.1rem;
}
.standing .toolbar .count-pill {
  line-height: 1.3;
}

/* ---- Buttons in the body share one height (the white ghost buttons set it); the top bar and the hero keep theirs ---- */
.btn-nav,
.btn-nav-outline,
.btn-ghost,
.file-button,
.custom-form button[type="submit"] {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.topbar .btn-nav,
.hero-section .input-row button[type="submit"] {
  height: 40px;
}
.hero-section .input-row button[type="submit"] {
  height: auto;
}

/* ---- The bottom pillar tabs run the full width of the window, like the top ones, so they stay on one line ---- */
.explore-section {
  overflow-x: clip;
}
.pillar-nav .pillar-nav-tabs {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 1rem;
  justify-content: center;
}

/* ---- The product title bar: the name field with Start, and Save right next to it; Start as tall as the other buttons ---- */
.hero-section .product-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-section .product-form .input-row {
  margin: 0;
  flex: 1 1 28rem;
  max-width: 40rem;
}
.hero-section .input-row button[type="submit"] {
  height: 36px;
  padding-inline: 1.25rem;
  flex: 0 0 auto;
}
.hero-section .product-form .product-save {
  height: 36px;
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .hero-section .product-form .product-save {
    width: 100%;
  }
}

/* ---- Root rule for every button outside the top bar: one height, whatever earlier rule or element type applies.
   Blue, outline, white, ghost, file, model tab, form submit: 36px, centred by flex, no vertical padding. ---- */
body :where(.btn-nav, .btn-nav-outline, .btn-ghost, .btn-on-blue, .file-button, .custom-form button[type="submit"], .model-cards .model-card, .btn-icon):not(.topbar *, [hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  height: 36px !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  vertical-align: middle;
}
.hero-section .input-row button[type="submit"] {
  height: 36px !important;
}

.keys-hint {
  color: var(--slate-500);
}

/* ---- An enabler block without a title (the model has no second level): no box of its own, the rows sit directly under the pillar ---- */
.enabler-block.enabler-block-untitled {
  padding-top: 0.75rem;
}

/* ---- The question title sits inside the box as a normal first row (a visible span; the legend stays for screen readers,
   because a rendered legend is drawn across the fieldset's border and breaks over two lines) ---- */
.prosecco-contributing-element .element-title {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.25rem 0.25rem 0.35rem;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--slate-600);
}

/* ---- A question is a soft band, not a framed box: title and cards on a light background, no border ---- */
.prosecco-contributing-element,
.prosecco-contributing-element.answered {
  border: 0;
  border-radius: var(--radius-md);
}
.prosecco-contributing-element:nth-of-type(odd) {
  background: var(--slate-50);
}
.prosecco-contributing-element:nth-of-type(even) {
  background: transparent;
}
.prosecco-contributing-element.answered .element-title {
  color: var(--brand-blue);
}

/* ---- "Your assessment for <product>": the product name inherits the title's weight and size ---- */
.section-head h2 #your_product_name,
.section-head h2 #your_product_name .pname {
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.section-head h2 #your_product_name .pname {
  color: var(--brand-blue);
}

/* ---- Sign-in: the code field, the passkey note; the account page's passkey list ---- */
.code-input {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  max-width: 14rem;
}
.form-card-note {
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.85);
}
.form-card-note.is-error {
  color: #fde68a;
}
.card-subtitle {
  margin: 1rem 0 0.25rem;
  font-weight: 700;
}
.passkey-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.passkey-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
}
.passkey-list li small {
  color: var(--slate-500);
}
.passkey-list li form {
  margin-left: auto;
}
#passkey-add-note.is-error {
  color: #b91c1c;
}

/* ---- Sign-in: the two methods as tabs on the blue card ---- */
.form-card .login-tabs {
  margin: 0.25rem 0 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
.form-card .login-tabs .seg {
  color: rgba(255, 255, 255, 0.85);
}
.form-card .login-tabs .seg.active {
  background: var(--white);
  color: var(--brand-blue);
}
.form-card .q-pane .form-card-text {
  margin-top: 0;
}
.form-card .form-card-help {
  color: rgba(255, 255, 255, 0.75);
}

/* the two sign-in tabs: full width of the card, transparent inactive, white active */
.form-card .login-tabs {
  display: flex;
  width: 100%;
}
.form-card .login-tabs .seg {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}
.form-card .login-tabs .seg:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.form-card .login-tabs .seg.active,
.form-card .login-tabs .seg.active:hover {
  background: var(--white);
  color: var(--brand-blue);
}

/* ---- The administrator's preview of the public page: a thin bar with the way back ---- */
.preview-bar {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  font-size: var(--text-small);
  color: #9a3412;
}
.preview-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.user-menu .drop-menu form {
  margin: 0;
}

/* ---- Product history popup and the compare page ---- */
.history-dialog {
  width: min(72rem, calc(100vw - 2rem));
}
.history-table td:nth-child(2) {
  white-space: nowrap;
}
/* the version column ("v4 · current") needs no room for a name, unlike the admin lists */
.history-table td:first-child,
.history-inline td:first-child {
  min-width: 0;
}
.history-table tr:not(.history-detail) > td:first-child,
.history-inline td:first-child {
  white-space: nowrap;
}
.history-chart {
  height: 170px;
  margin: 0.25rem 0 0;
}
.history-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.history-tools label {
  margin: 0;
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.history-tools .picker {
  min-width: 14rem;
  max-width: min(100%, 40rem);   /* the chosen benchmark's whole label: its name, area and profile */
}
.history-legend {
  margin-left: auto;
  font-size: var(--text-micro);
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.history-legend .legend-milestone {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--brand-blue);
  background: #fff;
  margin-left: 0.5rem;
}
.history-table td.actions {
  white-space: nowrap;
  text-align: right;
}
.history-table td.actions .btn-ghost + .btn-ghost {
  margin-left: 0.35rem;
}
.history-note-btn {
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--slate-600);
}
/* "Start from": the built-in profile names stay as written, as in the selectors */
.btn-ghost.profile-start {
  letter-spacing: normal;
  text-transform: none;
}
.compare-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: start;
}
.compare-group {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm, 8px);
}
.compare-group legend {
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: var(--text-small);
  font-weight: 700;
}
.compare-group legend .muted {
  display: block;
  font-weight: 500;
  font-size: var(--text-micro);
}
.compare-option {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
}
.compare-option.is-picked {
  background: rgba(0, 68, 170, 0.08);
}
.compare-option input {
  accent-color: var(--brand-blue);
}
.compare-option small {
  margin-left: auto;
  text-align: right;
}
.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}
.compare-actions .field {
  flex: 1 1 18rem;
  max-width: 30rem;
  margin: 0;
}
.compare-tiles {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.compare-tiles .score-tile {
  border-top-width: 3px;
}
.compare-table td.num small {
  display: block;
  font-size: var(--text-micro);
}
.compare-elements td {
  white-space: nowrap;
}
.compare-elements td:first-child {
  white-space: normal;
  min-width: 16rem;
}
.compare-elements td.cell-up {
  box-shadow: inset 0 -2px 0 #15803d;
}
.compare-elements td.cell-down {
  box-shadow: inset 0 -2px 0 #b91c1c;
}
.tile-value small.ok {
  color: #15803d;
}
.tile-value small.gap {
  color: #b91c1c;
}
.tile-value small.muted {
  color: var(--slate-400);
}.compare-table td.num,
.compare-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.compare-table .ok {
  color: #15803d;
}
.compare-table .gap {
  color: #b91c1c;
}
.compare-table .el-enabler {
  display: block;
  font-size: var(--text-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.tile-value.ok {
  color: #15803d;
}
.tile-value.gap {
  color: #b91c1c;
}

/* ---- History: what moved up or down between two versions ---- */
.history-changes-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 600;
}
.history-changes-btn .change-up,
.history-detail-list .change-up {
  color: #15803d;
}
.history-changes-btn .change-down,
.history-detail-list .change-down {
  color: #b91c1c;
}
.change-profile {
  color: var(--brand-blue);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.history-changes-btn .history-chevron {
  color: var(--slate-400);
  transition: transform 0.2s ease;
}
.history-changes-btn.is-open .history-chevron {
  transform: rotate(180deg);
}
.history-detail td {
  padding: 0.25rem 0.75rem 1rem;
  background: var(--slate-50);
}
.history-detail-profile {
  margin: 0.5rem 0;
  font-size: var(--text-small);
  color: var(--brand-blue);
}
.history-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.35rem 1.5rem;
}
.history-detail-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--text-small);
  color: var(--slate-800);
}
.history-detail-list li .material-icons {
  margin-top: 0.15rem;
}
.history-detail-text .el-enabler {
  display: block;
  font-size: var(--text-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}
/* the levels on their own line under the element, so a question keeps its "?" with no colon after it */
.history-detail-text .history-detail-levels {
  display: block;
  font-weight: 600;
}

/* ---- Translate: the table takes edits ---- */
.translate-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.translate-filter {
  max-width: 24rem;
}
.translate-table td:nth-child(2) {
  width: 40%;
  font-size: var(--text-small);
}
.translate-table td:nth-child(3) {
  width: 44%;
}
.translate-input {
  font-size: var(--text-small);
  padding: 0.35rem 0.5rem;
}
.translate-table tr.missing .translate-input {
  border-color: #f59e0b;
}

/* ---- Mobile: a tap on an answer must not scroll ---- */
/* The hidden radio is absolutely positioned: without a positioned card it sits far above, and the browser scrolls
   to it when the tap focuses it. In the card, it is already on screen. */
.prosecco-contributing-element {
  position: relative;
}

/* ---- Admin: activity ---- */
.activity-chart {
  height: 240px;
}
.activity-table td.num,
.activity-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stat-sub {
  font-size: var(--text-micro);
  color: var(--slate-500);
}

/* ---- Legal text (the privacy policy) ---- */
.legal-text {
  max-width: 52rem;
}
.legal-text .lead {
  font-size: var(--text-body);
  color: var(--slate-600);
}
.legal-text h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.legal-text ul {
  list-style: none;
  padding-left: 0;
}
.legal-text li {
  position: relative;
  padding-left: 1.1rem;
}
.legal-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--brand-blue);
}
.legal-text li {
  margin-bottom: 0.5rem;
}
.legal-text code {
  font-size: 0.9em;
  color: var(--brand-blue);
}

/* ---- Dashboard ---- */
.dashboard-chart {
  height: 260px;
}
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 3.5rem 5.5rem;   /* date · product · score badge · what moved */
  align-items: center;
  gap: 0.25rem 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: var(--text-small);
}
.recent-what {
  min-width: 0;
}
.recent-score {
  justify-self: start;
}
.recent-score .level-badge {
  display: inline-block;
  min-width: 3.4rem;
  text-align: center;
}
/* the up and down counts and the profile chip go onto a second line rather than out of the 5.5rem column */
.recent-changes {
  white-space: nowrap;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  justify-self: start;
}
.dashboard-table td:nth-child(4) {
  white-space: nowrap;
}
/* the actions wrap inside the card (the French labels are longer), as in every other table. Each toggle keeps its
   visually-hidden label inside itself */
.history-toggle {
  position: relative;
}
/* room for Open, Compare versions and Delete on one line in English, two in French (the products table only, not the versions table inside it) */
.dashboard-table > thead > tr > th.actions {
  width: 22rem;
}
.recent-list li:last-child {
  border-bottom: 0;
}
.recent-when {
  color: var(--slate-500);
  font-size: var(--text-micro);
}
.recent-note {
  display: block;
  color: var(--brand-blue);
  font-weight: 600;
}
.change-up {
  color: #15803d;
}
.change-down {
  color: #b91c1c;
}
.history-toggle .material-icons {
  font-size: 1.5em;
  transition: transform 0.2s ease;
}
.history-toggle.is-open .material-icons {
  transform: rotate(180deg);
}
.dashboard-table tr.history-row > td {
  padding: 0.5rem 1rem 1rem 2rem;
  background: var(--slate-50);
}
.history-inline {
  margin: 0;
}
.history-inline th,
.history-inline td {
  font-size: var(--text-small);
}
@media (max-width: 767.98px) {
  .recent-list li {
    grid-template-columns: minmax(0, 1fr) 3.5rem 5.5rem;
  }
  .recent-when {
    grid-column: 1 / -1;
  }
}

/* ---- Settings: confirming a new e-mail address ---- */
.email-confirm {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 68, 170, 0.18);
  border-radius: var(--radius-md);
  background: #e8eef7;
}
.email-confirm .inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.email-confirm .code-input {
  max-width: 9rem;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-align: center;
}

/* ---- The products bar: the selector as wide as the product name above it, the buttons beneath ---- */
.hero-section .saved-bar {
  flex-direction: column;
  align-items: stretch;
  max-width: 48rem;   /* the product name and its Save button above span the same width */
  margin-left: auto;
  margin-right: auto;
}
.hero-section .saved-bar .picker,
.hero-section .saved-bar .picker:focus {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 2.6rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230044aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='%230044aa'><path d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5 8.186 1.113zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z'/></svg>");
  background-position: right 0.9rem center, left 0.9rem center;
  background-repeat: no-repeat, no-repeat;
}
.hero-section .saved-bar .saved-actions {
  justify-content: center;
}

/* ---- The Premium tour: the pictures on a stage with the arrows, the captions in one box as tall as the longest,
   dots. The same slider again full screen in a dialog, every picture in the same frame ---- */
.premium-slider {
  position: relative;
}
.premium-stage {
  position: relative;
}
.premium-stage .slider-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--slate-50);
}
.premium-stage .slider-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.premium-stage img[data-tour-open] {
  cursor: zoom-in;
}
/* the full-screen button: on the stage, bottom right, still while the slides move */
.premium-stage .tour-open {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--brand-blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transition: background 150ms, color 150ms;
}
.premium-stage .tour-open:hover,
.premium-stage .tour-open:focus-visible {
  background: var(--brand-blue);
  color: var(--white);
}
/* the arrows: on the stage, centred on the picture, never on the caption */
.premium-slider .slider-prev,
.premium-slider .slider-next {
  top: 50%;
  bottom: auto;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  opacity: 1;
  border: 1px solid var(--brand-blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transition: background 150ms, color 150ms;
}
.premium-slider .slider-prev { left: 0.75rem; }
.premium-slider .slider-next { right: 0.75rem; }
.premium-slider .slider-prev:hover,
.premium-slider .slider-next:hover,
.premium-slider .slider-prev:focus-visible,
.premium-slider .slider-next:focus-visible {
  background: var(--brand-blue);
  color: var(--white);
}
/* the captions: all stacked in one grid cell, as tall as the longest caption, the active one shown */
.premium-captions {
  display: grid;
  margin-top: 0.85rem;
}
.premium-caption {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0 0.5rem;
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--slate-600);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.premium-caption.active {
  opacity: 1;
  pointer-events: auto;
}
.premium-caption strong {
  font-size: var(--text-body);
  color: var(--slate-900);
}
.premium-slider .slider-dots {
  position: static;
  margin: 0.25rem 0 0;
  justify-content: center;
}
.premium-slider .slider-dots button {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--slate-300);
  opacity: 1;
  transition: background 150ms;
}
.premium-slider .slider-dots button.active {
  background: var(--brand-blue);
}
/* full screen: the same slider, the picture as large as the screen allows, the legend under it. Every picture
   gets the frame of the tallest one (history.png), so the dialog keeps its size from slide to slide */
.tour-dialog {
  width: min(96vw, 1500px);
  max-height: 96vh;
  padding: 1rem 1rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
.tour-dialog::backdrop {
  background: rgba(15, 23, 42, 0.78);
}
.tour-dialog .tour-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 1.1rem;
}
.tour-dialog .premium-stage .slider-item img {
  aspect-ratio: 2304 / 2558;
  max-height: calc(96vh - 11.5rem);
  object-fit: contain;
  object-position: center top;
  background: var(--slate-50);
}
.tour-dialog .premium-captions {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767.98px) {
  .tour-dialog { padding: 0.75rem 0.5rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-slider .slider-item,
  .premium-caption { transition: none; }
}

/* ---- The products bar: the selector tinted rather than white; Save in cetome's ink, as tall as the input ---- */
.hero-section .saved-bar .picker,
.hero-section .saved-bar .picker:focus {
  background-color: #e8eef7;
  border-color: #e8eef7;
}
.hero-section .saved-bar .picker:hover {
  background-color: var(--white);
  border-color: var(--white);
}
.hero-section .product-form .product-save,
.hero-section .product-form .product-save:focus-visible {
  height: auto !important;
  min-height: 36px !important;
  align-self: stretch;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background: #162d50;
  border-color: #162d50;
  color: var(--white);
}
.hero-section .product-form .product-save:hover {
  background: var(--white);
  border-color: var(--white);
  color: #162d50;
}

/* ---- Chart toggles: a chip per line, pressed = shown; the chip carries the line's colour and point shape ---- */
.chart-toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.chart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 0.7rem !important;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: opacity 150ms, border-color 150ms, background 150ms;
}
.chart-chip:hover {
  border-color: var(--brand-blue);
}
.chart-chip.is-off {
  color: var(--slate-500);
  text-decoration: line-through;
  background: var(--slate-50);
}
.chart-chip.is-off .chart-swatch {
  opacity: 0.45;
}
.chart-chip-action {
  color: var(--brand-blue);
  border-style: dashed;
}
.chart-swatch {
  width: 11px;
  height: 11px;
  background: var(--swatch);
  border-radius: 50%;
  flex: 0 0 auto;
}
.chart-swatch-circle.is-dashed {
  background: transparent;
  border: 2px dashed var(--swatch);
}
.chart-swatch-triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--swatch);
  border-radius: 0;
}
.chart-swatch-rect,
.chart-swatch-cross,
.chart-swatch-crossRot,
.chart-swatch-dash {
  border-radius: 0;
}
.chart-swatch-rectRot {
  border-radius: 0;
  transform: rotate(45deg) scale(0.85);
}
.chart-swatch-star {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---- Segmented switches (model switch, sign-in tabs, admin switches) are 36px like every other button. The target radios keep their size ---- */
.segmented button.seg,
.segmented a.seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
}

/* ---- The profile editor on a phone: the action bar wraps with its note on a line of its own, and the target levels take less room ---- */
@media (max-width: 575.98px) {
  .sticky-actions .save-hint {
    order: 9;
    flex-basis: 100%;
    margin-left: 0;
  }
  .target-row .target-seg .seg {
    padding-inline: 0.5rem;
  }
}

/* ---- The popups on a phone, upright or sideways: the popup is the only vertical scroller, the tables still scroll sideways ---- */
@media (max-width: 575.98px), (max-height: 575.98px) {
  .pillar-dialog {
    padding: 1rem;
    overflow-y: auto;
  }
  .pillar-dialog .dialog-body {
    max-height: none;
  }
}

/* ---- Phones: a long label wraps inside its 36px button instead of running out of its card ---- */
@media (max-width: 575.98px) {
  .toolbar .btn-nav,
  .toolbar .btn-ghost,
  .email-confirm .btn-nav {
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }
}
/* ---- The e-mail code keeps room for six digits, and its button goes under it when the row is too narrow
   (the row already wraps, see .email-confirm .inline-fields) ---- */
.email-confirm .code-input {
  flex: 0 0 9rem;
}
/* ---- Latest changes: "First version" wraps in its column ---- */
.recent-changes .muted {
  white-space: normal;
}
/* ---- Chart chips keep their 28px pill: a long name ends with an ellipsis ---- */
.chart-chip {
  max-width: 100%;
}
.chart-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the comparison's pillar table: pillar names need no 18rem, side names may wrap (last in the file: the second rule ties .data-table th) */
.compare-table:not(.compare-elements) td:first-child { min-width: 0; }
.compare-table th { white-space: normal; }
/* on a phone each pillar of the comparison is a block: its name, then every side's score under that side's name */
@media (max-width: 575.98px) {
  .compare-table:not(.compare-elements) thead { display: none; }
  .compare-table:not(.compare-elements) tbody tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); column-gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--slate-200); }
  .compare-table:not(.compare-elements) tbody td { border: 0; padding: 0.2rem 0; text-align: left; }
  .compare-table:not(.compare-elements) tbody td:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--slate-700); }
  .compare-table:not(.compare-elements) tbody td.num::before { content: attr(data-label); display: block; box-sizing: content-box; min-height: 2.8em; margin-bottom: 0.15rem; padding-top: 0.25rem; border-top: 3px solid var(--side, var(--slate-200)); font-size: var(--text-micro); font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }   /* two lines of room: the values of a pillar line up */
}


/* ==== The roadmap and its Now column (16 November 2026) ====
 * Tiers in cetome blue, darkest first. A conflict, a step set to start before what it waits on ends, in a warning
 * orange (5.2:1 on white). Done in green, which ProSecCo allows for success. Hairlines, no shadows.
 */
:root {
  --rm-p1: #0044aa;
  --rm-p2: #3b7be0;
  --rm-p3: #9dbcf0;
  --rm-warn: #c2410c;
  --rm-done: #15803d;
  --rm-custom: #7c3aed;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-md);
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.7;
  white-space: nowrap;
}
.tier-badge.tier-p1 { background: var(--rm-p1); color: var(--white); }
.tier-badge.tier-p2 { background: #dbe7fb; color: #0b3c8c; }
.tier-badge.tier-p3 { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--slate-300); }

/* ---- The priorities popup: cards grouped by pillar ---- */
.now-groups {
  display: grid;
  gap: 1.25rem;
}
.now-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.now-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: var(--text-micro);
  letter-spacing: 0;
}
.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
}
.now-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--rm-p1);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.now-card.is-prerequisite {
  border-left-color: var(--rm-p2);
}
.now-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.now-card-title {
  font-size: var(--text-small);
  line-height: 1.35;
  color: var(--slate-900);
}
.now-card-pillar {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.now-card-step {
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--brand-blue-accent);
}
.now-card-statement {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--slate-700);
}
.now-card-waits,
.now-card-why {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: var(--text-label);
  line-height: 1.45;
  color: var(--slate-600);
}
.now-card-waits .material-icons {
  font-size: 16px;
  line-height: 1.3;
  color: var(--slate-500);
}
.now-card-why {
  font-style: italic;
}
.now-teaser {
  grid-template-columns: 1fr;
}
.now-invite {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: #eef4fe;
  color: var(--slate-800);
  font-size: var(--text-small);
}
.now-invite p {
  margin: 0;
}
.now-invite .material-icons {
  color: var(--brand-blue);
}
.priorities-dialog .toolbar {
  align-items: center;
  flex-wrap: wrap;
}
.now-save-note {
  margin: 0 auto 0 0;
}

/* ---- The roadmap page ---- */
.rm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.rm-head h1 {
  margin-bottom: 0.25rem;
}
.rm-sub {
  margin: 0;
  font-size: var(--text-small);
  color: var(--slate-600);
}
.rm-help {
  max-width: 60rem;
}
.rm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0.5rem;
}
.rm-views .tabs {
  margin: 0;
}
.rm-views .tab .material-icons {
  font-size: 18px;
  vertical-align: -4px;
}
.rm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rm-state {
  flex-basis: 100%;
  min-height: 1.2em;
  text-align: right;
}
.rm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--text-label);
  color: var(--slate-600);
}
.rm-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.rm-key {
  display: inline-block;
  width: 1.4rem;
  height: 0.7rem;
  border-radius: 3px;
}
.rm-key-conflict { border: 2px solid var(--rm-warn); background: #fff7ed; }
.rm-key-done { background: var(--rm-done); }
.rm-key-custom { border: 2px dashed var(--rm-custom); background: #f5f3ff; }
.rm-stale ul {
  margin: 0.25rem 0 0.5rem 1.2rem;
}
.rm-stale p {
  margin: 0.25rem 0;
}
.rm-general {
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-small);
}
.rm-general summary {
  cursor: pointer;
  font-weight: 700;
}
.rm-general ul {
  margin: 0.5rem 0 0 1.2rem;
}
.rm-choose {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

/* the board: a row per pillar, the columns Now, Next, Later */
.rm-board {
  display: grid;
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rm-board-head,
.rm-lane {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) repeat(3, minmax(0, 1fr));
}
.rm-board-head {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.rm-board-corner,
.rm-col-head {
  padding: 0.6rem 0.75rem;
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.rm-col-head {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--slate-200);
}
.rm-col-head strong {
  color: var(--slate-900);
}
.rm-col-head small {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--slate-500);
}
.rm-lane + .rm-lane {
  border-top: 1px solid var(--slate-200);
}
.rm-lane-label {
  padding: 0.75rem;
  background: var(--slate-50);
}
.rm-lane-title {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 800;
}
.rm-lane-count {
  font-size: var(--text-label);
  color: var(--slate-500);
}
.rm-lane-actions {
  margin-top: 0.4rem;
  font-size: var(--text-label);
}
.rm-lane-actions summary {
  cursor: pointer;
  color: var(--brand-blue-accent);
}
.rm-lane-actions ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
}
.rm-col {
  padding: 0.5rem;
  border-left: 1px solid var(--slate-200);
  min-height: 4rem;
}
.rm-col.is-over {
  background: #e8f0fd;
  outline: 2px dashed var(--brand-blue-light);
  outline-offset: -4px;
}
.rm-col-list {
  display: grid;
  gap: 0.45rem;
}
.rm-empty {
  color: var(--slate-400);
  font-size: var(--text-label);
  padding: 0.25rem;
}
.rm-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--rm-p1);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--slate-800);
  text-align: left;
  font: inherit;
  cursor: grab;
}
.rm-card:hover {
  border-color: var(--slate-300);
  border-left-color: inherit;
}
.rm-card.tier-p1 { border-left-color: var(--rm-p1); }
.rm-card.tier-p2 { border-left-color: var(--rm-p2); }
.rm-card.tier-p3 { border-left-color: var(--rm-p3); }
.rm-card.is-custom { border-left: 4px dashed var(--rm-custom); }
.rm-card.is-done { opacity: 0.75; border-left-color: var(--rm-done); }
.rm-card.is-done .rm-card-title { text-decoration: line-through; }
.rm-card.is-conflict { border-color: var(--rm-warn); }
.rm-card.is-dragging { opacity: 0.5; }
.rm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.rm-card-title {
  font-size: var(--text-label);
  line-height: 1.35;
  color: var(--slate-900);
}
.rm-card-step {
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--brand-blue-accent);
  line-height: 1.35;
}
.rm-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 12px;
  color: var(--slate-500);
}
.rm-flag {
  font-size: 16px;
  color: var(--slate-500);
}
.rm-flag.ok { color: var(--rm-done); }
.rm-flag.warn { color: var(--rm-warn); }

/* the timeline */
.rm-gantt-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.rm-gantt {
  display: block;
  font-family: var(--font-sans);
}
.rm-gantt text { font-size: 12px; fill: var(--slate-700); }
.rm-gantt .rm-scale { fill: var(--slate-500); font-size: 11px; }
.rm-gantt .rm-scale-phase { fill: var(--slate-900); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rm-gantt .rm-scale-beyond { fill: var(--slate-600); font-size: 11px; font-weight: 700; }
.rm-month { stroke: var(--slate-200); stroke-width: 1; }
.rm-phase-line { stroke: var(--slate-400); stroke-width: 1; stroke-dasharray: 4 3; }
.rm-beyond { fill: url(#rm-hatch); opacity: 0.6; }
.rm-hatch-line { stroke: var(--slate-300); stroke-width: 2; }
.rm-lane-band { fill: var(--slate-50); }
.rm-gantt .rm-lane-name,
.rm-map .rm-lane-name { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--slate-600); }
.rm-row-line { stroke: var(--slate-100); }
.rm-gantt .rm-row-name.is-custom { fill: var(--rm-custom); font-style: italic; }
.rm-gantt .rm-row-empty { fill: var(--slate-400); font-style: italic; }
.rm-arrow { fill: none; stroke: var(--slate-500); stroke-width: 1.3; }
.rm-arrow.is-done { stroke: var(--slate-300); }
.rm-arrow.warn { stroke: var(--rm-warn); stroke-width: 2; stroke-dasharray: 5 3; }
.rm-arrowhead { fill: var(--slate-500); }
.rm-arrowhead.warn { fill: var(--rm-warn); }
.rm-seg { cursor: grab; touch-action: none; outline: none; }
.rm-seg.is-moving, .rm-seg.is-resizing { cursor: grabbing; }
.rm-seg .rm-bar { fill: var(--rm-p1); stroke: none; }
.rm-seg.tier-p2 .rm-bar { fill: var(--rm-p2); }
.rm-seg.tier-p3 .rm-bar { fill: var(--rm-p3); }
.rm-seg.is-custom .rm-bar { fill: #ede9fe; stroke: var(--rm-custom); stroke-width: 1.5; stroke-dasharray: 4 2; }
.rm-seg.is-done .rm-bar { fill: var(--rm-done); }
.rm-seg.is-conflict .rm-bar { stroke: var(--rm-warn); stroke-width: 3; }
.rm-seg .rm-bar-beyond { fill: url(#rm-hatch); pointer-events: none; }
.rm-seg .rm-overflow { fill: var(--slate-700); }
.rm-seg .rm-seg-label { fill: var(--white); font-size: 10px; font-weight: 800; pointer-events: none; }
.rm-seg.tier-p3 .rm-seg-label { fill: var(--slate-900); }
.rm-seg .rm-handle { fill: transparent; cursor: ew-resize; }
.rm-seg:hover .rm-handle { fill: rgba(255, 255, 255, 0.45); }
.rm-seg:focus-visible .rm-bar,
.rm-seg:focus .rm-bar { stroke: var(--brand-dark); stroke-width: 3; }

/* the details of a step: what it is, then the member's own changes */
.rm-dialog {
  width: min(48rem, calc(100vw - 2rem));
}
.rm-dialog .dialog-body {
  max-height: 45vh;
  overflow: auto;
}
.rm-dialog:not(.is-custom) .rm-only-custom,
.rm-dialog.is-custom .rm-only-step {
  display: none;
}
.rm-dialog.is-custom .dialog-body:empty {
  display: none;
}
.rm-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  font-size: var(--text-small);
}
.rm-facts dt {
  font-weight: 700;
  color: var(--slate-600);
}
.rm-facts dd {
  margin: 0;
}
.rm-detail-block {
  margin-bottom: 0.75rem;
}
.rm-detail-label {
  margin: 0 0 0.25rem;
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.rm-statement {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
}
.rm-detail-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--text-small);
}
.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-blue-accent);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.rm-edit fieldset {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--slate-200);
}
.rm-edit legend {
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
}
.rm-edit-grid,
.rm-dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem 1rem;
}
.rm-edit-grid .field-wide,
.rm-dep-grid .field-wide {
  grid-column: 1 / -1;
}
.rm-dep-grid .field-narrow {
  max-width: 14rem;
}
.rm-edit label,
.rm-dep-grid label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: var(--text-label);
  font-weight: 700;
}
.rm-stepper {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}
.rm-stepper .control {
  min-width: 0;
  text-align: center;
}
.rm-stepper .btn-icon {
  padding: 0 0.4rem;
}
.rm-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rm-check label {
  margin: 0;
}
.rm-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand-blue);
}
.rm-edit .toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.rm-edit .btn-link-danger {
  margin-right: auto;
}

/* ---- Admin > Roadmap ---- */
.rm-dep-table td {
  vertical-align: top;
}
.rm-editing td {
  background: var(--slate-50);
}
.rm-add-block {
  margin-top: 1rem;
}
.rm-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.rm-sizes legend {
  width: 100%;
  font-weight: 700;
  font-size: var(--text-small);
}
.rm-sizes .control {
  width: 6rem;
}
.control-sm {
  padding: 0.2rem 0.4rem;
  font-size: var(--text-label);
  min-width: 4.5rem;
}
.rm-effort-table th[scope="row"] {
  min-width: 11rem;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  color: var(--slate-800);
  border-bottom: 1px solid var(--slate-200);
}
.rm-dep-table td:nth-child(2),
.rm-dep-table td:nth-child(4) {
  white-space: nowrap;
}
.rm-dep-table .actions {
  white-space: nowrap;
}
.rm-effort-table input.control-sm {
  min-width: 14rem;
}
.rm-seed-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}
.rm-map-wrap {
  overflow: auto;
  max-height: 75vh;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}
.rm-map {
  display: block;
  font-family: var(--font-sans);
}
.rm-map-lane { fill: var(--white); }
.rm-map-lane.odd { fill: var(--slate-50); }
.rm-map-box rect { fill: var(--white); stroke: var(--slate-300); stroke-width: 1; }
.rm-map-box { outline: none; cursor: default; }
.rm-map-box.is-lit rect,
.rm-map-box:focus rect { stroke: var(--brand-blue); stroke-width: 2; fill: #eef4fe; }
.rm-map .rm-map-name { font-size: 11px; fill: var(--slate-800); }
.rm-map-arrow { fill: none; stroke: var(--slate-400); stroke-width: 1.2; }
.rm-map-arrow.is-lit { stroke: var(--brand-blue); stroke-width: 2.2; }
.rm-map .rm-map-levels { font-size: 9px; fill: var(--slate-500); }
.rm-map .rm-map-levels.is-lit { fill: var(--brand-blue); font-weight: 700; }

/* ---- Phones: the board stacks, each column says its name ---- */
@media (max-width: 767.98px) {
  .rm-board-head {
    display: none;
  }
  .rm-lane {
    grid-template-columns: 1fr;
  }
  .rm-col {
    border-left: 0;
    border-top: 1px solid var(--slate-100);
  }
  .rm-col::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    font-size: var(--text-micro);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-600);
  }
  .rm-actions {
    width: 100%;
  }
  .rm-state {
    text-align: left;
  }
  .rm-facts {
    grid-template-columns: 1fr;
  }
  .rm-dialog {
    padding: 1rem;
  }
  .now-list {
    grid-template-columns: 1fr;
  }
}
/* the steps a step waits on or is needed by: one per line, the name a button that opens it, its weeks below */
.rm-links {
  list-style: none;
  padding-left: 0;
}
.rm-links li {
  margin-bottom: 0.4rem;
}
.rm-links .btn-link {
  display: block;
  line-height: 1.45;
}
.rm-link-when {
  display: block;
  font-size: var(--text-label);
  color: var(--slate-500);
}

/* ---- The consolidated roadmap: workstreams (a pillar in one period) and their actions ---- */
/* the priorities popup: a card per pillar, its actions written as what to do */
.now-stream {
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--rm-p1);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.now-stream + .now-stream {
  margin-top: 0;
}
.now-stream-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 1rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  font-size: var(--text-small);
}
.now-stream-name {
  font-weight: 800;
  color: var(--slate-900);
}
.now-stream-count {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--slate-500);
}
.now-actions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.now-actions.now-teaser {
  display: grid;
  gap: 0.6rem;
}
.now-teaser .now-action {
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--rm-p1);
  border-radius: var(--radius-lg);
}
.now-action {
  padding: 0.7rem 1rem;
}
.now-action + .now-action {
  border-top: 1px solid var(--slate-100);
}
.now-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.now-action-text {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.45;
  color: var(--slate-900);
}
.now-action-what {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--brand-blue-accent);
}

/* the board: a card per workstream with its actions as a checklist */
.rm-stream {
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--rm-p1);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: grab;
}
.rm-stream.tier-p2 { border-left-color: var(--rm-p2); }
.rm-stream.tier-p3 { border-left-color: var(--rm-p3); }
.rm-stream.is-done { border-left-color: var(--rm-done); }
.rm-stream.is-conflict { border-color: var(--rm-warn); }
.rm-stream.is-dragging { opacity: 0.5; }
.rm-stream-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.rm-stream-head:hover {
  background: #eef4fe;
}
.rm-stream-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--text-label);
  color: var(--slate-900);
}
.rm-stream-waits {
  margin: 0;
  padding: 0.35rem 0.6rem 0.5rem;
  font-size: 12px;
  color: var(--slate-600);
}
.rm-checklist {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.4rem;
}
.rm-check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0.2rem;
  align-items: start;
}
.rm-check-item + .rm-check-item {
  border-top: 1px solid var(--slate-100);
}
.rm-check-item .rm-checkbox {
  margin-top: 0.2rem;
}
.rm-check-body {
  min-width: 0;
}
.rm-check-text {
  display: block;
  color: var(--slate-900);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.rm-check-text:hover,
.rm-check-text:focus-visible {
  text-decoration: underline;
  color: var(--brand-blue-accent);
}
.rm-check-item.is-done .rm-check-text {
  text-decoration: line-through;
  color: var(--slate-500);
}
.rm-check-item.is-conflict .rm-check-what {
  color: var(--rm-warn);
}
.rm-check-what,
.rm-check-waits,
.rm-check-note {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate-500);
}
.rm-check-what {
  color: var(--brand-blue-accent);
  font-weight: 600;
}
.rm-check-note {
  font-style: italic;
}
.rm-checklist-wide .rm-check-text {
  font-size: var(--text-small);
}
.rm-checklist-wide .rm-check-what,
.rm-checklist-wide .rm-check-waits,
.rm-checklist-wide .rm-check-note {
  font-size: var(--text-label);
}
.rm-quoted {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  font-size: var(--text-label);
  color: var(--slate-700);
  border-left: 2px solid var(--slate-200);
  list-style: none;
}
.rm-quoted li::before {
  content: "ENISA · ";
  font-weight: 700;
  color: var(--slate-500);
}

/* the timeline: a row per pillar, a bar per workstream, a pillar opened on its elements */
.rm-seg.rm-ws .rm-bar { fill: var(--rm-p1); }
.rm-seg.rm-ws.tier-p2 .rm-bar { fill: var(--rm-p2); }
.rm-seg.rm-ws.tier-p3 .rm-bar { fill: var(--rm-p3); }
.rm-seg.rm-ws.is-done .rm-bar { fill: var(--rm-done); }
.rm-gantt .rm-ws-label { fill: var(--white); font-size: 12px; font-weight: 700; pointer-events: none; }
.rm-gantt .rm-ws.tier-p3 .rm-ws-label { fill: var(--slate-900); }
.rm-pillar-toggle { cursor: pointer; outline: none; }
.rm-toggle-hit { fill: transparent; }
.rm-pillar-toggle:hover .rm-toggle-hit,
.rm-pillar-toggle:focus .rm-toggle-hit { fill: #e8f0fd; stroke: var(--brand-blue-light); }
.rm-gantt .rm-toggle-icon { fill: var(--brand-blue); font-size: 12px; }
.rm-gantt .rm-pillar-name { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--slate-800); }
.rm-arrow.is-stream { stroke: var(--slate-600); stroke-width: 1.8; }
.rm-arrow.is-stream.warn { stroke: var(--rm-warn); }
.rm-ws-dialog .dialog-body {
  max-height: 55vh;
}
/* the periods of one pillar may overlap: a white edge keeps each bar apart */
.rm-seg.rm-ws .rm-bar { stroke: var(--white); stroke-width: 1.5; }
.rm-seg.rm-ws.is-conflict .rm-bar { stroke: var(--rm-warn); stroke-width: 3; }
.rm-gantt .rm-toggle-icon { font-size: 14px; }
.rm-quoted li {
  margin: 0.15rem 0;
  font-size: var(--text-label);
  line-height: 1.45;
}
/* the board: a column per period (months 1 to 3, 4 to 6, 7 to 9, 10 to 12, and after month 12 when it holds something) */
.rm-board-head,
.rm-lane {
  grid-template-columns: minmax(8rem, 10rem) repeat(var(--rm-cols, 4), minmax(0, 1fr));
}
.rm-col-m1-3 {
  background: #f7faff;
}
@media (max-width: 767.98px) {
  .rm-lane {
    grid-template-columns: 1fr;
  }
}
