/* Freelance Pilot — système de design
   Encre bleu-nuit, papier chaud, un seul bleu « cobalt » pour l'action,
   un vert-citron réservé à ce qui est vivant (l'agent qui travaille).
   Titres : Instrument Serif · Interface : Hanken Grotesk · Icônes : SVG au trait. */
:root {
  --navy: #0b1020;
  --navy-2: #141b33;
  --ink: #0f1526;
  --ink-2: #2a3147;
  --paper: #f6f5f0;
  --paper-2: #efede6;
  --card: #ffffff;
  --muted: #697086;
  --faint: #9aa0b1;
  --line: #e6e3da;
  --line-2: #efede7;
  --blue: #2a55ff;
  --blue-2: #1b3fe0;
  --blue-soft: #edf1ff;
  --signal: #d4ff3d;
  --green: #0e8a5e;
  --green-soft: #e6f5ee;
  --amber: #a86400;
  --amber-soft: #fdf3e1;
  --red: #c0344a;
  --red-soft: #fcebee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(15, 21, 38, .04), 0 1px 3px rgba(15, 21, 38, .05);
  --shadow-md: 0 1px 0 rgba(15, 21, 38, .04), 0 10px 30px -12px rgba(15, 21, 38, .18);
  --shadow-lg: 0 30px 80px -20px rgba(11, 16, 32, .45);
  --ring: 0 0 0 4px rgba(42, 85, 255, .14);
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "tnum";
}
::selection { background: rgba(42, 85, 255, .16); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; margin: 0 0 .4em; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
code { font: 500 .82em ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Icônes SVG ---------- */
.ic { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -.17em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-right: .42em; }
.btn .ic, .nav .ic, .chip .ic, .rc-link .ic, .foot-link .ic { margin-right: 0; }
h1 .ic, h2 .ic, h3 .ic { color: var(--blue); }

/* ---------- Mise en page ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background:
    radial-gradient(140% 50% at 0% 0%, rgba(42, 85, 255, .22), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #c3c9d8;
  padding: 22px 14px 18px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.sidebar::before { /* trame discrète */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 40%);
}
.brand { position: relative; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; margin: 0 8px 26px; }
.brand:hover { text-decoration: none; }
.brand em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.22rem; margin-left: 3px; color: #dfe5ff; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--blue); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--signal); }
.nav-label { position: relative; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6f7894; font-weight: 700; margin: 14px 12px 6px; }
.nav { position: relative; display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm); color: #c3c9d8; font-weight: 600; font-size: .93rem;
  transition: background .15s, color .15s;
}
.nav a span:first-of-type { flex: 1; }
.nav a .ic { width: 18px; height: 18px; color: #8790ab; transition: color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.nav a:hover .ic { color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 2px 0 0 var(--signal); }
.nav a.active .ic { color: var(--signal); }
.nav .count { background: var(--signal); color: var(--navy); font-size: .7rem; padding: 1px 8px; border-radius: 99px; font-weight: 800; }
.sidebar-foot { position: relative; margin-top: auto; padding: 14px 6px 0; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 2px; font-size: .86rem; }
.sidebar-foot form { display: block; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; }
.me-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #2b3557, #1a2140); border: 1px solid rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.me-name { min-width: 0; }
.me-name b { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name small { color: #7b84a0; font-size: .76rem; }
.foot-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; background: none; border: 0; color: #9aa2bb; font: 600 .84rem var(--sans); cursor: pointer; text-align: left; }
.foot-link .ic { width: 16px; height: 16px; }
.foot-link:hover, .foot-link.active { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }

.main { padding: 36px 48px 72px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 6px; }
.page-head h1 .ic { display: none; } /* le titre éditorial se suffit */
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Composants ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1.4fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.stat { padding: 20px 22px; position: relative; overflow: hidden; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.stat.green::after { background: var(--green); }
.stat.amber::after { background: var(--amber); }
.stat.red::after { background: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-sm); font: 600 .88rem var(--sans); line-height: 1.3;
  cursor: pointer; box-shadow: 0 1px 0 rgba(15, 21, 38, .04);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { text-decoration: none; border-color: #d5d1c5; background: #fcfbf8; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue-2); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 4px 14px -6px rgba(42, 85, 255, .7); }
.btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-danger { color: var(--red); }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 9px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-lg { padding: 12px 20px; font-size: .98rem; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.inline { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: var(--paper-2); color: var(--muted); letter-spacing: .01em; }
.badge-new { background: var(--blue-soft); color: var(--blue); }
.badge-ready, .badge-draft { background: var(--amber-soft); color: var(--amber); }
.badge-applied, .badge-replied, .badge-sent, .badge-won { background: var(--green-soft); color: var(--green); }
.badge-ignored, .badge-info { background: var(--paper-2); color: var(--muted); }
.source { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

.score {
  --s: 0;
  --c: var(--blue);
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--s) * 1%), var(--line-2) 0);
  display: grid; place-items: center;
}
.score span { width: 37px; height: 37px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }

.offer-card { display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s; }
.offer-card:hover { box-shadow: var(--shadow-md); border-color: #d9d5ca; }
.offer-card .top { display: flex; gap: 14px; align-items: flex-start; }
.offer-card h3 { margin: 2px 0 0; font-size: 1.02rem; line-height: 1.35; }
.offer-card h3 a { color: var(--ink); }
.offer-card .excerpt { color: var(--muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .82rem; }
.meta .ic { width: 14px; height: 14px; margin-right: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; font-size: .74rem; font-weight: 600; }
.offer-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; }

/* ---------- Champs ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 500 .93rem var(--sans); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .2s, background .15s;
}
input[type=file] { padding: 8px; background: var(--paper); border-style: dashed; cursor: pointer; }
input::file-selector-button { font: 600 .82rem var(--sans); border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #d5d1c5; }
textarea { line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
input[readonly], textarea[readonly] { background: var(--paper); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
.filters input, .filters select { width: auto; min-width: 180px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: 6px; color: var(--ink-2); }
.field .help { color: var(--muted); font-size: .79rem; margin-top: 5px; }
.errorlist { color: var(--red); margin: 5px 0 0; padding: 0; list-style: none; font-size: .82rem; font-weight: 600; }
.form-error { display: flex; align-items: center; gap: 8px; color: var(--red); background: var(--red-soft); border: 1px solid #f4c7cf; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .86rem; font-weight: 600; margin-bottom: 14px; }
.form-error .ic { margin: 0; }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.messages li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 500; border: 1px solid var(--line); box-shadow: var(--shadow); animation: fp-in .35s var(--ease); }
.messages li .ic { margin: 2px 0 0; width: 18px; height: 18px; color: var(--blue); }
.messages .success { border-color: #bfe3d1; background: linear-gradient(90deg, var(--green-soft), #fff 70%); }
.messages .success .ic { color: var(--green); }
.messages .warning { border-color: #f0d6a8; background: linear-gradient(90deg, var(--amber-soft), #fff 70%); }
.messages .warning .ic { color: var(--amber); }
.messages .error { border-color: #f4c7cf; background: linear-gradient(90deg, var(--red-soft), #fff 70%); }
.messages .error .ic { color: var(--red); }
@keyframes fp-in { from { opacity: 0; transform: translateY(-6px); } }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; background: var(--amber-soft); border: 1px solid #f0d6a8; margin-bottom: 20px; font-size: .9rem; }
.alert code { background: rgba(0, 0, 0, .06); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .title { font-weight: 600; color: var(--ink); }
.list .sub { color: var(--muted); font-size: .82rem; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

.description { white-space: pre-wrap; color: var(--ink-2); font-size: .93rem; max-height: 520px; overflow: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .76rem; }

/* Boîte mail */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .86rem; }
.tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a:hover { text-decoration: none; }
.tabs .n { opacity: .6; margin-left: 4px; }
.mail-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.mail-row:hover { background: #fbfaf7; text-decoration: none; }
.mail-row:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; text-transform: uppercase; }
.mail-row .from { font-weight: 700; }
.mail-row .subj { color: var(--ink); }
.mail-row .preview { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.mail-row .when { color: var(--muted); font-size: .8rem; text-align: right; }
.thread { display: grid; gap: 16px; }
.bubble { border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.bubble.me { background: linear-gradient(180deg, #f3f6ff, #fff); border-color: #d3ddff; }
.bubble .who { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.ai-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }

.site-card { display: flex; flex-direction: column; gap: 8px; }
.site-card .name { font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Connexion ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); }
.login-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 40px 56px; color: #c3c9d8;
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(42, 85, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
}
.login-side::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(200deg, #000, transparent 70%); }
.login-side > * { position: relative; }
.login-side .brand { margin: 0; }
.login-pitch h1 { color: #fff; font-size: 3.4rem; max-width: 12ch; margin-bottom: 16px; }
.login-pitch h1 em { color: var(--signal); }
.login-pitch p { max-width: 46ch; font-size: 1.02rem; color: #aab2c8; margin: 0 0 26px; }
.login-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.login-pitch li { display: flex; align-items: center; gap: 12px; color: #e4e8f3; font-weight: 600; }
.login-pitch li .ic { width: 34px; height: 34px; padding: 8px; margin: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: var(--signal); }
.login-side small { color: #6f7894; }
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin-bottom: 4px; }
.login-card .muted { margin: 0 0 24px; }
.login-card .btn-lg { width: 100%; margin-top: 6px; }
.login-card .btn-lg .ic { margin-left: 2px; }
.muted { color: var(--muted); }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
  .main { padding: 24px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { padding: 28px; }
  .login-pitch h1 { font-size: 2.4rem; }
}


/* Page « Mon agent » */
.agent-hero {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
  background: radial-gradient(90% 120% at 0% 0%, #2a4685, var(--navy));
  border-radius: 20px; padding: 28px 30px; color: #fff; box-shadow: 0 18px 40px rgba(14,27,54,.25);
}
.agent-id { display: flex; gap: 22px; align-items: center; }
.agent-orb {
  width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #7aa2ff, var(--blue) 60%, #1b3fa8);
  box-shadow: 0 0 0 6px rgba(122,162,255,.18), 0 0 40px rgba(47,107,255,.6);
  animation: pulse 3s ease-in-out infinite;
}
.agent-orb span { font-size: 2.2rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(122,162,255,.08), 0 0 60px rgba(47,107,255,.8); } }
.agent-status { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: .76rem; font-weight: 700; padding: 3px 11px; border-radius: 99px; }
.pill.on { background: rgba(124,240,197,.16); color: #7cf0c5; }
.pill.off { background: rgba(255,196,87,.16); color: #ffc457; }
.skill-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.timeline { padding: 8px 22px; max-height: 640px; overflow: auto; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-proposal .tl-dot, .tl-mail_draft .tl-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl-application .tl-dot, .tl-mail_sent .tl-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-error .tl-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-item .sub { color: var(--muted); font-size: .78rem; }
.contract { background: var(--green-soft); color: var(--green); border-radius: 6px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }

/* Page Configuration */
.config-card { display: flex; flex-direction: column; gap: 6px; }
.config-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.config-head .badge { margin-left: auto; }
.config-head .sub { color: var(--muted); font-size: .85rem; }
.pill-light { font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); }
.pill-light.on { background: var(--green-soft); color: var(--green); }
.save-bar {
  position: sticky; bottom: 16px; margin-top: 22px; display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow);
}
.save-bar .sub { color: var(--muted); font-size: .85rem; }

.radio-card { display: flex !important; gap: 10px; align-items: center; font-weight: 600 !important; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* Aperçu façon LinkedIn */
.li-card { background: #fff; border: 1px solid #dfdedb; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.li-head { display: flex; gap: 10px; padding: 14px 16px 6px; }
.li-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #0a66c2, #5aa0e8); color: #fff; display: grid; place-items: center; font-weight: 800; }
.li-name { font-weight: 700; font-size: .92rem; }
.li-sub { color: #666; font-size: .76rem; line-height: 1.35; }
.li-body { padding: 8px 16px 14px; white-space: pre-wrap; font-size: .9rem; line-height: 1.5; color: #1d1d1d; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.li-foot { display: flex; justify-content: space-around; border-top: 1px solid #ebebeb; padding: 8px; color: #666; font-size: .82rem; font-weight: 600; }
.li-img { display: block; width: 100%; height: auto; border-top: 1px solid #ebebeb; }

/* Tableau des missions en télétravail */
.remote-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.remote-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.remote-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; background: #fff; }
.remote-table tr:last-child td { border-bottom: 0; }
.remote-table .score { width: 40px; height: 40px; }
.remote-table .score span { width: 31px; height: 31px; font-size: .74rem; }
.remote-table .title { font-weight: 700; color: var(--ink); }
.remote-table .sub { color: var(--muted); font-size: .8rem; }
.remote-table .nowrap { white-space: nowrap; }
.remote-table tr.row-applied td { background: #dbe7ff; border-bottom-color: #c3d6ff; }
.remote-table tr.row-applied .title { color: #1a3f9c; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid #c3d6ff; }
.sw-blue { background: #dbe7ff; }
.sw-white { background: #fff; border-color: var(--line); }

/* Agent navigateur : tuiles des sites */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.site-tile {
  text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.site-tile:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(47,107,255,.15); }
.site-tile-top { display: flex; justify-content: space-between; align-items: center; }
.site-tile-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.site-tile-count { background: var(--navy); color: #fff; border-radius: 99px; padding: 2px 12px; font-weight: 800; }
.site-tile-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin: 12px 0 10px; }
.site-tile-bar { height: 6px; border-radius: 99px; background: #edf0f6; overflow: hidden; }
.site-tile-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* Panneau qui glisse depuis la droite */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14,27,54,.35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(48vw, 720px); background: var(--paper);
  box-shadow: -20px 0 50px rgba(14,27,54,.25); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1), right .45s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: translateX(0); }
/* Quand Chrome arrive à droite de l'écran, le panneau se range à gauche */
.drawer.docked-left { right: calc(100vw - min(48vw, 720px)); box-shadow: 20px 0 50px rgba(14,27,54,.25); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-body { overflow: auto; padding: 14px 18px 40px; display: grid; gap: 10px; align-content: start; }
.drawer-feedback { margin: 12px 18px 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.drawer-feedback.info { background: var(--blue-soft); color: var(--navy); }
.drawer-feedback.ok { background: var(--green-soft); color: #0b6b4d; }
.drawer-feedback.err { background: var(--red-soft); color: var(--red); }
.drawer-offer { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.drawer-offer.is-applied { background: #dbe7ff; border-color: #c3d6ff; }
.drawer-offer .title { font-weight: 700; color: var(--ink); line-height: 1.3; }
.drawer-offer .meta { margin-top: 4px; }
.drawer-offer .state { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.drawer-offer-actions { display: flex; flex-direction: column; gap: 6px; }
#snapshot-link { display: block; }
#snapshot-link[hidden] { display: none; }
.drawer { overflow-y: auto; }

.login-table input { padding: 7px 10px; font-size: .86rem; min-width: 170px; }
.login-table tr.row-saved td { background: #f3fbf7; }
