/* DFC CRM · same tokens and components as DFC Cashly (dfc-compta/web/app.css), validated in the mockup. */
@font-face { font-family: "Ginto"; src: url(/static/fonts/ginto-light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ginto"; src: url(/static/fonts/ginto-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ginto"; src: url(/static/fonts/ginto-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --navy: #0D0B35; --ink2: #474D70; --mute: #6A7095; --violet: #5B5EE8; --violet-d: #4A4DD6; --violet-bg: #EEEFFF; --lav: #F3F4FF;
  --line: #DCE1F0; --line2: #ECEFF7; --mist: #F3F5FB; --band: #F9FAFD; --yellow: #F7C948; --white: #FFFFFF; --bar: #5C69E2;
  --coral-bg: #FDECEE; --coral-d: #B3192D; --jade-bg: #E6F6EC; --jade-d: #17713D; --amber-bg: #FFF5D6; --amber-d: #7A5200; --badge: #E8344A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: "Ginto", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
h1 { font-weight: 300; font-size: 36px; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-weight: 400; font-size: 18px; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 400; }
p { margin: 0; }
a { color: var(--violet-d); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
.sq { display: inline-block; width: .16em; height: .16em; background: var(--yellow); margin-left: .08em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink2); }
.small { font-size: 13px; line-height: 1.45; }
.tiny { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--violet-d); text-transform: uppercase; margin-bottom: 6px; }
.lead { margin-top: 8px; font-size: 15px; color: var(--ink2); max-width: 70ch; }

/* layout helpers (no inline styles: the CSP forbids them) */
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.row-top { align-items: flex-start; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack-s { gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.side-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.wide { grid-column: 1 / -1; }

/* components */
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .kl { font-size: 12px; letter-spacing: .08em; color: var(--violet-d); font-weight: 400; text-transform: uppercase; }
.kpi strong { font-weight: 300; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .tiny { color: var(--violet-d); font-size: 12px; text-transform: none; letter-spacing: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--navy); background: var(--navy); color: var(--white); font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #26245E; border-color: #26245E; color: var(--white); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn2 { background: var(--white); color: var(--navy); border-color: var(--line); border-radius: 8px; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 0 14px; }
.btn2:hover { background: var(--lav); border-color: var(--line); color: var(--navy); }
.btn-s { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn-danger { color: var(--coral-d); }
.lnk { background: none; border: 0; padding: 0; color: var(--violet-d); cursor: pointer; text-align: left; text-decoration: none; font-weight: 400; font-size: inherit; }
.lnk:hover { color: var(--navy); text-decoration: underline; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 14px; font-weight: 400; color: var(--ink2); }
.chip:hover { border-color: #B9BAE0; }
.chip-on, .chip-on:hover { background: var(--violet-bg); border-color: var(--violet); color: var(--violet-d); }
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--mist); gap: 2px; max-width: 100%; }
.seg .chip { border: 0; background: transparent; min-height: 38px; border-radius: 7px; color: var(--ink2); padding: 0 13px; }
.seg .chip:hover { background: rgba(255,255,255,.6); color: var(--navy); }
.seg .chip-on, .seg .chip-on:hover { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(13,11,53,.12); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 400; line-height: 1.35; white-space: nowrap; }
.p-navy { background: var(--navy); color: var(--white); }
.p-violet { background: var(--violet-bg); color: #3A3DC4; }
.p-yellow { background: var(--amber-bg); color: var(--amber-d); }
.p-grey { background: var(--mist); color: var(--ink2); }
.p-jade { background: var(--jade-bg); color: var(--jade-d); }
.p-coral { background: var(--coral-bg); color: var(--coral-d); }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span { font-size: 13px; color: var(--ink2); }
.f input, .f select, .f textarea, .inp { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 12px; font-size: 14px; font-weight: 300; color: var(--navy); }
.f textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 90px; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.f input[readonly] { background: var(--band); color: var(--ink2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.err { color: var(--coral-d); background: var(--coral-bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.ok { color: var(--jade-d); background: var(--jade-bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.pin { background: var(--amber-bg); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--navy); }
.info { background: var(--lav); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.empty { color: var(--mute); font-size: 14px; padding: 18px 0; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 6px 14px; }
.tr { display: grid; gap: 14px; align-items: center; padding: 11px 8px; border-top: 1px solid var(--line2); font-size: 14px; min-width: 820px; }
.tr:hover { background: var(--band); }
.th { border-top: 0; border-bottom: 1px solid var(--line); padding-block: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.th + .tr { border-top: 0; }
.th:hover { background: transparent; }
.tr-click { cursor: pointer; }
.t-co { grid-template-columns: minmax(200px, 2fr) 120px 170px 90px 90px 160px; }
.t-sub { grid-template-columns: 110px minmax(200px, 2fr) 150px minmax(180px, 2fr) 150px 110px; }
.t-out { grid-template-columns: 120px 130px minmax(170px, 1.4fr) minmax(200px, 2fr) 110px 130px 170px; min-width: 1060px; }
.t-users { grid-template-columns: minmax(150px, 1fr) 140px 130px 100px minmax(380px, 1.6fr); }
.t-data { grid-template-columns: minmax(160px, 1fr) 120px 140px 100px; min-width: 520px; }
.ptr { grid-template-columns: 200px 90px 150px 70px 170px 180px 170px 70px 230px 190px 120px 240px 150px 170px 260px; min-width: 2640px; font-size: 13px; }
.stick { position: sticky; left: 0; z-index: 1; background: var(--white); align-self: stretch; display: flex; align-items: center; }
.tr:hover .stick { background: var(--band); }
.th:hover .stick, .th .stick { background: var(--white); }
.cell-in { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 8px; font-size: 13px; font-weight: 300; min-width: 0; color: var(--navy); }
.cell-in:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.cell-late { background: var(--coral-bg); color: var(--coral-d); }
.cut { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* app shell (Cashly) */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 0 0 252px; max-width: 100%; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white);
  position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow-y: auto; } /* stays put while the page scrolls */
.brand { height: 76px; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.brand img { height: 46px; width: 46px; border-radius: 13px; display: block; flex: none; }
.bsep { width: 1px; height: 26px; background: var(--line); flex: none; }
.bname { display: flex; flex-direction: column; line-height: 1.2; }
.bname b { font-size: 15px; font-weight: 400; }
.bname small { font-size: 12px; color: var(--mute); }
.nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.grp { display: flex; flex-direction: column; gap: 2px; }
.grp-t { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; border: 0; background: none; font-size: 11px; font-weight: 300; letter-spacing: .08em; color: var(--mute); padding: 0 12px 6px; text-transform: uppercase; text-align: left; }
button.grp-t { cursor: pointer; }
button.grp-t:hover { color: var(--navy); }
.chev { transition: transform .15s; flex: none; }
.chev-shut { transform: rotate(-90deg); }
.grp-items { display: flex; flex-direction: column; gap: 2px; }
.grp-items.shut { display: none; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 12px; background: none; color: var(--navy); font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; text-decoration: none; }
.side-link:hover { background: var(--lav); }
.side-link.on { background: var(--violet-bg); }
.side-ic { flex: 0 0 32px; height: 32px; border-radius: 9px; background: var(--lav); display: inline-flex; align-items: center; justify-content: center; }
.side-link:hover .side-ic, .side-link.on .side-ic { background: var(--white); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--badge); color: var(--white); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-later { margin-left: auto; font-size: 11px; color: var(--mute); flex: none; }
.side-foot { margin-top: auto; padding: 12px 24px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); display: flex; flex-direction: column; gap: 6px; }
.col { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 28px; background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; }
.top-sp { flex: 1; }
.osel { position: relative; display: inline-flex; }
.osel select { height: 44px; min-width: 210px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; font-weight: 300; color: var(--navy); cursor: pointer; -webkit-appearance: none; appearance: none; }
.osel select:hover { background: #F8F9FE; }
.osel svg { position: absolute; right: 12px; top: 13px; pointer-events: none; color: var(--navy); }
.repnote { font-size: 13px; color: var(--mute); }
.um { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 15px; font-weight: 400; border: 0; background: none; cursor: pointer; color: var(--navy); }
.um:hover { background: var(--lav); }
.um-av { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; flex: none; }
.um-id { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.um-id small { font-size: 12px; color: var(--mute); font-weight: 300; }
.um-wrap { position: relative; }
.um-menu { position: absolute; right: 0; top: 54px; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,11,53,.14); padding: 6px; z-index: 15; display: flex; flex-direction: column; }
.um-menu button, .um-menu a { min-height: 42px; border: 0; background: none; text-align: left; padding: 0 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--navy); text-decoration: none; display: flex; align-items: center; }
.um-menu button:hover, .um-menu a:hover { background: var(--lav); }
.mainc { flex: 1; padding: 32px 28px 56px; min-width: 0; }
.wrap { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.testbar { background: var(--amber-bg); color: var(--amber-d); font-size: 13px; padding: 8px 28px; border-bottom: 1px solid #F3E2A8; }

/* records */
.tl-row { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line2); }
.tl-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--lav); color: var(--navy); }
.tl-ic-out { background: var(--violet-bg); color: #3A3DC4; }
.tl-ic-in { background: var(--amber-bg); color: var(--amber-d); }
.tl-ic-note { background: var(--mist); color: var(--ink2); }
.mailbody { white-space: pre-line; background: var(--band); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.opens { display: flex; flex-wrap: wrap; gap: 6px; }
.av { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; background: var(--violet-bg); color: #3A3DC4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 400; }
.lg { width: 26px; height: 26px; flex: none; border-radius: 6px; overflow: hidden; background: var(--mist); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 400; }
.av-xl { width: 76px; height: 76px; font-size: 24px; }
.lg-xl { width: 68px; height: 68px; font-size: 24px; border-radius: 12px; }
.idc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rep-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.rep-i { font-size: 14px; line-height: 1.5; }
.mini-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.step { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.step b { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--jade-bg); color: var(--jade-d); display: flex; align-items: center; justify-content: center; font-weight: 400; font-size: 12px; margin-top: 1px; }

/* data */
.bars { display: flex; align-items: stretch; gap: 2px; height: 130px; border-bottom: 1px solid var(--line); }
.barhit { flex: 1 1 0; min-width: 0; max-width: 28px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.barhit:hover { background: var(--lav); }
.bar { background: var(--bar); border-radius: 4px 4px 0 0; }
.barhit:hover .bar { background: var(--navy); }
.hbar-track { flex: 1; min-width: 60px; }
.hbar { height: 8px; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }

/* deals */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--band); border: 1px solid var(--line2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; text-align: left; }
.kcard-t { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--navy); }
.kcard-t:hover { text-decoration: underline; }
.kbtn { min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; font-size: 15px; color: var(--navy); }
.kbtn:hover { background: var(--lav); }
.funnel-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 150px; gap: 14px; align-items: center; font-size: 14px; }
.funnel-bar { height: 22px; background: var(--bar); border-radius: 0 6px 6px 0; min-width: 3px; }
.stps { display: flex; flex-wrap: wrap; gap: 8px; }
.stp { flex: 1 1 130px; min-width: 0; display: flex; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line2); font-size: 13px; line-height: 1.35; }
.stp b { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--mist); color: var(--ink2); display: flex; align-items: center; justify-content: center; font-weight: 400; font-size: 12px; }
.stp-done { background: var(--white); box-shadow: inset 0 0 0 1.5px #1F8B4C; }
.stp-done b { background: var(--jade-bg); color: var(--jade-d); }
.stp-cur { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--violet); }
.stp-cur b { background: var(--violet); color: var(--white); }
.stp-gap { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--yellow); }
.stp-gap b { background: var(--yellow); color: var(--navy); }
.gapnote { background: var(--amber-bg); color: var(--amber-d); border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.45; }
.task { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); }
.task .check { flex: 1 1 240px; min-width: 0; color: var(--navy); font-size: 14px; }
.task-done .check span { text-decoration: line-through; color: var(--mute); }
.task input[type=date] { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 8px; font-size: 13px; }
.progress { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--violet); }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(13,11,53,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; z-index: 20; }
.modal { width: min(720px, 100%); background: var(--white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(13,11,53,.3); }
.modal-wide { width: min(920px, 100%); }
.xbtn { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.xbtn:hover { background: var(--lav); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 380px; background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 14px; font-size: 14px; line-height: 1.4; z-index: 30; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 18px 40px rgba(13,11,53,.25); }
.toast i { width: 6px; height: 6px; background: var(--yellow); flex: none; margin-top: 7px; }
.toast-err i { background: var(--badge); }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--band); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; user-select: all; }

/* login (Cashly layout, Beedy cyan) */
.auth { min-height: 100vh; display: flex; background: var(--white); }
.auth-brand { flex: 0 0 44%; max-width: 640px; min-height: 100vh; position: sticky; top: 0; padding: 56px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--navy);
  background: radial-gradient(120% 90% at 18% 8%, #8CEFF6 0%, #2ED5E2 45%, #1ABCC9 100%); }
.auth-icon { width: 220px; height: 220px; border-radius: 69px; box-shadow: 0 22px 40px rgba(4,84,92,.42), 0 6px 12px rgba(4,84,92,.26); }
.auth-icon img { display: block; width: 100%; height: 100%; }
.auth-tag { margin: 56px 0 0; font-weight: 300; font-size: clamp(44px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.auth-dot { display: inline-block; width: .19em; height: .19em; margin-left: .09em; background: var(--navy); }
.auth-sub { margin: 22px 0 0; max-width: 500px; font-size: 17px; line-height: 1.55; }
.auth-side { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 28px 40px 40px; }
.auth-mid { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 20px; }
.auth-card h1 { font-size: 40px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.auth-card .lead { margin-top: -10px; }
.auth-card .f > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #293F9E; }
.auth-card .f input { min-height: 50px; font-size: 16px; padding: 0 16px; }
.auth-card .btn { min-height: 52px; letter-spacing: .08em; }
.auth-help { font-size: 14px; line-height: 1.6; color: var(--ink2); }
@media (max-width: 860px) {
  .auth { flex-direction: column; }
  .auth-brand { position: static; flex: none; max-width: none; min-height: 0; padding: 36px 24px 40px; }
  .auth-icon { width: 120px; height: 120px; border-radius: 38px; }
  .auth-tag { margin-top: 28px; font-size: 38px; }
  .auth-sub { font-size: 15px; margin-top: 12px; }
  .auth-side { padding: 12px 16px 32px; }
  .auth-mid { align-items: flex-start; padding-top: 8px; }
  .auth-card h1 { font-size: 32px; }
}

@media (max-width: 1100px) { .side-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { flex-direction: column; flex-wrap: nowrap; }
  .side { flex: none; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); position: static; height: auto; overflow: visible; }
  .top { position: static; }
  .brand { height: 64px; min-height: 64px; padding: 0 16px; }
  .nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 4px; }
  .grp, .grp-items, .grp-items.shut { flex-direction: row; display: flex; }
  .grp-t, .side-foot { display: none; }
  .side-link { white-space: nowrap; width: auto; }
  .col { flex: 1 1 auto; }
  .top { padding: 10px 16px; }
  .testbar { padding: 8px 16px; }
  .mainc { padding: 24px 16px 48px; }
  h1 { font-size: 30px; }
  .kbtn, .chip { min-height: 44px; }
  .funnel-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .funnel-row .funnel-track { grid-column: 1 / -1; grid-row: 2; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 560px) { .um-id { display: none; } .um { padding-right: 4px; } .osel select { min-width: 0; width: 100%; } .osel { flex: 1 1 100%; } }
.kpi-big { font-weight: 300; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.kpi-n b { font-size: 26px; font-weight: 300; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 0; }
ul.muted { margin: 0; padding-left: 20px; line-height: 1.7; }
.hlabel { flex: 0 0 180px; min-width: 0; }
@media (max-width: 560px) { .hlabel { flex-basis: 120px; } }
.stick { box-shadow: -16px 0 0 var(--white); }
.tr:hover .stick { box-shadow: -16px 0 0 var(--band); }
.th .stick, .th:hover .stick { box-shadow: -16px 0 0 var(--white); }
.wrap > * { min-width: 0; max-width: 100%; }
.kanban { min-width: 0; }

/* ---------- Livres blancs (21 Nov 2026) */
.t-wp { grid-template-columns: minmax(220px, 2fr) 70px minmax(200px, 1.6fr) minmax(170px, 1.2fr) 80px 70px minmax(230px, 1.3fr); min-width: 1120px; }
.tr-off { color: var(--mute); }
.wp-t { font-weight: 500; }
.slugs { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
code.slug { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--mist); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; color: var(--ink2); overflow-wrap: anywhere; }
.r { text-align: right; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.steps b { color: var(--navy); font-weight: 500; }
.g2-tight { gap: 22px; align-items: start; }
/* preview of the WeCom message (WeCom's own look: grey quote lines, green name, link) */
.wc-prev { display: flex; flex-direction: column; gap: 4px; background: #F5F6F7; border: 1px solid #E3E5E8; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #333; }
.wc-prev b { font-weight: 600; color: #111; margin-bottom: 2px; }
.wc-prev span { color: #6B6F76; }
.wc-prev i { font-style: normal; color: #07A35A; }
.wc-prev u { color: #2B6AD8; text-decoration: none; margin-top: 4px; }

/* ---------- Journal (copied from DFC Cashly) */
.aud-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.aud-f { display: inline-flex; flex-direction: column; gap: 4px; }
.aud-f > span:first-child { font-size: 11px; letter-spacing: .06em; color: var(--mute); padding-left: 2px; text-transform: uppercase; }
.aud-f select.on { border-color: var(--violet); background: var(--violet-bg); }
.aud-acts { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--mute); }
.dc-link { font-size: 13px; color: var(--violet-d); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dc-link:hover { color: var(--navy); }
.jn-box { overflow-x: auto; }
table.u-audit { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.u-audit th { text-align: left; font-weight: 400; font-size: 12px; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.u-audit td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.u-audit td.ev-bad { color: var(--coral-d); }
.u-audit tr.mon td { padding: 18px 10px 8px; border-bottom: 2px solid var(--violet); background: none; }
.u-audit tbody tr.mon:first-child td { padding-top: 8px; }
.u-audit .mon-t { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--navy); }
.u-audit .mon-t svg { color: var(--violet); }
.u-audit tr.mon small { display: inline; margin-left: 10px; font-size: 12px; color: var(--mute); font-weight: 400; }
.u-audit tr.day td { background: #F8F9FE; color: var(--navy); font-weight: 500; border-bottom: 4px solid var(--white); cursor: pointer; vertical-align: middle; }
.u-audit tr.day.open td { background: var(--lav); }
.u-audit tr.day td:first-child { border-radius: 8px 0 0 8px; } .u-audit tr.day td:last-child { border-radius: 0 8px 8px 0; }
.u-audit tr.day:hover td { background: var(--violet-bg); }
.u-audit tr.day td small { display: inline; color: var(--mute); font-weight: 400; margin-left: 8px; }
.u-audit tr.day td.bad-n { text-align: right; }
.u-audit tr.day td.bad-n span { display: inline-block; font-size: 11px; font-weight: 400; padding: 2px 9px; border-radius: 999px; background: var(--coral-bg); color: var(--coral-d); }
.u-audit tr.ev td:first-child { color: var(--mute); padding-left: 46px; white-space: nowrap; }
.u-audit td.wrap-cell { white-space: normal; min-width: 200px; overflow-wrap: anywhere; }
.tb-tog { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -4px 6px -4px -4px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--violet); cursor: pointer; vertical-align: middle; }
.tb-tog svg { transition: transform .15s; transform: rotate(-90deg); }
.tb-tog[aria-expanded="true"] svg { transform: rotate(0deg); }
.tb-tog:hover { background: rgba(91, 94, 232, .14); }
@media (max-width: 560px) { .aud-acts { margin-left: 0; } .aud-f, .aud-f .osel { width: 100%; } }
