:root {
  --ink: #2A2D34;
  --muted: #68625b;
  --line: #e8e1d6;
  --paper: #fffdf8;
  --soft: #f7f1e7;
  --honey: #c89211;
  --honey-dark: #9f7100;
  --leaf: #2f5d50;
  --ruche-active: #4A5264;
  --success-light: #73b88a;
  --success: #3f8f68;
  --excellent: #245446;
  --warning: #d9822b;
  --alert: #c94c3b;
  --mint: #dff0e6;
  --coral: #f1775b;
  --blue: #476f9f;
  --shadow: 0 18px 50px rgba(42, 32, 12, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(200, 146, 17, .08), transparent 34%),
    linear-gradient(220deg, rgba(47, 93, 80, .12), transparent 40%),
    var(--paper);
}
strong, b { color: var(--ruche-active); }
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  max-width: 100%;
  line-height: 1.15;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 10px 10px 16px;
  background: rgba(255, 253, 248, .82); border-right: 1px solid var(--line);
  backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 24px; z-index: 20;
}
.brand { display: grid; padding: 0 0 4px; text-decoration: none; overflow: hidden; }
.brand img { width: 112%; max-width: none; transform: translate(-10px, -4px); display: block; mix-blend-mode: multiply; clip-path: inset(1px 1px 1px 1px); }
.nav { display: grid; gap: 7px; min-height: 0; flex: 1; }
.nav-section {
  margin: 18px 10px 4px; color: var(--honey-dark); text-transform: uppercase;
  letter-spacing: .09em; font-size: 11px; font-weight: 900;
}
.nav-spacer { flex: 1; min-height: 22px; border-top: 1px solid var(--line); margin: auto 10px 8px; }
.nav-item {
  border: 0; background: transparent; color: var(--muted); text-align: left;
  padding: 12px 14px; border-radius: 8px; display: flex; gap: 10px; align-items: center;
}
.nav-item span { width: 22px; color: var(--honey-dark); }
.nav-item.active, .nav-item:hover { background: #fff; color: var(--ink); box-shadow: 0 8px 26px rgba(36, 25, 8, .07); }
.nav-item.locked { opacity: .62; cursor: not-allowed; }
.nav-item.locked:hover { background: transparent; color: var(--muted); box-shadow: none; }
.sidebar-footer { margin-top: 0; background: var(--ruche-active); color: white; padding: 16px; border-radius: 8px; display: grid; gap: 5px; }
.sidebar-footer strong { color: white; }
.sidebar-footer span { color: rgba(255,255,255,.82); font-weight: 800; }
.sidebar-footer small { color: rgba(255,255,255,.76); line-height: 1.45; }

.main { min-width: 0; }
body.auth-mode .app-shell { display: block; min-height: 100vh; }
body.auth-mode .sidebar,
body.auth-mode .topbar { display: none; }
body.auth-mode .view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.topbar {
  min-height: 82px; padding: 16px 34px; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; border-bottom: 1px solid rgba(232, 225, 214, .72); background: rgba(255, 253, 248, .65);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10;
}
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: 8px; width: 42px; height: 42px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; color: var(--honey-dark); font-size: 12px; font-weight: 800; }
h1 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 38px); letter-spacing: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.top-identity { min-width: 0; }
.brandline {
  display: flex; align-items: center; gap: 14px; color: var(--ink);
  font-size: 12px; font-weight: 800;
}
.client-mark {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: white; border: 1px solid var(--line); color: var(--honey-dark); font-weight: 900;
}
.client-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  padding: 4px;
}
.client-table-name { display: flex; align-items: center; gap: 10px; }
.client-meta { display: grid; gap: 3px; min-width: 0; }
.client-meta strong { font-size: 15px; }
.client-meta span { color: var(--muted); font-size: 12px; font-weight: 700; }
.client-meta b, #clientReference { color: var(--muted); font-weight: 400; }
.consultant-client-switch {
  min-width: 240px;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  border-color: #ead7a6;
  background: #fffaf0;
  color: var(--ruche-active);
  font-size: 12px;
  font-weight: 800;
}
.top-actions { display: flex; align-items: center; gap: 12px; align-self: center; }
.logout-top-action { padding: 10px 14px; font-size: 13px; }
.role-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.role-switch span { display: none; }
.role-static {
  padding: 10px 12px; border: 1px solid #ead7a6; background: #fff8e6;
  color: var(--ruche-active); border-radius: 999px; font-weight: 900;
}
select, input, textarea {
  border: 1px solid var(--line); background: white; border-radius: 8px; padding: 10px 12px; color: var(--ink);
  min-height: 42px;
}
.role-switch select { height: 42px; display: inline-flex; align-items: center; }
.primary-action, .secondary-action {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.compact-primary {
  width: fit-content;
  background: var(--honey);
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
}
.secondary-action {
  background: rgba(255,255,255,.72);
  color: var(--ruche-active);
  border: .5px solid var(--line);
}
#royalButton { height: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; font-size: 13px; background: var(--ruche-active); }

.view {
  padding: 24px 34px 46px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.view > * {
  max-width: 100%;
  min-width: 0;
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; align-items: stretch;
  margin-bottom: 14px;
}
.hero-panel, .card, .module-card, .form-panel {
  background: rgba(255,255,255,.78); border: 1px solid rgba(232,225,214,.9); border-radius: 8px; box-shadow: var(--shadow);
}
.hero-panel { padding: 22px 28px 18px; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.hero-panel > div:first-child { padding-top: 2px; }
.hero-panel .eyebrow { margin-bottom: 20px; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.hero-title { max-width: 780px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin: 0 0 16px; letter-spacing: 0; }
.hero-copy { color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 760px; margin-top: 0; }
.hero-summary {
  min-width: 300px; display: grid; gap: 8px; justify-items: end; text-align: right;
  padding-top: 34px; color: var(--muted); font-weight: 800;
}
.hero-summary strong {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ruche-active);
  background: #fff8e6; border: 1px solid #ead7a6; border-radius: 999px; padding: 8px 12px;
}
.hero-summary span { font-size: 13px; }
.offer-card { padding: 28px; display: grid; gap: 20px; background: var(--ruche-active); color: white; border-radius: 8px; box-shadow: var(--shadow); }
.offer-card .eyebrow, .offer-card small { color: #e9c765; }
.offer-card h2 { margin: 0; font-size: 42px; color: white; }
.offer-card h3 { color: white; margin: 0 0 10px; }
.offer-card p, .offer-card li { color: rgba(255,255,255,.84); }
.program-list { display: grid; gap: 0; padding-top: 18px; }
.program-list > div { display: block; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.14); color: white; font-weight: 900; font-size: 20px; }
.program-list span { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .module-card, .form-panel { padding: 18px; }
.dashboard-priority { margin-bottom: 16px; align-items: stretch; }
.dashboard-kpi { display: grid; gap: 12px; padding-top: 18px; align-content: start; }
.dashboard-kpi > div:first-child { margin-top: 0; }
.dashboard-kpi .metric { margin-top: 8px; align-items: center; }
.dashboard-kpi .secondary-action { width: fit-content; }
.imr-score { display: block; font-size: 42px; line-height: .95; color: var(--ruche-active); margin-top: 4px; }
.imr-status { display: flex; justify-content: flex-end; margin-top: -2px; }
.help-bubble { display: inline-block; position: relative; margin-top: 10px; color: var(--honey-dark); font-size: 12px; font-weight: 800; cursor: help; }
.help-content { display: none; position: absolute; left: 0; top: 26px; z-index: 20; width: min(330px, 80vw); padding: 14px; border-radius: 8px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted); line-height: 1.6; font-style: italic; font-weight: 500; }
.help-bubble:hover .help-content, .help-bubble:focus .help-content { display: block; }
.discover-panel { margin-bottom: 16px; display: grid; gap: 10px; }
.discover-panel .secondary-action { width: fit-content; }
.profile-panel { margin-bottom: 18px; }
.profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid label, .field-grid label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; font-size: 13px; }
.profile-grid label small, .field-grid label small { color: var(--muted); font-size: 11px; font-weight: 600; }
.profile-panel .primary-action { width: fit-content; }
.card h3, .module-card h3, .form-panel h3 { margin: 0 0 10px; font-size: 20px; }
.card p, .module-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.metric { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.metric strong { font-size: 36px; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px;
  background: var(--mint); color: var(--leaf); font-size: 12px; font-weight: 800;
  white-space: nowrap;
}
.pill.gold, .pill.orange { background: #fff0dc; color: #9a5118; }
.pill.red { background: #ffe1da; color: var(--alert); }
.pill.blue { background: #e2ebf7; color: #264d7b; }
.pill.lightgreen { background: #edf8ef; color: #317a4f; }
.pill.green { background: #e0f1e8; color: var(--success); }
.pill.honey { background: #fff1c9; color: var(--honey-dark); }
.pill.muted { background: var(--soft); color: var(--muted); }
.pill.yellow { background: #fff3cd; color: #6f5200; }
.pill.darkgreen { background: #dceee0; color: #2c5f2d; }
.pill.ruche-level-badge {
  background: var(--level-color);
  color: var(--level-text);
  border-color: color-mix(in srgb, var(--level-color) 70%, #fff);
}
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin: 30px 0 14px;
  width: 100%;
  min-width: 0;
}
.section-title > div { min-width: 0; }
.section-title .eyebrow {
  color: var(--honey-dark);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 0;
}
.section-title h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.section-title p { margin: 0; color: var(--muted); }
.section-title .secondary-action {
  flex: 0 0 auto;
  max-width: min(220px, 100%);
}
.admin-page-title {
  align-items: center;
  margin-top: 30px;
  margin-bottom: 14px;
}
.admin-identity-badge {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 11px;
  font-weight: 750;
  background: #e0f1e8;
  color: var(--leaf);
}

.module-card { display: grid; gap: 12px; min-height: 160px; }
.module-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.module-card header h3 { flex: 1; min-width: 0; }
.module-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.module-meta-line {
  color: var(--ruche-active);
  font-size: 14px;
  line-height: 1.45;
}
.dashboard-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 42px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 9px 0 0;
  color: var(--ruche-active);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.dashboard-post-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-post-row i,
.kanban-cell i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}
.dashboard-post-row b,
.kanban-cell b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}
.essaim-kpis {
  margin-bottom: 16px;
}
.essaim-kpis article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.essaim-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.essaim-kpis strong {
  color: var(--ruche-active);
  font-size: 34px;
  line-height: 1;
}
.essaim-selector {
  margin-bottom: 16px;
}
.essaim-kanban-card {
  display: grid;
  gap: 14px;
}
.essaim-kanban-table th,
.essaim-kanban-table td {
  text-align: center;
  vertical-align: middle;
}
.essaim-kanban-table th:first-child,
.essaim-kanban-table td:first-child {
  text-align: left;
  min-width: 220px;
}
.essaim-kanban-table td:first-child {
  display: grid;
  gap: 3px;
}
.essaim-kanban-table td:first-child span,
.essaim-kanban-table td:first-child small {
  color: var(--muted);
  font-size: 12px;
}
.kanban-cell {
  width: 100%;
  min-width: 96px;
  display: grid;
  gap: 6px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 8px;
  color: var(--ruche-active);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.kanban-cell.done {
  background: #e0f1e8;
  border-color: rgba(49,122,79,.18);
}
.kanban-cell.locked {
  background: var(--soft);
  color: var(--muted);
}
.kanban-cell.locked b {
  width: 0;
}
.progress-track { height: 9px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: var(--value); background: var(--gauge, var(--success)); border-radius: inherit; }
.progress-fill.green { background: var(--success); }
.progress-fill.orange { background: var(--warning); }
.progress-fill.red { background: var(--alert); }
.recommendation-panel {
  background: var(--ruche-active);
  color: white;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.recommendation-panel .eyebrow { color: #e9c765; letter-spacing: .1em; margin-bottom: 8px; }
.recommendation-panel strong { color: white; }
.recommendation-panel p { color: rgba(255,255,255,.78); margin: 0; line-height: 1.45; }
.recommendation-editor {
  width: 100%;
  min-height: 92px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: white;
  resize: vertical;
}
.recommendation-editor::placeholder { color: rgba(255,255,255,.45); }
.recommendation-save { color: #f2d27b; }
.recommendation-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.recommendation-signature span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.guarantee-note {
  border: 1px solid rgba(200,146,17,.28);
  background: #fff8e6;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.guarantee-note p { margin: 0; }

.calculator { display: grid; grid-template-columns: minmax(560px, 1fr) 340px; gap: 24px; align-items: start; }
.form-panel { display: grid; gap: 14px; }
.field-grid { display: grid; gap: 12px; }
.calculator .form-panel { gap: 28px; padding: 26px; }
.calculator .field-grid { gap: 24px; }
.calculator .field-grid label { color: var(--muted); font-size: 16px; font-weight: 500; }
.calculator .field-grid label strong { color: var(--ruche-active); font-weight: 900; }
.calculator .field-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 28px; }
.calculator input { font-size: 15px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 92px; gap: 12px; align-items: center; }
.field-row label { color: var(--muted); line-height: 1.35; }
input[type="range"] { width: 100%; accent-color: var(--honey); }
.score-box { padding: 24px; background: var(--ink); color: white; border-radius: 8px; display: grid; gap: 16px; position: sticky; top: 116px; }
.score-box strong { font-size: 58px; line-height: .9; color: white; }
.score-box p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.5; }
.score-box .pill { width: fit-content; }
.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 8px; background: white; }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; max-width: 100%; min-width: 0; }
.tab {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  min-height: 42px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
}
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.admin-kpis { margin-bottom: 16px; align-items: stretch; }
.admin-kpi {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 132px;
}
.admin-kpi strong {
  font-size: clamp(42px, 4vw, 60px);
  line-height: .95;
  color: var(--ruche-active);
  overflow-wrap: anywhere;
}
.admin-kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.admin-kpi .kpi-trend {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 3px;
  padding: 5px 10px;
  width: fit-content;
}
.admin-kpi .kpi-trend.green {
  background: #e0f1e8;
  color: var(--success);
}
.admin-kpi .kpi-trend.orange,
.admin-kpi .kpi-trend.warning {
  background: #fff0dc;
  color: #9a5118;
}
.admin-kpi .kpi-trend.danger {
  background: #ffe1da;
  color: var(--alert);
}
.admin-kpi.subscription-warning {
  border-color: #efc06a;
  box-shadow: 0 14px 36px rgba(200, 154, 46, .14);
}
.admin-kpi.subscription-danger {
  border-color: #e05c4f;
  box-shadow: 0 14px 36px rgba(224, 92, 79, .14);
}
.ruche-active-admin-kpis { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.ruche-active-admin-kpis .admin-kpi { min-width: 160px; }
.ruche-active-admin-kpis .admin-kpi .eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ruche-active-admin-kpis .admin-kpi strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
}
.ruche-active-admin-kpis .admin-kpi span {
  font-size: 13px;
  font-weight: 600;
}
.ruche-active-admin-actions .primary-action,
.ruche-active-admin-actions .secondary-action {
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
}
.ruche-active-admin-actions .ruche-active-edit-action {
  background: #C89A2E;
  color: #FFFFFF;
}
.ruche-active-admin-actions .ruche-active-activate-action {
  background: transparent;
  color: #333333;
  border: 1px solid #333333;
}
.ruche-active-admin-actions .ruche-active-disable-action {
  background: transparent;
  color: var(--alert);
  border: 1px solid var(--alert);
}
.admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, .85fr));
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
}
.admin-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.admin-filters input,
.admin-filters select {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
}
.selected-admin-client {
  background: rgba(200,154,46,0.07);
  box-shadow: inset 3px 0 0 var(--honey);
}
.muted-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.admin-client-editor-head {
  align-items: flex-end;
}
.compact-field {
  display: grid;
  gap: 6px;
  min-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.compact-field select {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
}
.admin-new-client {
  padding: 8px 13px;
  font-size: 13px;
  background: var(--ruche-active);
  white-space: nowrap;
}
.admin-priority-panel {
  border-left: 3px solid var(--honey);
  margin-bottom: 18px;
}
.priority-admin-row {
  background: linear-gradient(90deg, rgba(200,154,46,.08), white 58%);
}
.admin-table {
  min-width: 1120px;
  table-layout: fixed;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  vertical-align: middle;
}
.admin-table th {
  font-size: 11px;
}
.admin-table td {
  color: var(--ruche-active);
  font-size: 13px;
  line-height: 1.35;
}
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 105px; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 150px; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 130px; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 125px; }
.admin-table th:nth-child(5), .admin-table td:nth-child(5) { width: 250px; }
.admin-table th:nth-child(6), .admin-table td:nth-child(6) { width: 135px; }
.admin-table th:nth-child(7), .admin-table td:nth-child(7) { width: 110px; }
.admin-table th:nth-child(8), .admin-table td:nth-child(8) { width: 130px; }
.admin-table th:nth-child(9), .admin-table td:nth-child(9) { width: 205px; }
.client-ref,
.nowrap {
  white-space: nowrap;
}
.universe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.universe-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(74,82,100,.07);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.universe-badges .ruche {
  background: #e0f1e8;
  color: #2f7a50;
}
.universe-badges .essaim {
  background: #fff0dc;
  color: #9a5118;
}
.universe-badges .reine {
  background: #eee8ff;
  color: #5b448d;
}
.universe-badges .reserve {
  background: #eaf0f8;
  color: #3f526d;
}
.universe-badges .academy {
  background: #fff7d8;
  color: #7d5b00;
}
.mini-progress { display: grid; gap: 6px; min-width: 130px; }
.mini-progress span { color: var(--ruche-active); font-weight: 900; font-size: 12px; }
.referential-total { padding: 10px 12px; border-radius: 8px; font-weight: 900; }
.referential-total.valid { background: var(--mint); color: var(--leaf); }
.referential-total.invalid { background: #ffe1da; color: var(--alert); }
.account-card { display: grid; gap: 14px; align-content: start; }
.account-card .primary-action, .account-card .secondary-action { width: fit-content; }
.info-list { display: grid; gap: 12px; margin: 0; }
.info-list div { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.info-list div:first-child { border-top: 0; padding-top: 0; }
.info-list dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.info-list dd { margin: 0; color: var(--ruche-active); font-weight: 900; }
.account-actions { display: grid; gap: 12px; align-items: start; }
.account-actions p { font-size: 13px; }
.toggle-list { display: grid; gap: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ruche-active); font-weight: 900; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { width: 48px; height: 28px; flex: 0 0 auto; border-radius: 999px; background: #e7e0d5; position: relative; transition: background .18s ease; }
.toggle-row i::after { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 8px rgba(42,45,52,.2); transition: transform .18s ease; }
.toggle-row input:checked + i { background: var(--success); }
.toggle-row input:checked + i::after { transform: translateX(20px); }
.section-inline { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; min-width: 0; }
.section-inline > div { min-width: 0; }
.section-inline h3 { margin-bottom: 0; }
.users-management { margin-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
.users-table { min-width: 980px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions .secondary-action { padding: 8px 10px; font-size: 12px; }
.danger-action { color: var(--alert); border-color: #f0c5bd; }
.editing-row { background: #fffaf0; }
.checkbox-panel { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; margin: 0; }
.checkbox-panel legend { padding: 0 6px; color: var(--muted); font-weight: 900; font-size: 13px; }
.checkbox-panel label { display: flex; align-items: center; gap: 8px; color: var(--ruche-active); }
.checkbox-panel input { min-height: auto; }
.wide-field { grid-column: 1 / -1; }
.quick-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quick-badges span {
  display: inline-flex; gap: 10px; align-items: center; padding: 9px 13px; border-radius: 999px;
  background: rgba(42,45,52,.08); border: 1px solid var(--line); color: var(--muted); font-weight: 800;
}
.recommendation-badge span { background: #fff8e6; color: var(--ruche-active); border-color: #ead7a6; }
.quick-badges strong { color: var(--honey-dark); }
.status-pill {
  border: 0; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900;
  background: var(--mint); color: var(--leaf);
}
.status-pill.discover { background: #fff0dc; color: #9a5118; }
.status-pill.locked-trigger { cursor: not-allowed; }
.reserve-alert {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-color: rgba(200,146,17,.3);
  background: #fff8e6;
}
.reserve-alert .primary-action { flex: 0 0 auto; background: var(--honey); }
.ruche-active-title p { max-width: 980px; }
.ruche-active-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ruche-active-plan {
  display: flex;
  flex-direction: column;
  min-height: 660px;
  height: 100%;
  padding: 2rem;
  border-radius: 16px;
}
.ruche-active-plan ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; }
.ruche-active-plan h2 { font-size: 32px; font-weight: 700; line-height: 1.1; }
.ruche-active-plan h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.plan-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan-columns.single { grid-template-columns: 1fr; }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.plan-copy { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.9) !important; }
.subscription-status { display: grid; gap: 8px; align-items: start; }
.subscription-status small { color: rgba(255,255,255,.78); font-weight: 800; line-height: 1.45; }
.active-plan-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,180,100,0.15);
  border: 1px solid rgba(30,180,100,0.3);
  color: #4cd98a;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
}
.active-plan-pill i { font-style: normal; line-height: 1; }
.subscription-summary { margin-top: 16px; }
.subscription-summary .eyebrow,
.subscription-summary .info-list dt {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.subscription-summary .subscription-level { font-size: 20px; font-weight: 600; line-height: 1.2; margin: 0; }
.subscription-summary .info-list dd { font-size: 14px; font-weight: 600; }
.subscription-summary .primary-action {
  width: fit-content;
  margin-top: 14px;
  background: #C89A2E;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
}
.upgrade-link {
  background: transparent;
  border: 0;
  color: #f2d27b;
  padding: 0;
  font-weight: 900;
  white-space: nowrap;
}
.recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 241, 201, .14);
  border: 1px solid rgba(242, 210, 123, .42);
  color: #f2d27b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.gold-action { background: #C89A2E; color: #FFFFFF; border-radius: 8px; padding: 14px 24px; font-weight: 600; margin-top: auto; }
.executive-plan { background: #2C3E50; }
.executive-plan .primary-action {
  background: #C89A2E;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 600;
  margin-top: auto;
}
.skip-subscription-link {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  width: fit-content;
}
.status-pill.locked-trigger:hover { filter: brightness(.98); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lane { background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.lane h3 { margin: 0 0 12px; font-size: 16px; }
.mini-card { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.mini-card strong { display: block; margin-bottom: 5px; }
.mini-card small { color: var(--muted); }
.mini-card.clickable-row {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.mini-card.clickable-row:hover {
  border-color: rgba(200, 154, 46, .42);
  box-shadow: 0 10px 24px rgba(42, 45, 52, .08);
}
.stack-list { display: grid; gap: 10px; margin: 14px 0 16px; }
.stack-list .mini-card { margin-bottom: 0; }

.stack-sm {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.imr-scoring-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.imr-scoring-row:first-child {
  border-top: 0;
}

.imr-scoring-row > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compact-segmented {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.compact-segmented label {
  cursor: pointer;
}

.compact-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compact-segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.compact-segmented input:checked + span {
  background: rgba(200, 154, 46, .16);
  border-color: var(--gold, #C89A2E);
  color: #8a6200;
}

@media (max-width: 720px) {
  .imr-scoring-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  border-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.detail-tabs .tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  color: var(--muted);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  min-height: 50px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: break-word;
  box-shadow: 0 8px 22px rgba(36, 25, 8, .04);
}
.detail-tabs .tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  font-weight: 800;
  box-shadow: none;
}
.detail-pane {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.overview-head {
  align-items: start;
  margin-bottom: 0;
}
.overview-head h3 {
  margin-top: 4px;
}
.overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.status-dot.green { color: var(--success); }
.status-dot.honey { color: var(--honey-dark); }
.status-dot.blue { color: #476f9f; }
.overview-edit-action {
  font-size: 13px;
}
.detail-progress {
  display: grid;
  gap: 8px;
}
.detail-progress.compact { gap: 6px; }
.detail-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.detail-progress-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-progress-head strong {
  color: var(--ruche-active);
  font-size: 13px;
  font-weight: 600;
}
.detail-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e0e0;
}
.detail-progress.compact .detail-progress-track { height: 6px; }
.detail-progress-track > div {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}
.detail-progress-track > div.orange { background: var(--warning); }
.detail-progress-track > div.red { background: var(--alert); }
.session-warning {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  border: 1px solid rgba(200,154,46,.35);
  border-radius: 10px;
  background: #fff8e8;
  color: var(--ruche-active);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-weight: 800;
  text-align: left;
}
.detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-overview-grid article {
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.7);
}
.avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.responsible-list,
.date-stack {
  display: grid;
  gap: 12px;
}
.responsible-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.responsible-person span {
  display: grid;
  gap: 2px;
}
.responsible-person strong {
  color: var(--ruche-active);
  font-size: 13px;
  line-height: 1.2;
}
.responsible-person small {
  color: var(--color-text-secondary, var(--muted));
  font-size: 12px;
  line-height: 1.25;
}
.detail-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(200,154,46,0.15);
  color: #8a6200;
  font-size: 12px;
  font-weight: 600;
}
.detail-date {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ruche-active) !important;
  font-size: 13px;
  font-weight: 700;
}
.detail-date > .ti {
  color: #C89A2E;
  font-size: 16px;
  line-height: 1.2;
}
.detail-date span:last-child {
  display: grid;
  gap: 2px;
}
.detail-date b {
  color: var(--color-text-secondary, var(--muted));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-date strong {
  color: var(--ruche-active);
  font-size: 13px;
  font-weight: 700;
}
.overview-mini {
  border-left: 3px solid #C89A2E;
  display: grid;
  gap: 8px;
  padding-left: 14px;
}
.overview-mini > .ti {
  color: #C89A2E;
  font-size: 20px;
  line-height: 1;
}
.overview-mini small {
  color: var(--color-text-secondary, var(--muted));
  font-size: 13px;
  line-height: 1.45;
}
.overview-objectives {
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  padding: 16px;
}
.overview-objectives h3 {
  margin: 0 0 12px;
  color: var(--ruche-active);
  font-size: 14px;
  font-weight: 600;
}
.overview-objectives ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.overview-objectives li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.overview-objectives li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200,154,46,0.15);
  color: #8a6200;
  font-size: 11px;
  font-weight: 700;
}
.overview-objectives li p {
  margin: 0;
  color: var(--ruche-active);
  font-size: 14px;
  line-height: 1.45;
}
.overview-scope {
  display: grid;
  gap: 8px;
}
.overview-scope div {
  border-left: 3px solid #C89A2E;
  border-radius: 8px;
  background: var(--color-background-secondary, var(--soft));
  padding: .75rem 1rem;
  color: var(--ruche-active);
  font-size: 14px;
  line-height: 1.5;
}
.beematch-counters {
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  padding: 16px;
}
.beematch-counters > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.beematch-counters span {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.beematch-counters strong {
  color: var(--ruche-active);
  font-size: 24px;
  line-height: 1;
}
.landing-shell {
  display: grid;
  gap: 18px;
}
.landing-collaborator-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  background: #243447;
  color: white;
  padding: 24px;
}
.landing-collaborator-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.78);
  font-weight: 650;
}
.landing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-card-head h3 {
  color: white;
  margin: 0;
}
.landing-avatar-xl {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200,154,46,.22);
  color: #f2d27b;
  border: 1px solid rgba(242,210,123,.35);
  font-size: 22px;
  font-weight: 900;
}
.landing-progress {
  display: grid;
  gap: 7px;
}
.landing-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.landing-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.landing-steps i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-style: normal;
}
.landing-steps .done i { background: var(--success); color: white; }
.landing-steps .current i { background: rgba(200,154,46,.2); color: var(--honey-dark); }
.landing-steps .locked i { background: #e8e3da; color: var(--muted); }
.landing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.landing-summary-card {
  display: grid;
  gap: 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(36,25,8,.04);
}
.landing-summary-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-summary-card strong {
  color: var(--ruche-active);
  font-size: 24px;
}
.landing-panel {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 16px;
}
.landing-panel h3 {
  margin: 0;
  color: var(--ruche-active);
  font-size: 17px;
}
.landing-panel p {
  color: var(--muted);
  margin: 0;
}
.landing-alert {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(200,154,46,.28);
  border-left: 3px solid #C89A2E;
  border-radius: 8px;
  background: #fff8e6;
  padding: 12px 14px;
  color: var(--ruche-active);
}
.landing-alert.danger {
  border-color: rgba(207,82,64,.28);
  border-left-color: var(--alert);
  background: #fff1ed;
}
.landing-alert span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.landing-doc-list {
  display: grid;
  gap: 10px;
}
.landing-doc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.landing-doc-check {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
.landing-doc-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.landing-doc-check input:disabled {
  cursor: default;
}
.landing-doc-check span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.landing-doc-check input:checked + span {
  border-color: rgba(64,151,101,.35);
  background: rgba(64,151,101,.14);
}
.landing-doc-check input:checked + span::after {
  content: "✓";
  color: var(--success);
  font-size: 14px;
  font-weight: 900;
}
.landing-doc-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.landing-doc-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.landing-doc-row.needs-attention {
  border-color: rgba(207,82,64,.26);
  box-shadow: inset 3px 0 0 var(--alert);
}
.landing-doc-row strong {
  display: block;
  color: var(--ruche-active);
  font-size: 14px;
}
.landing-doc-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.landing-doc-row dl,
.landing-planning-step dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}
.landing-doc-row dt,
.landing-planning-step dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.landing-doc-row dd,
.landing-planning-step dd {
  margin: 2px 0 0;
  color: var(--ruche-active);
  font-size: 12px;
  font-weight: 700;
}
.landing-doc-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 240px;
}
.landing-check-list {
  display: grid;
  gap: 9px;
}
.landing-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ruche-active);
  font-weight: 800;
}
.landing-check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}
.landing-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}
.landing-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ruche-active);
  font-weight: 900;
}
.landing-accordion > :not(summary) {
  margin: 0 16px 16px;
}
.landing-table th,
.landing-table td {
  font-size: 12px;
  vertical-align: middle;
}
.landing-table td {
  color: var(--ruche-active);
  font-weight: 650;
}
.landing-planning-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}
.landing-planning-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}
.landing-planning-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}
.landing-step-index {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff8e6;
  color: var(--honey-dark);
  border: 1px solid rgba(200,154,46,.34);
  font-weight: 900;
}
.landing-planning-step.realise .landing-step-index { background: var(--success); color: white; }
.landing-planning-step.en_retard .landing-step-index { background: #ffe1da; color: var(--alert); }
.landing-step-main {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}
.landing-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.landing-step-head h3 {
  margin: 0;
  color: var(--ruche-active);
  font-size: 16px;
}
.landing-comments {
  display: grid;
  gap: 6px;
}
.landing-comments span {
  border-left: 3px solid #C89A2E;
  background: var(--soft);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.landing-feeling-summary article strong {
  font-size: 28px;
}
.landing-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.landing-rating-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}
.landing-rating-card strong {
  color: var(--ruche-active);
}
.landing-stars {
  justify-content: flex-start;
}
.landing-stars span {
  color: var(--muted);
  font-weight: 800;
  margin-left: 8px;
}
.landing-line-chart {
  width: 100%;
  max-width: 560px;
  height: auto;
  background: rgba(200,154,46,.06);
  border-radius: 8px;
  padding: 12px;
}
.landing-scorecard {
  display: grid;
  gap: 12px;
}
.landing-scorecard .score-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.ruche-phase-shell,
.ruche-phase-pane {
  margin-bottom: 18px;
}
.ruche-phase-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ruche-phase-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 7px;
  color: var(--ruche-active);
}
.ruche-phase-step.active {
  border-color: rgba(200,154,46,.45);
  box-shadow: inset 0 0 0 2px rgba(200,154,46,.1);
}
.ruche-phase-step strong,
.ruche-phase-step span {
  display: block;
}
.ruche-dashboard-grid,
.ruche-diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}
.ruche-imr-card {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.imr-entry-panel {
  margin-bottom: 18px;
}
.imr-entry-score {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.imr-entry-score strong {
  font-size: 42px;
  color: var(--ruche-active);
  line-height: 1;
}
.imr-prefill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.imr-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: start;
}
.imr-entry-form,
.imr-history {
  display: grid;
  gap: 12px;
}
.imr-dimension-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: white;
  display: grid;
  gap: 10px;
}
.imr-dimension-row small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.imr-dimension-row span {
  font-weight: 900;
  color: var(--ruche-active);
}
.imr-dimension-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
}
.imr-dimension-controls input[type="number"],
.imr-dimension-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.imr-upload-placeholder {
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}
.imr-upload-placeholder input {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.compact-action {
  width: fit-content;
  margin-top: 16px;
}
.ruche-donut {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--donut) calc(var(--score) * 1%), var(--soft) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.ruche-donut::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: white;
}
.ruche-donut span,
.ruche-donut small {
  position: relative;
  z-index: 1;
}
.ruche-donut span {
  font-size: 48px;
  font-weight: 900;
  color: var(--ruche-active);
  line-height: 1;
}
.ruche-donut small {
  margin-top: 54px;
  margin-left: -52px;
  color: var(--muted);
  font-weight: 800;
}
.ruche-priority-list {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding-left: 22px;
}
.ruche-action-bars {
  display: grid;
  gap: 12px;
}
.ruche-action-bar {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.ruche-action-bar.active {
  background: rgba(200, 154, 46, 0.08);
  border-radius: 8px;
  padding: 8px;
}
.ruche-action-bar:hover span {
  color: var(--gold);
}
.ruche-action-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: var(--ruche-active);
  font-weight: 800;
}
.filter-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0;
}
.ruche-template-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.ruche-template-form h4 {
  color: var(--ruche-active);
  font-size: 16px;
  margin: 8px 0 0;
}
.autosave-note {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}
.checkbox-field {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.checkbox-field legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}
.check-grid label,
.checkbox-field label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-right: 14px;
}
.template-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ruche-form-grid {
  display: grid;
  gap: 16px;
}
.ruche-domain-list {
  display: grid;
  gap: 12px;
}
.ruche-domain-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.ruche-question-list {
  display: grid;
  gap: 8px;
}
.ruche-question-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.ruche-radar-card {
  display: grid;
  justify-items: center;
  align-content: start;
}
.ruche-radar {
  width: min(100%, 430px);
  overflow: visible;
}
.ruche-radar line {
  stroke: rgba(42,45,52,.15);
  stroke-width: 1;
}
.ruche-radar text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.ruche-radar polygon {
  fill: rgba(200,154,46,.18);
  stroke: #D4A857;
  stroke-width: 3;
}
.ruche-radar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 10px;
  width: 100%;
}
.ruche-radar-legend span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.ruche-radar-legend strong {
  display: block;
  color: var(--ruche-active);
  font-size: 12px;
}
.ruche-actions-table input,
.ruche-actions-table select {
  width: 100%;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ruche-active);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}
.ruche-actions-table td:last-child {
  width: 52px;
  text-align: center;
}
.document-list {
  display: grid;
  gap: 10px;
}
.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.landing-calculation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.landing-calculation code {
  display: block;
  color: var(--ruche-active);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
}
.recommendation-editor.light {
  background: white;
  color: var(--ruche-active);
  border-color: var(--line);
}
.landing-transfer {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200,154,46,.3);
  border-radius: 8px;
  background: #fff8e6;
  padding: 16px;
}
.landing-transfer.ready {
  border-color: rgba(49,122,79,.28);
  background: var(--mint);
}
.landing-transfer strong {
  color: var(--ruche-active);
}
.landing-transfer p {
  margin: 0;
  color: var(--muted);
}
.brief-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.brief-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.brief-kpi-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.brief-summary-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 12px;
}
.brief-kpi-grid span,
.brief-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brief-kpi-grid strong {
  color: var(--ruche-active);
  font-size: 32px;
  line-height: 1;
}
.brief-summary-grid strong {
  color: var(--ruche-active);
}
.brief-filter-row {
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
}
.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.filter-pill.active {
  border-color: rgba(200,154,46,.42);
  background: #fff8e6;
  color: var(--ruche-active);
}
.brief-table td,
.brief-table th {
  white-space: nowrap;
}
.brief-table td:nth-child(2) {
  white-space: normal;
  min-width: 220px;
}
.brief-context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.brief-context-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.brief-context-header select {
  min-width: min(360px, 100%);
}
.pane-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ref-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(200,154,46,.32);
  border-radius: 999px;
  background: #fff8e6;
  color: var(--ruche-active);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.brief-import-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}
.brief-import-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.brief-modal .profile-viewer-panel {
  max-width: 680px;
}
.brief-create-panel {
  display: grid;
  gap: 16px;
}
.autosave-note {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.brief-criteria-section,
.brief-validation-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 15px;
}
.brief-criteria-section header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.brief-criteria-section h3 {
  margin: 0 0 4px;
  color: var(--ruche-active);
  font-size: 16px;
}
.brief-criteria-section p {
  color: var(--muted);
  font-size: 12px;
}
.brief-chip-list,
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brief-fixed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 4px 0 2px;
}
.brief-fixed-grid .field {
  margin: 0;
}
.brief-fixed-grid input,
.brief-fixed-grid select {
  min-height: 42px;
}
.brief-chip-list span,
.suggestion-chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ruche-active);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
.brief-chip-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.brief-chip-list button {
  border: 0;
  background: transparent;
  color: var(--alert);
  padding: 0;
}
.brief-chip-list .eliminatory-chip {
  border-color: #efb8af;
  background: #ffe1da;
}
.profile-grid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.candidate-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 16px;
}
.candidate-card.rejected {
  opacity: .62;
  filter: grayscale(.25);
}
.candidate-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.candidate-card h3 {
  margin: 0 0 3px;
  color: var(--ruche-active);
  font-size: 17px;
}
.candidate-card p,
.candidate-card small {
  color: var(--muted);
}
.candidate-score {
  display: grid;
  gap: 7px;
}
.candidate-score > div:first-child,
.candidate-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.candidate-score strong {
  color: var(--ruche-active);
}
.candidate-status .pill,
.profile-status-select {
  justify-self: end;
}
.profile-status-select {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}
.consultant-note,
.rejection-reason {
  border-left: 3px solid #C89A2E;
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.rejection-reason {
  border-color: var(--alert);
}
.eliminatory-alert {
  border-left: 3px solid var(--alert);
  border-radius: 8px;
  background: #ffe1da;
  color: var(--alert) !important;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
}
.consultant-opinion {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.consultant-opinion textarea {
  min-height: 92px;
  font-size: 13px;
}
.candidate-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.danger-link {
  color: var(--alert);
}
.profile-upload-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.storage-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.profile-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(42,45,52,.28);
}
.profile-viewer-panel {
  width: min(720px, 94vw);
  height: 100%;
  overflow: auto;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto;
  gap: 16px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.profile-viewer-panel header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.pdf-frame {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.pdf-frame iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  background: #f7f7f7;
}
.pdf-frame p,
.viewer-opinion p {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
}
.viewer-opinion {
  border-left: 3px solid #C89A2E;
  border-radius: 8px;
  background: var(--soft);
  padding: 12px 14px;
}
.viewer-opinion p {
  padding: 0;
}
.comparison-table {
  min-width: 760px;
  table-layout: fixed;
}
.beebrief-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(200,154,46,.24);
  border-radius: 8px;
  background: #fff8e6;
  padding: 10px 12px;
  color: var(--ruche-active);
  font-size: 13px;
  font-weight: 750;
}
.beebrief-alert {
  border-color: rgba(200,154,46,.3);
  background: #fff8e6;
}
.beebrief-alert p {
  color: var(--muted);
}
.comparison-table th,
.comparison-table td {
  text-align: center;
  vertical-align: middle;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  width: 220px;
}
.comparison-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 17px;
}
.comparison-mark.eliminatory-fail,
.comparison-select.eliminatory-fail {
  background: #ffe1da;
  border-color: #efb8af;
  color: var(--alert);
}
.comparison-select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 750;
}
.comparison-score-row td {
  background: rgba(200,154,46,.08);
}
.comparison-score-row strong {
  color: var(--ruche-active);
  font-size: 18px;
}
.comparison-score {
  display: grid;
  gap: 6px;
}
.comparison-score span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}
.comparison-score.good span { background: #C89A2E; }
.comparison-score.partial span { background: var(--warning); }
.comparison-score.insufficient span { background: var(--alert); }
.choice-interview-list {
  display: grid;
  gap: 16px;
}
.choice-interview-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  padding: 16px;
}
.choice-interview-card header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.choice-interview-card h3 {
  margin: 0 0 6px;
  color: var(--ruche-active);
  font-size: 18px;
}
.choice-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice-rating-grid > span {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars button {
  border: 0;
  background: transparent;
  color: #d8d0c2;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}
.stars button.active {
  color: var(--honey);
}
.stars button:disabled {
  cursor: default;
}
.choice-decision-table th,
.choice-decision-table td {
  vertical-align: top;
  text-align: center;
}
.choice-decision-table th:first-child,
.choice-decision-table td:first-child {
  text-align: left;
  width: 210px;
}
.choice-decision-table .best-choice {
  background: #fff8e6;
  color: var(--ruche-active);
}
.choice-score {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
}
.choice-score.best {
  background: rgba(200,154,46,.16);
}
.choice-recommendation {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: #3f4657;
  color: #fff;
  padding: 18px;
}
.choice-recommendation .eyebrow {
  color: #f0c85a;
}
.choice-recommendation p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.6;
}
.choice-recommendation textarea {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.candidate-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 16px;
}
.candidate-hero h3 {
  margin: 0 0 4px;
  color: var(--ruche-active);
}
.candidate-hero p,
.candidate-hero small {
  color: var(--muted);
}
.impact-timeline {
  display: grid;
  gap: 8px;
  margin: 6px 0 14px;
}
.impact-timeline-track {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  position: relative;
}
.impact-timeline-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}
.impact-markers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.impact-markers b:last-child {
  text-align: right;
}
.compact-eval {
  padding: 12px;
}
.danger-outline {
  border-color: #e2aaa2;
  color: var(--alert);
  background: transparent;
}
.danger-action {
  background: var(--alert);
  color: #fff;
}
.secure-alert {
  border-color: #e2aaa2;
  box-shadow: 0 0 0 1px rgba(204,76,58,.12), var(--shadow);
}
.secure-alert .overview-head h3 {
  color: var(--alert);
}
.criterion-label {
  display: grid;
  gap: 3px;
}
.criterion-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.criterion-label .source-eliminatory {
  color: var(--alert);
}
.criteria-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.candidate-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.candidate-analysis-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  padding: 16px;
}
.candidate-analysis-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.candidate-analysis-card h3,
.candidate-analysis-card h4 {
  margin: 0;
  color: var(--ruche-active);
}
.candidate-analysis-card h3 { font-size: 17px; }
.candidate-analysis-card h4 { font-size: 13px; }
.candidate-analysis-card section { display: grid; gap: 8px; }
.analysis-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.candidate-analysis-card textarea {
  min-height: 110px;
  font-size: 13px;
}
.candidate-analysis-card p {
  color: var(--muted);
  font-size: 13px;
}
.final-recommendation {
  border-left: 3px solid #C89A2E;
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 12px;
}
.decision-list {
  display: grid;
  gap: 10px;
}
.decision-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 13px 14px;
}
.decision-row div {
  display: grid;
  gap: 4px;
}
.decision-row strong {
  color: var(--ruche-active);
}
.decision-row small {
  color: var(--muted);
  font-size: 12px;
}
.decision-row .decision-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pills button {
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 999px;
  background: white;
  color: var(--ruche-active);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}
.detail-doc-list,
.action-list {
  display: grid;
  gap: 10px;
}
.detail-doc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border-primary, var(--line));
}
.detail-doc-row:first-child { border-top: 0; }
.detail-doc-row strong {
  color: var(--ruche-active);
  min-width: 0;
}
.doc-type-pill {
  border-radius: 999px;
  background: #f5efe2;
  color: var(--honey-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.download-action,
.download-pdf-action {
  border: .5px solid var(--color-border-primary, var(--line));
  background: transparent;
  color: var(--ruche-active);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.download-action {
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
}
.download-pdf-action {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
}
.detail-add-action {
  border: 0;
  border-radius: 8px;
  background: #C89A2E;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.updated-at {
  display: block;
  margin-top: 7px;
  color: var(--color-text-secondary, var(--muted));
  font-size: 12px;
  font-weight: 700;
}
.chart-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
  margin: 0 auto;
}
#analysisChart {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.analysis-bars {
  display: grid;
  gap: 10px;
}
.analysis-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--ruche-active);
  font-size: 13px;
  font-weight: 800;
}
.analysis-bar-row div {
  height: 10px;
  border-radius: 999px;
  background: rgba(200,154,46,0.1);
  overflow: hidden;
}
.analysis-bar-row i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #C89A2E;
}
.empty-state {
  min-height: 220px;
  place-items: center;
  text-align: center;
}
.empty-state .ti {
  color: #C89A2E;
  font-size: 30px;
}
.empty-state p {
  max-width: 420px;
  color: var(--color-text-secondary, var(--muted));
  font-size: 14px;
}
.timeline-list {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 5px;
  width: 2px;
  background: var(--color-border-tertiary, var(--line));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
}
.timeline-item > span {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #C89A2E;
}
.timeline-item div {
  display: grid;
  gap: 5px;
}
.timeline-item time {
  color: var(--color-text-secondary, var(--muted));
  font-size: 12px;
  font-weight: 700;
}
.timeline-item strong {
  color: var(--ruche-active);
  font-size: 14px;
  font-weight: 600;
}
.action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border-primary, var(--line));
  border-radius: 8px;
  background: white;
  color: var(--ruche-active);
  font-weight: 800;
  transition: opacity .18s ease, background .18s ease;
}
.action-row input { min-height: auto; }
.action-row time {
  color: var(--color-text-secondary, var(--muted));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.action-row.done {
  opacity: .5;
}
.action-status {
  border-radius: 999px;
  background: #e2ebf7;
  color: #264d7b;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.action-row.done .action-status {
  background: rgba(76,217,138,.18);
  color: #26945b;
}
.milestone-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.milestone { position: relative; text-align: center; font-size: 11px; font-weight: 900; padding-top: 13px; color: var(--muted); }
.milestone::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; background: var(--line); }
.milestone::after { content: ""; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.milestone.done::before, .milestone.done::after { background: var(--success); }
.milestone.current::before, .milestone.current::after { background: var(--excellent); }
.milestone.future::before, .milestone.future::after { background: #d9d9d9; }
.week-progress { display: grid; gap: 7px; margin-top: 10px; }
.week-progress span { color: var(--muted); font-size: 12px; font-weight: 900; }
.week-bar { height: 10px; background: #ece8df; border-radius: 999px; overflow: hidden; }
.week-fill { height: 100%; width: var(--value); background: var(--success); border-radius: inherit; }
.timeline-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.timeline-step { border-top: 3px solid #d9d9d9; padding-top: 8px; }
.timeline-step span { font-weight: 900; color: var(--muted); }
.timeline-step p { font-size: 12px; line-height: 1.35; }
.timeline-step.done { border-color: var(--success); }
.timeline-step.current { border-color: var(--excellent); }
.timeline-step.future { opacity: .55; }
.weather-pill { width: fit-content; padding: 8px 10px; border-radius: 999px; background: #eef7f1; color: var(--leaf); font-weight: 900; }
.link-action {
  border: 0;
  background: transparent;
  color: var(--honey-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  width: fit-content;
  text-align: left;
}
.link-action:hover {
  color: #7c5600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-back-action {
  justify-self: end;
  align-self: center;
  white-space: nowrap;
}
.locked-card { opacity: .78; }
.completion-note { color: var(--muted); font-size: 12px; font-weight: 800; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-row span { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-row .secondary-action { padding: 8px 10px; }
.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
}
.notification-item strong { font-weight: 700; min-width: 0; }
.notification-item .link-action {
  white-space: nowrap;
  font-size: 12px;
}
.notification-link {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}
.notification-link:hover {
  border-color: rgba(200, 146, 17, .45);
  box-shadow: 0 10px 28px rgba(36, 25, 8, .08);
}
.notification-done-inline { color: var(--muted); }
.notification-delete-inline { color: #B94A48; }
.notification-history {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.notification-history small {
  color: var(--muted);
  font-weight: 700;
}

.consultant-home-title h2 {
  font-size: clamp(34px, 4vw, 52px);
}
.consultant-client-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.consultant-client-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
  padding: 14px;
}
.client-mark.small {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.consultant-client-row strong {
  display: block;
  font-size: 16px;
}
.consultant-client-row small,
.consultant-client-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.consultant-client-row p {
  margin: 5px 0 2px;
  color: var(--ruche-active);
  font-weight: 800;
}
.consultant-client-notice {
  display: grid;
  gap: 4px;
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid #ead7a6;
  border-left: 4px solid var(--honey);
  border-radius: 8px;
  background: #fff8e6;
}
.consultant-client-notice strong {
  color: var(--ruche-active);
}
.consultant-client-notice span,
.consultant-client-notice small {
  color: var(--muted);
  font-weight: 700;
}
.score-line {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.score-line > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.score-line span {
  font-weight: 800;
  color: var(--ruche-active);
}
.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.timeline div {
  display: grid;
  gap: 4px;
}
.timeline span {
  color: var(--muted);
  font-weight: 700;
}
.status-list { display: grid; gap: 11px; margin-top: 16px; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.status-row:first-child { border-top: 0; padding-top: 0; }

.mobile-close { display: none; }
@media (max-width: 1080px) {
  .hero, .calculator { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-summary { min-width: 0; justify-items: start; text-align: left; padding-top: 0; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-overview-grid { grid-template-columns: 1fr; }
  .profile-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-analysis-grid { grid-template-columns: 1fr; }
  .beematch-counters > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-fixed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-summary-grid { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-doc-row { grid-template-columns: 1fr; }
  .landing-doc-actions { justify-content: flex-start; }
  .ruche-phase-steps,
  .ruche-dashboard-grid,
  .ruche-diagnostic-grid,
  .imr-entry-grid {
    grid-template-columns: 1fr;
  }
  .ruche-radar-legend {
    grid-template-columns: 1fr;
  }
  .ruche-radar text {
    font-size: 9px;
  }
  .document-row {
    grid-template-columns: 1fr;
  }
  .landing-rating-grid { grid-template-columns: 1fr; }
  .ruche-active-plans { grid-template-columns: 1fr; }
  .plan-columns { grid-template-columns: 1fr; }
  .score-box { position: static; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); transform: translateX(-104%);
    transition: transform .22s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .topbar { padding: 14px 16px; align-items: center; }
  .top-actions { display: none; }
  .brandline { gap: 10px; }
  .consultant-client-switch { width: 100%; min-width: 0; }
  .brand img { width: 108%; transform: translate(-7px, -3px); }
  .client-mark { width: 34px; height: 34px; }
  .client-meta span { font-size: 11px; }
  .view { padding: 16px 16px 34px; }
  .hero-panel { padding: 20px 20px 18px; min-height: 142px; }
  .hero-panel > div:first-child { padding-top: 0; }
  .grid-2, .grid-3, .grid-4, .kanban { grid-template-columns: 1fr; }
  .consultant-client-row { grid-template-columns: auto minmax(0, 1fr); }
  .consultant-client-row .link-action { grid-column: 2; justify-self: start; }
  .ruche-active-plans { grid-template-columns: 1fr; }
  .ruche-active-plan { min-height: 0; }
  .reserve-alert { display: grid; }
  .section-inline { display: grid; }
  .admin-filters { grid-template-columns: 1fr; }
  .users-table { min-width: 860px; }
  .admin-table { min-width: 980px; }
  .toggle-row { align-items: start; }
  .field-row { grid-template-columns: 1fr; }
  .section-title { display: grid; align-items: start; }
  .detail-tabs { gap: 8px; }
  .detail-tabs .tab {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
  }
  .notification-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .imr-dimension-controls {
    grid-template-columns: 1fr;
  }
  .detail-doc-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .detail-doc-row .doc-type-pill,
  .detail-doc-row .download-action {
    grid-column: 2;
    width: fit-content;
  }
  .action-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .action-row time,
  .action-row .action-status {
    grid-column: 2 / -1;
    width: fit-content;
  }
  .analysis-bar-row {
    grid-template-columns: 88px minmax(0, 1fr) 30px;
  }
  .profile-grid-list { grid-template-columns: 1fr; }
  .choice-rating-grid { grid-template-columns: 1fr; }
  .brief-summary-grid { grid-template-columns: 1fr; }
  .brief-kpi-grid { grid-template-columns: 1fr; }
  .brief-filter-row { grid-template-columns: 1fr; }
  .brief-context-header { display: grid; }
  .brief-context-header select { min-width: 0; width: 100%; }
  .brief-fixed-grid { grid-template-columns: 1fr; }
  .brief-criteria-section header { display: grid; }
  .criteria-form { grid-template-columns: 1fr; }
  .beebrief-status-line { display: grid; }
  .landing-collaborator-card { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-check-row { grid-template-columns: auto minmax(0, 1fr); }
  .landing-check-row .pill { grid-column: 2; width: fit-content; }
  .landing-doc-row dl,
  .landing-planning-step dl { grid-template-columns: 1fr; }
  .landing-planning-step { grid-template-columns: 30px minmax(0, 1fr); }
  .landing-step-index { width: 30px; height: 30px; font-size: 12px; }
  .landing-planning-timeline::before { left: 14px; }
  .decision-row { display: grid; }
  .decision-row .decision-actions { justify-content: flex-start; }
  .profile-viewer-panel {
    width: 100vw;
    padding: 16px;
  }
.pdf-frame iframe {
    min-height: 360px;
  }
}

.human-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(31,35,40,.42);
  padding: 24px;
}
.human-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 24px 70px rgba(31,35,40,.22);
  padding: 24px;
}
.human-modal h3 {
  margin: 0;
  color: var(--ruche-active);
  font-size: 20px;
  line-height: 1.35;
}
.human-modal pre {
  white-space: pre-wrap;
  margin: 0;
  border-left: 3px solid var(--honey);
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.human-modal-form {
  display: grid;
  gap: 12px;
}
.human-modal-form .field-grid {
  margin: 0;
}
.danger-link {
  color: #c94b42;
}
.admin-notifications-panel {
  margin-bottom: 18px;
}
.notification-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.notification-bell {
  padding-inline: 12px;
  min-height: 38px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-access-list,
.admin-unlock-grid {
  display: grid;
  gap: 10px;
}
.admin-access-row,
.admin-unlock-row,
.admin-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  padding: 12px 14px;
}
.admin-access-row span,
.admin-unlock-row span,
.admin-offer-row strong {
  color: var(--ruche-active);
  font-weight: 850;
}
.admin-offer-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}
/* HumanBee App visual polish - premium cockpit layer */
:root {
  --ink: #252a33;
  --muted: #6f6a64;
  --paper: #fffdf8;
  --soft: #f7f2e8;
  --line: #e4d9cb;
  --honey: #c89a2e;
  --honey-dark: #9b6d00;
  --ruche-active: #4d586b;
  --ruche-active-soft: #eef2ee;
  --shadow: 0 18px 48px rgba(37, 42, 51, .10);
  --shadow-soft: 0 10px 28px rgba(37, 42, 51, .07);
  --radius-card: 14px;
  --radius-control: 10px;
}

html {
  background:
    radial-gradient(circle at 16% 10%, rgba(200, 154, 46, .12), transparent 26%),
    radial-gradient(circle at 86% 6%, rgba(111, 153, 121, .10), transparent 24%),
    linear-gradient(135deg, #fffdf8 0%, #f6f2e9 100%);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 154, 46, .08), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(247, 242, 232, .92));
}

.app-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .96) 0%, rgba(250, 246, 239, .94) 100%);
  border-right: 1px solid rgba(226, 217, 205, .9);
  box-shadow: 18px 0 48px rgba(37, 42, 51, .05);
}

.brand {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.brand img,
.brand-logo {
  max-width: min(250px, 82%);
  object-fit: contain;
}

.nav-section,
.eyebrow,
.module-card .eyebrow,
.form-panel .eyebrow {
  letter-spacing: .12em;
}

.nav-item {
  border-radius: 12px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.nav-item span:first-child {
  color: var(--honey-dark);
}

.sidebar-footer,
.ruche-active-card,
.offer-card.dark,
.recommendation-panel {
  background:
    linear-gradient(145deg, rgba(77, 88, 107, .98), rgba(55, 63, 78, .98));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 78px;
  background: rgba(255, 253, 248, .82);
  border-bottom: 1px solid rgba(226, 217, 205, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(37, 42, 51, .05);
}

.client-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fff9ed);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(37, 42, 51, .08);
}

input,
select,
textarea {
  border-color: var(--line);
  border-radius: var(--radius-control);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(200, 154, 46, .16);
  border-color: rgba(200, 154, 46, .72);
}

.primary-action,
.button-primary,
.btn-primary,
button.primary,
.login-card .primary-action {
  background: var(--ruche-active);
  color: #fff;
  border-color: var(--ruche-active);
  border-radius: var(--radius-control);
  box-shadow: 0 12px 24px rgba(77, 88, 107, .18);
}

.primary-action:hover,
.button-primary:hover,
.btn-primary:hover,
button.primary:hover {
  background: #3f4858;
  transform: translateY(-1px);
}

.secondary-action,
.button-secondary,
.btn-secondary,
.detail-tabs .tab,
.filter-pill,
.filter-pills button {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
}

.view {
  background:
    radial-gradient(circle at 18% 0%, rgba(200, 154, 46, .10), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(111, 153, 121, .10), transparent 25%),
    linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(247, 242, 232, .9));
}

.hero-panel,
.card,
.module-card,
.form-panel,
.human-modal {
  border: 1px solid rgba(226, 217, 205, .94);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 252, 245, .82));
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(28px, 4vw, 44px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -48% 52%;
  height: 220px;
  background: radial-gradient(circle, rgba(200, 154, 46, .12), transparent 62%);
  pointer-events: none;
}

.hero-title,
h1 {
  color: var(--ink);
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.hero-copy,
.card p,
.module-card p {
  color: var(--muted);
}

.module-card,
.form-panel {
  padding: 24px;
}

.module-card h3,
.form-panel h3 {
  font-size: 22px;
  line-height: 1.18;
}

.module-card {
  min-height: 188px;
  gap: 16px;
}

.module-card header {
  align-items: flex-start;
}

.module-card ul {
  line-height: 1.55;
}

.module-card .link-action,
.card .link-action,
.form-panel .link-action {
  color: var(--honey-dark);
  font-weight: 800;
}

.badge,
.status-badge,
.pill {
  border-radius: 999px;
  white-space: nowrap;
}

.progress-track,
.progress-bar,
.mini-progress,
.score-track {
  background: rgba(244, 238, 228, .96);
  border-radius: 999px;
}

.progress-fill,
.score-fill,
.mini-progress-fill {
  background: linear-gradient(90deg, #65b97f, #3f9367);
  border-radius: 999px;
}

.score-number,
.metric strong,
.imr-score {
  color: var(--ruche-active);
}

.dark-card,
.admin-profile,
.royal-card {
  background:
    linear-gradient(145deg, rgba(77, 88, 107, .98), rgba(55, 63, 78, .98));
  color: #fff;
  border-radius: var(--radius-card);
}

.detail-tabs {
  gap: 10px;
  flex-wrap: wrap;
}

.detail-tabs .tab {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.detail-tabs .tab.active {
  background: var(--ruche-active);
  color: #fff;
  border-color: var(--ruche-active);
}

.admin-kpis .card,
.kpi-card {
  min-height: 150px;
  align-content: center;
}

table {
  border-color: var(--line);
}

th {
  color: var(--muted);
  letter-spacing: .08em;
}

tr {
  transition: background .16s ease;
}

tbody tr:hover {
  background: rgba(255, 249, 238, .7);
}

.human-modal-backdrop,
.modal-backdrop {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 253, 248, .30), transparent 24%),
    rgba(37, 42, 51, .48);
  backdrop-filter: blur(5px);
}

.ruche-active-plans,
.plan-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: #4d586b;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan-card.executive {
  background: #465266;
}

.plan-card .primary-action,
.plan-card .button-primary {
  margin-top: auto;
  background: var(--honey);
  border-color: var(--honey);
  color: #fff;
}

body.auth-mode .view {
  background:
    radial-gradient(circle at 18% 16%, rgba(200, 154, 46, .18), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(111, 153, 121, .14), transparent 26%),
    linear-gradient(135deg, #fffdf8 0%, #f6f2e9 100%);
}

.login-shell {
  width: min(100%, 520px);
}

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 217, 205, .95);
  border-radius: 22px;
  padding: clamp(30px, 5vw, 48px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 252, 245, .9)),
    radial-gradient(circle at 92% 0%, rgba(200, 154, 46, .16), transparent 30%);
  box-shadow: 0 28px 70px rgba(37, 42, 51, .14);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--honey), rgba(111, 153, 121, .78), var(--ruche-active));
}

.login-card h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}

.login-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-card input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.login-card input:focus {
  outline: 3px solid rgba(200, 154, 46, .18);
  border-color: rgba(200, 154, 46, .72);
}

.login-card .primary-action {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  background: var(--ruche-active);
  color: #fff;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .ruche-active-plans,
  .plan-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-panel,
  .card,
  .module-card,
  .form-panel {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(32px, 11vw, 42px);
  }

  .detail-tabs .tab {
    flex: 1 1 calc(50% - 8px);
    min-height: 38px;
    padding: 9px 10px;
    font-size: 12px;
  }
}

/* Admin table containment - prevents horizontal page overflow */
.users-management .table-wrap,
.account-card .table-wrap,
.form-panel .table-wrap,
.card .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  min-width: 0;
}

.admin-table th {
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .08em;
}

.admin-table td {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-table .client-ref,
.admin-table .nowrap {
  white-space: normal;
}

.admin-table .client-table-name {
  gap: 8px;
  min-width: 0;
}

.admin-table .client-table-name > div {
  min-width: 0;
}

.admin-table .client-table-name strong,
.admin-table .client-table-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table .universe-badges {
  gap: 4px;
}

.admin-table .universe-badges span {
  padding: 3px 6px;
  font-size: 10px;
  max-width: 100%;
}

.admin-table .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, max-content));
  align-items: center;
  justify-content: start;
  gap: 6px 8px;
  min-width: 188px;
}

.admin-table td:last-child {
  overflow-wrap: normal;
}

.admin-table .table-actions .link-action,
.admin-table .table-actions .secondary-action,
.admin-table .table-actions button {
  position: static;
  white-space: nowrap;
  width: auto;
  min-width: 82px;
  min-height: 34px;
  font-size: 11px;
  line-height: 1.1;
  padding: 6px 8px;
  flex: initial;
}

.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 7%; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 13%; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 9%; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 9%; }
.admin-table th:nth-child(5), .admin-table td:nth-child(5) { width: 17%; }
.admin-table th:nth-child(6), .admin-table td:nth-child(6) { width: 11%; }
.admin-table th:nth-child(7), .admin-table td:nth-child(7) { width: 8%; }
.admin-table th:nth-child(8), .admin-table td:nth-child(8) { width: 9%; }
.admin-table th:nth-child(9), .admin-table td:nth-child(9) { width: 17%; }

@media (max-width: 1280px) {
  .admin-table {
    min-width: 1180px;
  }

  .users-management .table-wrap,
  .account-card .table-wrap,
  .form-panel .table-wrap,
  .card .table-wrap {
    padding-bottom: 6px;
  }
}
