/* Raisegen CRM — colours, type and button rules from the Raisegen charte graphique.
   Palette (Gamme des Couleurs): #005FE1 blue · #000000 black · #989898 grey
                                 #F5F5F5 light grey · #FFFFFF white
   Type: Montserrat — Bold (titles) / SemiBold (sub-titles) / Regular (text)
   Buttons: 17px radius, outlined → solid blue on hover → black when clicked   */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-variable.woff2") format("woff2-variations"),
       url("/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* charter palette */
  --blue: #005fe1;
  --black: #000000;
  --grey: #989898;
  --grey-bg: #f5f5f5;
  --white: #ffffff;

  /* tints derived from the five charter colours */
  --blue-700: #004ab0;
  --blue-50: #e6effc;
  --blue-100: #cddffa;
  --ink: var(--black);
  --ink-2: #1c1c1c;
  --slate: #6f6f6f;          /* body copy at reading contrast */
  --slate-2: var(--grey);    /* charter grey, for links and meta */
  --bg: var(--grey-bg);
  --card: var(--white);
  --line: #e2e2e2;
  --line-2: #efefef;

  /* functional-only status colour: errors, overdue, destructive actions */
  --red: #d92d20;
  --red-bg: #fdecea;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-btn: 17px;             /* charter: button border-radius */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04);
  --shadow: 0 4px 14px rgba(0, 0, 0, .07);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .16);
  --sidebar: 244px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { font-size: 14px; line-height: 1.5; }
h1 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--slate-2); }

/* ---------- boot ---------- */
.app-boot { display: grid; place-items: center; height: 100vh; }
.boot { text-align: center; opacity: .9; }
.boot img { max-width: 200px; height: auto; }
.boot-bar { width: 180px; height: 3px; margin: 22px auto 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; background: var(--blue); border-radius: 2px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
/* charter: "logo sur fond noir" — black panel with the blue as the only accent */
.auth-brand {
  position: relative; overflow: hidden; padding: 56px 56px 44px;
  background: var(--black);
  color: var(--white); display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  content: ""; position: absolute; right: -180px; bottom: -240px; width: 640px; height: 640px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0, 95, 225, .30) 0%, transparent 66%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand img.mark { width: 230px; height: auto; }
.auth-brand h2 { font-size: 30px; line-height: 1.25; max-width: 15ch; margin-bottom: 14px; font-weight: 700; }
.auth-brand p { color: #b4b4b4; max-width: 42ch; margin: 0; }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 13px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: #cfcfcf; }
.auth-points b { display: block; color: var(--white); font-weight: 600; }
.auth-points .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: rgba(0, 95, 225, .28); color: #6ba4ff; display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.auth-legal { color: #7a7a7a; font-size: 12px; }

.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--card); }
.auth-card { width: 100%; max-width: 384px; }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card .sub { color: var(--slate); margin: 0 0 26px; }
.auth-switch { margin-top: 22px; color: var(--slate); text-align: center; }
.auth-switch button { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; }
.auth-logo-sm { display: none; }

/* ---------- forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--slate-2); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .12s, box-shadow .12s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 95, 225, .15); }
.input.err, .select.err { border-color: var(--red); }
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%23989898' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { background: var(--red-bg); color: #a3231a; padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13px; }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; }

/* Charter button states: 1-position (outlined blue) → 2-hover (solid blue) → 3-clicked (black) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-btn); border: 2px solid var(--blue);
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn:active { background: var(--black); border-color: var(--black); color: var(--white); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; padding: 12px 16px; }

/* the charter's default "en savoir +" treatment: white fill, blue outline, blue label */
.btn-ghost { background: var(--white); border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-ghost:active { background: var(--black); border-color: var(--black); color: var(--white); }

.btn-sm { padding: 6px 13px; font-size: 12.5px; border-width: 2px; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #b42318; border-color: #b42318; }
.btn-quiet { background: none; border: 0; color: var(--slate); cursor: pointer; padding: 6px 8px; border-radius: var(--r-sm); }
.btn-quiet:hover { background: var(--line-2); color: var(--black); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--black);
  color: #c4c4c4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-logo { padding: 22px 20px 18px; }
.sidebar-logo img { width: 156px; height: auto; display: block; }
.nav { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #7a7a7a; padding: 16px 10px 7px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 8px;
  color: #b8b8b8; font-weight: 550; font-size: 13.5px; transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--blue); color: #fff; }
.nav a .ico { width: 17px; display: grid; place-items: center; opacity: .95; }
.nav a .pill { margin-left: auto; background: rgba(255, 255, 255, .14); border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.nav a.active .pill { background: rgba(255, 255, 255, .25); }
.nav a .pill.alert { background: var(--red); color: #fff; }

.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .08); padding: 13px 16px; display: flex; align-items: center; gap: 10px; }
.sidebar-user .who { min-width: 0; flex: 1; }
.sidebar-user .who b { display: block; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .who span { font-size: 11.5px; color: #8f8f8f; text-transform: capitalize; }
.sidebar-user .btn-quiet { color: #9a9a9a; }
.sidebar-user .btn-quiet:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 46px; height: 46px; font-size: 16px; }
.avatar.muted { background: var(--blue-50); color: var(--blue); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; align-items: center; gap: 16px;
}
.topbar h1 { font-size: 19px; }
.topbar .crumb { color: var(--slate); font-size: 12.5px; }
.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; align-items: center; gap: 9px; }
.search { position: relative; }
.search input { width: 250px; padding-left: 34px; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--slate-2); pointer-events: none; display: grid; }
.content { padding: 24px 26px 60px; flex: 1; }

/* ---------- cards / generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-head { padding: 15px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.card-head h3 { font-size: 14.5px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.muted { color: var(--slate); }
.tiny { font-size: 12px; }
.mono-num { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 17px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .label { font-size: 12px; color: var(--slate); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12px; color: var(--slate-2); margin-top: 5px; }
.kpi .foot b { color: var(--blue); font-weight: 650; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.kpi.violet::before { background: #4a8bea; }
.kpi.green::before { background: var(--black); }
.kpi.amber::before { background: var(--grey); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 650; background: var(--line-2); color: var(--slate); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Stages read as a blue ramp — the deal takes on more brand colour as it advances.
   Won is the filled blue; lost fades to the charter grey. */
.badge.stage-lead { background: #f0f0f0; color: #6f6f6f; }
.badge.stage-contacted { background: var(--blue-50); color: #4a8bea; }
.badge.stage-qualified { background: var(--blue-50); color: var(--blue); }
.badge.stage-proposal { background: var(--blue-100); color: var(--blue-700); }
.badge.stage-negotiation { background: var(--blue-100); color: #00306f; }
.badge.stage-won { background: var(--blue); color: var(--white); }
.badge.stage-lost { background: #efefef; color: var(--grey); }
.badge.ok { background: var(--blue-50); color: var(--blue); }
.badge.warn { background: #ececec; color: var(--ink-2); }
.badge.danger { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-50); color: var(--blue); }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2);
  font-weight: 700; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fafafa;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr { cursor: pointer; transition: background .1s; }
table.tbl tbody tr:hover { background: #fafafa; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { display: flex; align-items: center; gap: 11px; }
.cell-main b { font-weight: 600; display: block; }
.cell-main span { color: var(--slate); font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }

.empty { text-align: center; padding: 54px 24px; color: var(--slate); }
.empty .art { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h4 { font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.empty p { margin: 0 auto 18px; max-width: 42ch; }

.seg { display: inline-flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--slate); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- pipeline board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 256px; gap: 13px; overflow-x: auto; padding-bottom: 18px; align-items: stretch; }
.col {
  background: #efefef; border-radius: var(--r); display: flex; flex-direction: column;
  min-height: 420px; max-height: calc(100vh - 176px);
}
.col-head { padding: 12px 13px 10px; position: sticky; top: 0; }
.col-head .top { display: flex; align-items: center; gap: 8px; }
.col-head h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.col-head .count { background: #fff; border-radius: 20px; font-size: 11px; font-weight: 700; padding: 1px 8px; color: var(--slate); }
.col-head .sum { font-size: 12.5px; color: var(--slate); margin-top: 3px; font-variant-numeric: tabular-nums; }
.col-head .bar { height: 3px; border-radius: 2px; background: #dcdcdc; margin-top: 9px; overflow: hidden; }
.col-head .bar i { display: block; height: 100%; background: var(--blue); }
.col-body { padding: 0 10px 10px; overflow-y: auto; display: grid; gap: 9px; align-content: start; min-height: 70px; }
.col.drop { outline: 2px dashed var(--blue); outline-offset: -3px; background: var(--blue-50); }

.deal {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: box-shadow .12s, transform .06s, border-color .12s;
}
.deal:hover { box-shadow: var(--shadow); border-color: #cccccc; }
.deal.dragging { opacity: .45; }
.deal .t { font-weight: 600; font-size: 13.2px; line-height: 1.35; margin-bottom: 7px; }
.deal .who { display: flex; align-items: center; gap: 7px; color: var(--slate); font-size: 12px; margin-bottom: 9px; }
.deal .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deal .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.deal .due { font-size: 11.5px; color: var(--slate-2); display: inline-flex; align-items: center; gap: 4px; }
.deal .due.soon { color: var(--ink-2); font-weight: 600; }
.deal .due.late { color: var(--red); font-weight: 600; }
.board-hint { color: var(--slate-2); font-size: 12.5px; margin: -4px 0 12px; }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 21, 36, .45); z-index: 60; display: grid; place-items: center; padding: 24px; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; animation: pop .14s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: 0; } }
.modal.wide { max-width: 660px; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 9px; justify-content: flex-end; background: #fafafa; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-foot .spacer { flex: 1; }

.drawer-wrap { position: fixed; inset: 0; z-index: 55; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(11, 21, 36, .38); animation: fade .12s ease-out; }
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: #fff;
  box-shadow: -18px 0 48px rgba(11, 21, 36, .18); display: flex; flex-direction: column; animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } }
.drawer-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-2); }
.drawer-head .top { display: flex; align-items: flex-start; gap: 12px; }
.drawer-head h3 { font-size: 17px; line-height: 1.3; }
.drawer-head .meta { color: var(--slate); font-size: 12.5px; margin-top: 4px; }
.drawer-body { padding: 18px 22px 40px; overflow-y: auto; flex: 1; }
.drawer-amt { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.deflist { display: grid; grid-template-columns: 118px 1fr; gap: 9px 14px; font-size: 13px; }
.deflist dt { color: var(--slate); }
.deflist dd { margin: 0; font-weight: 550; }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-2); font-weight: 700; margin: 24px 0 11px; display: flex; align-items: center; gap: 10px; }
.section-title .spacer { flex: 1; }

.timeline { display: grid; gap: 0; }
.timeline li { display: flex; gap: 11px; list-style: none; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 10px; margin-top: 1px; }
.timeline .txt { font-size: 13px; }
.timeline .txt time { display: block; color: var(--slate-2); font-size: 11.5px; margin-top: 2px; }

.task { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.task:last-child { border-bottom: 0; }
.task .check {
  flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.6px solid #c9c9c9; background: #fff;
  cursor: pointer; display: grid; place-items: center; margin-top: 1px; color: transparent; transition: all .12s;
}
.task .check:hover { border-color: var(--blue); }
.task.done .check { background: var(--blue); border-color: var(--blue); color: #fff; }
.task.done .body b { text-decoration: line-through; color: var(--slate-2); font-weight: 500; }
.task .body { flex: 1; min-width: 0; }
.task .body b { font-weight: 600; font-size: 13.2px; }
.task .body .sub { color: var(--slate); font-size: 12.2px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 108px 1fr 88px; gap: 12px; align-items: center; font-size: 12.5px; }
.bar-row .track { height: 8px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 5px; background: var(--blue); transition: width .3s; }
.bar-row .amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }

.spark { display: flex; align-items: flex-end; gap: 7px; height: 84px; }
.spark .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.spark .b i { display: block; width: 100%; background: linear-gradient(180deg, #4a8bea, var(--blue)); border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .3s; }
.spark .b span { font-size: 10.5px; color: var(--slate-2); }

/* ---------- AI assistant ---------- */
.example {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 12.5px; color: var(--slate); line-height: 1.45;
  transition: border-color .12s, color .12s;
}
.example:hover { border-color: var(--blue); color: var(--ink-2); }

.prop {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  margin-top: 14px; transition: opacity .12s, border-color .12s;
}
.prop.off { opacity: .45; border-style: dashed; }
.prop.off input, .prop.off select { pointer-events: none; }
.prop-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; cursor: pointer; }
.prop-head input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.prop .field { margin-bottom: 12px; }
.prop .field label { font-size: 11.5px; color: var(--slate-2); }

.callout {
  background: var(--blue-50); border-left: 3px solid var(--blue);
  padding: 11px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 14px 0; font-size: 13px;
}

.btn-ghost.recording { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost.recording svg { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 9px; justify-items: end; }
.toast { background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 13px; animation: pop .14s ease-out; display: flex; align-items: center; gap: 9px; max-width: 380px; }
.toast.bad { background: var(--red); }
.toast.good { background: var(--blue); }

.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 9px 12px; letter-spacing: .04em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-logo-sm { display: block; margin: 0 auto 26px; width: 172px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; width: 240px; left: 0; transform: translateX(-100%); transition: transform .18s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .search input { width: 150px; }
  .menu-btn { display: grid !important; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; gap: 10px; }
  .topbar .titles { flex: 1 1 auto; min-width: 0; }
  .topbar h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .crumb, .topbar .spacer { display: none; }
  .topbar .actions { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .row-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .value { font-size: 22px; }
  .deflist { grid-template-columns: 96px 1fr; }
  .drawer-body, .drawer-head { padding-left: 16px; padding-right: 16px; }
}
.menu-btn { display: none; }
