/* Shared BRW visual vocabulary, from public presentation to specification sheets.
   Screen-only; each application retains its own business and print layout. */
@media screen {
 :root { --brw-design-ink:#173047;--brw-design-muted:#60788a;--brw-design-accent:#087f70;--brw-design-line:#dce7ec;--brw-design-wash:#edf7f3;--brw-design-canvas:#f3f7fa; }
 body { -webkit-text-size-adjust:100%;text-size-adjust:100%; }
 body.brw-workspace,body.brw-marketing { --brw-navy:#173047;--brw-green:#087f70;--green:#087f70;--ink:#173047;--muted:#60788a;--line:#dce7ec;--radius:16px;--shadow:0 6px 24px #173c4c07;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 90% 0,#e4f1ee80,transparent 45%),#f3f7fa;color:#173047; }
 /* Common interaction sizes and states across operational modules. */
 body :is(.btn,.action,.button,.brw-focus-return,.settings-detail-back) { min-height:44px;border-radius:10px;font-weight:600;line-height:1.45;gap:8px;box-shadow:none;transition:background .16s,border-color .16s,box-shadow .16s; }
 body :is(.btn.primary,.action.primary,.button:not(.button-outline,.button-light)) { background:#087f70;border-color:#087f70;color:#fff; }
 body :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #4aa993;outline-offset:3px; }
 body :is(.btn,.action,.button):disabled { opacity:.5;cursor:not-allowed; }
 body :is(.badge,.status-badge) { border-radius:7px;line-height:1.5;font-weight:600; }
 body :is(.icon,.nav-icon svg,.pharmacy-nav-icon svg,.hr-tab-icon svg,.association-nav-icon svg) { stroke-width:1.75; }
 body :is(.panel,.building-card,.sector-card,.application-shop-card,.settings-card) { border-color:#dce7ec;border-radius:16px;box-shadow:0 4px 20px #173c4c05; }
 body :is(.panel-head,.page-heading,.toolbar) :is(h1,h2,h3) { letter-spacing:-.4px;color:#173047;line-height:1.3; }
 body :is(.panel-head,.modal-head,.dialog-head) { gap:14px; }
 body :is(.table-wrap,.table-scroll) { max-width:100%;scrollbar-color:#b9cfc6 #f0f5f3;overscroll-behavior-x:contain; }
 body :is(.info-note,.formula-source,.notice) { line-height:1.7; }
 body :is(.settings-card,.application-shop-card,.module-family,.sector-card) { min-width:0; }
 /* Workspace: one calm heading, uniform action tiles and restrained emphasis. */
 body.brw-workspace .topbar { background:#ffffffed;border-bottom:1px solid #dce7ec;box-shadow:none;min-height:74px; }
 body.brw-workspace .content { max-width:1600px;padding:28px clamp(16px,3vw,44px) 48px; }
 body.brw-workspace .page-head { min-height:0;padding:26px 28px;margin-bottom:24px;border:1px solid #d5e5e5;border-radius:18px;background:linear-gradient(120deg,#fff,#f1f9f6);box-shadow:none; }
 body.brw-workspace .page-head:before,body.brw-workspace .page-head:after { display:none; }
 body.brw-workspace .page-head h1 { color:#173047;font-size:clamp(25px,2.4vw,34px);letter-spacing:-.8px; }
 body.brw-workspace .page-head p { color:#647c8c;font-size:13px;line-height:1.7; }
 body.brw-workspace .page-head .eyebrow { color:#408774;font-size:10px;letter-spacing:.13em; }
 body.brw-workspace .page-head .btn { color:#315e54;background:#fff;border-color:#cfe0da; }
 body.brw-workspace .page-head .btn.primary { color:#fff;background:#087f70;border-color:#087f70; }
 body.brw-workspace .module-tile { border-radius:15px;transform:none;box-shadow:0 3px 18px #173c4c04;background:#fff;border-color:#dce7ec;transition:border-color .16s,background .16s; }
 body.brw-workspace .module-tile:hover { transform:none;box-shadow:0 5px 18px #173c4c09;border-color:#a9cdbf;background:#fafdfe; }
 body.brw-workspace .module-tile:after { display:none; }
 body.brw-workspace .module-tile-icon { width:52px;height:52px;flex-basis:52px;border:1px solid #d7e8e0;border-radius:14px;background:linear-gradient(145deg,#edf7f0,#eef5fa);color:#2e7e66;box-shadow:none; }
 body.brw-workspace .module-tile-icon .icon { width:26px;height:26px;color:#2e7e66;stroke-width:1.75; }
 body.brw-workspace .module-tile-label { color:#274757;font-size:13px;font-weight:650;line-height:1.45; }
 body.brw-workspace .module-tile small { color:#718794;font-size:11px;line-height:1.65; }
 body.brw-workspace .module-family-heading { padding-bottom:12px;border-bottom:1px solid #e2ecea;color:#58786e;font-size:12px;letter-spacing:.04em; }
 body.brw-workspace .launcher-heading h1 { color:#173047;font-weight:720;letter-spacing:-.8px; }
 body.brw-workspace .workspace-launcher { border-radius:18px;border-color:#dce7ec;background:#ffffffcc; }
 body.brw-workspace :is(.screen-menu,.livestock-menu) { border-radius:16px;border-color:#dce7ec;box-shadow:none;background:#fff; }
 /* Standalone operational applications, including school and financial spaces. */
 body:has(>main>#modules),body:has(>main>#tabs),body.brw-finance-workspace { background:#f3f7fa;color:#173047;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
 body:has(>main>#modules)>header,body:has(>main>#tabs)>header,body.brw-finance-workspace>header { border-bottom:1px solid #dce7ec;box-shadow:none;background:#fff; }
 body :is(.pharmacy-module,.association-module,.transport-module,.hr-list-pages>a) { border-radius:15px;border-color:#dce7ec;box-shadow:none; }
 body :is(.pharmacy-nav-icon,.association-nav-icon,.hr-tab-icon) { border-radius:11px;box-shadow:none; }
 body :is(.pharmacy-nav-label,.association-nav-label) { font-weight:650;line-height:1.45; }
 /* Public site: light sections, one distinctive dark hero, clear commercial offers. */
 body.brw-marketing { --forest:#087f70;--deep:#173047;--cream:#f3f7fa;--lime:#087f70;background:#f7fafb;color:#173047; }
 .brw-marketing header { background:#ffffffed;border-color:#dce7ec;box-shadow:none; }
 .brw-marketing .brand strong { color:#173047; }
 .brw-marketing .brand small { color:#648376; }
 .brw-marketing .brand img { background:#fff;border:1px solid #e1eae6;border-radius:9px; }
 .brw-marketing .nav a:not(.button) { color:#526d7a; }
 .brw-marketing .hero { position:relative;gap:46px;min-height:0;margin:26px 0 32px;padding:clamp(30px,5vw,64px);border:1px solid #25475b;border-radius:26px;background:radial-gradient(ellipse at 100% 0,#268b7855,transparent 55%),linear-gradient(120deg,#162c43,#183f4d);color:#fff;box-shadow:0 12px 35px #153d4c10; }
 .brw-marketing .hero h1 { max-width:650px;color:#fff;font-size:clamp(34px,4.5vw,66px);line-height:1.08;letter-spacing:-2.2px;font-weight:750; }
 .brw-marketing .hero h1 em { color:#a6e6d2;background:none;-webkit-text-fill-color:currentColor;font:inherit; }
 .brw-marketing .hero .intro { color:#c2d5dd;line-height:1.8;font-size:15px; }
 .brw-marketing .hero :is(.eyebrow,.fine) { color:#b1d8cc; }
 .brw-marketing .hero .button { background:#a6e6d2;border-color:#a6e6d2;color:#123d37; }
 .brw-marketing .hero .button-outline { color:#e2f3ed;border-color:#789f9a66;background:#ffffff08; }
 .brw-marketing .hero .art-caption { color:#accdc4; }
 .brw-marketing .aurora-orbit { opacity:.45;animation:none; }
 .brw-marketing .aurora-float { border-color:#d6eee129;box-shadow:none;animation:none; }
 .brw-marketing .activity-strip { border-color:#deebe5;color:#5e786f;background:#edf6f1; }
 .brw-marketing .section-head h2 { color:#173047;font-size:clamp(25px,3vw,36px);font-weight:720;letter-spacing:-.8px; }
 .brw-marketing .section-head p { color:#718793;line-height:1.8; }
 .brw-marketing .feature { padding:24px;border:1px solid #dce7ec;border-radius:17px;background:#fff;box-shadow:0 4px 18px #173c4c04;transform:none; }
 .brw-marketing .feature:hover { transform:none;border-color:#a8cdbc;box-shadow:0 6px 20px #173c4c08; }
 .brw-marketing .feature h3 { color:#21475a;font-size:17px;letter-spacing:-.25px; }
 .brw-marketing .feature .label { color:#5b8575; }
 .brw-marketing .feature p { color:#708491;font-size:13px;line-height:1.8; }
 .brw-marketing .feature-icon { display:grid;place-items:center;width:44px;height:44px;border:1px solid #d6e8dd;border-radius:12px;background:#edf7f1;color:#2e8167;box-shadow:none; }
 .brw-marketing .feature-icon svg { width:23px;height:23px;stroke-width:1.75; }
 .brw-marketing .feature-planned { background:#fafcfd;border-style:dashed; }
 .brw-marketing .flow-item>span { color:#2f8068; }
 .brw-marketing :is(.step,.flow-item) { color:#294d5e; border-color:#dce7ec;border-radius:16px;background:#fff;box-shadow:none; }
 .brw-marketing :is(.step,.flow-item) h3 { color:#244959; }
 .brw-marketing :is(.step,.flow-item) p { color:#6d8491; }
 .brw-marketing .offer { border:1px solid #d6e3e7;border-radius:20px;background:#fff;color:#173047;box-shadow:0 5px 24px #173c4c05; }
 .brw-marketing #offres .offer-pro { background:linear-gradient(140deg,#17354b,#1d575b);border-color:#2e666d;color:#fff; }
 .brw-marketing .offer :is(p,li,.offer-scope,.offer-note,.offer-status) { color:#6b828e;line-height:1.7; }
 .brw-marketing .offer-pro :is(p,li,.offer-scope,.offer-note,.offer-status) { color:#c0d8dd; }
 .brw-marketing #offres .offers-access p { color:#647d8b; }
 .brw-marketing #offres .offers-access-button { background:#087f70;color:#fff;border-color:#087f70;border-radius:10px; }
 .brw-marketing #offres .offer-pro .offer-brand { color:#fff;--muted:#bdd8d3; }
 .brw-marketing .offer .price { color:#173c4c;letter-spacing:-1px; }
 .brw-marketing .offer-pro .price { color:#f4fffb; }
 .brw-marketing .offer-tag { background:#ebf7f0;color:#2f8063;border-color:#c7e5d3; }
 .brw-marketing .offer-divider { border-color:#dce8e8; }
 .brw-marketing .offer-pro .offer-divider { border-color:#ffffff2b; }
 .brw-marketing #offres .offer .button-outline { background:#fff;color:#2b7060;border-color:#bfd9ce; }
 .brw-marketing #offres .offer-pro .button-light { background:#b9e9d8;color:#16463d;border-color:#b9e9d8; }
 .brw-marketing .faq details { padding:20px 22px;border:1px solid #dce7ec;border-radius:13px;background:#fff; }
 .brw-marketing .faq summary { color:#294d5e;font-weight:650; }
 .brw-marketing .faq p { color:#6d8592;line-height:1.8; }
 .brw-marketing .cta { border:1px solid #d0e5da;border-radius:22px;background:linear-gradient(120deg,#e6f6ec,#eaf3fa);color:#173047;box-shadow:none; }
 .brw-marketing .cta :is(h2,p) { color:#294f5b; }
 .brw-marketing footer { border-color:#dce7ec;color:#6d8490;background:#eef4f6; }
 .brw-marketing footer a { color:#47756c; }
 .brw-marketing .suite-roadmap-note { background:#eef6f3;border-color:#d2e6dd;color:#5d7e70; }
 /* Full specifications: useful hierarchy and a local contents menu. */
 body :is(.immobilier-specification,.health-specification,.brw-specification) { font-size:14px;line-height:1.8;color:#456377; }
 body :is(.immobilier-specification,.health-specification,.brw-specification)>h3 { margin:28px 0 14px;padding-top:14px;border-top:1px solid #e1eae9;color:#20495b;font-size:18px;letter-spacing:-.35px;scroll-margin-top:20px; }
 body :is(.immobilier-spec-section,.health-spec-section) { padding:22px;margin:14px 0;border:1px solid #dce7ec;border-radius:15px;background:#fcfefe;box-shadow:none; }
 body :is(.immobilier-spec-section,.health-spec-section)>h3 { color:#2a655c;font-size:16px;line-height:1.5; }
 body :is(.immobilier-spec-priority,.health-confidentiality,.roadmap-flow) { border:1px solid #cce3d8;border-left:3px solid #279477;border-radius:12px;background:#edf7f2;padding:16px 18px;color:#3d6c5d; }
 .brw-spec-index { display:flex;flex-wrap:wrap;gap:8px;padding:16px;margin:0 0 22px;border:1px solid #d7e6e0;border-radius:14px;background:#f3f9f6; }
 .brw-spec-index>span { flex:1 1 100%;font-size:11px;font-weight:700;letter-spacing:.1em;color:#718c7d;text-transform:uppercase; }
 .brw-spec-index button { min-height:40px;padding:8px 11px;border:1px solid #d0e2d7;border-radius:8px;background:#fff;color:#436d60;font:600 12px/1.5 system-ui;cursor:pointer; }
 .brw-spec-index button:hover { background:#e5f3eb;border-color:#a3cdb7; }
 .brw-specification details { margin:14px 0;padding:16px;border:1px solid #dce7ec;border-radius:12px;background:#fff; }
 .brw-specification summary { font-weight:650;color:#436f62;cursor:pointer; }
 body .sector-roadmap { padding-top:24px;margin-top:24px;border-top:1px solid #dce7ec; }
 body .roadmap-status { color:#7a8270;font-size:11px; }
 @media(max-width:1000px) {
  .brw-marketing .hero { padding:36px 28px;gap:30px;min-height:0; }
  .brw-marketing .hero h1 { letter-spacing:-1.6px; }
 }
 @media(max-width:700px) {
  body.brw-workspace .content { padding:20px 12px 40px; }
  body.brw-workspace .page-head { padding:22px 18px;border-radius:16px; }
  body.brw-workspace .page-head .head-actions { max-width:100%;justify-content:flex-start; }
  body :is(.btn,.action,.button) { min-height:44px;white-space:normal; }
  body :is(.modal-head,.dialog-head) { flex-wrap:wrap; }
  body :is(.modal-body,.dialog-body) :is(input,select,textarea) { font-size:16px; }
  body :is(.immobilier-spec-section,.health-spec-section) { padding:18px 14px; }
  .brw-marketing .hero { margin:18px 0 24px;padding:28px 22px;border-radius:20px; }
  .brw-marketing .hero h1 { font-size:clamp(33px,9vw,48px);letter-spacing:-1.5px; }
  .brw-marketing .hero .intro { font-size:14px; }
  .brw-marketing .feature { padding:22px; }
  .brw-marketing .hero .actions { display:flex;flex-wrap:wrap;gap:10px; }
  .brw-marketing .hero .actions .button { flex:1 1 160px;justify-content:center; }
  .brw-marketing .offer { border-radius:17px; }
  .brw-spec-index { padding:12px;gap:7px; }
  .brw-spec-index button { flex:1 1 140px;text-align:left; }
 }
 @media(prefers-reduced-motion:reduce) {
  body *,body *:before,body *:after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
 }
}
@media print { .brw-spec-index { display:none!important; } }

@media screen {
 .code-update-dialog { min-width:0; }
 .code-update-dialog>.tabs { display:flex;gap:8px;margin:20px 0; }
 .code-update-dialog :is(.code-update-source,.code-update-analysis,.code-update-provenance) { padding:20px;margin:20px 0;border:1px solid #d5e6dd;border-radius:14px;background:#f5faf7;min-width:0; }
 .code-update-dialog :is(.code-update-source,.code-update-analysis,.code-update-provenance) h3 { margin:0 0 16px;font-size:17px;color:#305d5b; }
 .code-update-dialog :is(.code-update-provenance,.code-update-analysis) :is(p,small) { font-size:12px;line-height:1.8;overflow-wrap:anywhere; }
 .code-update-dialog .code-update-provenance a { color:#247e68;text-underline-offset:3px; }
 .code-update-dialog .code-update-checks { display:flex;flex-wrap:wrap;gap:7px;margin:14px 0; }
 .code-update-dialog .code-update-analysis[hidden] { display:none!important; }
 .code-update-dialog .code-update-preview { font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.75;white-space:pre;overflow:auto;min-height:160px;max-height:300px;background:#f7fafc;color:#34566a; }
 .code-update-dialog input[readonly],.code-update-dialog textarea[readonly] { background:#f4f8f7;color:#678477; }
 .code-update-dialog .code-update-preview[readonly] { color:#34566a;background:#f7fafc; }
 .code-update-dialog .code-update-path { min-width:220px; }
 .code-update-dialog #code-update-status:empty { display:none; }
 @media(max-width:650px) { .code-update-dialog .form-grid,.code-update-dialog .code-update-imports { grid-template-columns:minmax(0,1fr); }.code-update-dialog :is(.code-update-source,.code-update-analysis,.code-update-provenance) { padding:16px; }.code-update-dialog>.settings-actions { display:flex;flex-wrap:wrap; }.code-update-dialog>.settings-actions>button { flex:1 1 160px; } }
}
