:root {
  --ink: #17241c;
  --green: #075f32;
  --green-dark: #043d23;
  --orange: #f58b39;
  --gold: #d6ad42;
  --paper: #f4efe5;
  --paper-light: #fcfaf5;
  --white: #fffefa;
  --red: #b93c2d;
  /* #687269 measured 4.36:1 on --paper — under 4.5 for body copy (.intro-copy,
     .buyer, .supporting-copy). #5d665e is 5.19:1 on paper, 5.90:1 on white. */
  --muted: #5d665e;
  --line: #d8d1c4;
  /* Control boundaries need 3:1 (WCAG 2.2 SC 1.4.11). The old #bdb6a9 measured
     1.93:1 on --paper-light; this is 4.27:1 there and 3.89:1 on paper. */
  --field-line: #7d7768;
  /* A finished-with-errors crawl is neither green nor red. 3.96:1 on white. */
  --amber: #a8760a;
  --shadow: 0 12px 34px rgb(23 36 28 / .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; opacity: .22; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
/* Keyboard navigation is the accessible path through this app, so the ring has
   to clear 3:1 against what it sits on. Orange measures 2.12:1 on --paper and
   2.41:1 on --white; green is 6.81:1 and 7.73:1. Orange is kept only on the
   dark-green surfaces, where it measures 5.09:1 and green would disappear. */
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.masthead :focus-visible, .site-footer :focus-visible, .detail-hero :focus-visible { outline-color: var(--orange); }

.masthead { position: sticky; z-index: 20; top: 0; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 64px); color: white; background: var(--green-dark); border-bottom: 4px solid var(--orange); box-shadow: 0 8px 28px rgb(3 39 22 / .16); }
.brand { min-height: 44px; display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; line-height: 1; }
.brand-crown { color: var(--gold); font-size: 29px; transform: translateY(-2px); }
.brand b { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .045em; }
.brand small { display: block; margin-top: 5px; color: #c9ddcf; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a, .nav-logout { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: #e7efe9; border: 0; background: transparent; text-decoration: none; font-size: 14px; cursor: pointer; }
.main-nav > a:hover, .nav-logout:hover { color: white; background: rgb(255 255 255 / .08); }
.nav-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; color: var(--ink); background: var(--orange); border-radius: 50%; font-size: 11px; font-weight: 800; }
.nav-toggle { display: none; min-height: 44px; color: white; border: 1px solid rgb(255 255 255 / .3); background: transparent; padding: 8px 14px; }

/* The dashboard is a worklist, not a cover page: the shell no longer spends up
   to 82px of the fold on breathing room before the first line of work. */
.page-shell { position: relative; width: min(1220px, calc(100% - 36px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: clamp(24px, 3vw, 46px) 0; }
.page-shell.anonymous { width: 100%; padding: 0; }
.site-footer { position: relative; display: flex; justify-content: space-between; padding: 24px clamp(18px, 4vw, 64px); color: #d6e3da; background: var(--green-dark); font-size: 12px; letter-spacing: .05em; }
.site-footer a { color: #d6e3da; }
.messages { position: fixed; top: 88px; right: 18px; z-index: 50; width: min(420px, calc(100% - 36px)); }
/* No accent stripe: the toast is outlined in the status colour on all four
   sides, which reads as one object instead of a decorated one. */
.message { margin-bottom: 8px; padding: 13px 16px; background: var(--white); border: 1px solid var(--green); border-radius: 5px; box-shadow: var(--shadow); }
.message.error { border-color: var(--red); }

/* Fixed scale, not fluid clamps: this is a product surface, and a heading that
   grows with the viewport buys nothing while costing three lines on a phone. */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; }
h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
h1 em { color: var(--green); font-weight: 500; }
h2 { margin: 0 0 14px; font-size: 27px; font-weight: 500; }
h3 { font-size: 22px; }
/* Reduced from 25 usages to 2 deliberate kickers (the login hero and the
   verify-the-official-notice callout). Orange at 11px measured 2.12:1 on
   paper — the least readable text in the app; --muted is 5.19:1. */
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.paper-card { padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { color: var(--green); border-color: var(--green); background: transparent; }
.button.positive { color: white; background: var(--green); }
.button.negative { color: var(--red); border-color: var(--red); background: transparent; }
.button.block { width: 100%; margin-bottom: 10px; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; color: var(--green); border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.text-button.danger { color: var(--red); }

.login-page { min-height: 100vh; background: var(--green-dark); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(100px, .45fr) minmax(300px, 1.1fr) minmax(340px, .75fr); align-items: center; gap: clamp(28px, 6vw, 90px); padding: clamp(28px, 7vw, 100px); color: white; background: radial-gradient(circle at 18% 17%, #0e7542 0, var(--green-dark) 43%, #032e1a 100%); }
.login-mark { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--orange); border-right: 1px solid rgb(255 255 255 / .16); font-family: var(--serif); }
.login-mark span { color: var(--gold); font-size: 48px; }
.login-mark b { font-size: clamp(52px, 8vw, 112px); writing-mode: vertical-rl; }
.login-copy { max-width: 650px; }
.login-copy h1 { font-size: 52px; }
.login-copy h1 em { color: var(--orange); }
.login-copy .eyebrow { color: var(--orange); }
.login-copy > p:last-child { max-width: 520px; color: #d2e2d7; font-size: 18px; }
.login-card { color: var(--ink); transform: rotate(-.6deg); }
.login-card h2 { font-size: 30px; }
.login-card label, .settings-form label, .filter-bar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.login-card input, .settings-form input, .settings-form select, .settings-form textarea, .filter-bar input, .filter-bar select, .feedback-form select, .feedback-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--field-line); border-radius: 2px; text-transform: none; letter-spacing: 0; }
/* The settings labels are whole questions now ("Heure d'envoi du résumé
   quotidien (heure du Cameroun)"), not field names, and each carries a sentence
   of help text. All-caps loses the word shapes that make a sentence readable:
   measured, six of the nine wrapped to two tracked lines at 375px, and the help
   text rendered as 10px weight-800 caps. Sentence case here; the filter bar and
   the login field keep the uppercase treatment, where labels are one or two
   words and it reads as a label rather than as shouting. */
.settings-form label { color: var(--ink); font-size: 14px; font-weight: 650; text-transform: none; letter-spacing: 0; }
.settings-form label > small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.login-card .button { width: 100%; margin: 18px 0 12px; }
.center-card { width: min(560px, calc(100% - 36px)); margin: 16vh auto; }

.dashboard-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.dashboard-header h1 { max-width: 900px; font-size: 30px; }
.intro-copy { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.source-status { min-width: 210px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgb(255 254 250 / .72); border: 1px solid var(--line); border-radius: 7px; }
.source-status div { display: grid; }.source-status small { color: var(--muted); }
/* One dot, four crawl outcomes. `box-shadow-color` is not a CSS property, so
   the old success rule silently did nothing and kept the gold halo. */
.status-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 5px rgb(93 102 94 / .15); }
.status-dot.success { background: #2d9b5b; box-shadow: 0 0 0 5px rgb(45 155 91 / .15); }
.status-dot.partial { background: var(--amber); box-shadow: 0 0 0 5px rgb(168 118 10 / .15); }
.status-dot.failed { background: var(--red); box-shadow: 0 0 0 5px rgb(185 60 45 / .15); }

/* Onboarding, not furniture: excellent in week one, dead weight by week two.
   <details> keeps it one tap away and costs 46px of the fold instead of 350. */
.quick-guide { margin: 22px 0 0; padding: 0 18px; background: rgb(255 254 250 / .58); border: 1px solid var(--line); border-radius: 7px; }
.quick-guide > summary { min-height: 46px; padding: 13px 2px; color: var(--green); font-size: 15px; font-weight: 750; cursor: pointer; }
.quick-guide[open] > summary { border-bottom: 1px solid var(--line); }
.quick-guide h2 { margin: 16px 0 14px; font-size: 21px; }
.quick-guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0 0 20px; list-style: none; }
.quick-guide li { display: flex; align-items: center; gap: 12px; }
.quick-guide li > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 800; }
.quick-guide li div { display: grid; }.quick-guide li small { color: var(--muted); line-height: 1.35; }
.source-stamp { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 9px; color: var(--green); font-family: var(--serif); font-size: 21px; }
.source-stamp small { grid-column: 1 / -1; color: var(--muted); font: 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
/* A triage bar, not a hero-metric wall: three 150px tiles stacked to 384px on a
   phone and pushed the actual tenders off the second screen. */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.stat { min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; color: var(--ink); background: rgb(255 254 250 / .58); border: 1px solid var(--line); border-radius: 7px; text-decoration: none; transition: transform .18s, background .18s; }
a.stat:hover { position: relative; z-index: 1; background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.stat span { color: var(--green); font: 40px/1 var(--serif); }
.stat b { margin-top: 6px; font-size: 14px; }
.stat small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.stat.urgent span { color: var(--red); }
.stat.watch span { color: #8b6c13; }
/* A nought is not an answer. When a band is empty the tile says what to do
   instead, and stops being a link into a list with nothing in it. */
.stat.is-empty { justify-content: center; background: none; border-style: dashed; }
.stat.is-empty b { margin: 0; font: 500 19px/1.15 var(--serif); }
.stat.is-empty small { margin-top: 5px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: clamp(28px, 5vw, 70px); }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.page-heading { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.page-heading h1 { font-size: 34px; }
.page-heading p:last-child { color: var(--muted); }
.side-column { display: grid; align-content: start; gap: 20px; }
.health-panel h2, .rejected-panel h2 { font-size: 25px; }
.run-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.run-row div { display: grid; }
.run-row small { color: var(--muted); }
/* PARTIAL used to fall through to "en cours" — a finished run reported as still
   running, on the majority of runs. It now has its own label and colour. */
.run-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.run-dot.success { background: #2d9b5b; }.run-dot.partial { background: var(--amber); }.run-dot.failed { background: var(--red); }
.notice-link { min-height: 44px; display: flex; align-items: center; margin-top: 10px; }
.mini-link { min-height: 44px; display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mini-link span { color: var(--muted); font: 20px var(--serif); }

.opportunity-stack { display: grid; gap: 14px; }
.opportunity-stack.wide { max-width: 980px; margin: 0 auto; }
/* No side stripe. The band is already stated twice — by the marker column on
   desktop and by the pill on mobile, where the marker is hidden — so a third,
   purely decorative 6px edge encoded nothing the card did not already say. */
.opportunity-card { position: relative; display: grid; grid-template-columns: 58px 1fr; min-height: 175px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 25px rgb(23 36 28 / .055); transition: transform .16s, box-shadow .16s; }
.opportunity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.opportunity-card:has(.card-action:focus-visible) { box-shadow: var(--shadow); }
/* Rejected cards were dimmed with opacity, which drags every string inside them
   below its measured contrast. A tinted ground does the same job for free. */
.opportunity-card.band-rejected { background: var(--paper-light); }
.priority-marker { display: grid; place-items: center; color: var(--green); background: #f0f5f1; border-right: 1px solid var(--line); font-size: 22px; }
.band-watchlist .priority-marker { color: #85650b; background: #faf4df; }
.band-rejected .priority-marker { color: var(--muted); background: #efeee9; }
.opportunity-body { padding: 20px 24px; }
.opportunity-body h3 { margin: 10px 0 6px; }.opportunity-body h3 a { position: relative; z-index: 1; color: var(--ink); text-decoration: none; }.opportunity-body h3 a:hover { color: var(--green); }
.buyer { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 99px; background: #e4e2db; font: 10px var(--sans); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pill.strong { color: white; background: var(--green); }.pill.watchlist { color: #5b4710; background: #ecd98f; }.pill.rejected { color: #4f5550; background: #dddcd7; }.pill.urgent { color: white; background: var(--red); }
.match-reason { margin: 10px 0; padding: 10px 12px; color: #345040; background: #f0f5f1; border-radius: 4px; font-size: 13px; }
.opportunity-facts { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.opportunity-facts > span { display: grid; }.opportunity-facts small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.opportunity-facts b { color: var(--ink); }.opportunity-facts em { color: var(--green); font-style: normal; }.opportunity-facts em.expired { color: var(--red); font-weight: 700; }
/* The primary action on the primary surface, on a phone, measured 27px. It is
   now 44px, and its ::after stretches the hit area over the whole card so a
   mis-tap between print jobs still opens the tender instead of doing nothing.
   The title keeps its own z-index so it stays a link and stays selectable. */
.card-action { min-height: 44px; display: inline-flex; align-items: center; justify-self: end; font-weight: 800; }
.card-action::after { content: ""; position: absolute; z-index: 0; inset: 0; }
.quiet-link { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.supporting-copy { color: var(--muted); }
.help-panel { border-top: 4px solid var(--gold); box-shadow: none; }.help-panel h2 { font-size: 26px; }
.empty-state { padding: 34px 24px; text-align: center; background: rgb(255 254 250 / .55); border: 1px dashed #aaa397; }.empty-state b { font: 500 26px/1.15 var(--serif); }.empty-state p { color: var(--muted); }

.filter-bar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(125px, .7fr)) auto; align-items: end; gap: 10px; margin: 0 0 30px; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.filter-bar.compact { grid-template-columns: 2fr 1fr auto; }
.export-actions { display: flex; gap: 8px; }
.pagination { display: flex; justify-content: space-between; align-items: center; max-width: 980px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; }

.detail-sheet { margin-top: -30px; }
.detail-hero { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 34px; padding: clamp(30px, 5vw, 65px); color: white; background: var(--green-dark); border-bottom: 8px solid var(--orange); }
.detail-hero h1 { margin-top: 14px; font-size: 38px; }.detail-hero .buyer { color: #ccded2; }
.detail-score { min-height: 126px; display: grid; justify-items: center; padding: 20px 14px; border: 1px solid rgb(255 255 255 / .35); border-radius: 7px; align-content: center; text-align: center; }.detail-score span { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }.detail-score b { margin: 8px 0; color: var(--orange); font: 24px/1.1 var(--serif); }.detail-score small { color: #c8d7cd; font-size: 10px; }
.warning-banner { padding: 15px 22px; color: #584009; background: #f2dfa3; border: 1px solid #d5b956; }
.fact-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }.fact-ribbon div { min-height: 105px; display: grid; align-content: center; padding: 20px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.fact-ribbon small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }.fact-ribbon b { margin-top: 7px; font-family: var(--serif); font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .55fr); gap: clamp(28px, 6vw, 80px); padding-top: 55px; }
.brief-column > section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }.lead { font: 22px/1.5 var(--serif); }
.two-list { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }.two-list h3 { font-size: 19px; }.check-list, .risk-list, .question-list { padding: 0; list-style: none; }.check-list li, .risk-list li, .question-list li { position: relative; padding: 9px 0 9px 25px; border-top: 1px solid var(--line); }.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }.risk-list li::before { content: "!"; position: absolute; left: 3px; color: var(--red); font-weight: 900; }.question-list li::before { content: "?"; position: absolute; left: 2px; color: var(--gold); font-weight: 900; }
.extracted-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }.extracted-grid div { padding: 16px; background: var(--white); }.extracted-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.extracted-grid dd { margin: 7px 0 0; }
/* No side stripe: the quotation is already marked as one by its ground, its
   serif setting and the guillemets the template puts around it. */
blockquote { margin: 15px 0; padding: 18px 22px; background: #f0f5f1; border: 1px solid var(--line); border-radius: 5px; } blockquote p { margin: 8px 0; font-family: var(--serif); font-size: 18px; } blockquote cite { color: var(--muted); font-size: 11px; }
.data-block { max-width: 100%; overflow: auto; padding: 18px; white-space: pre-wrap; background: #ece8de; }
.detail-aside { display: grid; align-content: start; gap: 20px; }.detail-aside h2 { font-size: 25px; }.source-group + .source-group { margin-top: 18px; }.source-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }.source-callout { border-top: 4px solid var(--orange); }.source-callout .source-link { margin-top: 16px; color: white; }.document-link { min-height: 44px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; padding: 10px 0; font-size: 13px; text-decoration: none; }.document-link small { color: var(--muted); }
.feedback-form { display: grid; gap: 10px; }.feedback-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.print-button { width: 100%; }

.settings-form { max-width: 920px; margin: 0 auto; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }.form-grid .wide { grid-column: 1 / -1; }.errorlist { padding: 0; color: var(--red); list-style: none; font-size: 12px; text-transform: none; letter-spacing: 0; }
.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.document-card { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 24px; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 7px 20px rgb(23 36 28 / .04); }.document-card:hover { border-color: var(--orange); }.document-card h2 { margin: 10px 0 7px; font-size: 25px; }.document-card p, .document-card small { color: var(--muted); }.file-monogram { width: 65px; height: 82px; display: grid; place-items: center; color: white; background: var(--green); border-bottom: 7px solid var(--orange); font-family: var(--serif); font-weight: 800; }.file-monogram.large { width: 100px; height: 125px; font-size: 24px; }.vault-hero { grid-template-columns: 120px 1fr; }.consent-panel { border-top: 4px solid var(--gold); }.danger-panel { box-shadow: none; border-color: #e3bab4; text-align: center; }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 14px 18px; flex-direction: column; align-items: stretch; background: var(--green-dark); border-bottom: 3px solid var(--orange); }
  .nav-toggle { display: block; }.nav-toggle[aria-expanded="true"] + .main-nav { display: flex; }
  .main-nav form, .nav-logout { width: 100%; }
  .login-layout { grid-template-columns: 1fr; }.login-mark { display: none; }.login-copy { padding-top: 40px; }.login-card { transform: none; }
  .dashboard-header { grid-template-columns: 1fr; gap: 18px; }.source-status { width: fit-content; }.content-grid, .detail-grid { grid-template-columns: 1fr; }.detail-aside { grid-template-columns: repeat(2, 1fr); }.print-button { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }.filter-bar .search-field { grid-column: 1 / -1; }
  .fact-ribbon { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Every pixel above the first tender is a pixel she has to scroll past with
     one hand in a print shop, so the phone gets a shorter masthead too. */
  .page-shell { width: min(100% - 24px, 1220px); padding: 20px 0; }.masthead { min-height: 62px; padding: 0 14px; }.main-nav { top: 62px; }.messages { top: 74px; }
  h1 { font-size: 28px; }.editorial-header { grid-template-columns: 1fr; }.source-stamp { display: none; }
  .dashboard-header { padding-bottom: 14px; margin-bottom: 14px; gap: 14px; }.dashboard-header h1 { font-size: 26px; }.source-status { padding: 9px 13px; }.dashboard-header h1 br { display: none; }.intro-copy { font-size: 15px; }.page-heading h1 { font-size: 28px; }
  .quick-guide ol { grid-template-columns: 1fr; gap: 14px; }
  /* Three counts read as a list on a phone, not as three stacked hero tiles.
     The explanatory line is dropped where the label already carries it, but
     kept on an empty band, where the line IS the content. */
  .stat-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  /* minmax so a three-digit count widens its gutter instead of overlapping. */
  .stat { min-height: 0; display: grid; grid-template-columns: minmax(42px, auto) 1fr; align-items: center; gap: 12px; padding: 9px 14px; }
  .stat span { font-size: 30px; text-align: center; }
  .stat b { margin: 0; grid-column: 2; }.stat small { display: none; }
  .stat.is-empty { grid-template-columns: 1fr; padding: 11px 14px; }.stat.is-empty b { font-size: 18px; }
  /* Only the priority band explains itself when empty: it is the headline she
     reads first, and "0" there needs replacing with an instruction. The other
     two empty labels already say everything ("Aucune clôture imminente"). */
  .stat.strong.is-empty small { display: block; }
  .section-heading, .page-heading { align-items: start; flex-direction: column; gap: 2px; }.section-heading h2 { margin-bottom: 0; }
  .opportunity-card { grid-template-columns: 1fr; min-height: 0; }.priority-marker { display: none; }.opportunity-body { padding: 18px 18px 14px; }.opportunity-body h3 { font-size: 20px; }.opportunity-facts { grid-template-columns: 1fr 1fr; gap: 12px; }.card-action { grid-column: 1 / -1; justify-self: stretch; }
  .filter-bar, .filter-bar.compact { grid-template-columns: 1fr; }.filter-bar .search-field { grid-column: auto; }
  .detail-sheet { margin-top: 0; }.detail-hero, .vault-hero { grid-template-columns: 1fr; padding: 26px 20px; }.detail-score { width: 150px; }.detail-score b { font-size: 22px; }.detail-hero h1 { font-size: 28px; }.fact-ribbon, .two-list, .extracted-grid, .form-grid, .document-grid, .detail-aside { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.document-card { grid-template-columns: 62px 1fr; padding: 17px; }.file-monogram { width: 54px; height: 68px; }
  .site-footer { flex-direction: column; gap: 7px; }.login-layout { padding: 22px; }.login-copy h1 { font-size: 34px; }
}

/* Both transitions are short and well judged, but movement is not optional to
   opt out of: honour the OS setting instead of animating regardless. */
@media (prefers-reduced-motion: reduce) {
  .stat, .opportunity-card, .document-card { transition: none; }
  a.stat:hover, .opportunity-card:hover { transform: none; }
}

@media print {
  body { background: white; }.masthead, .site-footer, .messages, .detail-aside, .print-button, .quick-guide { display: none !important; }.page-shell { width: 100%; padding: 0; }.detail-sheet { margin: 0; }.detail-hero { color: black; background: white; border: 2px solid black; }.detail-hero .buyer { color: #333; }.detail-score b { color: black; }.fact-ribbon div { background: white; }.detail-grid { grid-template-columns: 1fr; padding-top: 28px; }.brief-column > section { break-inside: avoid; }
}
