:root {
  --ink: #102d3a;
  --ink-2: #203e49;
  --muted: #60747c;
  --muted-2: #82949a;
  --navy: #102d3a;
  --navy-deep: #0a222d;
  --teal: #18777a;
  --teal-dark: #105f63;
  --teal-soft: #dff1f0;
  --blue: #286c9b;
  --blue-soft: #e3eef7;
  --violet: #7665a8;
  --violet-soft: #eeeaf8;
  --amber: #c47a25;
  --amber-soft: #faecd8;
  --coral: #b65d54;
  --coral-soft: #f7e6e3;
  --green: #3f7c62;
  --green-soft: #e3f0e9;
  --danger: #a7434b;
  --danger-soft: #f7e4e6;
  --canvas: #f4f7f8;
  --paper: #ffffff;
  --paper-2: #f9fbfb;
  --line: #dce5e8;
  --line-strong: #c7d5da;
  --shadow: 0 18px 50px rgba(16, 45, 58, .09);
  --shadow-soft: 0 8px 24px rgba(16, 45, 58, .07);
  --radius-xl: 24px;
  --radius: 17px;
  --radius-sm: 11px;
  --sidebar: 268px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell,
body.auth-locked .merlin-fab,
body.auth-locked .merlin-panel,
body.auth-locked > .modal-backdrop,
body.auth-locked > .toast-region {
  display: none !important;
}

.auth-gate {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  overflow-y: auto;
  place-items: center;
  padding: 34px 18px;
  background:
    radial-gradient(circle at 18% 24%, rgba(86, 194, 184, .16), transparent 24%),
    radial-gradient(circle at 83% 77%, rgba(118, 101, 168, .18), transparent 28%),
    linear-gradient(135deg, #081f29 0%, #103944 56%, #142d3e 100%);
}

body.auth-locked .auth-gate {
  display: grid;
}

.auth-gate::before {
  position: absolute;
  inset: 0;
  opacity: .48;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.78) 0 1px, transparent 1.45px),
    radial-gradient(circle, rgba(88,207,194,.76) 0 1px, transparent 1.5px);
  background-position: 0 0, 21px 31px;
  background-size: 61px 61px, 89px 89px;
  content: "";
  mask-image: radial-gradient(circle at center, #000 0, transparent 78%);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(510px, 100%);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 32px 90px rgba(2, 17, 24, .38);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
}

.auth-brand .brand-sphere {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
}

.auth-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.auth-brand strong {
  font-size: 1.08rem;
}

.auth-brand small {
  color: var(--muted);
  font-size: .69rem;
}

.auth-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin-bottom: 9px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.12;
}

.auth-lead {
  margin-bottom: 21px;
  color: var(--muted);
  font-size: .81rem;
}

.auth-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.auth-trust-note p {
  margin: 0;
  font-size: .66rem;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form .field {
  margin: 0;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: .67rem;
  font-weight: 700;
}

.auth-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .67rem;
  text-align: center;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .61rem;
}

.auth-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(106, 206, 196, .15);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 620px;
  height: 250px;
  transform: rotate(-22deg);
}

.orbit-two {
  width: 360px;
  height: 680px;
  transform: rotate(34deg);
}

.auth-star {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #72d2c6;
  box-shadow: 0 0 22px rgba(114,210,198,.9);
}

.star-one { top: 17%; left: 22%; }
.star-two { right: 18%; bottom: 20%; background: #cfaa55; }
.star-three { top: 31%; right: 27%; width: 7px; height: 7px; background: #9b89d1; }

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
label[for],
.file-button {
  cursor: pointer;
}

button {
  border: 0;
}

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

h1,
h2,
h3,
strong {
  letter-spacing: -.015em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.2;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.3;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

p {
  color: var(--muted);
}

a {
  color: var(--teal-dark);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input,
select {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a7ac;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
[tabindex]:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 119, 122, .16);
}

button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

progress {
  overflow: hidden;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: #d7e4e7;
}

progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #d7e4e7;
}

progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #43a49c);
}

progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #43a49c);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 24px 18px 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(80, 161, 157, .16), transparent 24%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 22px;
}

.brand-sphere {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: linear-gradient(145deg, #48a09c, #17686e);
  box-shadow: inset -8px -8px 18px rgba(5, 35, 44, .28), 0 8px 24px rgba(0, 0, 0, .18);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.brand-sphere::before,
.brand-sphere::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 50%;
  content: "";
}

.brand-sphere::before {
  width: 54px;
  height: 20px;
  transform: rotate(-22deg);
}

.brand-sphere::after {
  width: 18px;
  height: 48px;
  transform: rotate(23deg);
}

.brand-sphere span {
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.16rem;
  letter-spacing: -.025em;
}

.brand-copy small {
  color: #a8c7ca;
  font-size: .73rem;
}

.local-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}

.local-badge:hover {
  border-color: rgba(105, 196, 189, .34);
  background: rgba(255, 255, 255, .09);
}

.local-badge > span:last-child {
  display: flex;
  flex-direction: column;
}

.local-badge strong {
  font-size: .78rem;
  font-weight: 650;
}

.local-badge small {
  color: #94b4b8;
  font-size: .68rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64c3a4;
  box-shadow: 0 0 0 4px rgba(100, 195, 164, .12);
}

.side-nav {
  overflow-y: auto;
  margin-right: -5px;
  padding-right: 5px;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
  scrollbar-width: thin;
}

.nav-label {
  margin: 17px 12px 7px;
  color: #7fa0a6;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: #bfd1d4;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .065);
  color: #fff;
}

.nav-link.active {
  background: rgba(73, 160, 157, .18);
  color: #fff;
}

.nav-link.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -7px;
  width: 3px;
  border-radius: 99px;
  background: #60c1b7;
  content: "";
}

.nav-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #91b4b8;
  font-size: 1.08rem;
}

.nav-link.active .nav-icon {
  color: #69c4bd;
}

.nav-link > span:nth-child(2) {
  overflow: hidden;
  grid-column: 2;
  font-size: .86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: normal;
}

.nav-link small {
  grid-column: 2;
  color: #7fa0a6;
  font-size: .62rem;
}

.admin-nav[hidden] {
  display: none !important;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 15px;
}

.quiet-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  background: transparent;
  color: #a9c1c5;
  font-size: .8rem;
  text-align: left;
}

.quiet-button:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.sidebar-footer p {
  margin: 9px 10px 0;
  color: #64868c;
  font-size: .65rem;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(20px, 3.4vw, 48px);
  border-bottom: 1px solid rgba(199, 213, 218, .82);
  background: rgba(244, 247, 248, .94);
  backdrop-filter: blur(14px);
}

.page-heading {
  min-width: 0;
  margin-right: auto;
}

.page-kicker,
.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-heading h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .73rem;
  white-space: nowrap;
}

.save-indicator.saving .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(196, 122, 37, .12);
}

.profile-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: 0 4px 14px rgba(16, 45, 58, .18);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.account-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 78px;
  padding: 5px 8px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  text-align: right;
}

.account-summary:hover {
  background: var(--paper-2);
}

.account-summary span {
  font-size: .72rem;
  font-weight: 750;
}

.account-summary small {
  color: var(--muted);
  font-size: .62rem;
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
}

main {
  padding: 30px clamp(20px, 3.4vw, 48px) 90px;
}

.screen {
  display: none;
  width: min(100%, 1480px);
  margin: 0 auto;
  animation: screen-in .22s ease;
}

.screen.active {
  display: block;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.panel:not(.pilot-toolbar):not(.forge-select) {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border .16s ease;
}

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

.button-primary {
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(24, 119, 122, .17);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #9eb4ba;
  background: var(--paper-2);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.button.compact {
  min-height: 38px;
  padding: 8px 13px;
  font-size: .75rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button-row.split {
  justify-content: space-between;
}

.text-button {
  padding: 2px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 750;
}

.text-button:hover {
  border-color: currentColor;
}

.text-button.light {
  color: #d5efed;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.2rem;
}

.icon-button:hover {
  background: var(--paper-2);
}

.icon-button.inverse {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, .8fr);
  gap: 18px;
}

.objective-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(89, 188, 181, .28), transparent 31%),
    linear-gradient(135deg, #113946, #102d3a 66%, #0d2530);
  box-shadow: 0 22px 50px rgba(16, 45, 58, .20);
  color: #fff;
}

.objective-card::after {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .025), 0 0 0 55px rgba(255, 255, 255, .018);
  content: "";
}

.objective-card .eyebrow {
  color: #8ed1cc;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.objective-content {
  position: relative;
  z-index: 1;
  max-width: 770px;
  margin: 24px 0 18px;
}

.objective-content h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.objective-content p {
  max-width: 640px;
  margin: 0;
  color: #b8d0d3;
}

.objective-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.objective-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 99px;
  background: rgba(255, 255, 255, .065);
  color: #c8dcde;
  font-size: .7rem;
}

.objective-card .button {
  position: relative;
  z-index: 1;
}

.merlin-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 250px;
  align-items: flex-start;
  gap: 18px;
  padding: 27px;
  border: 1px solid #d4e4e4;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(54, 151, 148, .13), transparent 42%),
    linear-gradient(145deg, #f3fbfa, #e8f3f2);
}

.merlin-hero::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(24, 119, 122, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(24, 119, 122, .035);
  content: "";
}

.merlin-hero h2 {
  max-width: 360px;
  margin-top: 16px;
  font-size: 1.32rem;
}

.merlin-hero p {
  max-width: 440px;
  font-size: .87rem;
}

.merlin-orb {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #53aaa4, #166b70);
  box-shadow: inset -7px -8px 14px rgba(10, 58, 63, .28), 0 7px 18px rgba(19, 91, 94, .20);
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
}

.merlin-orb::before {
  position: absolute;
  width: 118%;
  height: 48%;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.merlin-orb span {
  position: relative;
  z-index: 1;
}

.merlin-orb.large {
  width: 60px;
  height: 60px;
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.metric-card {
  display: flex;
  min-height: 118px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.metric-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 1.22rem;
}

.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.violet { background: var(--violet-soft); color: var(--violet); }

.metric-card > div:last-child {
  display: grid;
}

.metric-card span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.metric-card strong {
  margin: 2px 0 0;
  font-size: 1.65rem;
  line-height: 1.1;
}

.metric-card small {
  color: var(--muted-2);
  font-size: .66rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.action-list {
  display: grid;
  gap: 3px;
}

.action-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid #edf1f2;
}

.action-item:last-child {
  border-bottom: 0;
}

.action-item input {
  width: 19px;
  min-height: 19px;
  accent-color: var(--teal);
}

.action-item label {
  min-width: 0;
}

.action-item label span {
  display: block;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-item label small {
  color: var(--muted);
  font-size: .67rem;
}

.action-item.done label {
  opacity: .55;
  text-decoration: line-through;
}

.action-date {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: .65rem;
  white-space: nowrap;
}

.delete-mini {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
}

.delete-mini:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.funnel {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
}

.funnel-row > span {
  color: var(--muted);
  font-size: .72rem;
}

.funnel-row > strong {
  font-size: .75rem;
  text-align: right;
}

.funnel-track {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #ecf1f2;
}

.funnel-fill {
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #57aaa6);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf1f2;
  font-size: .76rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfc;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.company-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
}

.company-cell > span {
  display: flex;
  flex-direction: column;
}

.company-cell small {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 99px;
  background: #edf2f3;
  color: var(--ink-2);
  font-size: .67rem;
  font-weight: 750;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87999f;
  content: "";
}

.status-pill.prepared { background: var(--blue-soft); color: #245f86; }
.status-pill.prepared::before { background: var(--blue); }
.status-pill.sent { background: var(--teal-soft); color: #126366; }
.status-pill.sent::before { background: var(--teal); }
.status-pill.interview { background: var(--amber-soft); color: #9b5e17; }
.status-pill.interview::before { background: var(--amber); }
.status-pill.offer { background: var(--violet-soft); color: #64538f; }
.status-pill.offer::before { background: var(--violet); }
.status-pill.rejected { background: var(--danger-soft); color: var(--danger); }
.status-pill.rejected::before { background: var(--danger); }
.status-pill.accepted { background: var(--green-soft); color: var(--green); }
.status-pill.accepted::before { background: var(--green); }

.empty-state {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  text-align: left;
}

.empty-state p {
  margin: 3px 0 0;
  font-size: .78rem;
}

.empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 1.4rem;
}

.compact-empty {
  min-height: 100px;
}

.module-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 2px 2px 0;
}

.module-intro > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.module-intro h2 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.module-intro p {
  max-width: 780px;
  margin: 0;
  font-size: .86rem;
}

.module-mark {
  display: grid;
  width: 53px;
  height: 53px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  font-size: 1.48rem;
}

.module-mark.blue { color: var(--blue); background: var(--blue-soft); }
.module-mark.teal { color: var(--teal); background: var(--teal-soft); }
.module-mark.violet { color: var(--violet); background: var(--violet-soft); }
.module-mark.amber { color: var(--amber); background: var(--amber-soft); }
.module-mark.coral { color: var(--coral); background: var(--coral-soft); }

.completion-box {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 190px;
  flex: 0 0 auto;
  gap: 5px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.completion-box span {
  color: var(--muted);
  font-size: .7rem;
}

.completion-box strong {
  font-size: .82rem;
}

.completion-box progress {
  grid-column: 1 / -1;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr);
  gap: 20px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.form-stack > .panel {
  padding: 24px;
}

.sticky-column {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.insight-card,
.compass-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d2e4e4;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 159, 153, .13), transparent 35%),
    linear-gradient(145deg, #f5fbfb, #ecf6f5);
  box-shadow: var(--shadow-soft);
}

.insight-card h2 {
  margin-top: 13px;
}

.insight-card p {
  font-size: .83rem;
}

.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: .76rem;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  content: "✓";
  font-size: .65rem;
  font-weight: 900;
}

.check-list li.missing::before {
  background: var(--amber-soft);
  color: var(--amber);
  content: "!";
}

.mini-panel blockquote {
  margin: 14px 0 4px;
  color: var(--ink-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}

.step-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .65rem;
  font-weight: 800;
  vertical-align: middle;
}

.panel-heading > div:first-child h2 {
  display: inline;
}

.optional-tag,
.confidence-badge,
.local-analysis-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
}

.field-grid {
  display: grid;
  gap: 15px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > span {
  color: var(--ink-2);
  font-size: .73rem;
  font-weight: 720;
}

.field > span small {
  color: var(--muted-2);
  font-size: .64rem;
  font-weight: 500;
}

.field-help {
  color: var(--muted);
  font-size: .67rem;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f3f7f8;
  color: var(--muted);
  font-size: .68rem;
}

.privacy-note span {
  color: var(--teal);
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px dashed #9ab7bb;
  border-radius: 13px;
  background: #f8fbfb;
  transition: border .16s ease, background .16s ease;
}

.upload-zone:hover {
  border-color: var(--teal);
  background: #f3fafa;
}

.upload-zone input,
.file-button + input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 1.2rem;
}

.upload-zone > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.upload-zone small {
  color: var(--muted);
  font-size: .67rem;
}

.inline-feedback {
  color: var(--green);
  font-size: .72rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 17px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #d2e0e3;
  border-radius: 99px;
  background: #f7fafb;
  color: var(--ink-2);
  font-size: .68rem;
  font-weight: 650;
}

.skill-chip button {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e7edef;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1;
}

.nested-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}

.experience-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.experience-card h3 {
  margin: 0;
}

.experience-card .experience-meta {
  color: var(--muted);
  font-size: .68rem;
}

.experience-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .75rem;
}

.trajectory-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.trajectory-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(24, 119, 122, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .7);
}

.trajectory-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 850;
}

.trajectory-item strong {
  display: block;
  font-size: .8rem;
}

.trajectory-item small {
  display: block;
  color: var(--muted);
  font-size: .63rem;
}

.trajectory-score {
  color: var(--teal-dark);
  font-size: .88rem;
  font-weight: 850;
}

.muted {
  color: var(--muted);
  font-size: .73rem;
}

.summary-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f2;
  font-size: .71rem;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  max-width: 62%;
  text-align: right;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 20px;
}

.offer-input-panel {
  position: sticky;
  top: 100px;
}

.method-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #edf1f2;
  font-size: .68rem;
}

.local-analysis-badge {
  border: 1px solid #cee2df;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.analysis-placeholder {
  display: grid;
  min-height: 590px;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px dashed #bdcdd1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid #d2e1e4;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--violet);
  font-size: 2rem;
}

.analysis-placeholder p {
  max-width: 480px;
  font-size: .82rem;
}

.analysis-placeholder ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  text-align: left;
}

.analysis-placeholder li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: .75rem;
}

.analysis-placeholder li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: .63rem;
  font-weight: 800;
}

.analysis-results {
  display: grid;
  gap: 18px;
}

.score-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 102, 168, .22), transparent 35%),
    linear-gradient(135deg, #122e3b, #162b42);
  box-shadow: 0 18px 38px rgba(16, 45, 58, .18);
  color: #fff;
}

.score-card .eyebrow {
  color: #99c6c8;
}

.score-card h2 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.score-card p {
  margin-bottom: 12px;
  color: #aec3ca;
  font-size: .78rem;
}

.score-ring {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  align-content: center;
  border: 9px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 69%);
  box-shadow: inset 0 0 0 2px rgba(87, 190, 181, .65);
}

.score-ring strong {
  font-size: 1.75rem;
  line-height: 1;
}

.score-ring span {
  margin-top: 4px;
  color: #9dbbc0;
  font-size: .62rem;
}

.score-legend {
  display: flex;
  gap: 16px;
  color: #b9ccd0;
  font-size: .65rem;
}

.score-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-good { background: #68c5a2; }
.legend-gap { background: #e1a55c; }

.score-components {
  display: grid;
  gap: 13px;
}

.score-component {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.score-component span {
  color: var(--muted);
  font-size: .7rem;
}

.score-component strong {
  font-size: .72rem;
  text-align: right;
}

.score-component .component-track {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #edf1f2;
}

.component-fill {
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #9b8cc8);
}

.score-warning {
  margin: 18px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f6f7fa;
  font-size: .67rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-panel {
  border-top: 3px solid;
}

.result-panel.positive { border-top-color: var(--green); }
.result-panel.gap { border-top-color: var(--amber); }

.result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.result-heading span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  font-weight: 850;
}

.positive .result-heading span { background: var(--green-soft); color: var(--green); }
.gap .result-heading span { background: var(--amber-soft); color: var(--amber); }

.result-heading h2 {
  margin: 0;
}

.result-panel ul,
.recommendation-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.result-panel li {
  position: relative;
  padding: 10px 10px 10px 32px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: .74rem;
}

.result-panel li::before {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--green);
  content: "✓";
  font-weight: 850;
}

.gap li::before {
  color: var(--amber);
  content: "?";
}

.recommendation-list {
  counter-reset: recommendations;
}

.recommendation-list li {
  position: relative;
  min-height: 43px;
  padding: 10px 12px 10px 48px;
  border: 1px solid #edf1f2;
  border-radius: 10px;
  color: var(--ink-2);
  counter-increment: recommendations;
  font-size: .75rem;
}

.recommendation-list li::before {
  position: absolute;
  top: 8px;
  left: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--violet-soft);
  color: var(--violet);
  content: counter(recommendations);
  font-size: .67rem;
  font-weight: 850;
}

.pilot-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 13px 15px;
}

.search-field {
  position: relative;
  display: flex;
  min-width: 250px;
  flex: 1;
  align-items: center;
}

.search-field > span {
  position: absolute;
  left: 12px;
  color: var(--muted);
}

.search-field input {
  padding-left: 34px;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-field span {
  color: var(--muted);
  font-size: .7rem;
}

.filter-field select {
  min-width: 150px;
}

.view-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f6f7;
}

.view-toggle button {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.view-toggle button.active {
  background: var(--paper);
  box-shadow: 0 2px 7px rgba(16, 45, 58, .08);
  color: var(--ink);
}

.pilot-table-view {
  padding: 8px 12px 12px !important;
}

.pilot-table-view select {
  min-height: 34px;
  width: auto;
  padding: 5px 30px 5px 9px;
  border: 0;
  background-color: #f1f5f6;
  font-size: .68rem;
  font-weight: 700;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.row-action {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.row-action:hover {
  background: var(--paper-2);
  color: var(--teal);
}

.row-action.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.kanban {
  overflow-x: auto;
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: 13px;
  padding-bottom: 10px;
}

.kanban:not([hidden]) {
  display: grid;
}

.kanban-column {
  min-height: 430px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef3f4;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: .72rem;
  font-weight: 800;
}

.kanban-head span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  background: var(--paper);
  color: var(--muted);
  font-size: .63rem;
}

.kanban-cards {
  display: grid;
  gap: 9px;
}

.kanban-card {
  padding: 12px;
  border: 1px solid #dce5e8;
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(16, 45, 58, .05);
}

.kanban-card strong {
  display: block;
  font-size: .76rem;
}

.kanban-card > span {
  color: var(--muted);
  font-size: .68rem;
}

.kanban-card p {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #edf1f2;
  font-size: .66rem;
}

.forge-select {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px;
}

.forge-readiness {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 15px;
  color: var(--muted);
  font-size: .72rem;
}

.readiness-dots {
  display: flex;
  gap: 4px;
}

.readiness-dots i {
  width: 24px;
  height: 6px;
  border-radius: 99px;
  background: #dce5e8;
}

.readiness-dots i.active {
  background: var(--teal);
}

.forge-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
}

.forge-results {
  display: grid;
  gap: 12px;
}

.forge-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.forge-tabs button {
  min-height: 39px;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 750;
}

.forge-tabs button.active {
  background: var(--navy);
  color: #fff;
}

.forge-panel {
  display: none;
  min-height: 380px;
}

.forge-panel.active {
  display: block;
}

.generated-text,
.prompt-output {
  border-color: #d5e1e4;
  background: #fbfcfc;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .79rem;
  line-height: 1.68;
}

.generated-output {
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1.7;
}

.structured-output {
  display: grid;
  gap: 14px;
}

.strategy-block {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
}

.strategy-block h3 {
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.strategy-block p,
.strategy-block ul {
  margin: 0;
  color: var(--ink-2);
  font-size: .75rem;
}

.strategy-block ul {
  padding-left: 19px;
}

.generation-warning {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: .67rem;
}

.interview-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.interview-list li {
  padding: 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--paper-2);
}

.interview-list strong {
  display: block;
  margin-bottom: 4px;
}

.interview-list p {
  margin: 0;
  font-size: .73rem;
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 20px;
}

.prompt-settings {
  align-self: start;
}

.check-fieldset {
  display: grid;
  gap: 3px;
  padding: 0;
  border: 0;
  margin: 22px 0;
}

.check-fieldset legend {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: .73rem;
  font-weight: 720;
}

.check-fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: .73rem;
}

.check-fieldset label:hover {
  background: var(--paper-2);
}

.check-fieldset input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--teal);
}

.sensitive-option {
  color: var(--danger);
}

.sensitive-option small {
  font-size: .61rem;
}

.privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ecdcbf;
  border-radius: 11px;
  background: #fff9ee;
}

.privacy-callout > span {
  color: var(--amber);
  font-size: 1.05rem;
}

.privacy-callout strong {
  font-size: .76rem;
}

.privacy-callout p {
  margin: 3px 0 0;
  font-size: .68rem;
}

.prompt-output-panel {
  min-width: 0;
}

.prompt-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: .64rem;
}

.merlin-fab {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 20px;
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: var(--navy);
  box-shadow: 0 14px 38px rgba(8, 34, 45, .28);
  color: #fff;
  text-align: left;
}

.merlin-fab:hover {
  background: #153d4a;
  transform: translateY(-1px);
}

.merlin-fab > span:last-child {
  display: flex;
  flex-direction: column;
}

.merlin-fab strong {
  font-size: .72rem;
}

.merlin-fab small {
  color: #9ebbc0;
  font-size: .62rem;
}

.merlin-panel {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto auto;
  width: min(390px, calc(100vw - 30px));
  height: min(620px, calc(100vh - 40px));
  border: 1px solid rgba(16, 45, 58, .14);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 25px 70px rgba(8, 34, 45, .28);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.merlin-panel.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.merlin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 85% 0%, rgba(83, 170, 164, .24), transparent 33%),
    var(--navy);
  color: #fff;
}

.merlin-panel-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.merlin-panel-head > div > span:last-child {
  display: flex;
  flex-direction: column;
}

.merlin-panel-head strong {
  font-size: .82rem;
}

.merlin-panel-head small {
  color: #9ebbc0;
  font-size: .63rem;
}

.merlin-chat {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 17px;
  background: #f7f9fa;
}

.chat-message {
  display: flex;
  max-width: 94%;
  align-items: flex-start;
  gap: 9px;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px 12px 12px 12px;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(16, 45, 58, .04);
}

.chat-message.user > div {
  border-color: var(--teal);
  border-radius: 12px 5px 12px 12px;
  background: var(--teal);
  color: #fff;
}

.chat-message strong {
  font-size: .73rem;
}

.chat-message p {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: .7rem;
}

.chat-message.user p {
  color: #fff;
}

.chat-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
}

.chat-message.user .chat-avatar {
  background: var(--navy);
}

.quick-prompts {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
}

.quick-prompts button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  color: var(--teal-dark);
  font-size: .62rem;
  white-space: nowrap;
}

.merlin-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.merlin-input input {
  min-height: 39px;
}

.merlin-input button {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
}

.merlin-disclaimer {
  padding: 7px 12px 10px;
  margin: 0;
  color: var(--muted-2);
  font-size: .58rem;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow-y: auto;
  padding: 30px 18px;
  background: rgba(7, 28, 37, .58);
  backdrop-filter: blur(4px);
}

.modal-backdrop:not([hidden]) {
  display: grid;
  place-items: center;
}

.modal {
  width: min(800px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(7, 28, 37, .28);
  animation: modal-in .18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.small-modal {
  width: min(520px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 1.15rem;
}

.modal-symbol.amber { background: var(--amber-soft); color: var(--amber); }
.modal-symbol.teal { background: var(--teal-soft); color: var(--teal); }
.modal-symbol.danger { background: var(--danger-soft); color: var(--danger); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.privacy-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px;
  border-radius: 12px;
  background: var(--green-soft);
}

.privacy-summary strong {
  font-size: .8rem;
}

.privacy-summary p {
  margin: 2px 0 0;
  color: #4f6b5d;
  font-size: .7rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.privacy-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.privacy-grid h3 {
  margin: 12px 0 5px;
}

.privacy-grid p {
  min-height: 60px;
  margin: 0 0 13px;
  font-size: .68rem;
}

.privacy-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
}

.privacy-grid .danger-zone {
  border-color: #ecd1d4;
  background: #fffafb;
}

.danger-zone .privacy-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.policy-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 11px;
  background: #f4f7f8;
}

.policy-note strong {
  font-size: .76rem;
}

.policy-note p {
  margin: 4px 0 0;
  font-size: .68rem;
}

/* Gestion des accès */
.access-modal {
  width: min(1120px, 100%);
}

.simulation-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid #eadcbf;
  border-radius: 13px;
  background: #fffaf0;
  color: #6c5427;
}

.simulation-notice > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f3e4c4;
  font-weight: 900;
}

.simulation-notice strong {
  color: #59431c;
  font-size: .78rem;
}

.simulation-notice p {
  margin: 2px 0 0;
  color: #7b663b;
  font-size: .7rem;
}

.simulation-notice.compact {
  margin-bottom: 16px;
  padding: 12px 14px;
}

.current-access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(42, 133, 128, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #f2faf8, #f7f8fb);
}

.current-access-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.current-access-summary p {
  margin: 3px 0 0;
  font-size: .7rem;
}

.access-state-pill,
.plan-pill,
.state-pill,
.scope-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .63rem;
  font-weight: 800;
  white-space: nowrap;
}

.access-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.access-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.access-plan-card:hover {
  border-color: rgba(42, 133, 128, .34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.access-plan-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 133, 128, .1);
}

.access-plan-card.featured {
  border-color: rgba(42, 133, 128, .3);
  background: linear-gradient(180deg, #f5fbfa, #fff 35%);
}

.access-plan-card.admin-card {
  background: linear-gradient(180deg, #f7f6fb, #fff 35%);
}

.plan-kicker {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.access-plan-card h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}

.access-plan-card > p {
  min-height: 44px;
  margin: 0 0 14px;
  font-size: .72rem;
}

.access-plan-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.access-plan-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: .68rem;
}

.access-plan-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.access-plan-card .button {
  width: 100%;
  margin-top: auto;
}

.usage-panel {
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfc;
}

.usage-panel .panel-heading {
  margin-bottom: 13px;
}

.usage-panel .panel-heading > span {
  color: var(--muted);
  font-size: .66rem;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.usage-grid > div,
.usage-grid > div > span {
  display: grid;
  gap: 6px;
}

.usage-grid > div > span {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.usage-grid strong {
  font-size: .69rem;
}

.usage-grid small {
  color: var(--muted);
  font-size: .64rem;
}

.usage-grid progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #e4ecec;
}

.usage-grid progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #e4ecec;
}

.usage-grid progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #58b39b);
}

.usage-panel > p {
  margin: 11px 0 0;
  color: var(--teal-dark);
  font-size: .68rem;
  font-weight: 700;
}

.access-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 2px 0;
  color: var(--muted);
}

.access-footer-note p {
  margin: 0;
  font-size: .68rem;
}

.account-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: 14px;
  margin-top: 16px;
}

.account-password-form,
.account-session-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.account-password-form {
  display: grid;
  gap: 11px;
}

.account-password-form h3,
.account-session-card h3 {
  margin: 0 0 4px;
  font-size: .92rem;
}

.account-password-form .field {
  margin: 0;
}

.account-session-card {
  display: flex;
  flex-direction: column;
}

.account-session-card p {
  margin: 5px 0 18px;
  font-size: .68rem;
}

.account-session-card .button {
  width: 100%;
  margin-top: auto;
}

/* Console administrateur */
.admin-intro {
  margin-bottom: 16px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.admin-metric {
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.admin-metric > span {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
}

.admin-metric strong {
  margin: 7px 0 2px;
  color: var(--ink);
  font-size: 1.65rem;
}

.admin-metric small {
  margin-top: auto;
  color: var(--muted-2);
  font-size: .62rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-users-panel,
.admin-policy-panel,
.admin-create-panel,
.entitlement-panel {
  min-width: 0;
}

.admin-create-panel form {
  display: grid;
  gap: 12px;
}

.admin-create-panel .field {
  margin: 0;
}

.admin-create-panel .button {
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
}

.access-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .69rem;
}

.access-users-table th,
.access-users-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.access-users-table th {
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.access-users-table td:first-child {
  white-space: normal;
}

.access-users-table td strong,
.access-users-table td small {
  display: block;
}

.access-users-table td small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: .59rem;
}

.access-users-table select {
  min-width: 92px;
  min-height: 34px;
  padding: 6px 27px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--paper);
  font-size: .65rem;
}

.access-users-table .admin-user-actions {
  display: flex;
  gap: 6px;
}

.access-users-table .admin-user-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--teal-dark);
  font-size: .61rem;
  font-weight: 750;
  white-space: nowrap;
}

.access-users-table .admin-user-actions button:hover {
  border-color: rgba(42, 133, 128, .34);
  background: var(--teal-soft);
}

.access-users-table tr.current-account {
  background: #f5fbfa;
}

.access-users-table tr.locked-account {
  opacity: .7;
}

#admin-reset-user-label {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .72rem;
}

.plan-pill.free {
  background: #eef2f3;
  color: #52666b;
}

.plan-pill.plus {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.state-pill.active {
  background: var(--green-soft);
  color: #3a725c;
}

.state-pill.pending {
  background: var(--amber-soft);
  color: #8a5a20;
}

.admin-table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .64rem;
}

.policy-checklist {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.policy-checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: flex-start;
}

.policy-checklist li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .68rem;
  font-weight: 900;
}

.policy-checklist strong,
.policy-checklist small {
  display: block;
}

.policy-checklist strong {
  font-size: .7rem;
}

.policy-checklist small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .62rem;
}

.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.entitlement-grid > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.entitlement-grid strong {
  color: var(--ink);
  font-size: .75rem;
}

.entitlement-grid p {
  margin: 4px 0 0;
  font-size: .66rem;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 20px;
  top: 90px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  font-size: .72rem;
  animation: toast-in .22s ease;
}

.toast::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.toast.warning::before {
  color: var(--amber);
  content: "!";
}

.toast.error::before {
  color: var(--danger);
  content: "×";
}

/* Accueil explicatif et constellation */
.constellation-banner {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr);
  min-height: 286px;
  margin-bottom: 26px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(112, 184, 181, .2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 20%, rgba(85, 194, 184, .18), transparent 25%),
    radial-gradient(circle at 64% 92%, rgba(118, 101, 168, .18), transparent 29%),
    linear-gradient(135deg, #0a2530 0%, #123f49 58%, #183c4d 100%);
  box-shadow: 0 24px 58px rgba(10, 34, 45, .17);
  color: #fff;
}

.constellation-banner::before {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(94,210,198,.72) 0 1px, transparent 1.5px);
  background-position: 0 0, 23px 31px;
  background-size: 53px 53px, 79px 79px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 4%, #000 48%, #000 100%);
}

.constellation-copy,
.constellation-map {
  position: relative;
  z-index: 1;
}

.constellation-copy {
  align-self: center;
  max-width: 560px;
}

.constellation-copy .eyebrow {
  color: #80d8ce;
}

.constellation-copy h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.constellation-copy p {
  max-width: 520px;
  margin-bottom: 20px;
  color: #c5dbdd;
}

.constellation-copy .button-row {
  justify-content: flex-start;
}

.constellation-map {
  min-height: 220px;
}

.constellation-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 98px;
  min-height: 74px;
  place-items: center;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(9, 31, 40, .66);
  box-shadow: 0 14px 30px rgba(3, 18, 25, .24), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(9px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.constellation-node::before {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  border: 3px solid rgba(13, 42, 52, .86);
  border-radius: 50%;
  background: #71d1c4;
  box-shadow: 0 0 18px rgba(113, 209, 196, .9);
  content: "";
}

.constellation-node:hover {
  border-color: rgba(113, 209, 196, .68);
  background: rgba(13, 56, 66, .88);
  transform: translateY(-3px);
}

.constellation-node span {
  font-weight: 800;
  letter-spacing: -.01em;
}

.constellation-node small {
  color: #9fc2c6;
  font-size: .64rem;
}

.node-you { top: 35%; left: 4%; }
.node-soren { top: 4%; left: 43%; }
.node-merlin { right: 2%; bottom: 8%; }
.node-action { bottom: 0; left: 38%; }
.node-soren::before { background: #e6b85f; box-shadow: 0 0 18px rgba(230, 184, 95, .9); }
.node-merlin::before { background: #a590df; box-shadow: 0 0 18px rgba(165, 144, 223, .9); }
.node-action::before { background: #5dc79d; box-shadow: 0 0 18px rgba(93, 199, 157, .9); }

.constellation-line {
  position: absolute;
  z-index: 0;
  display: block;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(113,209,196,.14), rgba(113,209,196,.68), rgba(255,255,255,.12));
}

.line-one { top: 47%; left: 18%; width: 38%; transform: rotate(-29deg); }
.line-two { top: 21%; left: 56%; width: 37%; transform: rotate(48deg); }
.line-three { bottom: 25%; left: 24%; width: 57%; transform: rotate(8deg); }

.module-guide {
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-heading h2 {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.62rem);
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  font-size: .78rem;
}

.module-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.module-guide-card {
  position: relative;
  display: flex;
  min-height: 222px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.module-guide-card:hover {
  border-color: #bdd6d8;
  box-shadow: 0 14px 34px rgba(16, 45, 58, .1);
  transform: translateY(-3px);
}

.module-guide-card.featured {
  border-color: #d5c59f;
  background: linear-gradient(155deg, #fff 35%, #fff9eb);
}

.guide-number {
  position: absolute;
  top: 16px;
  right: 17px;
  color: #b6c3c7;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.guide-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.guide-icon.blue { background: var(--blue-soft); color: var(--blue); }
.guide-icon.teal { background: var(--teal-soft); color: var(--teal); }
.guide-icon.violet { background: var(--violet-soft); color: var(--violet); }
.guide-icon.green { background: var(--green-soft); color: var(--green); }
.guide-icon.coral { background: var(--coral-soft); color: var(--coral); }
.guide-icon.amber { background: var(--amber-soft); color: var(--amber); }

.module-guide-card > small {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.module-guide-card h3 {
  margin-bottom: 7px;
  font-size: 1.03rem;
}

.module-guide-card p {
  margin-bottom: 17px;
  font-size: .74rem;
}

.module-guide-card .text-button,
.module-guide-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.ethical-offer {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 30px;
  margin-top: 26px;
  padding: 26px 30px;
  border: 1px solid #d8dced;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9fbff, #f4f0fb);
}

.ethical-offer h2 {
  margin-bottom: 6px;
}

.ethical-offer p {
  margin-bottom: 0;
}

.offer-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.offer-preview > div {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(174, 179, 207, .5);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
}

.offer-preview strong {
  margin: 10px 0 5px;
  font-size: .88rem;
}

.offer-preview small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.plan-pill {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plan-pill.free { background: var(--green-soft); color: var(--green); }
.plan-pill.premium { background: var(--violet-soft); color: var(--violet); }

/* Merlin : personnage visible, sans envahir l'interface */
.merlin-character {
  display: grid;
  overflow: hidden;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 15px;
  background: radial-gradient(circle at 50% 35%, #2a5861, #0c2d38 72%);
}

.merlin-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merlin-character.large {
  width: 124px;
  height: 124px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(6, 26, 35, .2);
}

/* Module CV détachable */
.studio-screen {
  max-width: none;
}

.studio-intro {
  align-items: center;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.module-mark.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.studio-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 12px 15px;
  border: 1px solid #cde2dd;
  border-radius: 13px;
  background: #f1f8f6;
}

.studio-notice > span:first-child {
  color: var(--green);
}

.studio-notice p {
  margin: 1px 0 0;
  font-size: .7rem;
}

.studio-sync-status {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 99px;
  background: #fff;
  color: var(--green);
  font-size: .65rem;
  font-weight: 750;
  white-space: nowrap;
}

.studio-frame-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.studio-frame-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fa;
}

.studio-frame-bar > span {
  display: flex;
  gap: 6px;
}

.studio-frame-bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7d2d6;
}

.studio-frame-bar i:nth-child(2) { background: #dac68c; }
.studio-frame-bar i:nth-child(3) { background: #9ecdbb; }
.studio-frame-bar strong { font-size: .72rem; }
.studio-frame-bar small { justify-self: end; color: var(--muted-2); font-size: .62rem; }

#career-studio-frame {
  display: block;
  width: 100%;
  height: min(1040px, calc(100vh - 120px));
  min-height: 760px;
  border: 0;
  background: #f3f2ec;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) {
  :root { --sidebar: 230px; }
  .constellation-banner { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); }
  .module-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ethical-offer { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .merlin-hero { min-height: 200px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: minmax(0, 1fr) 300px; }
  .analysis-layout { grid-template-columns: 1fr; }
  .offer-input-panel { position: static; }
  .analysis-placeholder { min-height: 360px; }
  .prompt-layout { grid-template-columns: 1fr; }
  .prompt-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .prompt-settings .panel-heading,
  .prompt-settings .privacy-callout { grid-column: 1 / -1; }
  .access-plan-grid { grid-template-columns: 1fr; }
  .access-plan-card { min-height: 0; }
  .access-plan-card > p { min-height: 0; }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .app-shell { display: block; }
  .workspace { display: block; }
  .sidebar {
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { padding: 12px 18px; }
  main { padding: 24px 18px 88px; }
  .constellation-banner { grid-template-columns: 1fr; }
  .constellation-map { min-height: 230px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; }
  .save-indicator { display: none; }
  .two-column { grid-template-columns: 1fr; }
  .sticky-column { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-intro { align-items: flex-start; }
  .pilot-toolbar { flex-wrap: wrap; }
  .search-field { min-width: 100%; }
  .forge-select { grid-template-columns: 1fr; }
  .forge-readiness { justify-content: flex-start; padding-bottom: 0; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid p { min-height: 0; }
  .usage-grid,
  .entitlement-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .account-security-grid { grid-template-columns: 1fr; }
}

@media (max-width: 670px) {
  body { font-size: 14px; }
  .topbar { min-height: 68px; }
  .page-kicker { display: none; }
  .page-heading h1 { font-size: 1rem; }
  #demo-button { display: none; }
  .account-summary { display: none; }
  .profile-button { width: 36px; height: 36px; }
  .constellation-banner { min-height: 0; padding: 24px 20px; border-radius: 20px; }
  .constellation-copy h2 { font-size: 1.65rem; }
  .constellation-map { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; margin-top: 22px; }
  .constellation-node { position: relative; inset: auto; min-width: 0; min-height: 68px; border-radius: 14px; }
  .constellation-line { display: none; }
  .module-guide-grid { grid-template-columns: 1fr; }
  .module-guide-card { min-height: 0; }
  .ethical-offer { padding: 20px; }
  .offer-preview { grid-template-columns: 1fr; }
  .studio-actions { justify-content: flex-start; }
  .studio-actions .button { width: 100%; }
  .studio-notice { align-items: flex-start; }
  .studio-sync-status { display: none; }
  .studio-frame-bar { grid-template-columns: 1fr auto; }
  .studio-frame-bar strong { justify-self: end; }
  .studio-frame-bar small { display: none; }
  #career-studio-frame { min-height: 680px; height: calc(100vh - 96px); }
  .module-intro {
    display: grid;
  }
  .module-intro > div:first-child { gap: 12px; }
  .module-mark { width: 44px; height: 44px; border-radius: 12px; }
  .module-intro h2 { font-size: 1.24rem; }
  .completion-box { width: 100%; }
  .hero-grid,
  .metric-grid,
  .dashboard-grid,
  .result-grid { grid-template-columns: 1fr; }
  .objective-card,
  .merlin-hero { min-height: 0; padding: 22px; border-radius: 18px; }
  .merlin-hero { display: grid; }
  .metric-card { min-height: 96px; }
  .panel:not(.pilot-toolbar):not(.forge-select) { padding: 18px; }
  .field-grid.two,
  .sticky-column,
  .prompt-settings { grid-template-columns: 1fr; }
  .admin-metric-grid { grid-template-columns: 1fr; }
  .current-access-summary { align-items: flex-start; }
  .access-state-pill { margin-top: 2px; }
  .prompt-settings > * { grid-column: 1 !important; }
  .analysis-layout { grid-template-columns: minmax(0, 1fr); }
  .score-card { grid-template-columns: 1fr; text-align: center; }
  .score-ring { margin: 0 auto; }
  .score-legend { justify-content: center; }
  .score-component { grid-template-columns: 92px minmax(0, 1fr) 36px; }
  .filter-field { flex: 1; }
  .filter-field select { min-width: 0; }
  .pilot-toolbar .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .forge-tabs { overflow-x: auto; }
  .forge-tabs button { white-space: nowrap; }
  .merlin-fab {
    min-width: 0;
    right: 14px;
    bottom: 14px;
    padding: 9px;
  }
  .merlin-fab > span:last-child { display: none; }
  .merlin-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); padding: 19px; }
  .button-row.split { justify-content: flex-start; }
  .auth-gate { padding: 16px 12px; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .auth-brand { margin-bottom: 23px; }
  .auth-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

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

@media print {
  .sidebar,
  .topbar,
  .merlin-fab,
  .merlin-panel,
  .module-intro,
  .prompt-settings,
  .forge-tabs,
  button {
    display: none !important;
  }
  .app-shell,
  .workspace,
  .prompt-layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .screen {
    display: none !important;
  }
  .screen.active {
    display: block !important;
  }
  .panel {
    border: 0;
    box-shadow: none;
  }
}

/* CareerSphere V0.8 · accès visiteur et CareerProof */
.auth-choice {
  margin: 18px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auth-choice::before,
.auth-choice::after { content: ""; height: 1px; background: var(--line); }
.auth-guest { width: 100%; }
.temporary-help { margin-top: 12px; }

.guest-banner {
  margin: 14px 24px 0;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(110deg, #174553, #27726f);
  box-shadow: 0 9px 25px rgba(16,45,58,.13);
}
.guest-banner > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.guest-banner strong { display: block; font-size: .8rem; }
.guest-banner p { margin: 2px 0 0; color: rgba(255,255,255,.72); font-size: .68rem; }
body[data-access-mode="visitor"] .nav-link[data-visitor-locked] { opacity: .58; }
body[data-access-mode="visitor"] .nav-link[data-visitor-locked]::after { content: "Compte"; margin-left: auto; padding: 3px 6px; color: var(--muted-2); background: rgba(255,255,255,.08); border-radius: 5px; font-size: .52rem; text-transform: uppercase; letter-spacing: .05em; }

.proof-intro { align-items: center; }
.proof-responsible-note {
  margin-bottom: 22px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  border: 1px solid #d6e8e5;
  border-radius: 14px;
  background: #edf7f5;
}
.proof-responsible-note > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 800; }
.proof-responsible-note strong { font-size: .8rem; }
.proof-responsible-note p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.proof-builder-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 22px; align-items: start; }
.proof-builder-side { display: grid; gap: 22px; position: sticky; top: 94px; }
.proof-form-panel form { display: grid; gap: 16px; }
.proof-email-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.proof-consent { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .72rem; }
.proof-consent input { accent-color: var(--teal); }
.proof-document-fieldset { margin: 4px 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; }
.proof-document-fieldset legend { padding: 0 8px; color: var(--ink); font-size: .82rem; font-weight: 780; }
.proof-document-fieldset legend small { margin-left: 5px; color: var(--muted-2); font-weight: 500; }
.proof-document-fieldset > p { margin: 0 0 15px; color: var(--muted); font-size: .7rem; }
.proof-file-drop { min-height: 108px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 16px; text-align: center; cursor: pointer; border: 1px dashed #9db9b6; border-radius: 13px; background: #f5faf9; }
.proof-file-drop:hover { border-color: var(--teal); background: #edf7f5; }
.proof-file-drop > span { color: var(--teal); font-size: 1.45rem; }
.proof-file-drop strong { font-size: .78rem; }
.proof-file-drop small { color: var(--muted-2); font-size: .64rem; }
#proof-document-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.proof-hash-preview { margin-top: 14px; padding: 14px; border-radius: 12px; background: #eff5f4; }
.proof-hash-preview > div { display: grid; }
.proof-hash-preview span { color: var(--muted-2); font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; }
.proof-hash-preview strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.proof-hash-preview code { display: block; margin-top: 10px; color: #31565f; word-break: break-all; font-size: .63rem; line-height: 1.55; }
.proof-hash-preview .text-button { margin-top: 10px; }
.proof-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.proof-preview-card { overflow: hidden; }
.proof-preview-hero { margin: 0 -24px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; color: #fff; background: linear-gradient(125deg, #123844, #1f6668); }
.proof-preview-avatar { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 17px; color: #173d47; background: #f2d995; font-weight: 850; }
.proof-preview-hero div { min-width: 0; display: grid; }
.proof-preview-hero strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-preview-hero span:not(.proof-preview-avatar) { color: #b9d7d5; font-size: .76rem; }
.proof-preview-hero small { margin-top: 3px; color: rgba(255,255,255,.6); }
.proof-preview-summary { margin: 20px 0 14px; color: var(--muted); font-size: .73rem; line-height: 1.65; white-space: pre-line; }
.proof-preview-skills { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.proof-preview-skills li { padding: 6px 9px; color: #27736d; background: var(--teal-soft); border-radius: 999px; font-size: .62rem; font-weight: 750; }
.proof-preview-note { margin: 18px 0 0; padding-top: 14px; color: var(--muted-2); border-top: 1px solid var(--line); font-size: .64rem; }
.proof-public-card .panel-heading .status-dot { margin: 6px; }
.proof-qr { width: min(250px, 100%); margin: 4px auto 18px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.proof-qr svg { width: 100%; height: auto; display: block; }
.proof-link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-public-card > p { margin: 14px 0 0; color: var(--muted-2); font-size: .65rem; }

@media (max-width: 1100px) {
  .proof-builder-layout { grid-template-columns: 1fr; }
  .proof-builder-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .guest-banner { margin: 10px 12px 0; grid-template-columns: auto 1fr; }
  .guest-banner .button { grid-column: 1 / -1; width: 100%; }
  .proof-builder-side { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .guest-banner > span { display: none; }
  .guest-banner { grid-template-columns: 1fr; }
  .proof-form-actions .button, .proof-link-actions .button { width: 100%; }
}
/* CareerSphere 0.8 · expérience unifiée */
.focus-top-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; box-shadow: var(--shadow-soft);
}
.focus-top-button > span:first-child { color: var(--teal); font-size: 1rem; }

.career-universe-strip {
  display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 26px; align-items: center;
  margin: 16px 0 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper), var(--paper-2)); box-shadow: var(--shadow-soft);
}
.career-universe-strip h2 { margin: 3px 0 5px; font-size: 1.15rem; }
.career-universe-strip p { margin: 0; color: var(--muted); font-size: .8rem; }
.career-universe-strip ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.career-universe-strip li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink-2); font-size: .68rem; font-weight: 700; }

.studio-native-head {
  display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 16px;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(125deg, var(--paper) 0%, var(--teal-soft) 140%); box-shadow: var(--shadow-soft);
}
.studio-native-head h2 { margin: 4px 0 6px; font-size: clamp(1.45rem, 2.4vw, 2.2rem); letter-spacing: -.035em; }
.studio-native-head p { max-width: 800px; margin: 0; color: var(--muted); }
.studio-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 13px; padding: 0; list-style: none; }
.studio-flow li { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.studio-flow li > span { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 850; }
.studio-flow strong { font-size: .72rem; }
.studio-flow small { color: var(--muted); font-size: .6rem; }
.studio-frame-shell.native { border-radius: var(--radius-xl); background: var(--paper); }
.studio-frame-shell.native #career-studio-frame { height: min(1050px, calc(100vh - 100px)); min-height: 790px; background: var(--paper); }

.focus-modal { width: min(560px, calc(100vw - 24px)); }
.focus-companion { display: flex; gap: 13px; align-items: center; margin: 12px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.companion-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--teal-soft), var(--violet-soft)); font-size: 1.55rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
.focus-companion p { margin: 2px 0 0; color: var(--muted); font-size: .74rem; }
.focus-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0; }
.focus-presets button { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.focus-presets button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.focus-clock { display: grid; place-items: center; min-height: 145px; margin: 12px 0; border-radius: 22px; background: radial-gradient(circle at center, var(--paper) 0%, var(--teal-soft) 150%); }
.focus-clock span { font-variant-numeric: tabular-nums; font-size: clamp(2.8rem, 9vw, 4.8rem); font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.focus-clock small, .focus-history { color: var(--muted); }
.focus-history { margin: 14px 0 0; text-align: center; font-size: .7rem; }

.personalization-modal { width: min(900px, calc(100vw - 24px)); max-height: min(880px, calc(100vh - 30px)); overflow-y: auto; }
.personalization-modal > h3 { margin: 21px 0 10px; }
.theme-choice-grid, .companion-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-choice-grid button, .companion-choice-grid button { display: grid; gap: 4px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.theme-choice-grid button:hover, .companion-choice-grid button:hover, .theme-choice-grid button.active, .companion-choice-grid button.active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.theme-choice-grid small, .companion-choice-grid small { color: var(--muted); font-size: .64rem; }
.theme-preview { display: block; height: 42px; margin-bottom: 5px; border-radius: 9px; }
.theme-preview.professional { background: linear-gradient(135deg, #e9eef0, #315460); }
.theme-preview.constellation { background: radial-gradient(circle at 65% 30%, #72d0c5 0 2px, transparent 3px), linear-gradient(135deg, #0b2b38, #665a96); }
.theme-preview.aurora { background: linear-gradient(135deg, #e8f6ee, #9ed9c3 45%, #b4a9dc); }
.theme-preview.sparkle { background: radial-gradient(circle, #fff 0 2px, transparent 3px), linear-gradient(135deg, #ffd9ef, #cfc5ff, #bdefff); background-size: 18px 18px, auto; }
.theme-preview.mission { background: linear-gradient(135deg, #111d22, #244d50 58%, #c9893f); }
.theme-preview.real { background: radial-gradient(circle at 70% 35%, #f8e1a8 0 2px, transparent 4px), radial-gradient(circle at 20% 70%, #fff 0 1px, transparent 2px), linear-gradient(145deg, #020711, #123451); }
.companion-choice-grid button { grid-template-columns: 48px 1fr; align-items: center; }
.companion-choice-grid button > span { grid-row: 1 / 3; font-size: 1.7rem; text-align: center; }
.personalization-note { margin: 15px 0 0; color: var(--muted); font-size: .7rem; }

.companion-nudge { position: fixed; z-index: 220; right: 24px; bottom: 22px; display: flex; gap: 13px; width: min(440px, calc(100vw - 28px)); padding: 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--paper); box-shadow: 0 24px 70px rgba(9,35,45,.2); animation: toast-in .25s ease-out; }
.companion-nudge[hidden] { display: none; }
.companion-nudge.attention { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.companion-nudge > div { min-width: 0; }
.companion-nudge strong { display: block; margin-top: 2px; }
.companion-nudge p { margin: 6px 0 11px; color: var(--muted); font-size: .76rem; }
.companion-nudge > div > div { display: flex; align-items: center; gap: 10px; }
.companion-nudge-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
/* Administration produit 0.8 */
.admin-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.admin-section-nav a { padding: 8px 11px; border-radius: 10px; color: var(--ink-2); font-size: .7rem; font-weight: 780; text-decoration: none; }
.admin-section-nav a:hover, .admin-section-nav a:focus-visible { background: var(--teal-soft); color: var(--teal-dark); }
#admin-accounts, #admin-business-rules, #admin-companions, #admin-updates, #admin-connections { scroll-margin-top: 92px; }
.admin-business-rules-panel { grid-column: 1 / -1; }
.business-rule-form { display: grid; gap: 12px; margin: 14px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.business-rules-list { display: grid; gap: 10px; }
.business-rule-item { position: relative; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(260px, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.business-rule-item.draft { opacity: .72; border-style: dashed; }
.business-rule-item strong { display: block; margin: 2px 0; }
.business-rule-item small { color: var(--muted); font-size: .64rem; }
.business-rule-item p { margin: 0; color: var(--muted); font-size: .73rem; }
.rule-domain { display: inline-flex; padding: 3px 7px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); font-size: .58rem; font-weight: 820; text-transform: uppercase; letter-spacing: .05em; }
.rule-trigger-list { display: flex; flex-wrap: wrap; gap: 4px; }
.rule-trigger-list span { padding: 3px 6px; border-radius: 7px; background: var(--paper-2); color: var(--muted); font-size: .58rem; }
.rule-actions { display: flex; flex-direction: column; gap: 5px; }
.rule-actions button { border: 0; background: transparent; color: var(--teal-dark); font: inherit; font-size: .65rem; font-weight: 760; cursor: pointer; }
.rule-actions button:last-child { color: var(--danger); }
.business-rule-trace { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--violet) 26%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--violet-soft) 45%, var(--paper)); }
.business-rule-trace > div { display: flex; gap: 10px; align-items: flex-start; }
.business-rule-trace > div > span { color: var(--violet); font-size: 1.15rem; }
.business-rule-trace p { margin: 2px 0 0; color: var(--muted); font-size: .67rem; }
.business-rule-trace ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.business-rule-trace li { display: flex; gap: 6px; align-items: baseline; padding: 6px 8px; border-radius: 9px; background: var(--paper); font-size: .64rem; }
.business-rule-trace li span { color: var(--muted); }.admin-product-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; margin: 16px 0; }
.admin-inline-status { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 12px; color: var(--muted); font-size: .68rem; }
.admin-update-panel form { display: grid; gap: 11px; }
.update-drop { display: grid; place-items: center; min-height: 150px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--paper-2); text-align: center; cursor: pointer; }
.update-drop:hover { border-color: var(--teal); background: var(--teal-soft); }
.update-drop > span { color: var(--teal); font-size: 2rem; }
.update-drop small { color: var(--muted); }
#admin-update-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-connections-panel { margin-top: 16px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.connection-card { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.connection-card > div:first-child { display: flex; align-items: center; gap: 10px; }
.connection-card > div:first-child small { display: block; color: var(--muted); font-size: .66rem; }
.connection-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); font-size: 1.15rem; }
.connection-note { margin: 0; color: var(--muted); font-size: .66rem; }

/* Six ambiances : les fonctions restent identiques, seule l’atmosphère change. */
html[data-theme="professional"] { --teal: #24616b; --teal-dark: #184b54; --teal-soft: #e7f0f1; --violet: #566b7a; --violet-soft: #ebf0f3; --canvas: #f2f5f6; --shadow: 0 16px 42px rgba(23,48,57,.08); }
html[data-theme="professional"] body { background: #f2f5f6; }
html[data-theme="professional"] .constellation-banner { background: linear-gradient(130deg, #173d48, #285d65); }

html[data-theme="constellation"] body { background: radial-gradient(circle at 92% 7%, rgba(118,101,168,.08), transparent 25%), var(--canvas); }

html[data-theme="aurora"] { --teal: #2c8b76; --teal-dark: #1d6e5c; --teal-soft: #e1f4ec; --violet: #796caf; --violet-soft: #eeeafd; --canvas: #f3f8f6; }
html[data-theme="aurora"] body { background: radial-gradient(circle at 10% 12%, rgba(120,211,171,.18), transparent 24%), radial-gradient(circle at 90% 18%, rgba(154,137,215,.16), transparent 25%), var(--canvas); }
html[data-theme="aurora"] .constellation-banner { background: linear-gradient(135deg, #245f59, #6a6096); }

html[data-theme="sparkle"] { --teal: #8a66b7; --teal-dark: #6c4898; --teal-soft: #f2e7fb; --violet: #c45c9c; --violet-soft: #fde8f5; --amber: #d28b2f; --canvas: #fff7fc; }
html[data-theme="sparkle"] body { background: radial-gradient(circle, rgba(255,255,255,.9) 0 1.5px, transparent 2px), linear-gradient(145deg, #fff7fc, #f4f1ff 55%, #effcff); background-size: 29px 29px, auto; }
html[data-theme="sparkle"] .constellation-banner { background: linear-gradient(135deg, #7d4f9f, #c45c9c 55%, #5f96b5); }
html[data-theme="sparkle"] .button-primary { box-shadow: 0 8px 20px rgba(168,84,151,.24); }

html[data-theme="mission"] { --ink: #17292e; --teal: #347e78; --teal-dark: #215f5b; --teal-soft: #e0efed; --violet: #6c6960; --violet-soft: #efede6; --amber: #bf7730; --canvas: #e8eceb; --radius-xl: 16px; --radius: 12px; --radius-sm: 8px; }
html[data-theme="mission"] body { background: linear-gradient(140deg, #dfe5e3, #f2f0e9); }
html[data-theme="mission"] .constellation-banner { background: linear-gradient(125deg, #101c20, #234346 65%, #80562d); }

html[data-theme="real"] { --teal: #2d8fa5; --teal-dark: #176d81; --teal-soft: #dff1f6; --violet: #665b9c; --violet-soft: #ece9f7; --canvas: #07131c; }
html[data-theme="real"] body { background: radial-gradient(circle at 82% 14%, rgba(42,139,165,.24), transparent 20%), radial-gradient(circle at 12% 72%, rgba(105,84,162,.22), transparent 28%), linear-gradient(145deg, #050b12, #0b2130 55%, #07131c); background-attachment: fixed; }
html[data-theme="real"] body::before { position: fixed; z-index: -1; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.56) 0 1px, transparent 1.4px); background-size: 71px 71px; content: ""; opacity: .34; }
html[data-theme="real"] .constellation-banner { background: radial-gradient(circle at 75% 26%, rgba(87,205,219,.35), transparent 20%), linear-gradient(130deg, #061620, #123a4d 58%, #312b55); }
html[data-theme="real"] .main-content { background: transparent; }

@media (max-width: 980px) {
  .business-rule-item { grid-template-columns: 1fr; }
  .rule-actions { flex-direction: row; }
  .career-universe-strip, .admin-product-grid, .connection-grid { grid-template-columns: 1fr; }
  .studio-native-head { align-items: flex-start; flex-direction: column; }
  .studio-actions { justify-content: flex-start; }
  .studio-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .theme-choice-grid, .companion-choice-grid { grid-template-columns: 1fr 1fr; }
  .studio-flow { grid-template-columns: 1fr; }
  .studio-flow li { grid-template-columns: 34px 1fr; }
  .focus-presets { grid-template-columns: 1fr 1fr; }
  .career-universe-strip { padding: 18px; }
  .companion-nudge { right: 14px; bottom: 14px; }
}
@media (max-width: 430px) {
  .theme-choice-grid, .companion-choice-grid { grid-template-columns: 1fr; }
}
/* CareerSphere V0.9 — référentiels, compagnons et confiance */
.brand-logo-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}.primary-focus-cta{position:relative;padding:.82rem 1.15rem!important;background:linear-gradient(135deg,#d69032,#f0b458)!important;color:#172b32!important;border-color:transparent!important;box-shadow:0 12px 30px rgba(214,144,50,.28);font-weight:850}.primary-focus-cta::before{content:"";width:.62rem;height:.62rem;border-radius:50%;background:#173f43;box-shadow:0 0 0 5px rgba(23,63,67,.12)}
.help-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.25rem 0}.help-path article,.help-menu-grid article{border:1px solid var(--border);background:var(--surface);border-radius:22px;padding:1.15rem}.help-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.help-menu-icon{display:grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:14px;background:var(--surface-soft);color:var(--accent);font-size:1.35rem}.help-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1.2rem}.help-principles>div{padding:1rem;border-radius:18px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border))}
.recommendation-panel{grid-column:1/-1}.recommendation-upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:end}.recommendation-list{display:grid;gap:.85rem;margin-top:1rem}.recommendation-item{border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:1rem}.recommendation-item>div,.recommendation-item footer{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.recommendation-author{display:grid}.recommendation-item blockquote{margin:1rem 0;padding-left:1rem;border-left:3px solid var(--accent);color:var(--ink);font-style:italic}.recommendation-tags,.rule-trigger-list{display:flex;gap:.4rem;flex-wrap:wrap}.recommendation-tags span,.rule-trigger-list span{padding:.3rem .55rem;border-radius:999px;background:var(--surface-soft);font-size:.76rem}.recommendation-item footer button,.business-rule-item button,.companion-admin-list button{border:0;background:transparent;color:var(--accent);font-weight:750;cursor:pointer}.recommendation-visibility{font-size:.75rem;padding:.35rem .55rem;border-radius:999px;background:#eaf6f1;color:#285f52}.consent-check{display:flex;gap:.7rem;align-items:flex-start;padding:.85rem;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.consent-check input{margin-top:.2rem}
.analysis-job-pack{display:grid;gap:.1rem;margin-top:1rem;padding:.9rem 1rem;border-radius:16px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border))}.analysis-job-pack span,.analysis-job-pack small{color:var(--muted)}.analysis-explain-grid{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}.analysis-explain-grid article{display:flex;gap:.9rem;padding:1rem;border:1px solid var(--border);border-radius:18px}.analysis-explain-grid article>span{font-weight:900;color:var(--accent)}
.ai-integration-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem}.ai-consent-box{display:grid;gap:.7rem}.branding-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.brand-logo-preview img{width:100%;height:100%;object-fit:contain;border-radius:12px}
.job-catalog-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:end}.job-catalog-toolbar>.field{min-width:300px}.job-catalog-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.25fr);gap:1rem}.job-catalog-summary{display:flex;justify-content:space-between;padding:.7rem 0}.job-catalog-list{display:grid;gap:.5rem;max-height:640px;overflow:auto;padding-right:.25rem}.job-catalog-item{display:flex;justify-content:space-between;gap:.8rem;text-align:left;padding:.85rem;border:1px solid var(--border);background:var(--surface);border-radius:16px;color:var(--ink);cursor:pointer}.job-catalog-item span{display:grid}.job-catalog-item small{color:var(--muted)}.job-catalog-item em{font-size:.72rem;font-style:normal;color:var(--muted)}.job-catalog-item.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.job-form{padding:1rem;border:1px solid var(--border);border-radius:20px;background:var(--surface-soft)}.admin-divider{border:0;border-top:1px solid var(--border);margin:1.5rem 0}.business-rules-list{display:grid;gap:.7rem;margin-top:1rem}.business-rule-item{display:grid;grid-template-columns:minmax(230px,.8fr) 1.2fr auto;gap:1rem;align-items:center;border:1px solid var(--border);border-radius:18px;padding:.9rem}.business-rule-item>div:first-child{display:grid}.rule-domain{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}.rule-actions{display:flex;gap:.4rem}
.companion-manager-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:1rem}.companion-admin-list{display:grid;gap:.6rem;align-content:start}.companion-admin-list article{display:grid;grid-template-columns:58px 1fr auto;gap:.8rem;align-items:center;padding:.75rem;border:1px solid var(--border);border-radius:18px}.companion-admin-visual,.companion-choice-visual{display:grid;place-items:end center;overflow:hidden;background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--accent) 18%,white),var(--surface-soft));border-radius:16px}.companion-admin-visual{width:58px;height:58px}.companion-admin-visual img,.companion-choice-visual img{width:100%;height:100%;object-fit:contain}.companion-definition-form{padding:1rem;border:1px solid var(--border);border-radius:20px;background:var(--surface-soft)}.companion-phrase-editor{margin-top:1rem}.companion-choice-grid button{min-height:150px}.companion-choice-visual{width:74px;height:74px;margin:auto}.focus-companion-avatar img,.companion-nudge-avatar img{width:100%;height:100%;object-fit:contain}.companion-nudge:not([hidden]) .companion-nudge-avatar{animation:careerCompanionEntrance 1.8s cubic-bezier(.2,.9,.2,1)}@keyframes careerCompanionEntrance{0%{transform:translateY(38px) scale(.3) rotate(-12deg);opacity:0}24%{transform:translateY(-8px) scale(1.12) rotate(5deg);opacity:1}43%{transform:translateY(2px) scale(.96) rotate(-3deg)}64%{transform:translateY(-3px) scale(1.03) rotate(2deg)}82%,100%{transform:none}}
.focus-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:.8rem}.focus-stat-grid>div{display:grid;padding:.75rem;border-radius:15px;background:var(--surface-soft)}.focus-stat-grid span{font-size:.75rem;color:var(--muted)}.focus-report-comment{padding:.75rem 1rem;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 7%,transparent);border-radius:0 14px 14px 0}
.proof-recommendation-options{display:grid;gap:.6rem}.proof-recommendation-options label{display:flex;gap:.7rem;padding:.75rem;border:1px solid var(--border);border-radius:15px}.proof-recommendation-options label span{display:grid}.proof-recommendation-options em{font-style:normal;color:var(--muted);font-size:.8rem}.proof-feedback-list{display:grid;gap:.65rem}.proof-feedback-list article{padding:.8rem;border:1px solid var(--border);border-radius:16px}.proof-feedback-list article>div{display:flex;justify-content:space-between}.mandatory-consent-backdrop{z-index:4000}.consent-modal{max-width:680px}.mandatory-consent-backdrop .modal-close{display:none}
html[data-theme="professional"] .panel,html[data-theme="professional"] button,html[data-theme="professional"] .field input,html[data-theme="professional"] .field textarea,html[data-theme="professional"] .field select{border-radius:8px}html[data-theme="sparkle"] .app-shell{background-image:radial-gradient(circle at 15% 12%,rgba(255,185,235,.28),transparent 25%),radial-gradient(circle at 85% 10%,rgba(194,150,255,.24),transparent 24%)}html[data-theme="sparkle"] .button-primary{box-shadow:0 0 0 3px rgba(255,255,255,.55),0 10px 30px rgba(207,105,190,.28)}html[data-theme="mission"] .panel{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));border-radius:0}html[data-theme="aurora"] .panel{border-radius:32px}html[data-theme="aurora"] .button{border-radius:999px}html[data-theme="real"] .app-main{background:radial-gradient(circle at 20% 0,rgba(46,117,131,.18),transparent 32%),#07171f}html[data-theme="real"] .topbar,html[data-theme="real"] .panel{background:rgba(12,34,44,.92);border-color:rgba(144,202,206,.18);color:#edf8f6}html[data-theme="real"] .panel p,html[data-theme="real"] .muted,html[data-theme="real"] .field span{color:#a9c3c5}html[data-theme="real"] .button-primary{background:linear-gradient(135deg,#70c6bc,#e4b461);color:#09232a}
@media(max-width:1050px){.help-menu-grid,.help-path{grid-template-columns:1fr 1fr}.job-catalog-layout,.companion-manager-layout,.branding-ai-grid,.ai-integration-layout{grid-template-columns:1fr}.job-catalog-toolbar{align-items:stretch;flex-direction:column}.job-catalog-toolbar>.field{min-width:0}.business-rule-item{grid-template-columns:1fr}.analysis-explain-grid{grid-template-columns:1fr}}@media(max-width:700px){.help-menu-grid,.help-path,.help-principles,.focus-stat-grid{grid-template-columns:1fr}.recommendation-upload-row{grid-template-columns:1fr}.primary-focus-cta{width:100%}.companion-admin-list article{grid-template-columns:48px 1fr}.companion-admin-list article>div:last-child{grid-column:1/-1}}