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

:root {
  --bg: #f4f7fb;
  --bg-accent: #edf5fb;
  --panel: #ffffff;
  --panel-soft: #f8fbfe;
  --panel-contrast: #eef4f9;
  --border: rgba(13, 36, 64, 0.1);
  --text: #132238;
  --muted: #5d7088;
  --primary: #0d5e93;
  --primary-strong: #09456b;
  --primary-soft: #dff0fb;
  --accent: #1aa0d7;
  --ok: #1ba97f;
  --ok-soft: #eaf9f3;
  --warn: #f0a638;
  --warn-soft: #fff5e6;
  --danger: #e14f4f;
  --danger-soft: #fff0f0;
  --info: #3d89d7;
  --info-soft: #ecf5ff;
  --shadow: 0 20px 40px rgba(13, 36, 64, 0.08);
  --shadow-soft: 0 12px 24px rgba(13, 36, 64, 0.06);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Dosis", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(26, 160, 215, 0.12), transparent 25%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

input, select, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(123, 147, 173, 0.32);
  background: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}
textarea { resize: vertical; }
label {
  display: block;
  font-weight: 700;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(13, 94, 147, 0.65);
  box-shadow: 0 0 0 4px rgba(13, 94, 147, 0.11);
}
button {
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease, opacity .18s ease;
}
button:active { transform: translateY(1px); }

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.session-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 140px;
}
.session-chip strong { font-size: .92rem; }
.session-chip span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.account-pill { position: relative; z-index: 1; color: #fff; }
.account-form { margin-top: 16px; }
.account-form .primary { margin-top: 14px; }
.account-hint { margin: 0 0 14px; }

body.signed-out { background: #eef4f9; }
body.signed-out .app-shell { display: none; }
body.signed-in .auth-gate { display: none; }

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  text-align: center;
}
.auth-logo {
  width: 96px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 12px;
}
.auth-card h1 {
  font-size: 1.7rem;
}
.auth-tagline {
  color: var(--muted);
  margin: 8px 0 18px;
}
.auth-form {
  display: grid;
  gap: 12px;
  text-align: left;
}
.auth-form .primary { width: 100%; margin-top: 6px; }
.professional-signup {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7fbff;
}
.professional-signup.hidden { display: none; }
.signup-trial-note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .76rem;
  font-weight: 850;
}
.access-badge.trialing { color: #8a4d00; background: #fff0cf; }
.access-badge.active, .access-badge.complimentary, .access-badge.beta { color: #087548; background: #dff8ed; }
.access-badge.blocked { color: #a12626; background: #ffe5e5; }
.auth-roles {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.auth-roles legend {
  font-weight: 800;
  padding: 0 6px;
}
.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-top: 8px;
}
.radio-row input { width: auto; margin: 0; }
.link-btn {
  background: none;
  color: var(--primary);
  font-weight: 800;
  padding: 10px;
  margin-top: 8px;
}
.auth-secondary-link { margin-right: 4px; color: #5d7088; }
.auth-mode-intro { margin-bottom: 18px; }
.auth-mode-intro h2 { font-size: 1.28rem; letter-spacing: -.025em; }
.auth-mode-intro p { margin: 7px 0 0; color: var(--muted); }
.auth-confirm-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 2px auto 14px;
  border-radius: 18px;
  color: #0d5e93;
  background: #e8f4fc;
  font-size: 1.45rem;
}
.brand-lockup {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.topbar-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(13, 36, 64, 0.08);
  box-shadow: var(--shadow-soft);
}
.eyebrow {
  color: var(--primary);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar-copy { margin-top: 8px; }
h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 18px;
}
.tab, .form-tab {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 800;
  border: 1px solid rgba(123, 147, 173, 0.18);
  backdrop-filter: blur(14px);
}
.tab:hover, .form-tab:hover, .secondary:hover, .primary:hover { box-shadow: var(--shadow-soft); }
.tab.active, .form-tab.active {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  color: var(--primary-strong);
  border-color: rgba(13, 94, 147, 0.18);
  box-shadow: var(--shadow-soft);
}
.tab-panel, .form-panel { display: none; }
.tab-panel.active, .form-panel.active { display: block; }

.card, .hero-card, .metric, .analysis-card, .dialog-card, .result-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card, .hero-card, .result-block { padding: 22px; margin-bottom: 16px; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-card {
  display: grid;
  grid-template-columns: 1.4fr .95fr;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(13, 94, 147, 0.98), rgba(29, 131, 189, 0.92)),
    linear-gradient(180deg, #0d5e93 0%, #1aa0d7 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 10px 0 12px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-points {
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
  z-index: 1;
}
.hero-point {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
}
.hero-point strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.metric {
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.metric .label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.metric .value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-strong);
}
.metric .note {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-row { grid-column: 1 / -1; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.checkbox-row input { width: auto; margin: 0; }
.inline-note {
  background: linear-gradient(180deg, #f9fcff 0%, #f4f9fd 100%);
  border: 1px solid rgba(13, 94, 147, 0.12);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
}
.inline-note strong {
  color: var(--primary-strong);
  display: block;
  margin-bottom: 8px;
}
.inline-note p { margin: 0; }
.inline-note .grid { margin-top: 12px; }
.inline-note label { color: var(--text); }
.notice {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.notice.warn { background: var(--warn-soft); border-color: rgba(240, 166, 56, 0.25); color: #9a6000; }
.notice.info { background: var(--info-soft); border-color: rgba(61, 137, 215, 0.22); color: #205ea7; }
.notice.success { background: #e3f8ee; border-color: rgba(19, 142, 89, 0.22); color: #087548; }
.notice.danger { background: var(--danger-soft); border-color: rgba(225, 79, 79, 0.2); color: #a53434; }
.notice ul { margin: 10px 0 0; }

.primary {
  background: linear-gradient(180deg, #1270ad 0%, #0d5e93 100%);
  color: #fff;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(13, 94, 147, 0.18);
}
.secondary {
  background: #fff;
  color: var(--text);
  padding: 14px 18px;
  border: 1px solid rgba(123, 147, 173, 0.22);
}
.icon-btn {
  background: transparent;
  padding: 8px 10px;
  color: var(--muted);
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 10px;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(123, 147, 173, 0.12);
}
.form-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  position: sticky;
  top: 8px;
  z-index: 2;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(123, 147, 173, 0.12);
}

.status-badge, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-ok { background: var(--ok-soft); color: #127858; border-color: rgba(27, 169, 127, 0.18); }
.status-watch { background: var(--warn-soft); color: #9f6500; border-color: rgba(240, 166, 56, 0.18); }
.status-action { background: var(--danger-soft); color: #aa3535; border-color: rgba(225, 79, 79, 0.18); }
.status-info { background: var(--info-soft); color: #205ea7; border-color: rgba(61, 137, 215, 0.18); }
.drop-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
}
.drop-icon path { stroke: none; }
.drop-icon-ok path { fill: var(--ok); }
.drop-icon-watch path { fill: var(--warn); }
.drop-icon-action path { fill: var(--danger); }
.drop-icon-info path { fill: var(--info); }
.drop-icon text {
  fill: #fff;
  font-weight: 800;
  font-family: "Dosis", Arial, sans-serif;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 16px;
}
.result-block h3 { margin-bottom: 12px; }
.result-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.summary-card {
  background: var(--panel-soft);
  border: 1px solid rgba(13, 94, 147, 0.1);
  border-radius: 18px;
  padding: 14px;
}
.summary-card strong {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 6px;
}
.summary-card span {
  font-weight: 800;
  color: var(--primary-strong);
}
.analysis-card {
  padding: 16px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
}
.analysis-card h4 { margin: 0 0 8px; }
.analysis-meta { color: var(--muted); font-size: .92rem; }
.history-list { margin-top: 14px; }
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}
.history-row .left { min-width: 0; }
.history-row .title { font-weight: 800; }
.history-row .subtitle { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.history-row .right { display: flex; gap: 8px; align-items: center; }
.empty-state { color: var(--muted); padding: 8px 0; }

.parameter-list, .action-list, .bullet-list, .help-list { margin: 0; padding-left: 20px; }
.parameter-list li, .action-list li, .bullet-list li, .help-list li { margin-bottom: 10px; }

dialog {
  width: min(1080px, calc(100vw - 18px));
  border: none;
  padding: 0;
  background: transparent;
}
dialog::backdrop { background: rgba(10, 24, 40, 0.48); }
.dialog-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.dialog-head, .dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}
.dialog-head {
  border-bottom: 1px solid rgba(123, 147, 173, 0.16);
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}
.dialog-actions {
  border-top: 1px solid rgba(123, 147, 173, 0.16);
  flex-wrap: wrap;
  background: #fff;
}
#reportContent {
  padding: 0 18px 18px;
  max-height: 72vh;
  overflow: auto;
  background: var(--bg-accent);
}
.report-kicker {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .94rem;
}
.report-table th,
.report-table td {
  border-bottom: 1px solid rgba(123, 147, 173, 0.16);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
.report-table thead th {
  background: #f4f8fc;
  color: var(--primary-strong);
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table td strong { display: block; margin-bottom: 4px; }

.taylor-card { padding: 0; }
.taylor-head { margin-bottom: 12px; }
.taylor-gauge {
  position: relative;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #eaf0f6;
  margin-bottom: 10px;
}
.taylor-zone.aggressive { background: rgba(225, 79, 79, 0.35); }
.taylor-zone.balanced { background: rgba(27, 169, 127, 0.34); }
.taylor-zone.scale { background: rgba(240, 166, 56, 0.35); }
.taylor-marker {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 28px;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(13, 36, 64, 0.18);
}
.taylor-marker.current { background: rgba(13, 36, 64, 0.28); height: 22px; top: -2px; }
.taylor-marker.target { background: var(--primary-strong); }
.taylor-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.taylor-legend span:nth-child(2) { text-align: center; }
.taylor-legend span:nth-child(3) { text-align: right; }
.taylor-marker-legend {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  font-size: .92rem;
}
.taylor-summary-grid,
.taylor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.taylor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.taylor-summary-grid div,
.taylor-grid div {
  background: #f8fbfe;
  border: 1px solid rgba(13, 94, 147, 0.1);
  border-radius: 16px;
  padding: 12px;
}
.taylor-summary-grid strong,
.taylor-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.report-print-root {
  padding: 14px 0 18px;
  color: #17304a;
}
.report-hero {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 14px;
  margin-bottom: 14px;
}
.report-panel,
.report-brand-card,
.report-highlight-card,
.report-note-card,
.report-table-block {
  background: #fff;
  border: 1px solid rgba(123, 147, 173, 0.18);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.report-panel + .report-panel,
.report-brand-card,
.report-highlight-card,
.report-note-card,
.report-table-block { margin-bottom: 14px; }
.report-brand-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.report-logo {
  width: min(190px, 36vw);
  max-width: 190px;
  height: auto;
  object-fit: contain;
}
.report-title-copy h2,
.report-title-copy h1 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  margin: 5px 0 8px;
}
.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.report-meta-card {
  background: #f7fbfe;
  border: 1px solid rgba(13, 94, 147, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
}
.report-meta-card strong,
.report-subtitle {
  display: block;
  margin-bottom: 6px;
}
.report-subtitle {
  color: var(--primary-strong);
  font-size: .94rem;
  font-weight: 800;
}
.report-global-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.report-global-card .status-badge { margin-top: 6px; }
.report-actions-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 14px;
  margin-bottom: 14px;
}
.report-priority-card {
  background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
  border-color: rgba(225, 79, 79, 0.22);
}
.report-priority-card.ok {
  background: linear-gradient(180deg, #fff 0%, #f3fbf7 100%);
  border-color: rgba(27, 169, 127, 0.22);
}
.report-priority-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(225, 79, 79, 0.08);
  color: #a53434;
  font-weight: 800;
  padding: 8px 14px;
  margin-bottom: 12px;
}
.report-priority-card.ok .report-priority-head {
  background: rgba(27, 169, 127, 0.08);
  color: #127858;
}
.report-priority-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: report-priority;
}
.report-priority-list li {
  counter-increment: report-priority;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(123, 147, 173, 0.14);
}
.report-priority-list li:last-child { border-bottom: none; }
.report-priority-list li::before {
  content: counter(report-priority);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
}
.report-priority-card.ok .report-priority-list li::before { background: var(--ok); }
.report-priority-title { font-weight: 800; margin-bottom: 4px; }
.report-priority-details { color: var(--muted); font-size: .93rem; }
.report-measures-card .report-table thead th:first-child { border-top-left-radius: 14px; }
.report-measures-card .report-table thead th:last-child { border-top-right-radius: 14px; }
.report-status-cell,
.report-action-cell { min-width: 140px; }
.report-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.report-note-card ul { margin: 0; }
.report-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(123, 147, 173, 0.18);
  color: var(--muted);
  font-size: .9rem;
}
.print-only { display: none; }

@media (max-width: 900px) {
  .hero-card,
  .result-layout,
  .report-hero,
  .report-actions-layout,
  .report-sections-grid,
  .report-meta-grid,
  .report-brand-line,
  .taylor-summary-grid,
  .taylor-grid,
  .result-grid-compact,
  .metrics,
  .grid.two,
  .grid.three,
  .tabs,
  .form-tabs { grid-template-columns: 1fr; }
  .brand-lockup { flex-direction: column; }
  .history-row { flex-direction: column; align-items: flex-start; }
  .history-row .right { width: 100%; }
  .history-row .right button { flex: 1; }
  .sticky-actions { flex-direction: column; }
}

@page { size: A4; margin: 10mm; }
@media print {
  html, body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .app-shell { max-width: none; padding: 0; }
  .app-sidebar,
  .app-header,
  .app-toast,
  .tabs,
  #analysisForm,
  #dashboard,
  #account,
  #history,
  #help,
  #products,
  #settings,
  #authGate,
  #extrabatDialog,
  .sticky-actions,
  dialog,
  .no-print {
    display: none !important;
  }
  .print-only { display: block; }
  #reportContent {
    max-height: none;
    overflow: visible;
    padding: 0;
    background: #fff;
  }
  .result-block,
  .card,
  .dialog-card,
  .report-panel,
  .report-brand-card,
  .report-highlight-card,
  .report-note-card,
  .report-table-block {
    box-shadow: none;
    border-color: rgba(123, 147, 173, 0.22);
  }
  .report-print-root,
  .report-panel,
  .report-brand-card,
  .report-note-card,
  .report-table-block,
  .taylor-card,
  .report-priority-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Espace Compte & abonnement — interface claire inspirée des réglages Apple/ChatGPT. */
.settings-title {
  margin: 0 0 22px;
}
.settings-title .eyebrow,
.account-kicker,
.plan-audience {
  display: block;
  color: #6e6e73;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.settings-title h2 {
  margin: 6px 0 5px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -.045em;
}
.settings-title p { margin: 0; color: #6e6e73; }
#accountStatusCard {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 50px rgba(15, 35, 60, .08);
}
.account-profile-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(145deg, #fff, #f8fbff);
}
.account-profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(145deg, #1688d4, #07588d);
  box-shadow: 0 10px 24px rgba(13, 94, 147, .22);
  font-size: 1.05rem;
  font-weight: 800;
}
.account-profile-main h3 {
  margin: 4px 0 2px;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}
.account-profile-main p { margin: 0; color: #3a3a3c; }
.account-profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 5px;
  color: #86868b;
  font-size: .84rem;
}
.current-plan-card {
  margin: 24px 24px 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d5e93, #128dc5);
  box-shadow: 0 15px 32px rgba(13, 94, 147, .2);
}
.current-plan-card.blocked { background: linear-gradient(135deg, #8f2c2c, #c84242); }
.current-plan-card .account-kicker { color: rgba(255,255,255,.72); }
.current-plan-card h3 { margin: 5px 0 3px; font-size: 1.45rem; }
.current-plan-card p { margin: 0; color: rgba(255,255,255,.84); }
.current-plan-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 1.2rem;
  font-weight: 800;
}
.plans-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 24px 16px;
}
.plans-heading h3 { margin: 5px 0 0; font-size: 1.22rem; letter-spacing: -.025em; }
.beta-price-note {
  padding: 7px 11px;
  white-space: nowrap;
  border-radius: 999px;
  color: #6e6e73;
  background: #f2f2f7;
  font-size: .77rem;
  font-weight: 700;
}
.subscription-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}
.subscription-plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background: #fff;
}
.subscription-plan.current {
  border-color: rgba(13, 94, 147, .55);
  box-shadow: inset 0 0 0 1px rgba(13, 94, 147, .12), 0 12px 32px rgba(13, 94, 147, .08);
}
.plan-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.plan-top h3 { margin: 5px 0 0; font-size: 1.35rem; }
.plan-current {
  padding: 6px 9px;
  border-radius: 999px;
  color: #087548;
  background: #dff8ed;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.plan-description { min-height: 46px; margin: 14px 0; color: #6e6e73; line-height: 1.45; }
.plan-price { padding: 15px 0; border-top: 1px solid #ececf0; border-bottom: 1px solid #ececf0; }
.plan-price strong { display: block; font-size: 1.08rem; }
.plan-price span { display: block; margin-top: 3px; color: #86868b; font-size: .82rem; }
.plan-features {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: #3a3a3c; line-height: 1.38; }
.plan-features li span { color: #087548; font-weight: 900; }
.plan-action { width: 100%; margin-top: auto; }
.plan-action:disabled { opacity: 1; cursor: default; color: #0d5e93; background: #e8f4fc; border-color: transparent; }
.subscription-footer {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 18px 24px;
  background: #f8f8fa;
  border-top: 1px solid rgba(15, 23, 42, .07);
}
.subscription-footer strong { display: block; font-size: .9rem; }
.subscription-footer p { margin: 2px 0 0; color: #6e6e73; font-size: .84rem; }
.subscription-footer .link-btn.compact { margin: 5px 0 0; padding: 3px 0; font-size: .84rem; }
.promo-applied {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 0 24px 20px;
  padding: 15px 17px;
  border: 1px solid rgba(8, 117, 72, .16);
  border-radius: 17px;
  color: #075c3a;
  background: #edf9f4;
}
.promo-applied > span { font-weight: 900; }
.promo-applied strong { display: block; }
.promo-applied p { margin: 2px 0 0; font-size: .84rem; color: #38725c; }
.plan-change-panel {
  margin: 0 24px 24px;
  padding: 22px;
  border: 1px solid rgba(13, 94, 147, .18);
  border-radius: 20px;
  background: #f7fbfe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.plan-change-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }
.plan-change-head h3 { margin-top: 5px; font-size: 1.18rem; }
.plan-change-form { display: grid; gap: 15px; }
.plan-change-form .optional { color: #86868b; font-weight: 500; }
.plan-change-form .primary { justify-self: start; min-width: 150px; }
@media (max-width: 760px) {
  .account-profile-panel { grid-template-columns: auto 1fr; }
  .account-profile-panel > .access-badge { grid-column: 1 / -1; width: fit-content; }
  .subscription-plans-grid { grid-template-columns: 1fr; }
  .plans-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 460px) {
  .account-profile-panel, .plans-heading, .subscription-plans-grid, .subscription-footer { padding-left: 16px; padding-right: 16px; }
  .current-plan-card { margin-left: 16px; margin-right: 16px; }
  .account-profile-avatar { width: 50px; height: 50px; border-radius: 16px; }
  .plan-change-panel, .promo-applied { margin-left: 16px; margin-right: 16px; }
  .plan-change-form .primary { width: 100%; }
}


/* v5.2 compact report */
.report-compact-root {
  font-size: 0.96rem;
}
.report-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-page + .report-page {
  margin-top: 16px;
}
.report-hero.compact {
  grid-template-columns: 1.35fr .85fr;
  gap: 10px;
  margin-bottom: 10px;
}
.report-main-header,
.report-global-card.compact,
.report-measures-card.compact,
.report-followup-panel,
.report-taylor-panel,
.report-note-card.wide {
  min-height: 0;
}
.report-brand-line.compact {
  margin-bottom: 10px;
  gap: 12px;
}
.report-meta-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.report-meta-grid.compact .report-meta-card {
  padding: 10px 12px;
  border-radius: 14px;
}
.report-quick-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: .92rem;
}
.report-actions-layout.compact {
  grid-template-columns: .78fr 1.22fr;
  gap: 10px;
  margin-bottom: 10px;
}
.report-priority-list.compact li {
  padding: 8px 0;
}
.report-priority-list.compact li::before {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  font-size: .9rem;
}
.report-mini-line {
  margin-top: 3px;
  font-size: .84rem;
}
.report-table.compact th,
.report-table.compact td {
  padding: 8px 10px;
  font-size: .87rem;
  vertical-align: middle;
}
.report-table.compact td strong {
  margin-bottom: 2px;
}
.report-table.compact .status-badge {
  transform: scale(.92);
  transform-origin: left center;
}
.report-status-cell,
.report-action-cell {
  min-width: 108px;
}
.report-bottom-grid.compact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
}
.report-compact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.report-compact-head h3 {
  margin: 4px 0 0;
}
.taylor-gauge.compact {
  margin-top: 8px;
  height: 22px;
}
.taylor-legend.compact {
  margin-top: 6px;
  font-size: .85rem;
}
.report-compact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.report-compact-stats div,
.report-inline-note {
  background: #f7fbfe;
  border: 1px solid rgba(13, 94, 147, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.report-compact-stats strong,
.report-inline-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}
.report-compact-note {
  margin: 8px 0 0;
  font-size: .88rem;
}
.report-sections-grid.compact {
  gap: 10px;
  margin-bottom: 10px;
}
.report-sections-grid.compact.issues-only {
  grid-template-columns: 1fr;
}
.report-sections-grid.compact.lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.report-note-card.wide h4,
.report-issue-group h4 {
  margin: 0 0 8px;
}
.report-issue-group + .report-issue-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(123, 147, 173, 0.14);
}
.bullet-list.compact {
  padding-left: 18px;
}
.bullet-list.compact li {
  margin-bottom: 6px;
}
.report-footer.compact {
  margin-top: auto;
}
@page { size: A4; margin: 8mm; }
@media print {
  .report-print-root {
    padding: 0;
    color: #16324a;
    font-size: 11.2pt;
  }
  .report-page {
    min-height: calc(297mm - 16mm);
    page-break-after: always;
    break-after: page;
  }
  .report-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .report-page,
  .report-panel,
  .report-note-card,
  .report-taylor-panel,
  .report-followup-panel,
  .report-priority-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-panel,
  .report-note-card {
    border-radius: 16px;
    padding: 12px;
  }
  .report-brand-line.compact {
    margin-bottom: 8px;
  }
  .report-logo {
    max-width: 150px;
  }
  .report-title-copy h2 {
    font-size: 1.35rem;
    margin: 4px 0 6px;
  }
  .report-meta-grid.compact {
    gap: 6px;
  }
  .report-meta-grid.compact .report-meta-card {
    padding: 8px 10px;
    font-size: .84rem;
  }
  .report-actions-layout.compact,
  .report-bottom-grid.compact,
  .report-hero.compact,
  .report-sections-grid.compact.lower {
    gap: 8px;
  }
  .report-table.compact th,
  .report-table.compact td {
    padding: 6px 8px;
    font-size: .78rem;
  }
  .report-table.compact .status-badge {
    transform: scale(.82);
  }
  .report-status-cell,
  .report-action-cell {
    min-width: 90px;
  }
  .report-priority-title {
    font-size: .92rem;
  }
  .report-priority-details,
  .report-compact-note,
  .bullet-list.compact li,
  .report-quick-list,
  .report-inline-note {
    font-size: .8rem;
  }
  .report-compact-stats div,
  .report-inline-note {
    padding: 8px 10px;
  }
}
@media (max-width: 900px) {
  .report-bottom-grid.compact,
  .report-sections-grid.compact.lower {
    grid-template-columns: 1fr;
  }
}


/* v5.2 compact report overrides 2 pages */
.report-actions-layout.compact.single-page {
  grid-template-columns: .62fr 1.38fr;
}
.report-priority-list.compact.short li {
  padding: 7px 0;
}
.report-table.compact.recap-only th,
.report-table.compact.recap-only td {
  padding: 7px 8px;
  font-size: .84rem;
}
.report-table.compact.recap-only .status-badge {
  transform: scale(.88);
  transform-origin: left center;
}
.report-second-top {
  margin-bottom: 10px;
}
.report-sections-grid.compact.lower.dense {
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
}
.report-note-stack {
  display: grid;
  gap: 10px;
}
.bullet-list.compact.dense li {
  margin-bottom: 4px;
}
.report-issue-group h4 {
  font-size: 1rem;
}
@media print {
  .report-page {
    page-break-after: always;
    break-after: page;
    min-height: auto;
  }
  .report-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .report-actions-layout.compact.single-page,
  .report-sections-grid.compact.lower.dense {
    gap: 6px;
  }
  .report-actions-layout.compact.single-page {
    grid-template-columns: .56fr 1.44fr;
  }
  .report-table.compact.recap-only th,
  .report-table.compact.recap-only td {
    padding: 5px 6px;
    font-size: .74rem;
  }
  .report-table.compact.recap-only .status-badge {
    transform: scale(.75);
  }
  .report-priority-list.compact.short li {
    padding: 5px 0;
  }
  .report-priority-title {
    font-size: .88rem;
  }
  .report-priority-details,
  .bullet-list.compact.dense li,
  .report-compact-note,
  .report-inline-note,
  .report-quick-list {
    font-size: .76rem;
  }
  .report-compact-stats div,
  .report-inline-note {
    padding: 6px 8px;
  }
  .report-note-card,
  .report-panel {
    padding: 10px;
  }
  .report-sections-grid.compact.lower.dense {
    grid-template-columns: 1.02fr .98fr;
  }
}

.report-page { display: block !important; }
.report-footer.compact { margin-top: 10px; }
@media print { .report-page { display:block !important; } .report-footer.compact { margin-top: 8px; } }

/* v6.2.0 questionnaire métier */
.context-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf5fb;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
}
.question-group {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(13, 94, 147, .12);
  border-radius: 16px;
  background: #f8fcff;
}
.question-group h4 { margin: 0 0 12px; color: var(--primary); }
.questionnaire-safety { margin-top: 12px; }
.questionnaire-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.report-subtitle-spaced { margin-top: 12px; }
.report-grid-v620-plan { grid-template-columns: 1fr; }
.report-taylor-page2 { margin-top: 10px; }

@media (max-width: 760px) {
  .questionnaire-checks { grid-template-columns: 1fr; }
}

/* Dernière couche d'impression : quatre feuilles A4 logiques, sans pages parasites. */
@page { size: A4; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; }
  .report-print-root { margin: 0 !important; padding: 0 !important; }
  .report-page {
    box-sizing: border-box;
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    padding: 8mm;
    margin: 0 !important;
    overflow: hidden;
    page-break-before: auto;
    page-break-after: always;
    break-after: page;
  }
  .report-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .report-page .report-panel,
  .report-page .report-note-card {
    break-inside: auto;
    page-break-inside: auto;
  }
  .report-page-2 .report-table.compact th,
  .report-page-2 .report-table.compact td {
    padding: 4px 6px;
    font-size: 7.3pt;
    line-height: 1.15;
  }
  .report-page-2 .status-badge { font-size: 6.8pt; padding: 3px 6px; }
  .report-page-3 .report-procedure-list li { padding: 5px 0; }
  .report-page-3 .report-procedure-list span,
  .report-page-3 .report-procedure-list small { font-size: 7.8pt; line-height: 1.2; }
  .report-page-4 { font-size: 8.4pt; }
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  box-shadow: var(--shadow-soft);
}
.product-card.compact {
  border-radius: 14px;
  box-shadow: none;
}
.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.product-card-body { padding: 14px; }
.product-card-topline {
  color: var(--primary);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.product-card h4 { font-size: 1rem; margin: 0 0 4px; }
.product-card-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 10px;
}
.product-chip {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-contrast);
  color: var(--primary-strong);
  font-size: .84rem;
  margin: 0 8px 8px 0;
}
.product-card p {
  color: var(--muted);
  font-size: .93rem;
  margin: 6px 0 0;
  line-height: 1.45;
}
.product-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: .84rem;
}
.product-links a {
  text-decoration: none;
}
.product-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.product-list-compact li {
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.product-list-compact span,
.product-list-compact small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.report-note-card .product-list-compact li {
  padding: 8px 10px;
  font-size: .92rem;
}
@media print {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .product-card-image {
    max-height: 120px;
  }
}


.procedure-list,
.report-procedure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.procedure-list li,
.report-procedure-list li {
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  padding: 12px 14px;
}
.report-procedure-list li {
  padding: 10px 12px;
}
.procedure-list strong,
.report-procedure-list strong {
  display: block;
  margin-bottom: 4px;
}
.procedure-list span,
.procedure-list small,
.report-procedure-list span,
.report-procedure-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
@media print {
  .report-procedure-list {
    gap: 6px;
  }
  .report-procedure-list li {
    padding: 8px 10px;
  }
  .report-procedure-list span,
  .report-procedure-list small {
    font-size: .76rem;
  }
}

/* v5.6 responsive + premium pdf overrides */
.app-shell {
  max-width: 1360px;
}

.analysis-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: 18px;
  align-items: start;
}

.result-sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
}

#analysisForm {
  min-width: 0;
}

#resultSection {
  min-width: 0;
}

.report-preview-empty {
  padding: 28px;
  border: 1px dashed rgba(13, 94, 147, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}

.report-preview-empty h3 {
  margin-bottom: 8px;
}

.tabs,
.form-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar,
.form-tabs::-webkit-scrollbar { display: none; }

.form-tabs {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.tabs {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.tab,
.form-tab {
  min-width: 0;
}

.report-table tbody tr:nth-child(even) td {
  background: rgba(13, 94, 147, 0.02);
}

.report-client-sentence {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbff 0%, #f1f8fd 100%);
  border: 1px solid rgba(13, 94, 147, 0.1);
  line-height: 1.5;
}

.report-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.report-summary-card {
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.report-summary-card strong {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.report-summary-card span {
  display: block;
  font-weight: 800;
  color: var(--primary-strong);
  line-height: 1.25;
}

.report-summary-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

.report-global-card.compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.report-phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 94, 147, 0.08);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: .78rem;
}

.report-measures-card.compact h3,
.report-main-header h2 {
  letter-spacing: -0.02em;
}

.report-priority-card {
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.report-priority-list.compact.short li {
  align-items: flex-start;
}

.report-priority-title {
  line-height: 1.25;
}

.report-side-stack.compact {
  display: grid;
  gap: 10px;
}

.report-keypoints-list,
.report-timing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.report-keypoints-list li,
.report-timing-list li {
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.report-keypoints-list strong,
.report-timing-list strong {
  display: block;
  margin-bottom: 4px;
}

.report-keypoints-list span,
.report-timing-list span {
  color: var(--muted);
  display: block;
  line-height: 1.4;
}

.report-note-card .report-inline-note {
  margin-top: 10px;
}

@media (min-width: 1180px) {
  .result-sidebar .result-block:first-child {
    margin-top: 0;
  }

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

  .result-sidebar .result-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .analysis-workspace {
    grid-template-columns: 1fr;
  }

  .result-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup {
    align-items: center;
  }

  .topbar-logo {
    width: 88px;
  }

  .tabs,
  .form-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    padding-bottom: 2px;
  }

  .metrics,
  .result-grid-compact,
  .report-summary-strip,
  .report-meta-grid.compact,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .sticky-actions {
    position: sticky;
    bottom: 8px;
    flex-wrap: wrap;
  }

  .sticky-actions > * {
    flex: 1 1 100%;
  }

  dialog {
    width: calc(100vw - 12px);
  }

  #reportContent {
    padding: 0 12px 12px;
    max-height: 76vh;
  }

  .report-page + .report-page {
    margin-top: 12px;
  }

  .report-actions-layout.compact.single-page,
  .report-sections-grid.compact.lower.dense,
  .report-hero.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .card,
  .result-block,
  .dialog-card {
    border-radius: 18px;
  }

  .hero-card,
  .card,
  .result-block {
    padding: 18px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  h1 {
    font-size: 1.85rem;
  }

  .report-title-copy h2 {
    font-size: 1.25rem;
  }

  .report-table.compact.recap-only th,
  .report-table.compact.recap-only td {
    padding: 6px;
    font-size: .78rem;
  }

  .report-status-cell .status-badge {
    transform: scale(.84);
    transform-origin: left center;
  }
}

@media print {
  .report-client-sentence {
    padding: 9px 10px;
    font-size: .82rem;
  }

  .report-summary-strip {
    gap: 6px;
    margin-bottom: 8px;
  }

  .report-summary-card {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .report-summary-card strong {
    font-size: .68rem;
    margin-bottom: 4px;
  }

  .report-summary-card span {
    font-size: .83rem;
    line-height: 1.2;
  }

  .report-summary-card small {
    font-size: .7rem;
    margin-top: 4px;
  }

  .report-keypoints-list,
  .report-timing-list,
  .report-note-stack,
  .report-side-stack.compact {
    gap: 6px;
  }

  .report-keypoints-list li,
  .report-timing-list li,
  .report-note-card .product-list-compact li {
    padding: 7px 8px;
  }

  .report-keypoints-list span,
  .report-timing-list span,
  .report-procedure-list span,
  .report-procedure-list small,
  .product-list-compact span,
  .product-list-compact small {
    font-size: .72rem;
    line-height: 1.3;
  }

  .report-table tbody tr:nth-child(even) td {
    background: rgba(13, 94, 147, 0.018) !important;
  }
}


/* v5.7 report adjustments */
.report-v57-root .report-page + .report-page {
  margin-top: 14px;
}
.report-grid-v57 {
  grid-template-columns: 1.08fr .92fr;
}
.report-sections-grid.compact.lower.tertiary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.report-long-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.report-followup-list {
  margin: 0;
}
.report-followup-list li {
  margin-bottom: 5px;
}
.report-followup-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .report-grid-v57,
  .report-sections-grid.compact.lower.tertiary {
    grid-template-columns: 1fr;
  }
}

@media print {
  .report-v57-root {
    font-size: 10.8pt;
  }
  .report-grid-v57,
  .report-sections-grid.compact.lower.tertiary {
    gap: 8px;
  }
  .report-page-3 .report-note-card,
  .report-page-4 .report-note-card {
    padding: 10px;
  }
  .report-page-3 .bullet-list.compact.dense li,
  .report-page-4 .bullet-list.compact.dense li,
  .report-followup-list li,
  .report-long-note {
    font-size: .78rem;
  }
}

/* v6.0 rapport validé */
.report-v60-root .report-page + .report-page {
  margin-top: 14px;
}
.report-first-page-grid {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 10px;
}
.report-inline-facts {
  align-self: stretch;
}
.report-inline-facts .bullet-list {
  margin-top: 10px;
}
.report-table-five-cols th:nth-child(1),
.report-table-five-cols td:nth-child(1) { width: 18%; }
.report-table-five-cols th:nth-child(2),
.report-table-five-cols td:nth-child(2) { width: 13%; }
.report-table-five-cols th:nth-child(3),
.report-table-five-cols td:nth-child(3) { width: 19%; }
.report-table-five-cols th:nth-child(4),
.report-table-five-cols td:nth-child(4) { width: 16%; }
.report-table-five-cols th:nth-child(5),
.report-table-five-cols td:nth-child(5) { width: 34%; }
.report-understand-card {
  margin-top: 10px;
}
.report-grid-v60 {
  grid-template-columns: 1.08fr 0.92fr;
}
.report-taylor-full {
  margin-top: 10px;
}
.report-product-focus {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  margin-bottom: 8px;
}
.report-product-focus:last-child {
  margin-bottom: 0;
}
.report-product-focus span,
.report-product-focus small,
.report-product-focus p {
  color: var(--muted);
  margin: 0;
}
.report-grid-page4-v60 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 900px) {
  .report-first-page-grid,
  .report-grid-v60,
  .report-grid-page4-v60 {
    grid-template-columns: 1fr;
  }
}
@media print {
  .report-v60-root {
    font-size: 10.8pt;
  }
  .report-first-page-grid,
  .report-grid-v60,
  .report-grid-page4-v60 {
    gap: 8px;
  }
  .report-table-five-cols th,
  .report-table-five-cols td {
    padding: 6px 7px;
    font-size: .77rem;
  }
  .report-inline-facts,
  .report-understand-card,
  .report-page-4 .report-note-card,
  .report-product-focus {
    padding: 10px;
  }
  .report-product-focus span,
  .report-product-focus small,
  .report-product-focus p,
  .report-page-4 .bullet-list.compact.dense li,
  .report-understand-card .bullet-list.compact.dense li,
  .report-inline-facts .bullet-list.compact.dense li {
    font-size: .78rem;
  }
}

.report-client-plan-list {
  display: grid;
  gap: 8px;
}

.report-client-plan-item {
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  display: grid;
  gap: 4px;
}

.report-client-plan-step {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.report-client-plan-item strong {
  font-size: .94rem;
}

.report-client-plan-item div {
  color: var(--muted);
  line-height: 1.4;
}

.report-client-plan-item span {
  color: var(--ink);
  font-weight: 700;
}

@media print {
  .report-client-plan-card {
    padding: 10px;
  }

  .report-client-plan-list {
    gap: 6px;
  }

  .report-client-plan-item {
    padding: 8px 9px;
  }

  .report-client-plan-step {
    font-size: .62rem;
  }

  .report-client-plan-item strong {
    font-size: .82rem;
  }

  .report-client-plan-item div {
    font-size: .74rem;
    line-height: 1.3;
  }
}

/* v6.2.0 — overrides finaux d'impression */
@page { size: A4; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; }
  .report-print-root { margin: 0 !important; padding: 0 !important; }
  .report-page {
    box-sizing: border-box !important;
    width: 210mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 8mm !important;
    margin: 0 !important;
    overflow: hidden !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  .report-page:last-child { page-break-after: auto !important; break-after: auto !important; }
  .report-page-1 .report-hero.compact { display: grid !important; grid-template-columns: 1.35fr .85fr !important; gap: 8px !important; }
  .report-page-1 .report-meta-grid.compact { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .report-page-1 .report-actions-layout.compact { display: grid !important; grid-template-columns: .9fr 1.1fr !important; gap: 8px !important; }
  .report-page .report-panel,
  .report-page .report-note-card { break-inside: auto !important; page-break-inside: auto !important; }
  .report-page-2 .report-table.compact th,
  .report-page-2 .report-table.compact td { padding: 4px 6px !important; font-size: 7.3pt !important; line-height: 1.15 !important; }
  .report-page-2 .status-badge { font-size: 6.8pt !important; padding: 3px 6px !important; }
  .report-page-3 .report-procedure-list li { padding: 5px 0 !important; }
  .report-page-3 .report-procedure-list span,
  .report-page-3 .report-procedure-list small { font-size: 7.8pt !important; line-height: 1.2 !important; }
  .report-page-4 { font-size: 8.4pt !important; }
}

/* v6.2.1 — rapport client plus sobre, professionnel et ludique */
.report-v60-root .report-panel,
.report-v60-root .report-note-card,
.report-v60-root .report-priority-card {
  border-radius: 8px;
  box-shadow: none;
}
.report-meta-grid.compact > div {
  display: grid;
  gap: 2px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(13, 94, 147, .12);
}
.report-meta-grid.compact > div strong {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.report-meta-grid.compact > div span { font-weight: 750; }
.report-step-followup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.report-step-followup em {
  padding-top: 5px;
  border-top: 1px solid rgba(13, 94, 147, .12);
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.3;
}
.report-step-followup b { color: var(--ink); }
.report-swimming-stop {
  margin: 8px 0;
  padding: 7px 10px;
  border-left: 3px solid var(--danger);
  background: #fff4f4;
  color: #a53232;
  font-size: .78rem;
  font-weight: 850;
}
.report-motif-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13, 94, 147, .12);
}
.report-motif-line span { color: var(--muted); font-size: .82rem; }
.report-page4-simple { display: grid; gap: 22px; }
.report-simple-section {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(13, 94, 147, .18);
}
.report-simple-section h3 { margin: 4px 0 14px; font-size: 1.35rem; }
.report-product-list-simple { display: grid; }
.report-product-row-simple {
  display: grid;
  grid-template-columns: 1fr .55fr 1.6fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(13, 94, 147, .12);
}
.report-product-row-simple span { color: var(--brand); font-weight: 800; }
.report-product-row-simple small { color: var(--muted); line-height: 1.4; }
.report-empty-line { margin: 0; padding: 12px 0; color: var(--muted); }
.report-followup-simple { display: grid; gap: 0; }
.report-followup-step-simple {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(13, 94, 147, .12);
}
.report-followup-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.report-followup-step-simple span {
  display: block;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.report-followup-step-simple strong { display: block; margin: 2px 0 3px; font-size: 1rem; }
.report-followup-step-simple p { margin: 0; color: var(--muted); line-height: 1.4; }
.report-final-message {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  background: #f4f9fc;
}
.report-final-message p { margin: 4px 0 0; }

@media print {
  .report-page-1 .report-meta-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .report-step-followup em { font-size: 7.1pt !important; }
  .report-page4-simple { gap: 18px !important; }
  .report-simple-section { padding-bottom: 16px !important; }
  .report-product-row-simple { padding: 9px 0 !important; }
  .report-followup-step-simple { padding: 10px 0 !important; }
  .report-page-3 .report-page4-simple {
    grid-template-columns: .9fr 1.1fr !important;
    gap: 16px !important;
    align-items: start !important;
    margin-top: 12px !important;
  }
  .report-page-3 .report-final-message { grid-column: 1 / -1 !important; }
  .report-page-3 .report-product-row-simple {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    padding: 7px 0 !important;
  }
  .report-page-3 .report-followup-step-simple { padding: 7px 0 !important; }
  .report-page-3 .report-followup-step-simple p { font-size: 7.4pt !important; line-height: 1.25 !important; }
  .report-page-3 .report-followup-step-simple strong { font-size: 8.5pt !important; }
  .report-page-3 .report-simple-section { padding-bottom: 8px !important; border-bottom: 0 !important; }
  .report-page-3 .report-simple-section h3 { font-size: 12pt !important; margin-bottom: 8px !important; }
}

/* Accueil professionnel (maquette) + particulier plus simple */
body.signed-in {
  background: #f4f7fb;
}
body.signed-in .app-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
  background: #f4f7fb;
}
.app-sidebar {
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fc 100%);
  padding: 28px 18px 24px;
  border-right: 1px solid rgba(13, 36, 64, 0.05);
}
.sidebar-logo {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto 36px;
  object-fit: contain;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #6b7c90;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: none;
}
.nav-item:hover { background: rgba(13, 94, 147, 0.06); color: #0d5e93; }
.nav-item.active {
  background: #e8f3fb;
  color: #1a7ab8;
  box-shadow: none;
}
.nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.nav-ico svg { width: 20px; height: 20px; fill: currentColor; }
body.role-particulier .nav-pro,
body.role-pro .nav-part { display: none; }
body.role-particulier .magasin-only,
body.role-particulier #products { display: none !important; }

.app-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px 8px;
  background: transparent;
}
.app-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1b2b44;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3fb;
  color: #0d5e93;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.avatar-wrap { position: relative; }
.avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e7f3fb;
  color: #1a7ab8;
  font-weight: 800;
  box-shadow: none;
}
.avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 40;
}
.avatar-meta { padding: 8px 10px 12px; }
.avatar-meta strong { display: block; }
.avatar-meta span { color: var(--muted); font-size: .85rem; }
.avatar-menu #openAccountBtn,
.avatar-menu #logoutBtn {
  width: 100%;
  background: #f4f7fb;
  font-weight: 800;
  padding: 10px;
}
.avatar-menu #openAccountBtn { margin-bottom: 6px; color: #0d5e93; }
.app-workspace > main {
  padding: 8px 36px 40px;
  max-width: 1180px;
}
.app-toast {
  margin: 0 36px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff5e6;
  border: 1px solid rgba(240, 166, 56, 0.35);
  color: #8a5a12;
  font-weight: 700;
}

.home-greeting { margin: 8px 0 22px; }
.home-greeting h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  color: #15243a;
}
.home-greeting p { margin: 6px 0 0; color: #7b8ca0; font-size: 1.12rem; font-weight: 600; }

.home-pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 280px;
  gap: 22px;
  align-items: start;
}
.cta-analyse {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 40%, rgba(90, 200, 245, 0.55), transparent 42%),
    linear-gradient(105deg, #d8f1fc 0%, #c5e9fb 42%, #b7e2f8 100%);
  color: #12324d;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.cta-analyse::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 220px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 70%);
}
.cta-drop { width: 88px; flex: 0 0 88px; position: relative; z-index: 1; }
.cta-drop svg { width: 88px; height: auto; filter: drop-shadow(0 10px 12px rgba(26, 140, 200, 0.25)); }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h3 { font-size: 1.7rem; margin-bottom: 4px; }
.cta-copy p { margin: 0 0 14px; color: #3d6b88; font-weight: 600; }
.cta-start {
  background: #163a66;
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
}
.overview h3,
.recent-block h3,
.quick-card h3,
.tip-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.overview-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(13, 36, 64, 0.06);
  border-radius: 20px;
  padding: 16px 14px;
  box-shadow: 0 10px 24px rgba(13, 36, 64, 0.04);
}
.overview-card span { display: block; color: #7b8ca0; font-size: .82rem; font-weight: 700; }
.overview-card strong { font-size: 1.55rem; }
.ov-ico {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 42px;
}
.ov-ico.blue { background: #e7f2fb; }
.ov-ico.orange { background: #fff4e4; color: #e2a23a; }
.ov-ico.green { background: #e7f7ee; }

.recent-head { display: flex; justify-content: space-between; align-items: center; }
.recent-all { margin: 0; font-size: .95rem; }
.recent-list { display: grid; gap: 8px; }
.recent-row {
  display: grid;
  grid-template-columns: 40px 1.2fr 1fr 1.3fr 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(13, 36, 64, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(13, 36, 64, 0.03);
}
.recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e7f3fb;
  color: #1a7ab8;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}
.recent-name { font-weight: 800; color: #1b2b44; }
.recent-ctx { color: #8a9aab; font-weight: 700; font-size: .92rem; }
.recent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .9rem;
  justify-self: start;
}
.recent-status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.recent-status.ok { color: #2bb673; }
.recent-status.warn { color: #e2a23a; }
.recent-status.danger { color: #e14f4f; }
.recent-chevron { color: #b7c3d0; font-size: 1.4rem; }

.quick-card, .tip-card {
  background: #fff;
  border: 1px solid rgba(13, 36, 64, 0.06);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(13, 36, 64, 0.04);
  margin-bottom: 16px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f7fbfe;
  border: 1px solid rgba(13, 94, 147, 0.06);
  border-radius: 18px;
  padding: 16px 8px 14px;
  font-weight: 700;
  font-size: .82rem;
  color: #3d5168;
  box-shadow: none;
}
.quick-ico {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #eef6fc;
  color: #3d89d7;
  display: grid;
  place-items: center;
}
.quick-ico svg { width: 26px; height: 26px; }
.tip-card { background: linear-gradient(180deg, #f7fbff, #fff); }
.tip-ico { font-size: 1.4rem; margin-bottom: 8px; }
.tip-card p { color: var(--muted); margin: 8px 0 0; }

.home-part { max-width: 720px; }
.cta-analyse-simple {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(105deg, #d8f1fc, #b7e2f8);
  text-align: left;
  margin-bottom: 20px;
}
.cta-analyse-simple strong { display: block; font-size: 1.25rem; }
.cta-analyse-simple span span { color: #3d6b88; font-weight: 600; }
.cta-arrow {
  background: #163a66;
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.basin-home-list { display: grid; gap: 8px; margin-bottom: 14px; }
.basin-home-item {
  width: 100%;
  text-align: left;
  background: #f7fbfe;
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.basin-home-item.selected { border-color: rgba(13, 94, 147, 0.35); background: #eef6fc; }
.basin-home-item span { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }

@media (max-width: 980px) {
  body.signed-in .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 8px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(13, 36, 64, 0.06);
  }
  .sidebar-logo { width: 72px; margin: 0; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; }
  .nav-item { flex: 0 0 auto; padding: 10px 12px; }
  .app-header, .app-workspace > main { padding-left: 16px; padding-right: 16px; }
  .home-pro-grid, .overview-cards, .recent-row {
    grid-template-columns: 1fr;
  }
  .recent-row { grid-template-columns: 40px 1fr auto; }
  .recent-ctx { display: none; }
}

.extrabat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  background: #eef2f6;
  color: #5d7088;
  vertical-align: middle;
}
.source-pill.extrabat { background: #e7f3fb; color: #1a7ab8; }
.source-pill.local { background: #f4f7fb; }
.extrabat-dialog { border: none; padding: 0; background: transparent; max-width: 520px; width: calc(100vw - 24px); }
.extrabat-dialog::backdrop { background: rgba(16, 32, 54, 0.35); }
.extrabat-dialog .dialog-card { margin: 0; }
#extrabatDialogBody { padding: 0 8px 8px; }
#extrabatDialogBody code { font-size: .85em; }

.import-mega {
  display: block;
  width: 100%;
  background: #1a6fd4;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 26px 22px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(26, 111, 212, 0.35);
  margin: 0 0 10px;
}
.import-mega:hover { background: #155db3; }
.import-mega-hint {
  margin: 0 0 22px;
  color: #1a6fd4;
  font-weight: 700;
}
.quick-btn.quick-import {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  background: #e8f2fc;
  color: #155db3;
  font-size: 1rem;
  padding: 16px;
}
.import-empty {
  text-align: left;
  padding: 18px 16px;
  background: #f7fbfe;
  border-radius: 16px;
}
.list-kicker {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.extrabat-row { border-color: rgba(13, 94, 147, 0.16); }

body.role-particulier #client-panel label:has([name="client_name"]),
body.role-particulier #client-panel label:has([name="client_phone"]),
body.role-particulier #client-panel label:has([name="client_email"]) { display: none !important; }

.motif-combo { display: grid; gap: 8px; position: relative; }
.motif-combo > label { font-weight: 700; }
.motif-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}
.motif-combo-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(13, 36, 64, 0.14);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.motif-combo-field:focus-within {
  border-color: #1a6fd4;
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.15);
}
.motif-combo-field input {
  flex: 1;
  border: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.motif-combo-field input:focus { outline: none; box-shadow: none; }
.motif-combo-toggle {
  width: 44px;
  border: 0;
  background: transparent;
  color: #1a6fd4;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}
.motif-combo-list {
  position: fixed;
  z-index: 1200;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(320px, 50vh);
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1.5px solid rgba(13, 36, 64, 0.12);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(13, 36, 64, 0.20), 0 2px 8px rgba(13, 36, 64, 0.08);
  overscroll-behavior: contain;
}
.motif-combo-list[hidden] { display: none; }
.motif-combo-list .motif-optgroup {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px 7px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(18px);
}
.motif-combo-list .motif-optgroup > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eaf4ff;
  color: #0877d1;
  font-size: 16px;
}
.motif-combo-list .motif-optgroup strong,
.motif-combo-list .motif-optgroup small { display: block; }
.motif-combo-list .motif-optgroup small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.motif-combo-list [role="option"] {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  margin: 2px 7px;
  padding: 8px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 650;
}
.motif-combo-list [role="option"]:hover,
.motif-combo-list [role="option"].is-active { background: rgba(26, 111, 212, 0.08); }
.motif-combo-list [role="option"][aria-selected="true"] { color: #1a6fd4; font-weight: 800; }
.motif-option-icon,
.client-option-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1f6fc;
  color: #0877d1;
  font-size: 17px;
  font-weight: 800;
}
.client-option-avatar { background: linear-gradient(145deg, #e9f5ff, #dceeff); }
.motif-option-copy { min-width: 0; }
.motif-option-copy strong { display: block; line-height: 1.25; }
.motif-option-check { opacity: 0; color: #0877d1; font-weight: 900; }
.motif-combo-list [role="option"][aria-selected="true"] .motif-option-check { opacity: 1; }
.apple-combo .motif-combo-field {
  min-height: 56px;
  border-radius: 18px;
  border-color: rgba(13,36,64,.13);
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 1px rgba(13,36,64,.03);
}
.apple-combo .motif-combo-field:focus-within {
  border-color: #0a84ff;
  box-shadow: 0 0 0 4px rgba(10,132,255,.13);
}
.apple-combo .motif-combo-toggle { color: #0a84ff; }
.client-opt-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.client-search-static {
  position: static;
  width: 100%;
  max-height: 360px;
  margin-top: 6px;
  box-shadow: none;
  border-radius: 18px;
}
.client-search-static:empty { display: none; }
.client-search-static [role="option"] {
  display: block;
  min-height: 0;
  padding: 11px 13px;
}
.combo-create-action {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin: 7px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #edf7ff;
  color: #066bb8;
  cursor: pointer;
}
.combo-create-action:hover { background: #e0f1ff; }
.combo-create-action small { display: block; margin-top: 2px; color: #587089; }
.combo-create-plus,
.quick-create-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.quick-create-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  margin: 10px 0 14px;
  border-radius: 18px;
  background: #f3f8fd;
}
.quick-create-empty.compact { padding: 13px 15px; }
.quick-create-empty p { margin: 3px 0 0; color: var(--muted); }
.quick-create-link {
  border: 0;
  background: transparent;
  color: #0877d1;
  font-weight: 750;
  padding: 12px 2px 2px;
  cursor: pointer;
}
#analysisContextCard .account-form {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.quick-client-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 24, 43, .34);
  backdrop-filter: blur(14px) saturate(120%);
  animation: quickClientFade .16s ease both;
}
.quick-client-overlay.is-closing { animation: quickClientFade .14s ease reverse both; }
.quick-client-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 30px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 30px 90px rgba(8,24,43,.28);
  animation: quickClientRise .2s cubic-bezier(.22,.9,.32,1) both;
}
.quick-client-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.quick-client-head h3 { margin-top: 4px; font-size: 1.55rem; }
.quick-client-kicker {
  color: #0a84ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.quick-client-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef1f5;
  color: #526274;
  font-size: 24px;
  line-height: 1;
}
.quick-client-intro { margin: 10px 0 18px; color: var(--muted); }
.required-star { color: #dc3d43; }
.city-autocomplete { position: relative; }
.commune-suggestions {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(13,36,64,.12);
  border-radius: 17px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(13,36,64,.18);
}
.commune-suggestions[hidden] { display: none; }
.commune-suggestions li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.commune-suggestions li:hover { background: #edf7ff; }
.commune-suggestions strong,
.commune-suggestions small { display: block; }
.commune-suggestions small { margin-top: 1px; color: var(--muted); }
.commune-pin {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e8f4ff;
  color: #0a84ff;
  font-weight: 800;
}
.quick-client-status { min-height: 22px; padding-top: 9px; color: var(--muted); font-size: .88rem; }
.quick-client-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.quick-client-actions button { padding: 12px 17px; }
@keyframes quickClientFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes quickClientRise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .quick-client-overlay { align-items: end; padding: 10px; }
  .quick-client-modal { border-radius: 25px; padding: 20px; }
  .quick-client-modal .grid.two { grid-template-columns: 1fr; }
  .quick-client-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
}
.file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
body.role-particulier .magasin-only { display: none !important; }
.source-pill.magasin { background: #e7f6ee; color: #1b6b3a; }


.wiz-head { margin: 0 0 18px; position: relative; }
.analysis-workspace.wiz-layout {
  display: block;
  width: 100%;
  max-width: 1080px;
}
.analysis-workspace.wiz-layout .wiz-form {
  width: 100%;
  max-width: none;
}
.wiz-home {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  color: #1a6fd4;
  font-weight: 800;
}
.wiz-head h2 { font-size: 2.2rem; letter-spacing: -0.04em; }
.wiz-head p { color: var(--muted); margin: 6px 0 16px; font-weight: 600; }
.wiz-track {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.wiz-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d5dde6;
  flex: 0 0 12px;
  position: relative;
}
.wiz-dot.on { background: #1a6fd4; }
.wiz-dot:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 5px;
  width: 72px;
  height: 2px;
  background: #d5dde6;
}
.wiz-dot.on:not(:last-child)::after { background: #1a6fd4; }
.wiz-track { justify-content: space-between; max-width: 360px; }
.wiz-dot:not(:last-child)::after { width: calc((360px - 60px) / 4); }
.wiz-step-label { text-align: center; color: #1a6fd4; font-weight: 800; margin-top: 8px; font-size: .92rem; }
.wiz-item {
  background: #fff;
  border: 1px solid rgba(13, 36, 64, 0.08);
  border-radius: 20px;
  margin-bottom: 10px;
  overflow: hidden;
}
.wiz-item.open { overflow: visible; }
.wiz-item-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}
.wiz-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #6b7c90;
  font-weight: 800;
}
.wiz-item.open .wiz-num, .wiz-item.done .wiz-num { background: #1a6fd4; color: #fff; }
.wiz-item.done .wiz-num { background: #2bb673; }
.wiz-item-head h3 { font-size: 1.05rem; }
.wiz-summary { margin: 4px 0 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.wiz-mod {
  background: none;
  color: #1a6fd4;
  font-weight: 800;
  padding: 6px;
}
.wiz-item-body { display: none; padding: 0 16px 16px; }
.wiz-item.open .wiz-item-body { display: block; }
.wiz-item.open .wiz-item-body .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.wiz-form .form-tabs, .wiz-legacy { display: none !important; }
.wiz-form .sticky-actions { justify-content: flex-end; }
.wiz-form .sticky-actions .secondary { display: none; }
.wiz-form .sticky-actions .primary { display: none; }
.wiz-form .sticky-actions .primary.wiz-submit-show {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  background: #1a6fd4;
  padding: 16px;
  font-size: 1.1rem;
}
.wiz-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.wiz-item.open ~ .wiz-actions, .wiz-form > .wiz-actions { margin: 8px 0 0; }
.wiz-q { font-weight: 800; margin: 12px 0 10px; }
.wiz-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wiz-choices.sm { grid-template-columns: 1fr 1fr; max-width: 280px; }
.wiz-choice {
  background: #fff;
  border: 1.5px solid rgba(13, 36, 64, 0.12);
  border-radius: 16px;
  padding: 18px 10px;
  font-weight: 800;
}
.wiz-choice.picked { border-color: #1a6fd4; box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.15); color: #1a6fd4; }
.wiz-recap { display: grid; gap: 10px; margin-bottom: 16px; }
.wiz-recap div { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.wiz-recap span { color: var(--muted); font-weight: 700; }
@media (max-width: 700px) {
  .analysis-workspace.wiz-layout { max-width: none; }
  .wiz-choices { grid-template-columns: 1fr; }
  .wiz-choices.sm { grid-template-columns: 1fr 1fr; max-width: none; }
  .wiz-recap div { grid-template-columns: 1fr; }
}

/* Rapport client — Nouvelle Vague */
.nv-report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 4px 20px;
}
.nv-report-toolbar h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
#reportContent { background: #f5f5f7; padding: 20px 16px 28px; }
.nv-report {
  font-family: "Dosis", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  color: #1d1d1f;
  max-width: 820px;
  margin: 0 auto;
}
.nv-report-page {
  background: #fff;
  border-radius: 22px;
  padding: 36px 40px 40px;
  margin-bottom: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}
.nv-recap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.nv-recap-grid > div { border: 1px solid #e5e5ea; border-radius: 16px; padding: 16px; background: #fbfbfd; }
.nv-recap-grid h4 { margin: 0 0 10px; font-size: 1rem; }
.nv-recap-grid ul { margin: 0; padding-left: 18px; }
.nv-recap-grid li { margin: 0 0 9px; line-height: 1.45; }
.nv-recap-grid li span { color: #6e6e73; font-size: .9rem; }
.taylor-meaning { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: #f5f5f7; line-height: 1.45; }
.nv-head {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nv-head img { width: 92px; height: auto; }
.nv-head p {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 700;
}
.nv-head h1 {
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 4px 0 2px;
}
.nv-head h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #6e6e73;
}
.nv-ref {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: .78rem;
  color: #86868b;
}
.nv-story {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 22px;
  color: #1d1d1f;
}
.nv-history {
  display: block;
  margin: -8px 0 22px;
  padding: 14px 16px;
  background: #f5f5f7;
  border-radius: 14px;
  color: #6e6e73;
  font-size: .92rem;
}
.nv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 8px;
}
.nv-table th, .nv-table td {
  text-align: left;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}
.nv-table thead th {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 700;
  padding-top: 0;
}
.nv-table tbody th { font-weight: 600; width: 28%; }
.nv-table td:last-child {
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.nv-table td:last-child i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 8px;
  background: #d2d2d7;
}
.nv-table tr.is-ok td:last-child { color: #248a3d; }
.nv-table tr.is-ok td:last-child i { background: #34c759; }
.nv-table tr.is-watch td:last-child { color: #9a6700; }
.nv-table tr.is-watch td:last-child i { background: #ff9f0a; }
.nv-table tr.is-bad td:last-child { color: #d70015; }
.nv-table tr.is-bad td:last-child i { background: #ff3b30; }
.nv-ph-note {
  margin: 14px 0 0;
  color: #6e6e73;
  font-size: .95rem;
}
.nv-kicker {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0d5e93;
  font-weight: 700;
  margin: 28px 0 12px;
}
.nv-sec p { margin: 0 0 14px; line-height: 1.6; color: #3a3a3c; }
.nv-sec p strong { color: #1d1d1f; }
.nv-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff2f2;
  color: #d70015;
  font-weight: 600;
}
.nv-alert.is-warn { background: #fff6e5; color: #9a6700; }
.nv-chip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.nv-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f5f5f7;
}
.nv-chip span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #86868b; }
.nv-chip strong { display: block; margin: 4px 0 2px; }
.nv-chip em { font-style: normal; color: #6e6e73; font-size: .82rem; }
.nv-taylor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 22px;
}
.nv-taylor div {
  padding: 16px 14px;
  background: #f5f5f7;
  border-radius: 16px;
}
.nv-taylor span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #86868b; margin-bottom: 6px; }
.nv-taylor strong { font-size: 1.15rem; letter-spacing: -0.03em; }
.nv-quiet { color: #6e6e73 !important; }
.nv-list { list-style: none; padding: 0; margin: 0; }
.nv-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.nv-ord {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: #0d5e93;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.nv-list strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.nv-list p { margin: 0 0 6px; color: #3a3a3c; }
.nv-list em { font-style: normal; color: #0d5e93; font-weight: 650; }
.nv-bilan { font-size: 1.05rem; }
.nv-when {
  margin: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0d5e93;
  font-weight: 700;
}
.nv-duration {
  margin: 6px 0 10px;
  font-weight: 750;
  color: #1d1d1f;
  font-size: 1.02rem;
}
.nv-step-lines { margin: 0; }
.nv-step-lines div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.nv-step-lines dt {
  margin: 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #86868b;
  font-weight: 700;
}
.nv-step-lines dd { margin: 0; color: #3a3a3c; }
.nv-buy li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.nv-prod-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  display: block;
  margin: 0 0 8px;
}
.nv-next { margin: 0 0 8px; }
.nv-plan-step em { display: block; margin-bottom: 4px; }
.nv-empty { color: #6e6e73; border-top: 0 !important; display: block !important; padding: 8px 0 !important; }
.nv-later { margin-top: 18px; color: #3a3a3c; }
.nv-close {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #6e6e73 !important;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.stock-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f5f7;
}
.stock-card-photo {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.stock-card-top { padding: 12px 16px 0; }
.stock-card h3 { padding: 0 16px; }
.stock-card p { padding: 0 16px 16px; }
.stock-card h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.stock-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #86868b;
  font-weight: 700;
}
.stock-card-top strong { color: #0d5e93; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.stock-card p { margin: 6px 0 0; font-size: .88rem; line-height: 1.45; color: #3a3a3c; }
@media (max-width: 700px) {
  .nv-head, .nv-taylor { grid-template-columns: 1fr; }
  .nv-ref { text-align: left; }
  .nv-report-page { padding: 24px 18px; }
  .nv-recap-grid { grid-template-columns: 1fr; }
  .nv-report-toolbar { flex-direction: column; align-items: stretch; }
}
body.nv-print { background: #fff; margin: 0; }
body.nv-print .nv-report { max-width: none; }
body.nv-print .nv-report-page {
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
@media print {
  body.nv-print { background: #fff; }
  .no-print, .nv-report-toolbar { display: none !important; }
  .nv-report-page {
    width: 210mm;
    min-height: 0;
    max-height: none;
    padding: 16mm 18mm !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    page-break-after: always;
    break-after: page;
    overflow: visible;
    break-inside: auto;
  }
  .nv-report-page:last-child { page-break-after: auto; break-after: auto; }
  .nv-head img { width: 78px; }
  .nv-story { font-size: 11pt; }
  .nv-table th, .nv-table td { padding: 8px 6px; font-size: 9.5pt; }
}
