/*
 * BÂTIR 360 — couche visuelle commune ESTIM · PLANIF · RÉALISER
 * Cette feuille complète styles.css sans modifier les composants historiques.
 */

:root {
  --suite-navy-950: #061326;
  --suite-navy-900: #081a2f;
  --suite-navy-850: #0b2038;
  --suite-navy-800: #102b49;
  --suite-navy-700: #173b60;
  --suite-line: #254362;
  --suite-line-strong: #39658e;
  --suite-blue: #69afff;
  --suite-cyan: #62d9ed;
  --suite-cyan-soft: #dff8fb;
  --suite-gold: #e2c888;
  --suite-gold-strong: #f2bd2e;
  --suite-green: #84dec1;
  --suite-coral: #ff8e83;
  --suite-violet: #a98de8;
  --suite-ink: #e3ebf5;
  --suite-muted: #9db0c6;
  --suite-grid: rgb(105 175 255 / 0.08);
  --suite-shadow: 0 18px 48px rgb(6 19 38 / 0.18);
  --suite-radius: 14px;
}

/* Coque et identité ------------------------------------------------------- */

.app-shell {
  background:
    radial-gradient(circle at 92% 0, rgb(98 217 237 / 0.08), transparent 24rem),
    var(--canvas);
}

.app-shell > .sidebar {
  background:
    linear-gradient(var(--suite-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--suite-grid) 1px, transparent 1px),
    radial-gradient(circle at 20% 7%, rgb(98 217 237 / 0.16), transparent 28%),
    linear-gradient(168deg, var(--suite-navy-800), var(--suite-navy-950) 68%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border-right-color: rgb(105 175 255 / 0.18);
}

.app-shell .sidebar-brand {
  min-height: 94px;
  border-bottom-color: rgb(105 175 255 / 0.18);
}

.app-shell .sidebar-brand .brand-mark {
  border-color: rgb(98 217 237 / 0.34);
  border-radius: 9px;
  background: linear-gradient(145deg, #1a5280, #0c2e4d);
  color: var(--suite-cyan);
  box-shadow: 0 0 0 1px rgb(6 19 38 / 0.35), 0 10px 24px rgb(0 0 0 / 0.3);
}

.app-shell .sidebar-brand .brand-mark::after {
  border-color: var(--suite-gold);
}

.app-shell .sidebar-brand strong {
  letter-spacing: 0.12em;
}

.app-shell .sidebar-brand small {
  color: var(--suite-blue);
}

.app-shell .sidebar-nav .nav-item.is-active,
.app-shell .sidebar-nav .nav-item[aria-current="page"] {
  border-color: rgb(98 217 237 / 0.28);
  background: linear-gradient(90deg, rgb(98 217 237 / 0.2), rgb(105 175 255 / 0.06));
  box-shadow: inset 3px 0 var(--suite-cyan);
}

.app-shell .sidebar-footer {
  display: grid;
  gap: 13px;
  border-top-color: rgb(105 175 255 / 0.16);
}

.app-shell .sidebar-region-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-shell .sidebar-region-line b {
  overflow: hidden;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.65rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .sidebar-signature {
  display: grid;
  justify-items: start;
  min-width: 0;
  gap: 1px;
  padding-left: 17px;
}

.app-shell .sidebar-signature .signature-label {
  margin-top: 5px;
  color: var(--suite-gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.app-shell .sidebar-signature .signature-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.app-shell .sidebar-signature .signature-role,
.app-shell .sidebar-signature .signature-discipline {
  color: rgb(255 255 255 / 0.52);
  font-size: 0.61rem;
  line-height: 1.4;
}

.app-shell .sidebar-signature .signature-discipline {
  max-width: 20ch;
}

.app-shell > .topbar {
  min-height: 74px;
  border-bottom-color: rgb(105 175 255 / 0.2);
  background:
    radial-gradient(circle at 68% -90%, rgb(98 217 237 / 0.18), transparent 42%),
    rgb(6 19 38 / 0.97);
  color: var(--suite-ink);
  box-shadow: 0 10px 30px rgb(6 19 38 / 0.16);
  backdrop-filter: blur(18px) saturate(140%);
}

.app-shell .topbar-title h1 {
  color: #fff;
}

.app-shell .topbar-kicker {
  color: var(--suite-blue);
}

.app-shell .topbar .icon-button,
.app-shell .topbar .avatar-button {
  border: 1px solid rgb(105 175 255 / 0.28);
  background: var(--suite-navy-800);
  color: #fff;
}

.app-shell .topbar .avatar-button {
  color: var(--suite-cyan);
}

.app-shell .save-status {
  color: var(--suite-muted);
}

.app-shell .save-status span {
  color: var(--suite-green);
}

/* Navigation entre les trois espaces ------------------------------------ */

.app-shell .suite-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgb(105 175 255 / 0.25);
  border-radius: 9px;
  background: rgb(4 15 29 / 0.72);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
}

.app-shell .suite-switch button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--suite-muted);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-shell .suite-switch button > span {
  color: var(--suite-gold);
  font: 750 0.54rem/1 var(--font-mono);
  letter-spacing: 0.03em;
}

.app-shell .suite-switch button:hover {
  border-color: rgb(105 175 255 / 0.28);
  background: rgb(105 175 255 / 0.1);
  color: #fff;
}

.app-shell .suite-switch button.is-active,
.app-shell .suite-switch button[aria-pressed="true"] {
  border-color: rgb(98 217 237 / 0.35);
  background: linear-gradient(135deg, #234f77, #173b60);
  color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.24), inset 0 -2px var(--suite-cyan);
}

.app-shell .mode-switch {
  border-color: rgb(105 175 255 / 0.22);
  background: rgb(4 15 29 / 0.6);
}

.app-shell .mode-switch button {
  color: var(--suite-muted);
}

.app-shell .mode-switch button.is-active {
  background: var(--suite-navy-700);
  color: #fff;
  box-shadow: inset 0 -2px var(--suite-gold);
}

/* Barre de contexte du projet commun ------------------------------------ */

.app-shell .suite-context-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(250px, 1fr) minmax(220px, 0.8fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background:
    linear-gradient(90deg, rgb(105 175 255 / 0.055) 1px, transparent 1px),
    linear-gradient(145deg, var(--suite-navy-850), var(--suite-navy-900));
  background-size: 34px 100%, auto;
  color: var(--suite-ink);
  box-shadow: var(--shadow-sm);
}

.app-shell .suite-project-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.app-shell .suite-project-identity:hover {
  background: rgb(98 217 237 / 0.07);
}

.app-shell .suite-project-identity > span:last-child,
.app-shell .suite-context-meta > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-shell .suite-context-bar small,
.app-shell .profile-picker > span {
  color: var(--suite-muted);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell .suite-context-bar strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .sync-indicator {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--suite-green);
  box-shadow: 0 0 0 5px rgb(132 222 193 / 0.12), 0 0 14px rgb(132 222 193 / 0.45);
}

.app-shell .suite-context-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-inline: 1px solid var(--suite-line);
}

.app-shell .suite-context-meta > span {
  justify-content: center;
  padding: 13px 16px;
}

.app-shell .suite-context-meta > span + span {
  border-left: 1px solid var(--suite-line);
}

.app-shell .profile-picker {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
}

.app-shell .profile-picker select {
  min-height: 36px;
  padding: 6px 34px 6px 9px;
  border-color: var(--suite-line-strong);
  background-color: var(--suite-navy-900);
  color: #fff;
  font-size: 0.7rem;
}

/* Carte du profil pédagogique ------------------------------------------- */

.app-shell .profile-context-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(430px, 1.12fr);
  gap: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  border-color: rgb(105 175 255 / 0.3);
  background:
    radial-gradient(circle at 92% 12%, rgb(98 217 237 / 0.2), transparent 17rem),
    linear-gradient(135deg, var(--suite-navy-800), var(--suite-navy-950));
  color: var(--suite-ink);
  box-shadow: var(--suite-shadow);
}

.app-shell .profile-context-card::after {
  position: absolute;
  right: -46px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border: 17px solid rgb(226 200 136 / 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.app-shell .profile-context-head {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.app-shell .profile-context-head > div {
  min-width: 0;
}

.app-shell .profile-context-head h3 {
  margin: 4px 0 7px;
  color: #fff;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.app-shell .profile-context-head p {
  max-width: 68ch;
  margin: 0;
  color: #b9cce0;
  font-size: 0.76rem;
}

.app-shell .profile-autonomy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgb(226 200 136 / 0.35);
  border-radius: 999px;
  background: rgb(226 200 136 / 0.1);
  color: var(--suite-gold);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.app-shell .profile-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
  align-items: center;
  align-self: center;
  min-width: 0;
  gap: 6px;
}

.app-shell .profile-track > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgb(105 175 255 / 0.3);
  border-radius: 999px;
  background: rgb(105 175 255 / 0.08);
  color: #dcecff;
  font-size: 0.61rem;
  font-weight: 750;
  white-space: nowrap;
}

.app-shell .profile-track > span.is-current {
  border-color: rgb(98 217 237 / 0.55);
  background: rgb(98 217 237 / 0.15);
  color: #fff;
}

.app-shell .profile-track > span b {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--suite-navy-700);
  color: var(--suite-cyan);
  font: 800 0.54rem/1 var(--font-mono);
}

.app-shell .profile-track > i {
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, var(--suite-blue), rgb(105 175 255 / 0.14));
}

.app-shell .profile-context-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.app-shell .profile-context-grid > div {
  min-width: 0;
}

.app-shell .profile-context-grid > div > small {
  display: block;
  margin-bottom: 7px;
  color: var(--suite-muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell .profile-focus-list,
.app-shell .profile-deliverables {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
}

.app-shell .profile-focus-list > *,
.app-shell .profile-deliverables > * {
  position: relative;
  min-width: 0;
  padding: 9px 10px 9px 24px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.055);
  color: #cfdeed;
  font-size: 0.64rem;
  line-height: 1.4;
}

.app-shell .profile-focus-list > *::before,
.app-shell .profile-deliverables > *::before {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--suite-cyan);
  box-shadow: 0 0 0 3px rgb(98 217 237 / 0.12);
  content: "";
}

.app-shell .profile-deliverables > *::before {
  border-radius: 1px;
  background: var(--suite-gold);
  transform: rotate(45deg);
}

/* Projet commun ESTIM–PLANIF -------------------------------------------- */

.app-shell .sync-state-badge,
.app-shell .live-chip,
.app-shell .schema-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-shell .sync-state-badge i,
.app-shell .live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgb(44 149 103 / 0.12);
}

.app-shell .schema-chip {
  border-color: rgb(98 217 237 / 0.3);
  background: var(--suite-cyan-soft);
  color: var(--cyan-700);
}

.app-shell .bridge-flow {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.app-shell .bridge-flow > i {
  color: var(--suite-blue);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.app-shell .bridge-flow > i:last-of-type {
  color: var(--suite-gold);
}

.app-shell .bridge-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  gap: 3px;
  padding: 16px 16px 15px 48px;
  border: 1px solid var(--suite-line);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--suite-navy-800), var(--suite-navy-900));
  color: var(--suite-ink);
  text-align: left;
  box-shadow: 0 8px 22px rgb(6 19 38 / 0.12);
}

button.bridge-step {
  cursor: pointer;
}

button.bridge-step:hover {
  border-color: var(--suite-blue);
  background: linear-gradient(145deg, #173b60, #0c2845);
  transform: translateY(-1px);
}

.app-shell .bridge-step.is-active {
  border-color: var(--suite-cyan);
  box-shadow: inset 0 -3px var(--suite-cyan), 0 10px 26px rgb(6 19 38 / 0.18);
}

.app-shell .bridge-step > span {
  position: absolute;
  top: 15px;
  left: 14px;
  color: var(--suite-gold);
  font: 800 0.62rem/1 var(--font-mono);
}

.app-shell .bridge-step strong {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.app-shell .bridge-step small {
  overflow: hidden;
  color: var(--suite-muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .bridge-step-control {
  border-color: rgb(226 200 136 / 0.45);
  background: linear-gradient(145deg, #302d26, #172435);
}

.app-shell .bridge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: start;
  gap: 18px;
}

.app-shell .bridge-register-card {
  min-width: 0;
  border-top: 4px solid var(--suite-cyan);
}

.app-shell .bridge-actions-card {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  border-top: 4px solid var(--suite-gold);
}

.app-shell .bridge-actions-card h3 {
  margin: 4px 0 8px;
}

.app-shell .bridge-actions-card p {
  margin: 0 0 17px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.app-shell .bridge-actions-card .button + .button {
  margin-top: 8px;
}

.app-shell .bridge-actions-card > small {
  display: block;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.62rem;
  line-height: 1.5;
}

.app-shell .w-full {
  width: 100%;
  justify-content: center;
}

.app-shell .register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.app-shell .register-row {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--ink-050);
}

.app-shell .register-row > span,
.app-shell .register-row > small {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-shell .register-row > strong,
.app-shell .register-row > b {
  overflow: hidden;
  color: var(--ink-900);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .revision-timeline {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 3px;
  margin-top: 12px;
  scrollbar-width: thin;
}

.app-shell .revision-timeline::before {
  position: absolute;
  top: 25px;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--border);
  content: "";
}

.app-shell .revision-timeline > span {
  position: relative;
  z-index: 1;
  min-width: 112px;
  padding: 20px 9px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.62rem;
}

.app-shell .revision-timeline > b {
  position: relative;
  z-index: 2;
  display: block;
  width: 16px;
  min-width: 16px;
  height: 2px;
  align-self: center;
  padding: 0;
  border: 0;
  background: var(--suite-line-strong);
}

.app-shell .revision-timeline > span > i {
  position: absolute;
  top: 4px;
  left: 5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--suite-navy-700);
  color: #fff;
  font: 800 0.5rem/1 var(--font-mono);
}

.app-shell .revision-timeline > span.is-done > i {
  background: var(--green-500);
}

.app-shell .revision-timeline > span.is-current {
  border-color: var(--suite-blue);
  background: var(--cyan-050);
}

.app-shell .ownership-card {
  margin-top: 18px;
}

.app-shell .ownership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.app-shell .ownership-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, var(--ink-050));
}

.app-shell .ownership-grid b {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan-700);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.app-shell .ownership-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

/* PLANIF : indicateurs, Gantt et fiche d’impact -------------------------- */

.app-shell #view-planif .section-tag {
  border-color: rgb(105 175 255 / 0.32);
  background: var(--suite-navy-850);
  color: var(--suite-cyan);
}

.app-shell .planif-kpis,
.app-shell .realiser-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}

.app-shell .planif-kpi,
.app-shell .realiser-kpi {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid var(--suite-line);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--suite-navy-800), var(--suite-navy-900));
  color: var(--suite-ink);
  box-shadow: 0 9px 24px rgb(6 19 38 / 0.12);
}

.app-shell .planif-kpi,
.app-shell .realiser-kpi {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.app-shell .planif-kpi > span,
.app-shell .realiser-kpi > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(98 217 237 / 0.22);
  border-radius: 9px;
  background: rgb(98 217 237 / 0.08);
  color: var(--suite-cyan);
  font-size: 1rem;
  line-height: 1;
}

.app-shell .planif-kpi > div,
.app-shell .realiser-kpi > div {
  min-width: 0;
}

.app-shell .planif-kpi::after,
.app-shell .realiser-kpi::after {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 66px;
  height: 66px;
  border: 10px solid rgb(98 217 237 / 0.08);
  border-radius: 50%;
  content: "";
}

.app-shell .planif-kpi > div > span,
.app-shell .realiser-kpi > div > span {
  display: block;
  color: var(--suite-muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .planif-kpi strong,
.app-shell .realiser-kpi strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .planif-kpi small,
.app-shell .realiser-kpi small {
  display: block;
  margin-top: 4px;
  color: #9fb7cf;
  font-size: 0.58rem;
}

.app-shell .planif-kpi p,
.app-shell .realiser-kpi p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #9fb7cf;
  font-size: 0.58rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .planif-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: start;
  gap: 15px;
}

.app-shell .gantt-card,
.app-shell .impact-drawer {
  border-color: var(--suite-line);
  background: var(--suite-navy-850);
  color: var(--suite-ink);
  box-shadow: var(--suite-shadow);
}

.app-shell .gantt-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.app-shell .gantt-toolbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--suite-line);
  background: linear-gradient(100deg, var(--suite-navy-800), #0d2743);
}

.app-shell .gantt-toolbar .eyebrow {
  color: var(--suite-blue);
}

.app-shell .gantt-toolbar h3 {
  margin: 2px 0 0;
  color: #fff;
}

.app-shell .gantt-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--suite-muted);
  font-size: 0.59rem;
}

.app-shell .gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.app-shell .gantt-legend i {
  display: inline-block;
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: var(--suite-blue);
}

.app-shell .gantt-legend i.is-baseline {
  height: 2px;
  background: var(--suite-gold);
}

.app-shell .gantt-legend i.is-progress {
  background: var(--suite-green);
}

.app-shell .gantt-scroll {
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #476b94 var(--suite-navy-850);
  scrollbar-width: thin;
}

.app-shell .gantt-board {
  min-width: 800px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 59px, rgb(105 175 255 / 0.07) 60px),
    var(--suite-navy-850);
}

.app-shell .gantt-scale {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: 250px minmax(540px, 1fr);
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid var(--suite-line-strong);
  background: #0d2540;
  color: #aac5df;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-shell .gantt-scale > * {
  min-width: 0;
  padding: 0 12px;
}

.app-shell .gantt-scale > div {
  position: relative;
  height: 100%;
  border-left: 1px solid var(--suite-line-strong);
}

.app-shell .gantt-scale > div i {
  position: absolute;
  top: 50%;
  color: #aac5df;
  font-style: normal;
  transform: translateY(-50%);
}

.app-shell .gantt-row {
  display: grid;
  grid-template-columns: 250px minmax(540px, 1fr);
  min-height: 48px;
  border-bottom: 1px solid #183550;
  background: rgb(11 32 56 / 0.84);
}

.app-shell .gantt-row:nth-child(odd) {
  background: rgb(13 35 61 / 0.86);
}

.app-shell .gantt-row:hover {
  background: #123455;
}

.app-shell .gantt-row.is-selected {
  background: #163e63;
  box-shadow: inset 3px 0 var(--suite-gold);
}

.app-shell .gantt-activity {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid var(--suite-line-strong);
  color: #d8e7f6;
}

.app-shell button.gantt-activity {
  width: 100%;
  border-width: 0 1px 0 0;
  border-color: var(--suite-line-strong);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.app-shell .gantt-activity strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .gantt-activity small {
  overflow: hidden;
  color: #85a2be;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .gantt-activity em {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #85a2be;
  font-size: 0.55rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .gantt-timeline {
  position: relative;
  min-height: 48px;
  overflow: hidden;
}

.app-shell .gantt-bar {
  position: absolute;
  top: 14px;
  left: var(--bar-left, 0%);
  width: max(var(--bar-width, 8%), 8px);
  height: 20px;
  overflow: hidden;
  border: 1px solid rgb(98 217 237 / 0.5);
  border-radius: 4px;
  background: linear-gradient(90deg, #3e8cae, #62c3d8);
  color: #061326;
  box-shadow: 0 3px 9px rgb(0 0 0 / 0.25);
}

.app-shell button.gantt-bar {
  padding: 0;
  cursor: pointer;
}

.app-shell .gantt-bar::after {
  position: absolute;
  inset: auto 0 1px;
  height: 2px;
  background: var(--suite-gold);
  content: "";
  opacity: 0.7;
}

.app-shell .gantt-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: rgb(4 58 54 / 0.44);
  box-shadow: inset -2px 0 var(--suite-green);
}

.app-shell .gantt-bar > span {
  position: absolute;
  z-index: 2;
  right: 4px;
  top: 50%;
  color: #061326;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.app-shell .impact-drawer {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  min-height: 280px;
  padding: 0;
  overflow: hidden;
}

.app-shell .impact-header {
  padding: 18px;
  border-bottom: 1px solid var(--suite-line);
  background: var(--suite-navy-800);
}

.app-shell .impact-header span,
.app-shell .impact-header small {
  color: var(--suite-blue);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-shell .impact-header h3 {
  margin: 5px 0;
  color: #fff;
  font: 500 1.25rem/1.22 Georgia, "Times New Roman", serif;
}

.app-shell .impact-header p {
  margin: 0;
  color: var(--suite-muted);
  font-size: 0.67rem;
}

.app-shell .impact-metrics,
.app-shell .forecast-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 15px;
}

.app-shell .impact-metrics > *,
.app-shell .forecast-metrics > * {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--suite-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
}

.app-shell .impact-metrics span,
.app-shell .forecast-metrics span {
  display: block;
  color: var(--suite-muted);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.app-shell .impact-metrics strong,
.app-shell .forecast-metrics strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .impact-links {
  display: grid;
  gap: 3px;
  margin: 0 15px 9px;
  padding: 10px 11px;
  border-left: 2px solid var(--suite-blue);
  border-radius: 0 7px 7px 0;
  background: rgb(105 175 255 / 0.07);
}

.app-shell .impact-links > * {
  padding: 0;
  color: #c9dced;
  font-size: 0.62rem;
}

.app-shell .impact-links > span {
  color: var(--suite-blue);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .impact-links > strong {
  color: #fff;
  font-size: 0.72rem;
}

.app-shell .provenance-note {
  margin: 0 15px 15px;
  padding: 10px 11px;
  border: 1px solid rgb(226 200 136 / 0.28);
  border-radius: 8px;
  background: rgb(226 200 136 / 0.075);
  color: #d8c899;
  font-size: 0.61rem;
  line-height: 1.55;
}

/* RÉALISER --------------------------------------------------------------- */

.app-shell .realiser-kpi {
  border-color: #276653;
  background: linear-gradient(145deg, #123b3b, var(--suite-navy-900));
}

.app-shell .realiser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: start;
  gap: 18px;
}

.app-shell .field-log-card,
.app-shell .forecast-card {
  min-width: 0;
}

.app-shell .forecast-card {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  overflow: hidden;
  border-color: rgb(44 149 103 / 0.28);
  background:
    radial-gradient(circle at 90% 5%, rgb(132 222 193 / 0.14), transparent 12rem),
    linear-gradient(145deg, #123b3b, var(--suite-navy-900));
  color: var(--suite-ink);
}

.app-shell .actual-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.25fr);
  align-items: center;
  gap: 16px;
  padding: 13px 2px;
  border-top: 1px solid var(--border);
}

.app-shell .actual-row:first-child {
  border-top: 0;
}

.app-shell .actual-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-shell .actual-index {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--cyan-200);
  border-radius: 8px;
  background: var(--cyan-050);
  color: var(--cyan-700);
  font: 800 0.55rem/1 var(--font-mono);
}

.app-shell .actual-head > div {
  min-width: 0;
}

.app-shell .actual-head > b {
  color: var(--green-600);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .actual-head strong {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .actual-head small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.6rem;
}

.app-shell .actual-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(105px, 0.55fr);
  align-items: end;
  gap: 8px;
}

.app-shell .actual-controls label > div {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

.app-shell .actual-controls label > div input {
  min-width: 0;
  flex: 1;
  border: 0;
}

.app-shell .actual-controls label > div b {
  padding-right: 9px;
  color: var(--text-muted);
}

.app-shell .actual-controls input[type="range"] {
  min-height: 38px;
  padding: 0;
  accent-color: var(--green-500);
}

.app-shell .actual-controls label {
  display: grid;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 700;
}

.app-shell .actual-controls input {
  min-height: 38px;
  padding: 6px 8px;
  font-size: 0.7rem;
}

.app-shell .progress-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-100);
  grid-column: 1 / -1;
}

.app-shell .progress-meter > * {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), var(--suite-green));
}

.app-shell .forecast-ring {
  --forecast-progress: 0deg;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--suite-navy-850) 0 58%, transparent 59%),
    conic-gradient(var(--suite-green) var(--forecast-progress), rgb(255 255 255 / 0.09) 0);
  box-shadow: 0 0 0 1px var(--suite-line), inset 0 0 28px rgb(0 0 0 / 0.22);
  color: #fff;
  text-align: center;
}

.app-shell .forecast-card > h3 {
  margin: 7px 0 5px;
  color: #fff;
}

.app-shell .forecast-card > p,
.app-shell .forecast-card > small {
  color: var(--suite-muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.app-shell .forecast-ring strong {
  display: block;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .forecast-ring span {
  display: block;
  color: var(--suite-muted);
  font-size: 0.57rem;
  text-transform: uppercase;
}

/* Aperçu d’import contrôlé ----------------------------------------------- */

#import-preview-dialog {
  width: min(850px, calc(100% - 30px));
}

#import-preview-dialog .import-preview-card {
  overflow: hidden;
}

#import-preview-dialog #import-preview-content {
  display: grid;
  gap: 15px;
  max-height: min(62vh, 650px);
  overflow: auto;
  padding: 20px;
  scrollbar-width: thin;
}

#import-preview-dialog .import-kind {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--cyan-200);
  border-radius: 999px;
  background: var(--cyan-050);
  color: var(--cyan-700);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#import-preview-dialog .import-kind > span {
  font-weight: 900;
}

#import-preview-dialog .import-kind > strong {
  padding-left: 7px;
  border-left: 1px solid var(--cyan-200);
  color: var(--ink-900);
  font-size: 0.61rem;
}

#import-preview-dialog .import-kind > small {
  color: var(--text-muted);
  font: 700 0.55rem/1.2 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
}

#import-preview-dialog .import-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#import-preview-dialog .import-summary-card.is-added {
  border-top: 3px solid var(--green-500);
}

#import-preview-dialog .import-summary-card.is-modified {
  border-top: 3px solid var(--suite-gold-strong);
}

#import-preview-dialog .import-summary-card.is-schedule {
  border-top: 3px solid var(--suite-blue);
}

#import-preview-dialog .import-summary-card {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--ink-050);
}

#import-preview-dialog .import-summary-card strong {
  display: block;
  color: var(--ink-900);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

#import-preview-dialog .import-summary-card span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.57rem;
  line-height: 1.35;
}

#import-preview-dialog .import-warning-list,
#import-preview-dialog .import-change-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#import-preview-dialog .import-warning-list > * {
  padding: 9px 11px;
  border-left: 3px solid var(--suite-gold-strong);
  border-radius: 0 7px 7px 0;
  background: var(--safety-100);
  color: var(--safety-700);
  font-size: 0.66rem;
}

#import-preview-dialog .import-change-list > span {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#import-preview-dialog .import-change-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.64rem;
}

#import-preview-dialog .import-change-list > div small {
  grid-column: 2;
  color: var(--text-muted);
}

#import-preview-dialog .import-safe-note,
#import-preview-dialog .provenance-note {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgb(44 149 103 / 0.24);
  border-radius: 8px;
  background: rgb(44 149 103 / 0.07);
  color: var(--green-600);
  font-size: 0.64rem;
  line-height: 1.5;
}

#import-preview-dialog .provenance-note {
  border-color: rgb(226 200 136 / 0.38);
  background: rgb(226 200 136 / 0.11);
  color: var(--safety-700);
}

/* Signature -------------------------------------------------------------- */

.app-shell .pedagogical-signature,
.app-shell .suite-signature,
.app-shell .report-signature-text,
.app-shell .report-signature {
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.app-shell .report-signature {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 0;
  width: 100%;
  margin-top: 28px;
  padding: 20px 0 0;
  text-align: right;
  break-inside: avoid;
  page-break-inside: avoid;
}

.app-shell .signature-bars {
  display: grid;
  justify-items: end;
  width: min(100%, 230px);
  gap: 5px;
  margin-bottom: 10px;
}

.app-shell .signature-bars i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--suite-cyan), var(--suite-gold-strong));
}

.app-shell .signature-bars i:nth-child(1) {
  width: 100%;
  height: 3px;
}

.app-shell .signature-bars i:nth-child(2) {
  width: 70%;
}

.app-shell .signature-bars i:nth-child(3) {
  width: 42%;
  height: 1px;
}

.app-shell .sidebar-signature .signature-bars {
  justify-items: start;
  width: 150px;
  gap: 4px;
  margin-bottom: 2px;
}

.app-shell .sidebar-signature .signature-bars i {
  background: linear-gradient(90deg, var(--suite-gold-strong), var(--suite-cyan), transparent);
}

.app-shell .report-signature .signature-copy {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.app-shell .report-signature .signature-label {
  color: var(--cyan-700);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.app-shell .report-signature .signature-name {
  color: var(--ink-900);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.app-shell .report-signature .signature-role {
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.4;
}

.app-shell .report-signature .signature-discipline {
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.app-shell .report-signature .signature-project-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font: 650 0.58rem/1.4 var(--font-mono);
}

.app-shell .pedagogical-signature::before,
.app-shell .suite-signature::before {
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  background: var(--suite-gold-strong);
  content: "";
  vertical-align: middle;
}

.app-shell .report-footer .pedagogical-signature,
.app-shell .report-footer .suite-signature,
.app-shell .report-footer .report-signature-text {
  max-width: 36ch;
  color: var(--ink-700);
  font-weight: 750;
  text-align: right;
}

/* Focus, états et petits utilitaires ------------------------------------ */

.app-shell .suite-switch button:focus-visible,
.app-shell .suite-project-identity:focus-visible,
.app-shell .profile-picker select:focus-visible,
.app-shell .bridge-step:focus-visible,
.app-shell .gantt-activity:focus-visible {
  outline: 3px solid var(--suite-gold-strong);
  outline-offset: 2px;
}

.app-shell button[disabled],
.app-shell button[aria-disabled="true"] {
  filter: saturate(0.55);
}

/* Adaptation tablette ---------------------------------------------------- */

@media (max-width: 1280px) {
  .app-shell > .topbar {
    gap: 10px;
    padding-inline: 18px;
  }

  .app-shell .suite-switch button {
    padding-inline: 8px;
  }

  .app-shell .suite-switch button > span {
    display: none;
  }

  .app-shell .save-status {
    display: none;
  }

  .app-shell .bridge-flow {
    grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr);
  }

  .app-shell .bridge-step {
    padding-left: 42px;
  }

  .app-shell .planif-workspace,
  .app-shell .realiser-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1080px) {
  .app-shell .topbar-title {
    max-width: 190px;
  }

  .app-shell .mode-switch {
    display: none;
  }

  .app-shell .suite-context-bar {
    grid-template-columns: minmax(210px, 1fr) minmax(230px, 0.9fr);
  }

  .app-shell .profile-picker {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border-top: 1px solid var(--suite-line);
  }

  .app-shell .profile-picker select {
    justify-self: end;
    width: min(100%, 320px);
  }

  .app-shell .profile-context-card {
    grid-template-columns: 1fr;
  }

  .app-shell .profile-context-head,
  .app-shell .profile-track,
  .app-shell .profile-context-grid {
    grid-column: 1;
    grid-row: auto;
  }

  .app-shell .bridge-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell .bridge-flow > i {
    display: none;
  }

  .app-shell .bridge-step {
    min-height: 112px;
  }

  .app-shell .ownership-grid,
  .app-shell .planif-kpis,
  .app-shell .realiser-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .planif-workspace,
  .app-shell .realiser-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .impact-drawer,
  .app-shell .forecast-card {
    position: static;
  }

  .app-shell .impact-drawer {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  }

  .app-shell .impact-header {
    border-right: 1px solid var(--suite-line);
    border-bottom: 0;
  }
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 750px) {
  .app-shell > .topbar {
    position: sticky;
    display: grid;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 10px 10px;
  }

  .app-shell .menu-toggle {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .app-shell .topbar-title {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }

  .app-shell .topbar-title h1 {
    font-size: 0.9rem;
  }

  .app-shell .avatar-button {
    grid-column: 3;
    grid-row: 1;
  }

  .app-shell .suite-switch {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell .suite-switch button {
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding-inline: 5px;
    font-size: 0.64rem;
  }

  .app-shell .mode-switch {
    display: grid !important;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 3px;
  }

  .app-shell .mode-switch button {
    min-width: 0;
    min-height: 38px;
    padding-inline: 4px;
    font-size: 0.65rem;
  }

  .app-shell .suite-context-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 15px;
    border-radius: 11px;
  }

  .app-shell .suite-project-identity {
    min-width: 0;
    padding: 11px 12px;
  }

  .app-shell .suite-context-meta {
    display: none;
  }

  .app-shell .profile-picker {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 8px;
    border-top: 0;
    border-left: 1px solid var(--suite-line);
  }

  .app-shell .profile-picker > span {
    display: none;
  }

  .app-shell .profile-picker select {
    width: 124px;
    min-height: 40px;
    justify-self: stretch;
    font-size: 0.61rem;
  }

  .app-shell .profile-context-card {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .app-shell .profile-context-head {
    align-items: flex-start;
  }

  .app-shell .profile-autonomy {
    max-width: 42%;
    white-space: normal;
  }

  .app-shell .profile-track {
    display: flex;
    overflow-x: auto;
    padding: 2px 0 7px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .app-shell .profile-track > span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .app-shell .profile-track > i {
    width: 16px;
    flex: 0 0 16px;
  }

  .app-shell .profile-context-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .profile-focus-list,
  .app-shell .profile-deliverables {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell .bridge-flow {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .app-shell .bridge-flow::-webkit-scrollbar {
    display: none;
  }

  .app-shell .bridge-step {
    min-width: 210px;
    min-height: 96px;
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .app-shell .bridge-flow > i {
    display: none;
  }

  .app-shell .bridge-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .bridge-actions-card {
    position: static;
  }

  .app-shell .register-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .ownership-grid,
  .app-shell .planif-kpis,
  .app-shell .realiser-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell .ownership-grid > div {
    padding: 11px;
  }

  .app-shell .planif-page-intro .toolbar,
  .app-shell #view-realiser .page-intro .toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .app-shell .gantt-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell .gantt-legend {
    justify-content: flex-start;
  }

  .app-shell .gantt-board {
    min-width: 680px;
  }

  .app-shell .gantt-scale,
  .app-shell .gantt-row {
    grid-template-columns: 210px minmax(470px, 1fr);
  }

  .app-shell .impact-drawer {
    display: block;
  }

  .app-shell .impact-header {
    border-right: 0;
    border-bottom: 1px solid var(--suite-line);
  }

  .app-shell .actual-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-shell .actual-controls {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell .actual-controls > :first-child {
    grid-column: 1 / -1;
  }

  #import-preview-dialog #import-preview-content {
    max-height: 66vh;
    padding: 14px;
  }

  #import-preview-dialog .import-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #import-preview-dialog .import-change-list > div {
    grid-template-columns: 1fr;
  }

  #import-preview-dialog .import-change-list > div small {
    grid-column: 1;
  }

  .app-shell .report-footer .pedagogical-signature,
  .app-shell .report-footer .suite-signature,
  .app-shell .report-footer .report-signature-text {
    margin-top: 10px;
    text-align: left;
  }

  .app-shell .report-signature {
    justify-items: start;
    text-align: left;
  }

  .app-shell .report-signature .signature-copy,
  .app-shell .report-signature .signature-bars {
    justify-items: start;
  }

  .app-shell .report-signature .signature-bars i {
    background: linear-gradient(90deg, var(--suite-gold-strong), var(--suite-cyan), transparent);
  }
}

@media (max-width: 430px) {
  .app-shell .suite-switch button > span {
    display: none;
  }

  .app-shell .profile-picker select {
    width: 112px;
  }

  .app-shell .profile-focus-list,
  .app-shell .profile-deliverables,
  .app-shell .ownership-grid,
  .app-shell .planif-kpis,
  .app-shell .realiser-kpis,
  .app-shell .impact-metrics,
  .app-shell .forecast-metrics {
    grid-template-columns: 1fr;
  }

  .app-shell .bridge-step {
    flex-basis: 86%;
  }

  .app-shell .actual-controls {
    grid-template-columns: 1fr;
  }

  .app-shell .actual-controls > :first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .suite-switch button,
  .app-shell .bridge-step,
  .app-shell .gantt-row,
  .app-shell .progress-meter > * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

.app-shell .module-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgb(105 175 255 / 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--suite-navy-900), var(--suite-navy-800));
  color: #fff;
}

.app-shell .module-guide > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.app-shell .module-guide > span b {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.62rem;
}

.app-shell .module-guide > span strong {
  font-size: 0.68rem;
}

.app-shell .module-guide > span small {
  color: rgb(255 255 255 / 0.52);
  font-size: 0.57rem;
}

.app-shell .module-guide > span.is-current b {
  border-color: var(--suite-cyan);
  background: var(--suite-cyan);
  color: var(--suite-navy-900);
}

.app-shell .module-guide > i {
  color: rgb(98 217 237 / 0.45);
  font-style: normal;
}

.app-shell .planif-kpis,
.app-shell .realiser-kpis {
  margin-top: 16px;
}

.app-shell .actual-phase-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ink-050);
}

.app-shell .actual-phase-nav button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-800);
  cursor: pointer;
}

.app-shell .actual-phase-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.app-shell .actual-phase-nav span {
  min-width: 0;
  text-align: center;
}

.app-shell .actual-phase-nav small,
.app-shell .actual-phase-nav strong {
  display: block;
}

.app-shell .actual-phase-nav small {
  color: var(--cyan-700);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell .actual-phase-nav strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-900);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .actual-row.is-guided {
  padding: clamp(16px, 2vw, 24px);
  border: 2px solid var(--cyan-200);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--cyan-050));
}

.app-shell .actual-proof {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--text-muted);
  font-size: 0.59rem;
}

.app-shell .actual-proof span {
  color: var(--green-600);
}

@media (max-width: 620px) {
  .app-shell .module-guide {
    gap: 5px;
    padding-inline: 10px;
  }

  .app-shell .module-guide > span {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .app-shell .module-guide > span b {
    grid-row: auto;
  }

  .app-shell .module-guide > span small,
  .app-shell .module-guide > i {
    display: none;
  }
}

@media print {
  .app-shell .suite-context-bar,
  .app-shell .suite-switch,
  .app-shell .profile-context-card,
  .app-shell .bridge-actions-card,
  .app-shell .sync-state-badge,
  .app-shell .impact-drawer,
  .app-shell .forecast-card {
    display: none !important;
  }

  .app-shell .report-footer .pedagogical-signature,
  .app-shell .report-footer .suite-signature,
  .app-shell .report-footer .report-signature-text {
    color: #000;
  }
}

/* Expérience guidée ------------------------------------------------------ */

.app-shell .mode-switch {
  display: none !important;
}

.app-shell .advanced-nav {
  margin-top: 3px;
}

.app-shell .advanced-nav summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgb(255 255 255 / 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.app-shell .advanced-nav summary::-webkit-details-marker {
  display: none;
}

.app-shell .advanced-nav summary:hover,
.app-shell .advanced-nav[open] summary {
  border-color: rgb(98 217 237 / 0.18);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
}

.app-shell .advanced-nav .nav-item {
  margin-left: 13px;
  width: calc(100% - 13px);
}

body[data-current-view="dashboard"] .suite-context-meta,
body[data-current-view="path"] .suite-context-meta {
  display: none;
}

body[data-current-view="dashboard"] .suite-context-bar,
body[data-current-view="path"] .suite-context-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-current-view="dashboard"] .house-stage-toolbar .visual-control,
body[data-current-view="dashboard"] .house-stage-caption .button {
  display: none;
}

.app-shell .dashboard-hero {
  min-height: min(650px, calc(100vh - 190px));
}

.app-shell .dashboard-hero .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-shell .dashboard-hero .hero-copy h2 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.app-shell .dashboard-hero .hero-copy > p {
  max-width: 43ch;
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.74);
  font-size: clamp(0.96rem, 1.25vw, 1.13rem);
  line-height: 1.55;
}

.app-shell .guided-ritual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 22px;
  color: rgb(255 255 255 / 0.48);
}

.app-shell .guided-ritual span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 760;
}

.app-shell .guided-ritual span b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  font-size: 0.58rem;
}

.app-shell .guided-ritual span.is-active {
  color: #fff;
}

.app-shell .guided-ritual span.is-active b {
  border-color: var(--suite-cyan);
  background: var(--suite-cyan);
  color: var(--suite-navy-900);
  box-shadow: 0 0 0 5px rgb(98 217 237 / 0.12);
}

.app-shell .guided-ritual > i {
  color: rgb(98 217 237 / 0.45);
  font-style: normal;
}

.app-shell .guided-primary-action {
  min-height: 52px;
  padding-inline: 23px;
  font-size: 0.82rem;
  box-shadow: 0 14px 30px rgb(0 176 207 / 0.24);
}

.app-shell .guided-proof-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  width: min(100%, 550px);
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.app-shell .guided-proof-line > span:first-child {
  display: grid;
  gap: 3px;
}

.app-shell .guided-proof-line small {
  color: var(--suite-gold);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell .guided-proof-line strong {
  color: #fff;
  font-size: 0.78rem;
}

.app-shell .guided-save-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.58);
  font-size: 0.62rem;
}

.app-shell .guided-save-proof i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgb(64 205 139 / 0.16);
  color: #79e2ae;
  font-style: normal;
}

.app-shell .dashboard-view-toggle {
  display: flex;
  justify-content: center;
  padding: 16px 0 2px;
}

.app-shell [data-dashboard-overview][hidden] {
  display: none !important;
}

.app-shell .guided-page-intro {
  align-items: end;
  padding-block: 8px 14px;
}

.app-shell .guided-page-intro h2 {
  margin-bottom: 2px;
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.app-shell .guided-page-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.app-shell .guided-phase-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 7px 13px;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.app-shell .guided-phase-heading strong {
  color: var(--ink-900);
}

.app-shell .path-layout {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 16px;
}

.app-shell .phase-list-panel {
  padding: 9px;
}

.app-shell .phase-list {
  gap: 3px;
}

.app-shell .phase-list-item {
  min-height: 50px;
  padding: 7px;
}

.app-shell .phase-list-item strong {
  font-size: 0.72rem;
}

.app-shell .phase-list-item small {
  color: var(--text-muted);
  font-size: 0.58rem;
}

.app-shell .lesson-panel {
  overflow: hidden;
  padding: 0;
}

.app-shell .guided-mission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--border);
}

.app-shell .guided-mission-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan-700);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-shell .guided-mission-header h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
}

.app-shell .guided-mission-header > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--cyan-200);
  border-radius: 99px;
  background: var(--cyan-050);
  color: var(--cyan-800);
  font-size: 0.62rem;
}

.app-shell .guided-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--ink-050);
}

.app-shell .guided-stepper span {
  position: relative;
  display: grid;
  grid-template-columns: 26px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.61rem;
}

.app-shell .guided-stepper span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18%;
  width: 36%;
  height: 1px;
  background: var(--border);
  content: "";
}

.app-shell .guided-stepper i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  font-style: normal;
  font-weight: 850;
}

.app-shell .guided-stepper .is-current {
  color: var(--ink-900);
}

.app-shell .guided-stepper .is-current i {
  border-color: var(--cyan-600);
  background: var(--cyan-600);
  color: #fff;
  box-shadow: 0 0 0 5px rgb(0 157 184 / 0.1);
}

.app-shell .guided-stepper .is-done i {
  border-color: var(--green-500);
  background: var(--green-500);
  color: #fff;
}

.app-shell .guided-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  min-height: 460px;
}

.app-shell .guided-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--suite-navy-900);
}

.app-shell .guided-visual > img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.app-shell .guided-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgb(5 19 36 / 0.72));
  content: "";
  pointer-events: none;
}

.app-shell .guided-visual-target {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 19%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 99px;
  background: rgb(4 22 42 / 0.76);
  color: #fff;
  font-size: 0.64rem;
  backdrop-filter: blur(8px);
}

.app-shell .guided-visual-target span {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--suite-gold-strong);
  box-shadow: 0 0 0 7px rgb(226 200 136 / 0.22);
}

.app-shell .guided-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.app-shell .guided-visual figcaption span {
  color: var(--suite-gold);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-shell .guided-visual figcaption strong {
  max-width: 34ch;
  font-size: 0.7rem;
  text-align: right;
}

.app-shell .guided-task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
}

.app-shell .guided-task-number {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink-900);
  color: #fff;
  font: 800 0.75rem/1 var(--font-mono);
}

.app-shell .guided-task-card h4 {
  max-width: 15ch;
  margin: 0 0 8px;
  color: var(--ink-900);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.04;
}

.app-shell .guided-task-card > p {
  max-width: 34ch;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.app-shell .guided-task-proof {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.58rem;
}

.app-shell .guided-task-proof span {
  color: var(--green-500);
}

.app-shell .guided-focus-grid,
.app-shell .guided-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-shell .guided-focus-grid {
  grid-template-columns: 1fr;
}

.app-shell .guided-focus-grid > div,
.app-shell .guided-resource-grid > div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ink-050);
}

.app-shell .guided-focus-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 10px;
}

.app-shell .guided-focus-grid small,
.app-shell .guided-resource-grid small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.53rem;
  font-weight: 760;
  text-transform: uppercase;
}

.app-shell .guided-focus-grid small {
  margin-bottom: 0;
}

.app-shell .guided-focus-grid strong,
.app-shell .guided-resource-grid strong {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 0.67rem;
  text-overflow: ellipsis;
}

.app-shell .guided-focus-grid strong {
  overflow: visible;
  text-align: right;
  text-overflow: clip;
}

.app-shell .guided-resource-grid > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 8px;
  background: var(--cyan-100);
  color: var(--cyan-800);
}

.app-shell .guided-measure {
  display: grid;
  gap: 10px;
}

.app-shell .guided-measure > span {
  color: var(--cyan-700);
  font: 760 0.58rem/1.3 var(--font-mono);
}

.app-shell .guided-measure > strong {
  color: var(--ink-800);
  font-size: 0.72rem;
  line-height: 1.4;
}

.app-shell .guided-measure label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 760;
}

.app-shell .guided-measure label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--cyan-300);
  border-radius: 11px;
  background: #fff;
}

.app-shell .guided-measure input {
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  color: var(--ink-900);
  font-size: 1.2rem;
  font-weight: 800;
}

.app-shell .guided-measure label b {
  display: grid;
  min-width: 58px;
  padding: 0 12px;
  place-items: center;
  border-left: 1px solid var(--border);
  background: var(--cyan-050);
  color: var(--cyan-800);
  font-size: 0.68rem;
}

.app-shell .guided-measure > small {
  color: var(--text-muted);
  font-size: 0.59rem;
  line-height: 1.45;
}

.app-shell .guided-inline-help {
  margin-top: 12px;
  font-size: 0.62rem;
}

.app-shell .guided-cost-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--ink-900);
  color: #fff;
}

.app-shell .guided-cost-total small {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.58rem;
}

.app-shell .guided-cost-total strong {
  font-size: 1rem;
}

.app-shell .guided-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.app-shell .guided-cost-grid div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.app-shell .guided-cost-grid span {
  color: var(--text-muted);
  font-size: 0.55rem;
}

.app-shell .guided-cost-grid strong {
  color: var(--ink-900);
  font-size: 0.69rem;
}

.app-shell .guided-checks {
  display: grid;
  gap: 7px;
}

.app-shell .guided-checks > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.app-shell .guided-checks > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-weight: 850;
}

.app-shell .guided-checks .is-valid > span {
  background: var(--green-100);
  color: var(--green-700);
}

.app-shell .guided-checks .is-warning > span {
  background: var(--safety-100);
  color: var(--safety-700);
}

.app-shell .guided-checks strong {
  font-size: 0.66rem;
}

.app-shell .guided-checks small {
  color: var(--text-muted);
  font-size: 0.55rem;
}

.app-shell .guided-success {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgb(44 149 103 / 0.22);
  border-radius: 12px;
  background: var(--green-050);
}

.app-shell .guided-success > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  font-size: 1.2rem;
}

.app-shell .guided-success strong,
.app-shell .guided-success small {
  display: block;
}

.app-shell .guided-success strong {
  color: var(--ink-900);
  font-size: 0.73rem;
}

.app-shell .guided-success small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.6rem;
}

.app-shell .guided-actions {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.app-shell .guided-actions .guided-help {
  justify-self: center;
  color: var(--text-muted);
  font-size: 0.64rem;
}

.app-shell .guided-actions .guided-help summary {
  color: var(--cyan-700);
  font-weight: 760;
  cursor: pointer;
}

.app-shell .guided-actions .guided-help p {
  max-width: 42ch;
  margin: 7px 0 0;
  line-height: 1.45;
}

.app-shell .guided-next {
  min-width: 150px;
}

.app-shell .guided-theory {
  margin: 0 22px 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.64rem;
}

.app-shell .guided-theory summary {
  padding: 10px 12px;
  color: var(--ink-700);
  font-weight: 760;
  cursor: pointer;
}

.app-shell .guided-theory > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 12px;
}

.app-shell .guided-theory p {
  max-width: 62ch;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .app-shell .path-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .phase-list-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

  .app-shell .phase-list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .app-shell .phase-list-item {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }

  .app-shell .guided-workspace {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .app-shell .mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-current-view="dashboard"] .suite-context-bar,
  body[data-current-view="path"] .suite-context-bar {
    display: none;
  }

  .app-shell .dashboard-hero {
    min-height: auto;
  }

  .app-shell .dashboard-hero .hero-copy h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .app-shell .guided-ritual {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .app-shell .guided-ritual > i {
    display: none;
  }

  .app-shell .guided-ritual span {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .app-shell .guided-primary-action {
    width: 100%;
  }

  .app-shell .guided-proof-line {
    grid-template-columns: 1fr;
  }

  .app-shell .guided-workspace {
    grid-template-columns: 1fr;
  }

  .app-shell .guided-visual > img {
    min-height: 38vh;
    max-height: 44vh;
  }

  .app-shell .guided-task-card {
    min-height: 340px;
  }

  .app-shell .guided-stepper {
    padding-inline: 10px;
  }

  .app-shell .guided-stepper span {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .app-shell .guided-stepper b {
    font-size: 0.53rem;
  }

  .app-shell .guided-stepper span:not(:last-child)::after {
    display: none;
  }

  .app-shell .guided-actions {
    grid-template-columns: auto 1fr;
  }

  .app-shell .guided-actions .guided-help {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .app-shell .guided-theory > div {
    display: grid;
  }
}

@media (max-width: 430px) {
  .app-shell .guided-page-intro {
    display: none;
  }

  .app-shell .guided-mission-header {
    padding: 15px 16px 12px;
  }

  .app-shell .guided-mission-header h3 {
    max-width: 20ch;
    font-size: 0.95rem;
  }

  .app-shell .guided-stepper {
    padding-block: 10px;
  }

  .app-shell .guided-stepper b {
    display: none;
  }

  .app-shell .guided-stepper .is-current b {
    display: block;
  }

  .app-shell .guided-task-card {
    min-height: 300px;
    padding: 22px 18px;
  }

  .app-shell .guided-task-card h4 {
    font-size: 1.65rem;
  }

  .app-shell .guided-focus-grid,
  .app-shell .guided-resource-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .guided-focus-grid > div,
  .app-shell .guided-resource-grid > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .app-shell .guided-resource-grid > div > span {
    display: none;
  }

  .app-shell .guided-cost-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .guided-actions {
    position: sticky;
    z-index: 4;
    bottom: 61px;
    padding: 10px 12px;
    box-shadow: 0 -8px 24px rgb(6 19 38 / 0.1);
  }

  .app-shell .guided-actions .button-quiet {
    width: 44px;
    min-width: 44px;
    overflow: hidden;
    padding-inline: 13px;
    white-space: nowrap;
  }

  .app-shell .guided-next {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .guided-visual-target span,
  .app-shell .guided-primary-action,
  .app-shell .guided-stepper i {
    animation: none !important;
    transition: none !important;
  }
}
