:root {
  --ink: #141519;
  --ink-2: #202126;
  --muted: #70737c;
  --line: #e7e7e9;
  --soft: #f4f4f5;
  --paper: #ffffff;
  --red: #e30621;
  --red-dark: #b90018;
  --red-soft: #fff0f2;
  --green: #11845b;
  --amber: #a86200;
  --shadow: 0 24px 70px rgba(24, 24, 28, .12);
  --radius: 18px;
  --sidebar: 252px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.brand-lockup { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 720; letter-spacing: -.01em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 44px; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eyebrow { display: inline-block; color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 850; }
.eyebrow.light { color: #ff9ca9; }
.muted { color: var(--muted); }
.button { border: 0; border-radius: 11px; min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: 13px; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(227,6,33,.2); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.button.white { background: #fff; color: var(--ink); }
.button.danger { background: var(--red-soft); color: var(--red-dark); }
.button.wide { width: 100%; }
.badge { display: inline-flex; align-items: center; width: max-content; min-height: 26px; padding: 0 9px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.badge.success { background: #e8f7f0; color: var(--green); }
.badge.warning { background: #fff2db; color: var(--amber); }
.badge.neutral { background: #ededf0; color: #555861; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd08c; box-shadow: 0 0 0 4px rgba(43,208,140,.12); flex: 0 0 auto; }

/* Authentification */
.auth-page { min-height: 100vh; background: #111216; padding: 24px; display: grid; place-items: center; }
.auth-shell { width: min(1100px, 100%); min-height: 680px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.auth-brand { position: relative; overflow: hidden; color: #fff; padding: 46px 54px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 100% 0%, rgba(227,6,33,.45), transparent 42%), linear-gradient(135deg,#191a20 0%,#0f1013 75%); }
.auth-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border: 85px solid var(--red); border-radius: 50%; right: -265px; bottom: -180px; opacity: .65; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand h1 { margin: 16px 0 18px; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.065em; max-width: 650px; }
.auth-brand p { max-width: 520px; color: #b8bac2; line-height: 1.7; font-size: 15px; }
.auth-proof { border-left: 3px solid var(--red); padding-left: 15px; display: grid; gap: 5px; }
.auth-proof strong { font-size: 13px; }
.auth-proof span { color: #93959e; font-size: 12px; }
.auth-card { padding: 70px 62px; display: flex; flex-direction: column; justify-content: center; }
.auth-card h2 { font-size: 30px; letter-spacing: -.04em; margin: 10px 0 7px; }
.auth-card > p { margin: 0 0 26px; font-size: 13px; line-height: 1.6; }
.stack-form { display: grid; gap: 16px; }
.stack-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 750; }
.stack-form input { width: 100%; height: 49px; border-radius: 11px; border: 1px solid #dcdde0; padding: 0 14px; outline: none; background: #fbfbfc; }
.stack-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,33,.08); background: #fff; }
.stack-form small { color: var(--muted); font-weight: 500; }
.auth-help { margin-top: 22px !important; text-align: center; color: var(--muted); font-size: 11px !important; }
.alert { padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.alert.error { color: #9f0015; background: var(--red-soft); border: 1px solid #ffcbd2; }
.alert.warning { color: #7a4a00; background: #fff5e3; border: 1px solid #f1d7aa; }
.alert.success { color: #08714b; background: #e8f7f0; border: 1px solid #bde8d7; }

/* Structure application */
.app-page { min-height: 100vh; background: #f5f5f6; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 25px 18px 18px; display: flex; flex-direction: column; color: #f8f8f9; background: radial-gradient(circle at 0 100%,rgba(227,6,33,.17),transparent 34%),#15161a; border-right: 1px solid #292a30; }
.sidebar-brand { height: 58px; padding: 0 10px; margin-bottom: 26px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand small { color: #858791; font-size: 9px; margin-top: 2px; text-transform: uppercase; letter-spacing: .16em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; width: 100%; min-height: 45px; border-radius: 10px; padding: 0 11px; display: flex; align-items: center; gap: 11px; color: #9b9da6; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 680; transition: .18s ease; }
.nav-item:hover { color: #fff; background: #212228; }
.nav-item.active { color: #fff; background: linear-gradient(100deg,rgba(227,6,33,.24),rgba(227,6,33,.06)); box-shadow: inset 3px 0 var(--red); }
.nav-icon { width: 25px; height: 25px; display: grid; place-items: center; font-size: 19px; font-weight: 400; }
.nav-icon.sparkle { color: #ff4b62; }
.nav-item kbd { margin-left: auto; color: #61636b; background: #202126; border: 1px solid #303138; border-radius: 5px; padding: 2px 5px; font-size: 8px; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.source-mini { padding: 15px 10px; display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid #2a2b30; border-bottom: 1px solid #2a2b30; margin-bottom: 8px; }
.source-mini strong, .source-mini small { display: block; }
.source-mini strong { font-size: 10px; margin-bottom: 5px; }
.source-mini small { color: #777983; font-size: 9px; line-height: 1.5; }
.admin-link { text-decoration: none; }
.profile-chip { border: 0; background: transparent; color: #fff; min-height: 58px; padding: 8px 8px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; border-radius: 10px; }
.profile-chip:hover { background: #202126; }
.profile-chip strong, .profile-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip strong { font-size: 10px; margin-bottom: 4px; }
.profile-chip small { color: #777983; font-size: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--red),#7c0010); font-weight: 900; font-size: 12px; }
.avatar.large { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.workspace { min-width: 0; grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 15; height: 74px; padding: 0 clamp(25px,4vw,60px); display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(220,220,224,.85); backdrop-filter: blur(18px); }
.command-search { height: 40px; width: min(480px,50vw); border: 1px solid #e1e1e4; border-radius: 10px; display: flex; align-items: center; gap: 10px; color: #a0a2a9; background: #f8f8f9; padding: 0 12px; font-size: 11px; cursor: pointer; }
.command-search span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.command-search kbd { margin-left: auto; border: 1px solid #dddde1; border-radius: 5px; padding: 2px 6px; background: #fff; color: #85878f; font-size: 9px; }
.source-pill { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 750; color: #52545b; }
.source-pill small { color: #9b9da5; }
.mobile-brand { display: none; border: 0; background: transparent; }
.main-content { width: min(1330px,100%); min-height: calc(100vh - 74px); margin: 0 auto; padding: 0 clamp(25px,4vw,60px) 70px; }
.view { display: none; animation: enter .25s ease; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Accueil */
.hero { margin-inline: calc(clamp(25px,4vw,60px) * -1); padding: 72px clamp(25px,4vw,60px) 54px; color: #fff; background: radial-gradient(circle at 82% 22%,rgba(227,6,33,.52),transparent 20%), radial-gradient(circle at 95% 90%,rgba(227,6,33,.18),transparent 33%), linear-gradient(120deg,#18191d,#0d0e11 78%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -250px; width: 570px; height: 570px; border-radius: 50%; border: 95px solid rgba(255,255,255,.035); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 13px 0 16px; font-size: clamp(36px,4.2vw,61px); line-height: .98; letter-spacing: -.06em; }
.hero h1 em { color: #ff3850; font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 0; color: #a7a9b1; font-size: 14px; line-height: 1.65; }
.hero-search { position: relative; z-index: 1; max-width: 790px; height: 66px; margin-top: 34px; padding: 7px 7px 7px 20px; display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.hero-search .search-glyph { color: #8d8f97; font-size: 25px; }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; color: var(--ink); font-size: 13px; }
.hero-search input::placeholder { color: #a0a2a9; }
.hero-search button { border: 0; height: 52px; border-radius: 10px; padding: 0 23px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; }
.suggestion-row { position: relative; z-index: 1; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.suggestion-row > span { margin-right: 5px; color: #6f7179; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.suggestion-row button { border: 1px solid #36373d; border-radius: 99px; background: #222329; color: #acaeb5; padding: 7px 11px; font-size: 9px; cursor: pointer; }
.content-grid { padding-top: 34px; display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 24px; }
.dashboard-section { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2, .official-card h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.035em; }
.text-button { border: 0; background: transparent; color: #696b73; font-size: 10px; font-weight: 750; cursor: pointer; }
.text-button span { color: var(--red); margin-left: 5px; }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.quick-card { position: relative; min-height: 190px; padding: 20px; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: .22s ease; }
.quick-card::after { content: ""; position: absolute; width: 95px; height: 95px; right: -40px; bottom: -40px; border-radius: 50%; border: 20px solid var(--accent-soft,#f2f2f3); transition: .3s; }
.quick-card:hover { transform: translateY(-4px); border-color: #d6d6da; box-shadow: 0 14px 35px rgba(26,26,30,.08); }
.quick-card:hover::after { transform: scale(1.2); }
.quick-card.tone-1 { --accent: #e30621; --accent-soft:#ffe9ec; }
.quick-card.tone-2 { --accent: #1e55c7; --accent-soft:#e8efff; }
.quick-card.tone-3 { --accent: #8249cb; --accent-soft:#f1e9fb; }
.quick-number { position: absolute; right: 15px; top: 13px; color: #d9dade; font-size: 11px; font-weight: 850; }
.quick-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 17px; margin-bottom: 23px; }
.quick-card strong, .quick-card small { display: block; position: relative; z-index: 1; }
.quick-card strong { font-size: 13px; margin-bottom: 8px; }
.quick-card small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.quick-arrow { position: absolute; right: 17px; bottom: 15px; color: var(--accent); font-size: 13px; z-index: 1; }
.official-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; }
.official-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.document-icon { width: 47px; height: 57px; display: grid; place-items: center; border: 1px solid #d9d9dc; border-radius: 6px 11px 6px 6px; color: var(--red); background: linear-gradient(135deg,#fff 80%,#e9e9eb 80%); font-size: 12px; font-weight: 900; }
.official-card h2 { line-height: 1.15; }
.official-card dl { margin: 21px 0; border-top: 1px solid var(--line); }
.official-card dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
.official-card dt { color: var(--muted); }
.official-card dd { margin: 0; font-weight: 800; text-align: right; }
.lower-grid { grid-template-columns: 1fr 1fr; padding-top: 28px; }
.history-list { min-height: 170px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.history-list button { width: 100%; min-height: 58px; padding: 10px 16px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.history-list button:last-child { border-bottom: 0; }
.history-list button:hover { background: #fafafb; }
.history-list strong, .history-list small { display: block; }
.history-list strong { font-size: 11px; margin-bottom: 4px; }
.history-list small { font-size: 9px; color: var(--muted); }
.history-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: #777982; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); font-size: 11px; }
.ai-teaser { min-height: 226px; color: #fff; border-radius: var(--radius); padding: 25px; background: radial-gradient(circle at 100% 0%,rgba(227,6,33,.55),transparent 44%),#191a1f; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 18px; }
.ai-teaser h2 { margin: 5px 0 8px; font-size: 21px; letter-spacing: -.04em; }
.ai-teaser p { margin: 0; color: #9ea0a8; font-size: 10px; line-height: 1.6; max-width: 390px; }
.ai-orb { grid-row: span 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--red); box-shadow: 0 0 30px rgba(227,6,33,.35); }
.ai-teaser .button { grid-column: 2; width: max-content; min-height: 38px; font-size: 10px; }

/* Pages */
.page-heading { padding: 59px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 7px 0 7px; font-size: clamp(34px,4vw,52px); line-height: 1; letter-spacing: -.06em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.large-search { width: 100%; height: 68px; padding: 7px 7px 7px 20px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #dedee1; border-radius: 15px; box-shadow: 0 12px 30px rgba(25,25,28,.05); }
.large-search > span { color: #777a83; font-size: 28px; }
.large-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 16px; }
.large-search button { height: 52px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.search-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-toolbar > span { color: var(--muted); font-size: 10px; }
.filter-pills { display: flex; gap: 6px; }
.filter-pills button { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; background: #fff; color: var(--muted); font-size: 10px; cursor: pointer; }
.filter-pills button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 24px; align-items: start; }
.result-list { display: grid; gap: 11px; }
.search-intent-card { position: relative; overflow: hidden; min-height: 128px; padding: 22px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; border-radius: 17px; color: #fff; background: radial-gradient(circle at 100% 0%,rgba(227,6,33,.5),transparent 45%),#191a1f; box-shadow: 0 16px 38px rgba(20,20,24,.11); }
.search-intent-card::after { content: ""; position: absolute; right: -55px; bottom: -80px; width: 170px; height: 170px; border: 28px solid rgba(255,255,255,.055); border-radius: 50%; }
.search-intent-card > * { position: relative; z-index: 1; }
.search-intent-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--red); box-shadow: 0 9px 26px rgba(227,6,33,.32); font-size: 20px; font-weight: 900; }
.search-intent-card strong { display: block; margin: 6px 0 5px; font-size: 17px; letter-spacing: -.03em; }
.search-intent-card p { max-width: 480px; margin: 0; color: #a8abb4; font-size: 9px; line-height: 1.55; }
.search-intent-card button { min-height: 39px; padding: 0 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(255,255,255,.08); font-size: 9px; font-weight: 800; cursor: pointer; }
.search-intent-card button:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.result-card { width: 100%; padding: 18px; display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: start; gap: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; transition: .18s; }
.result-card:hover { border-color: #cfcfd4; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,25,30,.06); }
.result-card.best-match { padding: 20px; border-color: #efb7bf; box-shadow: 0 12px 32px rgba(227,6,33,.075); }
.result-card.best-match:hover { border-color: var(--red); }
.result-ref { min-height: 52px; display: grid; place-items: center; padding: 7px; border-radius: 11px; color: var(--red); background: var(--red-soft); font-size: 11px; font-weight: 900; text-align: center; }
.result-match { width: max-content; max-width: 100%; margin-bottom: 7px; padding: 4px 7px; display: block; border-radius: 6px; color: #777982; background: #f0f0f2; font-size: 7px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.best-match .result-match { color: var(--red); background: var(--red-soft); }
.result-main strong { display: block; margin-bottom: 7px; font-size: 14px; line-height: 1.25; }
.result-main p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; color: #696b73; font-size: 10px; line-height: 1.58; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #8d8f97; font-size: 8px; }
.result-meta span { padding: 4px 7px; border: 1px solid #e5e5e8; border-radius: 6px; background: #fafafb; }
.result-open { align-self: center; color: #b1b2b8; font-size: 20px; }
.search-more { min-height: 46px; border: 1px solid #d9dade; border-radius: 12px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.search-more:hover { border-color: var(--ink); background: #f7f7f8; }
.search-help { position: sticky; top: 96px; padding: 20px; border-radius: 15px; color: #fff; background: #191a1f; }
.search-help h3 { margin: 9px 0; font-size: 17px; }
.search-help p { color: #9fa1a9; font-size: 10px; line-height: 1.6; }
.search-help .text-button { padding: 7px 0 0; color: #fff; }
.empty-illustration { min-height: 340px; border: 1px dashed #d2d2d6; border-radius: 16px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-illustration > span { width: 55px; height: 55px; border-radius: 16px; display: grid; place-items: center; background: #ececee; font-size: 26px; }
.empty-illustration h3 { margin: 16px 0 6px; color: var(--ink); font-size: 15px; }
.empty-illustration p { margin: 0; font-size: 11px; }
.loading-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); text-align: center; font-size: 11px; }

/* Assistant */
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: start; }
.chat-card { min-height: 610px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 18px 45px rgba(20,20,25,.06); }
.chat-feed { flex: 1; min-height: 380px; max-height: 540px; overflow: auto; padding: 28px; display: grid; align-content: start; gap: 20px; }
.message { display: flex; align-items: flex-start; gap: 12px; max-width: 86%; }
.message-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--red); }
.message > div { padding: 14px 16px; border-radius: 4px 14px 14px 14px; background: #f3f3f4; }
.message strong { font-size: 10px; }
.message p { margin: 7px 0 0; white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.user-message { margin-left: auto; flex-direction: row-reverse; }
.user-message .message-avatar { background: #24252a; }
.user-message > div { color: #fff; background: #24252a; border-radius: 14px 4px 14px 14px; }
.answer-sources { margin-top: 13px; padding-top: 11px; border-top: 1px solid #dddde0; display: flex; flex-wrap: wrap; gap: 6px; }
.answer-sources button { border: 1px solid #d7d7da; border-radius: 99px; padding: 5px 8px; background: #fff; color: var(--red-dark); font-size: 9px; cursor: pointer; }
.guided-answer { margin-top: 14px; display: grid; gap: 9px; }
.guided-answer-heading { color: #70727a; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guided-passage { width: 100%; padding: 13px 14px; display: grid; gap: 6px; border: 1px solid #dedee2; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.guided-passage:hover { border-color: rgba(227,6,33,.4); box-shadow: 0 9px 24px rgba(20,20,25,.07); transform: translateY(-1px); }
.guided-passage-meta { color: var(--red-dark); font-size: 9px; font-weight: 900; }
.guided-passage strong { font-size: 11px; line-height: 1.35; }
.guided-passage-text { color: #5f626a; font-size: 10px; line-height: 1.6; }
.guided-passage-action { margin-top: 2px; color: var(--red-dark); font-size: 9px; font-weight: 800; }
.guided-checks { padding: 12px 14px; border-radius: 12px; background: #fff7f8; }
.guided-checks > strong { color: var(--red-dark); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.guided-checks ul { margin: 8px 0 0; padding-left: 17px; display: grid; gap: 5px; color: #5f626a; font-size: 10px; line-height: 1.5; }
.guided-notice { display: block; color: #8b8d95; font-size: 8px; line-height: 1.5; }
.assistant-role-picker { padding: 16px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fafafb; }
.assistant-role-picker label { display: flex; align-items: center; gap: 10px; }
.assistant-role-picker label > span { color: #777a82; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.assistant-role-picker select { min-width: 175px; padding: 8px 30px 8px 10px; border: 1px solid #d9d9dd; border-radius: 9px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; }
.assistant-role-picker small { color: #8e9098; font-size: 9px; }
.guided-perspective { margin-top: 2px; padding: 14px; display: grid; gap: 10px; border: 1px solid #24262d; border-radius: 13px; color: #fff; background: #1b1c21; }
.guided-perspective-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guided-perspective-heading span { color: #9da0aa; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guided-perspective-heading strong { color: #fff; font-size: 11px; }
.guided-role-block { padding-top: 10px; border-top: 1px solid #34363e; }
.guided-role-block > strong { color: #ff7b8b; font-size: 9px; }
.guided-role-block ul { margin: 8px 0; padding-left: 17px; display: grid; gap: 5px; color: #d3d4d8; font-size: 9px; line-height: 1.55; }
.guided-perspective > p { margin: 0; color: #b2b4bc; font-size: 9px; line-height: 1.55; }
.knowledge-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: #aeb0b8; background: #292b32; font-size: 7px; font-weight: 800; }
.knowledge-status.status-validated { color: #8be1b6; background: #173428; }
.prompt-row { padding: 0 20px 10px; display: flex; gap: 7px; overflow-x: auto; }
.prompt-row button { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; background: #fafafb; padding: 7px 10px; color: #666972; font-size: 9px; cursor: pointer; }
.chat-composer { margin: 0 20px; padding: 7px 7px 7px 14px; border: 1px solid #d9d9dc; border-radius: 13px; display: flex; align-items: flex-end; gap: 10px; }
.chat-composer:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,33,.06); }
.chat-composer textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; border: 0; outline: 0; padding: 9px 0; line-height: 1.5; }
.chat-composer button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 10px; color: #fff; background: var(--red); font-size: 20px; font-weight: 800; cursor: pointer; }
.chat-composer button:disabled { opacity: .5; cursor: wait; }
.legal-note { margin: 10px 20px 14px; color: #a0a2a9; text-align: center; font-size: 8px; }
.context-panel { padding: 24px; color: #fff; border-radius: 18px; background: radial-gradient(circle at 100% 0%,rgba(227,6,33,.35),transparent 40%),#191a1f; }
.context-panel h2 { margin: 8px 0 24px; font-size: 21px; letter-spacing: -.04em; }
.context-panel ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.context-panel li { display: flex; gap: 11px; }
.context-panel li > span { width: 26px; height: 26px; flex: 0 0 auto; border: 1px solid #44454c; border-radius: 8px; display: grid; place-items: center; color: #ff5369; font-size: 9px; font-weight: 900; }
.context-panel strong, .context-panel small { display: block; }
.context-panel strong { font-size: 10px; margin-bottom: 5px; }
.context-panel small { color: #8e9099; font-size: 9px; line-height: 1.5; }

/* Cas et compte */
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.case-card { min-height: 230px; position: relative; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; cursor: pointer; transition: .2s; }
.case-card:hover { color: #fff; background: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.case-index { color: #cdced2; font-size: 11px; font-weight: 900; }
.case-symbol { position: absolute; right: 20px; top: 18px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--red); background: var(--red-soft); }
.case-card h2 { margin: 55px 0 10px; font-size: 17px; letter-spacing: -.03em; }
.case-card p { min-height: 48px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.case-card:hover p { color: #a6a8b0; }
.case-action { position: absolute; bottom: 21px; font-size: 10px; font-weight: 800; }
.case-action b { margin-left: 5px; color: var(--red); }

/* Mode situation */
.situation-hero { position: relative; overflow: hidden; min-height: 265px; margin: 34px 0 38px; padding: 46px clamp(30px,5vw,62px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; color: #fff; border-radius: 24px; background: radial-gradient(circle at 88% 4%,rgba(227,6,33,.8),transparent 34%),linear-gradient(135deg,#202126 0%,#0f1013 76%); box-shadow: 0 24px 60px rgba(14,14,18,.18); }
.situation-hero::after { content: ""; position: absolute; right: -75px; bottom: -155px; width: 330px; height: 330px; border: 65px solid rgba(255,255,255,.07); border-radius: 50%; }
.situation-hero > * { position: relative; z-index: 1; }
.situation-hero-copy { max-width: 720px; }
.situation-hero h1 { max-width: 700px; margin: 10px 0 14px; font-size: clamp(38px,5vw,63px); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.situation-hero p { max-width: 650px; margin: 0; color: #b9bbc3; font-size: 13px; line-height: 1.7; }
.situation-proof { flex: 0 0 auto; padding: 16px 18px; display: grid; gap: 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.situation-proof strong { font-size: 11px; }
.situation-proof span { color: #aaaeb8; font-size: 9px; }
.situation-gallery-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.situation-gallery-heading h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.045em; }
.situation-secure { color: var(--muted); font-size: 9px; }
.situation-secure::first-letter { color: var(--green); }
.situation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.situation-card { position: relative; overflow: hidden; min-height: 210px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; cursor: pointer; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.situation-card::after { content: ""; position: absolute; right: -48px; top: -55px; width: 130px; height: 130px; border: 27px solid #f1f1f3; border-radius: 50%; transition: .2s ease; }
.situation-card:hover { transform: translateY(-4px); border-color: #cacbd0; box-shadow: 0 18px 42px rgba(24,24,28,.09); }
.situation-card:hover::after { border-color: var(--red-soft); transform: scale(1.08); }
.situation-card:last-child { grid-column: 1/-1; min-height: 175px; }
.situation-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.situation-number { color: #c2c3c9; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.situation-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--red); background: var(--red-soft); font-size: 18px; font-weight: 900; }
.situation-card > strong { position: relative; z-index: 1; margin: 34px 0 9px; font-size: 20px; letter-spacing: -.035em; }
.situation-description { position: relative; z-index: 1; max-width: 520px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.situation-meta { position: relative; z-index: 1; margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; color: #a1a3aa; font-size: 9px; }
.situation-meta b { color: var(--ink); font-size: 10px; }
.situation-disclaimer { margin: 18px 0 45px; color: #999ba3; font-size: 9px; line-height: 1.6; }
.situation-toolbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.situation-back { border: 0; padding: 9px 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.situation-toolbar-label { color: #9698a0; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.situation-layout { display: grid; grid-template-columns: 285px minmax(0,1fr); gap: 18px; align-items: start; padding-bottom: 45px; }
.situation-context { position: sticky; top: 92px; min-height: 430px; overflow: hidden; padding: 27px; display: flex; flex-direction: column; color: #fff; border-radius: 20px; background: radial-gradient(circle at 100% 0%,rgba(227,6,33,.48),transparent 38%),#191a1f; box-shadow: 0 18px 42px rgba(22,22,26,.13); }
.situation-context::after { content: ""; position: absolute; right: -90px; bottom: -105px; width: 230px; height: 230px; border: 44px solid rgba(255,255,255,.055); border-radius: 50%; }
.situation-context > * { position: relative; z-index: 1; }
.situation-context-icon { width: 52px; height: 52px; margin-bottom: 54px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--red); box-shadow: 0 12px 30px rgba(227,6,33,.3); font-size: 22px; }
.situation-context h1 { margin: 9px 0 12px; font-size: 29px; line-height: 1.02; letter-spacing: -.05em; }
.situation-context > p { margin: 0; color: #a2a5ae; font-size: 10px; line-height: 1.65; }
.situation-context-sources { margin-top: auto; padding-top: 25px; display: flex; flex-wrap: wrap; gap: 7px; }
.situation-context-sources > span { width: 100%; color: #747781; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.situation-context-sources strong { padding: 6px 8px; border: 1px solid #3a3c43; border-radius: 7px; font-size: 8px; }
.situation-stage { min-height: 610px; padding: clamp(26px,5vw,54px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(20,20,25,.055); scroll-margin-top: 86px; }
.situation-progress-row { display: flex; justify-content: space-between; color: #93959d; font-size: 9px; font-weight: 750; }
.situation-progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #ededf0; }
.situation-progress span { display: block; height: 100%; border-radius: inherit; background: var(--red); transition: width .3s ease; }
.situation-question-header { max-width: 680px; margin: 50px 0 27px; }
.situation-question-header h2 { margin: 9px 0 11px; font-size: clamp(27px,3.3vw,41px); line-height: 1.08; letter-spacing: -.052em; text-wrap: balance; }
.situation-question-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.situation-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.situation-option { min-height: 94px; padding: 16px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid #dedee2; border-radius: 13px; background: #fff; text-align: left; cursor: pointer; transition: .18s ease; }
.situation-option:hover { border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.situation-option-mark { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); font-weight: 900; }
.situation-option strong,.situation-option small { display: block; }
.situation-option strong { margin: 2px 0 6px; font-size: 12px; }
.situation-option small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.situation-stage-footer { min-height: 65px; margin-top: 35px; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.situation-stage-footer .text-button { padding: 0; border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.situation-stage-footer > span { color: #aaaab1; font-size: 8px; }
.situation-outcome { padding: 24px; display: flex; align-items: flex-start; gap: 17px; border: 1px solid #e2e2e5; border-radius: 16px; background: #f7f7f8; }
.situation-outcome.status-ok { border-color: #cde8dc; background: #eff9f5; }
.situation-outcome.status-stop { border-color: #f0c8ce; background: #fff3f4; }
.situation-outcome.status-urgent { border-color: #f1d6af; background: #fff8ed; }
.situation-outcome-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--ink); font-size: 21px; font-weight: 900; }
.status-ok .situation-outcome-icon { background: var(--green); }
.status-stop .situation-outcome-icon { background: var(--red); }
.status-urgent .situation-outcome-icon { background: #d37b00; }
.situation-outcome-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.situation-outcome h2 { margin: 7px 0 9px; font-size: clamp(24px,3vw,35px); line-height: 1.08; letter-spacing: -.047em; }
.situation-outcome p { margin: 0; color: #656871; font-size: 11px; line-height: 1.7; }
.situation-deadline { width: max-content; margin-top: 14px; padding: 7px 9px; display: block; border-radius: 8px; color: #7b4700; background: #ffe9c8; font-size: 9px; }
.situation-actions,.situation-result-sources { padding-top: 34px; }
.situation-actions h3,.situation-result-sources h3 { margin: 6px 0 17px; font-size: 19px; letter-spacing: -.035em; }
.situation-actions ol { list-style: none; margin: 0; padding: 0; display: grid; }
.situation-actions li { min-height: 58px; padding: 12px 0; display: flex; align-items: flex-start; gap: 13px; border-top: 1px solid var(--line); }
.situation-actions li > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 9px; font-weight: 900; }
.situation-actions li p { margin: 3px 0 0; color: #4c4f57; font-size: 11px; line-height: 1.55; }
.situation-result-sources > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.situation-source { min-height: 65px; padding: 12px 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fafafb; text-align: left; cursor: pointer; }
.situation-source:hover { border-color: var(--red); background: var(--red-soft); }
.situation-source strong { color: var(--red); font-size: 10px; }
.situation-source span { color: var(--muted); font-size: 8px; }
.situation-source b { font-size: 13px; }
.situation-result-footer { margin-top: 34px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.profile-card { max-width: 650px; padding: 25px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.profile-card h2 { margin: 0 0 5px; font-size: 19px; }
.profile-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.profile-card.password-card { margin-top: 18px; display: grid; align-items: stretch; }
.password-card > div { margin-bottom: 3px; }
.password-card > div h2 { margin-top: 6px; }
.password-card .button { width: max-content; }
.logout-form { margin-top: 18px; }

/* Panneau article */
.article-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(24px,4vw,56px); }
.article-overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; z-index: 0; border: 0; background: rgba(8,8,10,.68); backdrop-filter: blur(6px); cursor: pointer; }
.article-panel { position: relative; z-index: 1; width: min(980px,calc(100vw - 48px)); height: min(860px,calc(100dvh - 48px)); min-width: 0; max-width: 100%; max-height: 100%; overflow: hidden; background: #fff; display: grid; grid-template-rows: auto minmax(0,1fr) auto; border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: 0 34px 100px rgba(0,0,0,.34), 0 4px 18px rgba(0,0,0,.16); animation: article-modal-in .24s cubic-bezier(.2,.75,.25,1); }
@keyframes article-modal-in { from { transform: translateY(18px) scale(.975); opacity: 0; } to { transform: none; opacity: 1; } }
.article-panel > header { min-height: 73px; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.article-panel > header > div:first-child { display: flex; align-items: center; gap: 9px; }
.article-reference { color: var(--red); font-size: 13px; font-weight: 900; }
.article-actions { display: flex; gap: 7px; }
.article-actions button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 20px; cursor: pointer; }
.article-actions button:focus-visible { outline: 3px solid rgba(227,6,33,.2); outline-offset: 2px; border-color: var(--red); }
.article-actions button.active { color: #fff; border-color: var(--red); background: var(--red); }
.article-body { overflow-y: auto; overscroll-behavior: contain; padding: 42px clamp(34px,7vw,86px) 54px; scrollbar-color: #c9c9ce transparent; scrollbar-width: thin; }
.article-body::-webkit-scrollbar { width: 10px; }
.article-body::-webkit-scrollbar-track { background: transparent; }
.article-body::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: #c9c9ce; background-clip: padding-box; }
.article-body h1 { max-width: 760px; margin: 9px 0 10px; font-size: clamp(31px,4vw,46px); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.article-pages { margin: 0 0 34px; color: var(--muted); font-size: 10px; }
.article-content { max-width: 760px; color: #34363c; font-family: Georgia,"Times New Roman",serif; font-size: 16px; line-height: 1.72; }
.article-paragraph { margin: 0 0 1.15em; }
.article-section-heading { position: relative; margin: 2.15em 0 .9em; padding: 12px 16px 12px 18px; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; color: var(--ink); background: linear-gradient(90deg,var(--red-soft),rgba(255,240,242,.22)); font-family: var(--font); font-size: 15px; line-height: 1.35; letter-spacing: .01em; text-transform: uppercase; }
.article-content > .article-section-heading:first-child { margin-top: 0; }
.article-subheading { margin: 1.9em 0 .7em; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.35; letter-spacing: -.015em; }
.article-list { margin: .35em 0 1.35em; padding-left: 1.25em; }
.article-list li { margin: 0 0 .72em; padding-left: .35em; }
.article-list li::marker { color: var(--red); font-family: var(--font); font-weight: 800; }
.article-notice { margin: 1.25em 0; padding: 14px 16px; border: 1px solid #e1e1e5; border-radius: 11px; color: #484a51; background: #f7f7f8; font-family: var(--font); font-size: 13px; line-height: 1.65; }
.article-panel > footer { padding: 15px 24px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fafafb; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%,20px); padding: 11px 15px; border-radius: 10px; color: #fff; background: #202126; box-shadow: 0 12px 35px rgba(0,0,0,.25); font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.mobile-nav { display: none; }

/* Installation de l'application */
.app-install-card { position: fixed; z-index: 120; right: 24px; bottom: 24px; width: min(430px,calc(100vw - 32px)); padding: 16px 48px 16px 16px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; color: #fff; background: linear-gradient(135deg,rgba(38,39,46,.98),rgba(16,17,20,.99)); box-shadow: 0 24px 70px rgba(0,0,0,.34); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .24s ease,transform .24s ease; }
.app-install-card.is-visible { opacity: 1; transform: none; }
.app-install-card > img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 9px 24px rgba(0,0,0,.28); }
.app-install-copy { min-width: 0; }
.app-install-copy > span { display: block; margin-bottom: 4px; color: #ff7b8d; font-size: 8px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.app-install-copy > strong { display: block; margin-bottom: 4px; font-size: 13px; }
.app-install-copy > p { margin: 0; color: #adafb8; font-size: 10px; line-height: 1.45; }
.app-install-actions { display: flex; }
.app-install-primary { min-height: 38px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; cursor: pointer; }
.app-install-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; color: #8e9099; background: transparent; font-size: 20px; cursor: pointer; }
.app-install-close:hover { color: #fff; background: rgba(255,255,255,.08); }

@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(74px + env(safe-area-inset-top)); }
  .sidebar { padding-top: calc(25px + env(safe-area-inset-top)); }
}

/* Administration */
.admin-page { background: #f4f4f5; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0,1fr); }
.admin-sidebar { padding: 25px 17px; color: #fff; background: #15161a; display: flex; flex-direction: column; }
.admin-sidebar .brand-lockup { padding: 0 8px 28px; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav button { border: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #92949d; background: transparent; text-align: left; cursor: pointer; font-size: 11px; font-weight: 700; }
.admin-sidebar nav button.active { color: #fff; background: #24252a; box-shadow: inset 3px 0 var(--red); }
.admin-sidebar .button { margin-top: auto; }
.admin-main { padding: 40px clamp(25px,5vw,70px); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; }
.admin-header h1 { margin: 7px 0 0; font-size: 36px; letter-spacing: -.05em; }
.admin-user { color: var(--muted); font-size: 11px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.admin-card { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.admin-card.full { grid-column: 1/-1; }
.admin-card h2 { margin: 7px 0 8px; font-size: 20px; letter-spacing: -.035em; }
.admin-card > p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-card dl { margin: 18px 0 0; }
.admin-card dl div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 10px; }
.admin-card dt { color: var(--muted); }
.admin-card dd { margin: 0; font-weight: 750; text-align: right; }
.admin-form { display: grid; gap: 12px; margin-top: 18px; }
.admin-form label { display: grid; gap: 6px; font-size: 10px; font-weight: 750; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 43px; border: 1px solid #dcdde0; border-radius: 9px; padding: 10px 12px; background: #fafafb; outline: 0; }
.admin-form textarea { min-height: 260px; resize: vertical; font: 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }
.user-table { width: 100%; border-collapse: collapse; margin-top: 17px; font-size: 10px; }
.user-table th, .user-table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; }
.user-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.user-actions { display: flex; gap: 6px; }
.mini-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; background: #fff; font-size: 9px; cursor: pointer; }
.mini-button.primary { color: #fff; border-color: var(--red); background: var(--red); }
.system-checks { display: grid; gap: 9px; margin-top: 15px; }
.system-check { padding: 12px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.dashboard-heading { margin: 0 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.dashboard-heading h2 { margin: 8px 0 7px; max-width: 720px; font-size: clamp(25px,3vw,40px); line-height: 1.03; letter-spacing: -.055em; }
.dashboard-heading p { margin: 0; max-width: 690px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-period { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #5f6169; background: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.dashboard-kpi { min-height: 154px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; display: flex; flex-direction: column; background: #fff; box-shadow: 0 10px 28px rgba(18,20,25,.035); }
.dashboard-kpi.primary { color: #fff; border-color: #191a1e; background: radial-gradient(circle at 85% 0,rgba(227,37,47,.48),transparent 46%),#17181c; }
.dashboard-kpi > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-kpi.primary > span { color: #a9abb2; }
.dashboard-kpi strong { margin: 13px 0 auto; font-size: 38px; line-height: 1; letter-spacing: -.06em; }
.dashboard-kpi small { margin-top: 14px; color: #858790; font-size: 9px; line-height: 1.35; }
.dashboard-kpi small.positive { color: #42b887; }
.dashboard-kpi small.negative { color: #dc4b54; }
.knowledge-heading { margin-bottom: 20px; }
.knowledge-heading .button { flex: 0 0 auto; }
.knowledge-kpis { margin-top: 0; }
.knowledge-method { margin-bottom: 17px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.knowledge-method > div { min-height: 135px; padding: 20px; background: #fff; }
.knowledge-method-icon { width: 27px; height: 27px; margin-bottom: 23px; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 9px; font-weight: 900; }
.knowledge-method strong { display: block; font-size: 11px; }
.knowledge-method p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.knowledge-review-card { padding: 25px; }
.knowledge-toolbar { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-toolbar button { min-height: 31px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; color: #70727a; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.knowledge-toolbar button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.knowledge-list { max-height: 900px; overflow-y: auto; display: grid; gap: 10px; padding-right: 5px; }
.knowledge-item { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fafafb; }
.knowledge-item[hidden] { display: none; }
.knowledge-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.knowledge-item-top > div > span { color: var(--red-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.knowledge-item h3 { margin: 5px 0 0; font-size: 14px; letter-spacing: -.025em; }
.knowledge-item > p { margin: 11px 0; color: #5f626b; font-size: 10px; line-height: 1.6; }
.knowledge-reasons,.knowledge-role-row { display: flex; flex-wrap: wrap; gap: 5px; }
.knowledge-reasons span { padding: 5px 7px; border-radius: 6px; color: #8b570a; background: #fff0d8; font-size: 8px; }
.knowledge-role-row { margin-top: 11px; }
.knowledge-role-row span { padding: 4px 7px; border: 1px solid #e0e0e4; border-radius: 99px; color: #a0a2a9; background: #fff; font-size: 7px; font-weight: 800; }
.knowledge-role-row span.active { color: #216746; border-color: #c9e8d9; background: #ecf8f2; }
.knowledge-item footer { margin-top: 13px; padding-top: 12px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--line); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dashboard-card-heading h2 { margin-bottom: 0; }
.dashboard-card-heading > strong { font-size: 24px; letter-spacing: -.05em; }
.dashboard-chart-card { min-height: 330px; }
.dashboard-bars { height: 220px; margin-top: 25px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: stretch; gap: clamp(5px,1vw,12px); }
.dashboard-bar { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.dashboard-bar span { width: 100%; max-width: 26px; min-height: 5px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg,#ed3640,#be1722); transition: height .25s ease; }
.dashboard-bar small { color: #a0a1a7; font-size: 8px; }
.dashboard-adoption-card { color: #fff; border-color: #191a1e; background: linear-gradient(145deg,#191a1e,#26272d); }
.dashboard-adoption-card .eyebrow { color: #e44049; }
.dashboard-adoption-card h2 { margin-top: 12px; font-size: 27px; }
.dashboard-adoption-card > p { color: #a7a8ae; }
.dashboard-progress { height: 7px; margin: 25px 0 12px; border-radius: 99px; overflow: hidden; background: #36383f; }
.dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d51f2a,#ff5360); }
.dashboard-mini-stats { margin-top: 26px; padding-top: 20px; border-top: 1px solid #383a40; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.dashboard-mini-stats div { display: grid; gap: 5px; }
.dashboard-mini-stats strong { font-size: 21px; letter-spacing: -.04em; }
.dashboard-mini-stats span { color: #8f9199; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.dashboard-ranking { margin-top: 17px; display: grid; }
.dashboard-ranking > div { min-height: 50px; padding: 9px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.dashboard-ranking > div > span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: #a2a3aa; background: #f4f4f6; font-size: 8px; font-weight: 850; }
.dashboard-ranking > div > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dashboard-ranking > div > small { color: var(--muted); font-size: 8px; }
.dashboard-ranking.compact > div { min-height: 44px; }
.dashboard-alert-card { border-color: #ecd7d9; background: linear-gradient(180deg,#fff,#fffafa); }
.dashboard-alert-card .dashboard-ranking > div > span { color: #c21f2a; background: #fff0f1; }
.dashboard-tip { margin: 15px 0 0; padding: 12px; border-radius: 9px; color: #78545a !important; background: #fff0f1; }
.dashboard-empty { margin: 14px 0 0; padding: 18px; border: 1px dashed #d9dadd; border-radius: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.dashboard-privacy { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.dashboard-privacy > div { display: flex; align-items: flex-start; gap: 14px; }
.dashboard-privacy-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #16875a; background: #e8f7f0; font-size: 16px; font-weight: 900; }
.dashboard-privacy strong { font-size: 12px; }
.dashboard-privacy p { margin: 5px 0 0; max-width: 720px; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 1050px) {
  :root { --sidebar: 215px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 128px; padding-left: 78px; }
  .quick-icon { position: absolute; left: 20px; top: 42px; margin: 0; }
  .quick-card strong { margin-top: 26px; }
  .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assistant-layout { grid-template-columns: 1fr; }
  .context-panel { display: none; }
  .situation-layout { grid-template-columns: 235px minmax(0,1fr); }
  .situation-context { padding: 22px; }
  .situation-context h1 { font-size: 25px; }
  .situation-stage { padding: 34px; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { background: #fff; }
  .auth-page { padding: 0; background: #fff; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .auth-brand { min-height: 325px; padding: 28px 24px; }
  .auth-brand h1 { font-size: 42px; }
  .auth-brand p { font-size: 12px; }
  .auth-proof { display: none; }
  .auth-card { padding: 38px 24px 50px; }
  .app-layout { display: block; }
  .sidebar { display: none; }
  .workspace { display: block; }
  .topbar { height: 63px; padding: 0 14px; gap: 12px; }
  .mobile-brand { display: block; padding: 0; }
  .mobile-brand .brand-mark { width: 52px; height: 36px; }
  .command-search { flex: 1; width: auto; }
  .command-search span:nth-child(2) { font-size: 10px; }
  .command-search kbd, .source-pill { display: none; }
  .main-content { min-height: auto; padding: 0 16px 100px; }
  .hero { margin-inline: -16px; padding: 43px 20px 38px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 12px; }
  .hero-search { height: 58px; padding-left: 14px; margin-top: 27px; }
  .hero-search button { height: 44px; padding: 0 14px; font-size: 10px; }
  .hero-search input { font-size: 11px; }
  .suggestion-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .suggestion-row > span { display: none; }
  .suggestion-row button { white-space: nowrap; }
  .content-grid, .lower-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 27px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 122px; }
  .official-card { order: -1; }
  .ai-teaser { min-height: 220px; }
  .mobile-nav { position: fixed; z-index: 30; inset: auto 0 0; height: calc(69px + env(safe-area-inset-bottom)); padding: 7px 9px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; background: rgba(255,255,255,.95); border-top: 1px solid #dedee1; backdrop-filter: blur(18px); }
  .mobile-nav button { border: 0; background: transparent; color: #85878f; display: grid; place-items: center; gap: 3px; font-size: 20px; }
  .mobile-nav small { font-size: 8px; font-weight: 700; }
  .mobile-nav button.active { color: var(--red); }
  .mobile-nav .mobile-ai span { width: 35px; height: 35px; margin-top: -21px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--red); box-shadow: 0 7px 20px rgba(227,6,33,.3); }
  .app-install-card { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); grid-template-columns: 50px minmax(0,1fr); padding: 14px 42px 14px 14px; gap: 12px; border-radius: 17px; }
  .app-install-card > img { width: 50px; height: 50px; border-radius: 12px; }
  .app-install-actions { grid-column: 1/-1; }
  .app-install-primary { width: 100%; min-height: 42px; }
  .auth-page .app-install-card { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .page-heading { padding: 38px 0 23px; align-items: flex-start; }
  .page-heading h1 { font-size: 40px; }
  .page-heading p { font-size: 11px; }
  .large-search { height: 60px; padding-left: 13px; }
  .large-search button { height: 46px; padding: 0 13px; }
  .search-toolbar { overflow-x: auto; }
  .search-toolbar > span { display: none; }
  .results-layout { grid-template-columns: 1fr; }
  .search-help { display: none; }
  .search-intent-card { grid-template-columns: auto minmax(0,1fr); padding: 18px; gap: 13px; }
  .search-intent-card button { grid-column: 1/-1; width: 100%; }
  .result-card,.result-card.best-match { grid-template-columns: 54px minmax(0,1fr); padding: 14px; gap: 12px; }
  .result-ref { min-height: 47px; font-size: 9px; }
  .result-open { display: none; }
  .result-match { white-space: normal; line-height: 1.35; }
  .assistant-heading .badge { display: none; }
  .chat-card { min-height: calc(100vh - 190px); border-radius: 15px; }
  .chat-feed { padding: 18px 14px; }
  .message { max-width: 94%; }
  .assistant-role-picker { align-items: stretch; flex-direction: column; gap: 7px; }
  .assistant-role-picker label { justify-content: space-between; }
  .assistant-role-picker select { min-width: 0; width: 62%; }
  .prompt-row { padding-inline: 13px; }
  .chat-composer { margin-inline: 12px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { min-height: 205px; }
  .situation-hero { min-height: 335px; margin: 0 -16px 31px; padding: 38px 20px 30px; align-items: flex-start; flex-direction: column; justify-content: flex-end; border-radius: 0; }
  .situation-hero h1 { font-size: 42px; }
  .situation-hero p { font-size: 11px; }
  .situation-proof { width: 100%; }
  .situation-gallery-heading { align-items: flex-start; }
  .situation-gallery-heading h2 { font-size: 23px; }
  .situation-secure { display: none; }
  .situation-grid { grid-template-columns: 1fr; }
  .situation-card,.situation-card:last-child { grid-column: auto; min-height: 190px; padding: 20px; }
  .situation-card > strong { margin-top: 28px; font-size: 19px; }
  .situation-disclaimer { margin-bottom: 15px; }
  .situation-toolbar { min-height: 58px; }
  .situation-toolbar-label { display: none; }
  .situation-layout { grid-template-columns: 1fr; gap: 12px; padding-bottom: 12px; }
  .situation-context { position: relative; top: auto; min-height: 230px; padding: 22px; }
  .situation-context-icon { width: 43px; height: 43px; margin-bottom: 25px; }
  .situation-context h1 { font-size: 28px; }
  .situation-context-sources { margin-top: 22px; }
  .situation-stage { min-height: 520px; padding: 24px 19px; border-radius: 16px; }
  .situation-question-header { margin: 37px 0 22px; }
  .situation-question-header h2 { font-size: 29px; }
  .situation-options { grid-template-columns: 1fr; }
  .situation-option { min-height: 82px; }
  .situation-stage-footer { align-items: flex-start; flex-direction: column; }
  .situation-outcome { padding: 18px; gap: 13px; }
  .situation-outcome-icon { width: 38px; height: 38px; border-radius: 11px; }
  .situation-outcome h2 { font-size: 25px; }
  .situation-result-sources > div { grid-template-columns: 1fr; }
  .situation-result-footer { flex-direction: column-reverse; }
  .situation-result-footer .button { width: 100%; }
  .article-overlay { display: block; padding: 0; }
  .article-overlay[hidden] { display: none; }
  .overlay-backdrop { display: none; }
  .article-panel { width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; animation-name: article-mobile-in; }
  @keyframes article-mobile-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .article-panel > header { padding-inline: 16px; }
  .article-panel > header > div:first-child { min-width: 0; overflow: hidden; }
  .article-panel > header .badge { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .article-body { padding: 32px 22px 42px; }
  .article-body h1 { font-size: clamp(29px,10vw,39px); }
  .article-content { font-size: 15px; line-height: 1.7; }
  .article-section-heading { font-size: 13px; }
  .article-subheading { font-size: 14px; }
  .article-panel > footer { padding: 12px; }
  .article-panel > footer .button { flex: 1; padding-inline: 10px; font-size: 10px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 5; padding: 13px; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-sidebar .brand-lockup { padding: 0 14px 0 0; }
  .admin-sidebar nav { display: flex; }
  .admin-sidebar nav button { white-space: nowrap; min-height: 38px; }
  .admin-sidebar .button { margin: 0 0 0 auto; min-height: 38px; white-space: nowrap; }
  .admin-main { padding: 28px 16px 50px; }
  .admin-header { margin-bottom: 28px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-user { align-self: flex-start; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card.full { grid-column: auto; }
  .user-table { display: block; overflow-x: auto; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dashboard-heading h2 { font-size: 30px; }
  .dashboard-kpis, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-kpi { min-height: 137px; }
  .dashboard-chart-card { min-height: 300px; }
  .dashboard-bars { height: 190px; gap: 5px; }
  .dashboard-bar small { font-size: 7px; }
  .dashboard-ranking > div { grid-template-columns: 28px minmax(0,1fr); }
  .dashboard-ranking > div > small { grid-column: 2; }
  .dashboard-privacy { align-items: flex-start; flex-direction: column; }
  .knowledge-method { grid-template-columns: 1fr 1fr; }
  .knowledge-item-top { align-items: flex-start; flex-direction: column; }
  .knowledge-item footer { justify-content: stretch; }
  .knowledge-item footer .mini-button { flex: 1; }
}

@media (display-mode: standalone) and (max-width: 760px) {
  .topbar { height: calc(63px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .main-content { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

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

/* Lisibilité renforcée — V2.9.1 */
.nav-item { font-size: 14px; }
.sidebar-brand small,.source-mini small,.profile-chip small { font-size: 11px; }
.source-mini strong,.profile-chip strong { font-size: 12px; }
.command-search { font-size: 13px; }
.source-pill { font-size: 12px; }
.hero-copy > p { font-size: 16px; }
.hero-search input { font-size: 15px; }
.hero-search button { font-size: 14px; }
.suggestion-row > span,.suggestion-row button { font-size: 11px; }
.section-heading h2,.official-card h2 { font-size: 23px; }
.text-button { font-size: 12px; }
.quick-card strong { font-size: 15px; }
.quick-card small { font-size: 12px; line-height: 1.6; }
.official-card dl div { font-size: 12px; }
.history-list strong { font-size: 13px; }
.history-list small { font-size: 11px; }
.empty-state { font-size: 13px; }
.ai-teaser p { font-size: 12px; }
.ai-teaser .button { font-size: 12px; }
.page-heading p { font-size: 15px; }
.search-toolbar > span,.filter-pills button { font-size: 12px; }
.search-intent-card p { font-size: 12px; line-height: 1.6; }
.search-intent-card button { font-size: 11px; }
.result-card { padding: 21px; gap: 18px; }
.result-ref { font-size: 13px; }
.result-match { font-size: 10px; }
.result-main strong { font-size: 17px; line-height: 1.35; }
.result-main p { font-size: 14px; line-height: 1.65; }
.result-meta { font-size: 11px; }
.search-more { font-size: 12px; }
.search-help p { font-size: 12px; }
.search-help .text-button { font-size: 12px; }
.empty-illustration h3 { font-size: 18px; }
.empty-illustration p,.loading-card { font-size: 13px; }
.message strong { font-size: 12px; }
.message p { font-size: 14px; line-height: 1.7; }
.answer-sources button { font-size: 11px; }
.guided-answer-heading,.guided-passage-meta,.guided-passage-action { font-size: 11px; }
.guided-passage strong { font-size: 14px; }
.guided-passage-text { font-size: 13px; line-height: 1.68; }
.guided-checks > strong { font-size: 11px; }
.guided-checks ul { font-size: 13px; line-height: 1.6; }
.guided-notice { font-size: 10px; }
.assistant-role-picker label > span,.assistant-role-picker small { font-size: 11px; }
.assistant-role-picker select { font-size: 13px; }
.guided-perspective-heading span { font-size: 10px; }
.guided-perspective-heading strong { font-size: 13px; }
.guided-role-block > strong { font-size: 11px; }
.guided-role-block ul,.guided-perspective > p { font-size: 12px; line-height: 1.65; }
.knowledge-status { font-size: 9px; }
.prompt-row button { font-size: 11px; }
.chat-composer textarea { font-size: 14px; }
.legal-note { font-size: 10px; }
.context-panel strong { font-size: 12px; }
.context-panel small { font-size: 11px; }
.case-card p { font-size: 12px; line-height: 1.65; }
.case-action { font-size: 12px; }
.situation-description,.situation-hero p { font-size: 14px; }
.situation-meta,.situation-disclaimer,.situation-toolbar-label { font-size: 11px; }
.situation-context > p { font-size: 12px; }
.situation-context-sources > span,.situation-context-sources strong { font-size: 10px; }
.situation-progress-row { font-size: 11px; }
.situation-question-header p { font-size: 13px; }
.situation-option strong { font-size: 14px; }
.situation-option small { font-size: 11px; }
.situation-outcome p,.situation-actions li p { font-size: 13px; }
.article-content { font-size: 17px; line-height: 1.76; }
.article-pages { font-size: 12px; }
.admin-sidebar nav button { font-size: 13px; }
.admin-card > p,.dashboard-heading p,.knowledge-item > p { font-size: 13px; }
.admin-card dl div,.admin-form label,.system-check,.dashboard-ranking > div > strong { font-size: 12px; }
.mini-button,.knowledge-toolbar button { font-size: 11px; }
.dashboard-ranking > div > small,.knowledge-method p,.knowledge-reasons span,.knowledge-role-row span { font-size: 10px; }
.dashboard-privacy p { font-size: 12px; }

@media (max-width: 760px) {
  .command-search span:nth-child(2) { font-size: 12px; }
  .hero-copy > p { font-size: 14px; }
  .hero-search input { font-size: 14px; }
  .hero-search button { font-size: 12px; }
  .mobile-nav small { font-size: 10px; }
  .page-heading p { font-size: 13px; line-height: 1.55; }
  .result-card,.result-card.best-match { grid-template-columns: 62px minmax(0,1fr); padding: 17px; gap: 13px; }
  .result-ref { min-height: 52px; font-size: 11px; }
  .result-main strong { font-size: 16px; }
  .result-main p { font-size: 13px; -webkit-line-clamp: 4; }
  .result-meta { font-size: 10px; }
  .message { max-width: 98%; }
  .message p { font-size: 14px; }
  .guided-passage-text,.guided-checks ul { font-size: 12px; }
  .situation-hero p { font-size: 13px; }
  .article-content { font-size: 16px; }
}
