*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#050607;color:#ece9df;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}button{font:inherit;color:inherit}.phone-shell{position:relative;width:min(393px,100vw);height:min(852px,100dvh);aspect-ratio:393/852;margin:auto;background:linear-gradient(145deg,#161a1d,#050607 55%,#111417);border:1px solid #393c3d;border-radius:44px;overflow:hidden;box-shadow:0 30px 80px #000, inset 0 0 0 4px #0d0f10, inset 0 0 0 6px #24282a}.status{height:34px;padding:10px 22px 0;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.12em;color:#c7b98f}.screen{position:absolute;inset:34px 0 0;display:none;padding:16px 18px 18px}.screen.active{display:flex;flex-direction:column}.cover-head{display:flex;align-items:center;gap:12px;padding:4px 6px 12px}.rmark{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font:700 34px Georgia;background:radial-gradient(circle at 35% 25%,#faf6df,#b68a2b 35%,#2a2416 72%);color:#101214;box-shadow:0 8px 25px #000,inset 0 0 0 3px #d8bd6b}.cover-head h1{font:800 34px Georgia;margin:0;letter-spacing:.04em}.cover-head h2{font:600 20px Georgia;margin:-2px 0 2px;color:#cdb05e;letter-spacing:.16em}.cover-head p{margin:0;font-size:8px;letter-spacing:.17em;color:#a7aaab}.display-frame{border:1px solid #8f7b45;border-radius:20px;background:linear-gradient(180deg,#171a1c,#080a0b);box-shadow:inset 0 0 0 2px #282a29,inset 0 12px 24px #0009,0 10px 28px #0008;overflow:hidden}.cover-display{position:relative;flex:1;min-height:0}.cover-display img{width:100%;height:100%;object-fit:cover;object-position:center 48%;transform:scale(1.17)}.cover-overlay{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;background:#050706c9;border:1px solid #9f8240;border-radius:12px;backdrop-filter:blur(8px)}.cover-overlay b{display:block;font-size:11px;letter-spacing:.08em;color:#e5cc7d}.cover-overlay span{font-size:10px;color:#d1d4d1}.cover-foot{padding-top:12px}.primary{width:100%;border:1px solid #b49444;border-radius:16px;padding:14px 12px;background:linear-gradient(#32302a,#141513);box-shadow:inset 0 1px #f4d77b66,0 6px 18px #0008;font-weight:800;letter-spacing:.08em}.langrow{display:flex;justify-content:space-between;margin-top:9px}.langrow button{border:0;background:none;font-size:10px;color:#c9bf9d;letter-spacing:.08em}.page-title{padding:12px 4px 18px;text-align:center}.page-title span{display:block;font-size:10px;letter-spacing:.18em;color:#a69870}.page-title b{display:block;font:700 25px Georgia;letter-spacing:.04em}.page-title.compact{padding:5px 0 8px}.page-title.compact b{font-size:18px}.auth-card{margin-top:50px;padding:24px 18px;border:1px solid #927c48;border-radius:24px;background:linear-gradient(145deg,#1c2021,#0a0c0d);text-align:center;box-shadow:0 20px 50px #0009,inset 0 0 0 2px #282b2c}.finger{margin:auto;width:86px;height:86px;border-radius:50%;display:grid;place-items:center;font-size:44px;color:#d5b65a;border:2px solid #9e8749;box-shadow:inset 0 0 22px #d0b75f22,0 0 24px #cba84e22}.auth-card h3{margin:18px 0 5px}.auth-card p{font-size:12px;color:#aaa}.progress{height:6px;border-radius:99px;background:#252829;overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#8b7436,#d6bd62);transition:width .4s}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.auth-grid span{padding:9px;border:1px solid #333;border-radius:10px;font-size:8px;color:#999}.auth-grid b{display:block;font-size:9px;color:#e7e0cc;margin-top:3px}.hidden{display:none!important}.main-screen{padding:7px 12px 12px}.transverse{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.transverse button{height:45px;border-radius:12px;border:1px solid #4b4b43;background:linear-gradient(#222627,#0d1011);font-weight:700}.transverse small{display:block;font-size:7px;color:#c8b77e;margin-top:2px}.work-display{flex:1;min-height:0;margin:8px 0;padding:10px;position:relative}.safety{height:58px;display:flex;align-items:center;justify-content:space-between;gap:10px}.cap{width:56px;height:48px;border-radius:12px;border:1px solid #5e5b50;background:#181b1c;box-shadow:inset 0 0 0 3px #0d0e0f,0 6px 13px #0009;font-weight:900}.cap.red{color:#ff5d55;border-color:#6d2824}.cap.steel{color:#d0d2d3}.cap small{display:block;font-size:6px}.context-mini{flex:1;text-align:center;font-size:8px;color:#8e8f8f}.context-mini b{display:block;color:#d7c17e;font-size:9px}.wheel-wrap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.wheel-label{font-size:9px;letter-spacing:.16em;color:#a89763;margin-bottom:10px}.wheel{width:84%;height:310px;border-radius:30px;position:relative;overflow:hidden;border:1px solid #6f633f;background:linear-gradient(90deg,#0b0d0e,#262a2b 12%,#0d1011 50%,#272a2b 88%,#0a0c0d);box-shadow:inset 18px 0 30px #000,inset -18px 0 30px #000,0 16px 40px #000}.wheel:before,.wheel:after{content:"";position:absolute;left:0;right:0;height:85px;z-index:3;pointer-events:none}.wheel:before{top:0;background:linear-gradient(#050607,transparent)}.wheel:after{bottom:0;background:linear-gradient(transparent,#050607)}.wheel-row{height:62px;display:flex;align-items:center;justify-content:center;text-align:center;font:700 16px Georgia;letter-spacing:.05em;color:#777;transition:.2s}.wheel-row.current{color:#1e271e;background:linear-gradient(90deg,#425246,#b1bca4 22%,#d5d8c7 50%,#a7b59c 78%,#3f5145);text-shadow:0 1px #fff8;box-shadow:inset 0 2px 8px #fff5,inset 0 -2px 8px #0006}.wheel-hint{margin-top:10px;font-size:8px;color:#898d89;text-align:center}.module{height:100%;overflow:auto;padding:2px 2px 10px}.module h3{font:700 19px Georgia;margin:4px 0 8px;color:#e1cb83}.module p,.module li{font-size:11px;line-height:1.45;color:#c7c9c7}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tile{padding:10px;border:1px solid #4d493b;border-radius:12px;background:linear-gradient(#202324,#0e1011);text-align:left}.tile b{display:block;font-size:11px;color:#e5d5a2}.tile small{font-size:8px;color:#949795}.editor,textarea,input[type=text]{width:100%;border:1px solid #4d4a40;border-radius:10px;background:#0c0e0f;color:#eee;padding:10px;font:12px system-ui}.voice-state{display:flex;align-items:center;gap:8px;margin:8px 0}.led{width:13px;height:13px;border-radius:50%;background:#e28a35;box-shadow:0 0 12px currentColor}.led.green{background:#3dcc65}.led.blue{background:#174dff}.wave{height:34px;display:flex;align-items:center;gap:3px;flex:1}.wave i{width:3px;height:8px;background:#78c98a;border-radius:2px}.list{display:flex;flex-direction:column;gap:6px}.node{padding:9px;border:1px solid #4b4739;border-radius:10px;background:#151819;font-size:10px}.node em{color:#cdb25f;font-style:normal}.toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.toolbar button{border:1px solid #575244;background:#1a1d1e;border-radius:9px;padding:8px 9px;font-size:9px}.scanner-stage{height:260px;border:1px solid #48483f;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:#050607}.scanner-stage img{max-width:100%;max-height:100%;transform-origin:center;transition:transform .2s}.mapframe{width:100%;height:290px;border:0;border-radius:12px;background:#111}.badge{display:inline-block;padding:3px 6px;border-radius:7px;border:1px solid #5a533e;font-size:8px;color:#cfbd7d;margin:2px}.notice{padding:9px;border-left:3px solid #c5a44a;background:#171913;font-size:10px}.error{border-color:#8d3b37!important;color:#ff8a83!important}
@media(max-height:760px){.phone-shell{height:100dvh;border-radius:0}.status{height:28px}.screen{inset:28px 0 0;padding:10px 14px}.cover-head{padding-bottom:8px}.cover-head h1{font-size:27px}.cover-head h2{font-size:17px}.auth-card{margin-top:18px}.wheel{height:260px}.wheel-row{height:52px}.safety{height:48px}}

/* MEDIA VIEWER FIX — image toujours entièrement visible au premier affichage */
.media-viewer{height:calc(100% - 2px);min-height:0;display:flex;flex-direction:column;gap:7px}
.media-stage{flex:1;min-height:0;border:1px solid #48483f;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#050607;touch-action:none;position:relative}
.media-stage img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center;transform-origin:center center;user-select:none;-webkit-user-drag:none;will-change:transform}
.media-tools{display:flex;justify-content:center;gap:7px;flex:0 0 auto}
.media-tools button{min-width:58px;border:1px solid #575244;background:linear-gradient(#242829,#0f1112);border-radius:9px;padding:7px 9px;font-size:9px;color:#e7dcc0}
.media-notice{flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* === SUPER SCANNER PREMIUM — configuration canonique === */
.scanner-premium{height:100%;display:flex;flex-direction:column;gap:6px;overflow:hidden}.scanner-premium button{font:700 8px/1.15 Inter,system-ui;border:1px solid #514b3b;background:linear-gradient(#222526,#0c0e0f);color:#e9dfc4;border-radius:9px;min-height:38px}.scan-toptools{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.scan-tool{padding:5px 2px!important}.scan-tool b{display:block;font-size:17px;font-weight:400;color:#e9dfc4}.scan-tool span{display:block;font-size:6.5px;margin-top:2px}.scan-tool.active{border-color:#b99c4e;box-shadow:inset 0 0 0 1px #6f5d2f}.scan-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:6px}.scan-viewport{position:relative;min-height:0;overflow:hidden;border:1px solid #4d493b;border-radius:12px;background:#050607;display:grid;place-items:center;touch-action:none}.scan-viewport canvas{max-width:100%;max-height:100%;transform-origin:center;transition:transform .16s ease,filter .16s ease}.scan-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#827b68;gap:5px}.scan-empty b{font:700 16px Georgia;color:#d5c187}.scan-empty span{font-size:8px}.scan-guide{position:absolute;border:1px solid #7ca77a;pointer-events:none}.scan-guide i{position:absolute;width:18px;height:18px;border-color:#9db397}.scan-guide i:nth-child(1){left:-2px;top:-2px;border-left:3px solid;border-top:3px solid}.scan-guide i:nth-child(2){right:-2px;top:-2px;border-right:3px solid;border-top:3px solid}.scan-guide i:nth-child(3){left:-2px;bottom:-2px;border-left:3px solid;border-bottom:3px solid}.scan-guide i:nth-child(4){right:-2px;bottom:-2px;border-right:3px solid;border-bottom:3px solid}.scan-pages{display:flex;flex-direction:column;gap:5px}.page-chip,.page-add{min-height:58px!important;padding:4px!important}.page-chip span{display:block;font-size:11px}.page-chip b{font-size:6.5px}.page-chip.selected{border-color:#99ae7e;box-shadow:inset 0 0 0 1px #586b4d}.page-add{font-size:17px!important}.page-add small{display:block;font-size:6px}.scan-manip{display:grid;grid-template-columns:.7fr 1.3fr .7fr 1.25fr;gap:4px}.scan-enhance{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.scan-enhance button{min-height:42px;padding:4px 2px}.original-guard{border-color:#7d8d6f!important;color:#dfe7d7!important}.scan-workflow{display:flex;justify-content:center;align-items:center;gap:5px;font-size:6.7px;letter-spacing:.04em;color:#d5c083}.scan-workflow b{color:#746a4b}.scan-expert{font-size:8px}.scanner-premium textarea{min-height:58px;max-height:82px;resize:none;font-size:9px}.scanner-premium .notice{font-size:8px;padding:6px}.module:has(.scanner-premium){overflow:hidden}.module:has(.scanner-premium)>h3{margin:1px 0 5px;font-size:17px}@media(max-height:760px){.scan-toptools{gap:3px}.scan-tool{min-height:34px!important}.scan-enhance button{min-height:35px}.scanner-premium textarea{max-height:60px}.scan-body{grid-template-columns:minmax(0,1fr) 52px}}

/* POSITION — VUES LIVE DANS LE DISPLAY */
.position-live{height:100%;display:flex;flex-direction:column;gap:7px;overflow:hidden}.pos-info{flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-live-stage{position:relative;flex:1;min-height:0;border:1px solid #4d493b;border-radius:14px;overflow:hidden;background:#0b0d0d}.live-map-host{position:absolute;inset:0;overflow:hidden;background:#111}.map-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;letter-spacing:.12em;color:#8f8a78}.tile-plane{position:absolute;left:50%;top:50%;width:1280px;height:1280px}.map-tile{position:absolute;width:256px;height:256px;overflow:hidden;background:#111}.map-tile img{position:absolute;inset:0;width:256px;height:256px;object-fit:cover;display:block}.map-tile .marine-overlay{z-index:2;background:transparent}.streetframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#111}.map-marker{position:absolute;left:50%;top:50%;transform:translate(-50%,-62%);z-index:8;width:23px;height:23px;border-radius:50% 50% 50% 0;background:#b6322a;border:3px solid #fff;box-shadow:0 2px 7px #0008;color:transparent;rotate:-45deg}.map-marker.street{opacity:.82}.map-live-bar{position:absolute;left:8px;right:8px;bottom:42px;z-index:12;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;padding:4px;border:1px solid #7c6b3e;border-radius:10px;background:#090b0bcc;backdrop-filter:blur(7px)}.map-view-btn{min-width:0;height:34px;padding:3px;border:1px solid #45463f;border-radius:7px;background:linear-gradient(#202425,#101213);font-size:6.5px;font-weight:800;color:#d6cfbb;white-space:normal}.map-view-btn.active{border-color:#b79949;background:linear-gradient(#35342c,#171916);color:#f0d98d;box-shadow:inset 0 0 0 1px #6d5e34}.map-live-meta{position:absolute;left:8px;right:8px;bottom:8px;z-index:11;height:27px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;border-radius:8px;background:#080a0acc;border:1px solid #3c3d38;font-size:6.8px;letter-spacing:.05em;color:#e2d3a2}.map-live-meta span:first-child{font-weight:800;color:#f0d98d}.map-zoom{position:absolute;right:9px;top:9px;z-index:12;display:flex;gap:4px}.map-zoom button{width:35px;height:35px;border-radius:9px;border:1px solid #6a6044;background:#101314d9;color:#f0dfaa;font-size:19px;font-weight:700}.map-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.map-actions button{height:37px;border-radius:10px;border:1px solid #575244;background:linear-gradient(#202324,#0d1011);font-size:8px;font-weight:800;color:#e8ddbf}.module:has(.position-live){overflow:hidden}.module:has(.position-live)>h3{margin:1px 0 5px;font-size:17px}


.status-actions{display:flex;align-items:center;gap:7px}.status-link{border:0;background:none;color:#c7b98f;font-size:10px;letter-spacing:.12em;padding:0}.cover-vignette{position:absolute;left:14px;top:14px;display:flex;gap:6px;z-index:2}.cover-vignette span{padding:4px 7px;border-radius:999px;border:1px solid #7c6734;background:#060707c7;color:#e1ca82;font-size:8px;letter-spacing:.11em}.lang-overlay{position:absolute;inset:10px;z-index:4;border:1px solid #9b8344;border-radius:16px;background:#090b0cf0;backdrop-filter:blur(8px);padding:14px;display:flex;flex-direction:column;gap:10px}.lang-title{font:700 18px Georgia;color:#e6cf88;letter-spacing:.08em}.lang-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:10px;color:#dfdfd8}.lang-grid span{padding:7px 8px;border:1px solid #403d34;border-radius:10px;background:#141719}.overlay-close{margin-top:auto;border:1px solid #6f613c;background:linear-gradient(#232627,#111315);color:#e7dbb9;border-radius:10px;padding:10px;font-size:10px;font-weight:700}
.memory-hint{margin:6px auto 0;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #685c2c;background:#121412;border-radius:999px;padding:4px 8px;color:#e5d689;max-width:120px}.memory-dot{width:8px;height:8px;border-radius:50%;background:#c7a93d}.memory-hint small{font-size:8px;letter-spacing:.08em}.memory-hint i{font-style:normal;font-size:8px;color:#f3e7bb}.memory-hint.blink .memory-dot{animation:memBlink 1.4s ease-in-out infinite}@keyframes memBlink{0%,100%{opacity:.28}50%{opacity:1}}.memory-pin{position:absolute;z-index:9;width:18px;height:18px;border-radius:50% 50% 50% 0;border:1px solid #d8c898;background:linear-gradient(145deg,rgba(255,245,170,.36),rgba(98,90,44,.52));backdrop-filter:blur(2px);transform:translate(-50%,-62%) rotate(-45deg);box-shadow:none;opacity:.92}.memory-pin::after{content:"";position:absolute;inset:4px;border-radius:50%;background:rgba(255,238,150,.6)}.pref-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pref-card{padding:10px;border:1px solid #4d493b;border-radius:12px;background:linear-gradient(#1b1e1f,#0c0e0f)}.pref-card b{display:block;font-size:10px;color:#ead89d;margin-bottom:6px}.pref-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 0}.pref-row span{font-size:10px}.pref-row button{border:1px solid #575244;background:#16191a;border-radius:8px;padding:6px 8px;font-size:9px}.memory-list{display:flex;flex-direction:column;gap:8px}.memory-card{padding:10px;border:1px solid #4d493b;border-radius:12px;background:linear-gradient(#191c1d,#0d0f10)}.memory-card h4{margin:0 0 4px;font-size:11px;color:#edd996}.memory-card p{margin:0 0 6px;font-size:10px;color:#d6d8d6}.memory-meta{display:flex;flex-wrap:wrap;gap:4px}.memory-meta span{padding:3px 6px;border:1px solid #4e4a3b;border-radius:999px;font-size:8px;color:#c9c2a5}.map-actions.memory{grid-template-columns:1fr 1fr 1fr 1fr}.amber-text{color:#e2cf83}.badge.quality{border-color:#6c653f;color:#ead797}

/* POSITION V2 — carte déplaçable + pin repositionnable */
.live-map-host{touch-action:none;cursor:grab}.live-map-host.dragging{cursor:grabbing}
.tile-plane .map-marker{position:absolute;z-index:10}
.map-marker.original{background:#b6322a;border-color:#fff;opacity:.96}
.map-marker.reposition{background:#d1ad45;border-color:#f7e7a8;opacity:.96;cursor:move;z-index:14}
.map-marker.reposition::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#332a12}
.position-actions{grid-template-columns:1fr 1fr!important}
.position-actions button{min-height:38px}

/* DRAG FIX — la carte suit réellement la main / le doigt */
.live-map-host,.tile-plane{touch-action:none;-webkit-user-select:none;user-select:none}
.map-tile,.map-tile img{pointer-events:none;-webkit-user-drag:none;user-select:none}
.tile-plane{will-change:transform}
.live-map-host.dragging .tile-plane{transition:none!important}
.map-marker.original{pointer-events:none}
.map-marker.reposition{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}
.map-marker.reposition:active{cursor:grabbing}

/* BOUTON TRANSVERSAL — POSITION ACTUELLE
   Ajout uniquement : moteur POSITION et moteur MÉMOIRE inchangés. */
.transverse.top.top-four{grid-template-columns:repeat(4,1fr);gap:5px}
.transverse.top.top-four button{min-width:0;padding-left:2px;padding-right:2px}
.current-position-btn{border-color:#6c6547!important}
.current-position-btn small{font-size:6.2px!important;line-height:1.05}

/* SUPER SCANNER — CAPTURER MAINTENANT */
.scan-empty{padding:14px}
.scan-capture-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;max-width:240px;text-align:center}
.scan-capture-center>b{font:700 17px Georgia;color:#e5cf8a;letter-spacing:.05em}
.scan-capture-center>span{font-size:8px;color:#aaa795}
.capture-now{min-height:52px!important;padding:10px 18px!important;border:1px solid #b89a4a!important;border-radius:14px!important;background:linear-gradient(#35352f,#151714)!important;color:#f0dfaa!important;font-size:10px!important;font-weight:900!important;letter-spacing:.08em;box-shadow:inset 0 1px #ffeaa044}
.mobile-capture-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
.mobile-capture-choices button{min-height:43px!important;border:1px solid #5f5945!important;border-radius:10px!important;background:linear-gradient(#222627,#0f1112)!important;color:#e7dcc0!important;font-size:8px!important;font-weight:800!important}
.scan-capture-center small{font-size:7px;color:#77786f;line-height:1.3}
.scan-pdf-preview{position:absolute;inset:0;width:100%;height:100%;border:0;background:#f4f4f4;border-radius:11px}

.googleframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#111}
.map-live-bar.six{grid-template-columns:repeat(6,1fr)}
.map-live-bar.six .map-view-btn{font-size:5.9px;padding:3px 1px}

/* POSITION — TRACE + INTELLIGENCE LACUSTRE */
.map-live-bar.six .map-view-btn{font-size:8px!important;overflow:hidden;white-space:nowrap}
.scroll-label{display:inline-block;min-width:max-content;font-size:8px;font-weight:800}
.map-view-btn.active .scroll-label{animation:rtagsLabelScroll 6s linear infinite alternate}
@keyframes rtagsLabelScroll{0%,18%{transform:translateX(0)}82%,100%{transform:translateX(calc(-100% + 54px))}}
@media (prefers-reduced-motion: reduce){.scroll-label{animation:none!important}}
.bathy-overlay{z-index:3;opacity:.72;mix-blend-mode:multiply}
.position-trace-svg{position:absolute;inset:0;width:1280px;height:1280px;z-index:6;pointer-events:none}
.position-trace-svg polyline{fill:none;stroke:#f1d68b;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.lake-context-info{padding:7px 8px;border-left:3px solid #555;background:#121414;color:#a5aaa6;font-size:8px;min-height:31px}
.lake-context-info.active{border-color:#b79b4e;color:#e6dbc0;background:#181812}
.lake-context-info b{color:#f0d98d;font-size:9px}.lake-context-info small{font-size:7px;color:#989b96}

/* GPS FIX — aucun écran bloqué sur acquisition */
.gps-failure{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:24px;text-align:center;background:#0a0c0ded;color:#d9d5c7}
.gps-failure b{font:700 15px Georgia;color:#e5c96d}
.gps-failure span{font-size:9px;line-height:1.45;color:#b7bbb6}
.gps-failure button{min-height:42px;border:1px solid #75663c;border-radius:10px;background:linear-gradient(#292b28,#111311);color:#ebdba7;font-size:8px;font-weight:800;padding:8px 10px}

/* GPS BEST SAMPLE */
.pos-info small{display:block;margin-top:3px;color:#a6aaa4;font-size:7px;line-height:1.35}

/* GPS PUBLIC NORMAL — premier fix immédiatement utilisable */
.pos-info b{letter-spacing:.02em}

/* REPOSITIONNEMENT — séparation stricte PIN / CARTE */
.live-map-host.pin-edit-mode{cursor:default!important}
.live-map-host.pin-edit-mode .tile-plane{cursor:default!important}
.live-map-host.map-edit-mode{cursor:grab}
.live-map-host.map-edit-mode.dragging{cursor:grabbing}
.map-marker.reposition{z-index:40!important;touch-action:none}
.live-map-host.pin-edit-mode .map-marker.reposition{cursor:grab;pointer-events:auto}
.live-map-host.pin-edit-mode .map-marker.reposition:active,
.live-map-host.pin-dragging .map-marker.reposition{cursor:grabbing}
.map-marker.reposition.locked{cursor:not-allowed!important;pointer-events:none!important;opacity:.82}
#interactionModeToggle{border-color:#b99749!important;color:#f1dda0!important}

/* PIN AUTO-PAN — la carte suit le pin au bord */
.live-map-host.auto-panning::after{
 content:"CARTE EN SUIVI AUTOMATIQUE";
 position:absolute;left:50%;top:10px;z-index:55;
 transform:translateX(-50%);
 padding:5px 9px;border:1px solid #88743f;border-radius:8px;
 background:#0d0f0ed9;color:#e8d79e;
 font-size:7px;font-weight:800;letter-spacing:.06em;
 pointer-events:none;
}
.live-map-host.auto-panning .tile-plane{will-change:transform}

/* =====================================================================
   BASE POSITION LOCKED V1 — SUBLIMATION VISUELLE NON-RÉGRESSIVE
   ===================================================================== */
.work-display{
 background:
  radial-gradient(circle at 50% -15%,rgba(226,207,139,.055),transparent 38%),
  linear-gradient(180deg,#101415 0%,#080b0c 100%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset 0 0 28px rgba(0,0,0,.45);
}
.module>h3{letter-spacing:.045em;text-shadow:0 1px 0 #000}
.transverse button,.map-actions button,.toolbar button{
 box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 1px 2px rgba(0,0,0,.38);
}
.interaction-context-bar{
 flex:0 0 auto;margin:0 0 6px;padding:6px 7px;border:1px solid #4b4d45;border-radius:10px;
 background:linear-gradient(180deg,rgba(31,35,34,.96),rgba(12,15,15,.97));
 color:#d7d6cc;font-size:7.6px;line-height:1.25;overflow:hidden;
}
.interaction-context-bar.hidden{display:none}
.ctx-main{display:flex;align-items:center;gap:6px;min-width:0}
.ctx-main b{flex:0 0 auto;color:#ead596;font-size:7px;letter-spacing:.08em}
.ctx-main>span:last-child{white-space:nowrap;overflow:hidden;min-width:0;display:block}
.ctx-main>span:last-child{animation:ctxReadableScroll 9s linear infinite alternate}
@keyframes ctxReadableScroll{0%,20%{transform:translateX(0)}80%,100%{transform:translateX(min(0px,calc(-100% + 210px)))}}
.ctx-led{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:#c39e3c}
.ctx-led.ok{background:#789579;box-shadow:0 0 0 2px rgba(120,149,121,.12)}
.ctx-led.wait{background:#b89c48}
.ctx-proposal{margin-top:5px;padding-top:5px;border-top:1px solid #5e563c;display:grid;grid-template-columns:1fr auto auto;gap:5px;align-items:center}
.ctx-proposal strong{grid-column:1/-1;color:#f0d883;font-size:7.4px;letter-spacing:.045em}
.ctx-proposal span{font-size:7px;color:#d2d1c7}
.ctx-proposal button{min-height:27px;border:1px solid #75663d;border-radius:7px;background:#151918;color:#e7d7a2;font-size:6.8px;font-weight:800}
.premium-pref{border-color:#74643c!important;background:linear-gradient(#23231d,#0e1110)!important}
.pref-rule{font-size:8px;line-height:1.45;color:#d8cfb6;padding:6px;border-left:2px solid #a48b48}
.geo-official-info{
 display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-left:3px solid #8d7a46;
 background:linear-gradient(90deg,#181812,#111413);color:#d9d3c3;font-size:7.5px;min-height:34px;
}
.geo-official-info b{color:#efda9c;font-size:8.5px;letter-spacing:.035em}
.geo-official-info span{white-space:nowrap;overflow:hidden}
.geo-official-info small{color:#8f958e;font-size:6.6px}
.map-live-stage{box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),0 5px 16px rgba(0,0,0,.24)}
.map-view-btn.active{box-shadow:inset 0 1px 0 rgba(255,238,170,.14),inset 0 0 0 1px #6d5e34}
.map-marker.original{box-shadow:0 2px 9px rgba(0,0,0,.72),0 0 0 2px rgba(255,255,255,.05)}
.map-marker.reposition{box-shadow:0 2px 10px rgba(0,0,0,.72),0 0 0 2px rgba(209,173,69,.12)}

/* ===========================================================
   POSITION RC2 — CARTE PLEIN DISPLAY + MENU CONTEXTUEL
   =========================================================== */
.work-display:has(.fullscreen-position){padding:0!important;overflow:hidden!important}
.module:has(.fullscreen-position){padding:0!important;overflow:hidden!important;position:relative}
.module:has(.fullscreen-position)>h3{display:none!important}
.fullscreen-position{position:absolute;inset:0;height:auto!important;gap:0!important}
.fullscreen-map-stage{position:absolute!important;inset:0!important;border:0!important;border-radius:18px!important}
.fullscreen-map-stage .live-map-host{inset:0!important;border-radius:18px}
.fullscreen-map-stage .streetframe,
.fullscreen-map-stage .googleframe{border-radius:18px}
.map-overlay-pos{
 position:absolute;left:9px;right:65px;top:9px;z-index:28;
 min-height:34px;max-height:48px;padding:7px 9px!important;
 border-left:2px solid #c5a44a!important;border-radius:9px;
 background:rgba(9,12,12,.84)!important;backdrop-filter:blur(8px);
 white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
 font-size:7.5px!important;line-height:1.25;
 box-shadow:0 3px 12px rgba(0,0,0,.42);
}
.map-command-button{
 position:absolute;right:9px;top:9px;z-index:31;
 width:49px;height:45px;border:1px solid #806d3d;border-radius:11px;
 background:linear-gradient(#282b28,#0e1110);
 color:#f0d991;box-shadow:inset 0 1px rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.5);
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
 touch-action:none;
}
.map-command-button>span{font-size:18px;line-height:16px}
.map-command-button small{font-size:6px;font-weight:900;letter-spacing:.05em;color:#e0d19f}
.map-context-menu{
 position:absolute;left:10px;right:10px;top:62px;bottom:45px;z-index:45;
 border:1px solid #8a7744;border-radius:16px;
 background:linear-gradient(165deg,rgba(31,35,34,.985),rgba(7,10,10,.985));
 box-shadow:0 16px 36px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.05);
 padding:9px;overflow:auto;overscroll-behavior:contain;
 backdrop-filter:blur(12px);
}
.map-context-menu.context-pop{animation:mapContextPop .16s ease-out}
@keyframes mapContextPop{from{opacity:0;transform:scale(.975)}to{opacity:1;transform:scale(1)}}
.map-context-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #4d493b;padding:0 1px 7px;margin-bottom:7px}
.map-context-head b{font:700 13px Georgia;color:#efd991;letter-spacing:.045em}
.map-context-head button{width:31px;height:31px;border-radius:8px;border:1px solid #5e5948;background:#131716;color:#eee;font-size:19px}
.map-context-section{margin:7px 0}
.map-context-section>small{display:block;margin:0 0 5px 2px;color:#a89b75;font-size:7px;font-weight:800;letter-spacing:.12em}
.context-map-views{
 position:static!important;left:auto!important;right:auto!important;bottom:auto!important;
 display:grid!important;grid-template-columns:repeat(2,1fr)!important;
 gap:6px!important;padding:0!important;border:0!important;background:none!important;backdrop-filter:none!important
}
.context-map-views .map-view-btn{
 height:39px!important;font-size:8px!important;padding:5px 7px!important;
 white-space:nowrap!important;overflow:hidden!important;
}
.context-map-views .scroll-label{font-size:8px!important}
.map-context-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.map-context-grid button{
 min-height:39px;border:1px solid #575244;border-radius:10px;
 background:linear-gradient(#202424,#0d1011);color:#e8ddbf;
 font-size:8px;font-weight:800;overflow:hidden;white-space:nowrap;
}
.map-context-grid button:active{transform:translateY(1px)}
.compact-context-info{display:flex;flex-direction:column;gap:5px}
.compact-context-info .geo-official-info,
.compact-context-info .lake-context-info{font-size:7px;min-height:0;border-radius:8px}
.map-reposition-overlay{
 position:absolute;left:9px;right:9px;bottom:48px;z-index:29;
 border-left:2px solid #d1ad45!important;border-radius:9px;
 background:rgba(18,18,13,.9)!important;backdrop-filter:blur(8px);
 font-size:7.5px!important;max-height:48px;overflow:hidden;
}
.fullscreen-map-stage .map-live-meta{
 left:9px!important;right:9px!important;bottom:9px!important;z-index:27!important;
 height:29px!important;
}
.map-longpress-hint{
 position:absolute;left:50%;bottom:44px;z-index:26;transform:translateX(-50%);
 max-width:72%;padding:3px 7px;border-radius:999px;
 background:rgba(8,10,10,.62);border:1px solid rgba(125,107,62,.45);
 color:#c9ba8e;font-size:6px;font-weight:800;letter-spacing:.07em;
 white-space:nowrap;pointer-events:none;
}
.fullscreen-position .map-zoom,
.fullscreen-position>.map-actions,
.fullscreen-position>.geo-official-info,
.fullscreen-position>.lake-context-info{display:none!important}
@media (max-height:700px){
 .map-context-menu{top:57px;bottom:42px}
 .map-context-grid button,.context-map-views .map-view-btn{min-height:34px!important;height:34px!important}
 .map-context-section{margin:5px 0}
}

/* ===========================================================
   POSITION RC3 — TROIS COMMANDES PERMANENTES
   =========================================================== */
.map-fixed-controls{
 position:absolute;right:9px;top:61px;bottom:46px;z-index:30;
 display:flex;flex-direction:column;align-items:flex-end;
 pointer-events:none;
}
.map-fixed-controls button{pointer-events:auto}
.map-fixed-zoom{
 width:47px;height:47px;margin-bottom:6px;
 border:1px solid #78683d;border-radius:12px;
 background:linear-gradient(180deg,rgba(38,42,40,.96),rgba(11,14,14,.97));
 color:#f0dd9e;font-size:24px;font-weight:700;line-height:1;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.48);
 backdrop-filter:blur(8px);
}
.map-fixed-zoom:active{transform:translateY(1px)}
.map-fixed-reposition{
 margin-top:auto;
 align-self:flex-end;
 width:auto;min-width:112px;max-width:132px;height:34px;
 border:1px solid #927a3f;border-radius:11px;
 background:linear-gradient(180deg,rgba(45,43,31,.97),rgba(15,17,15,.98));
 color:#f0dc9d;font-size:7.2px;font-weight:900;letter-spacing:.04em;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 14px rgba(0,0,0,.5);
 overflow:hidden;white-space:nowrap;padding:0 11px;
 backdrop-filter:blur(8px);
 display:inline-flex;align-items:center;justify-content:center;
}
.map-fixed-reposition .scroll-label{
 display:inline-block;min-width:max-content;font-size:7.2px;font-weight:900;
}
.map-fixed-reposition.active-pin-mode{
 border-color:#d0aa4d;
 background:linear-gradient(180deg,rgba(66,55,30,.98),rgba(24,22,15,.98));
 box-shadow:inset 0 0 0 1px rgba(239,213,145,.16),0 4px 14px rgba(0,0,0,.52);
}
.map-fixed-reposition.active-pin-mode .scroll-label::after{
 content:" · MODE PIN";
 color:#fff1b6;
}
.map-fixed-reposition:active{transform:translateY(1px)}
.map-overlay-pos{right:61px!important}
@media (max-width:390px){
 .map-fixed-reposition{min-width:104px;max-width:124px}
}
@media (max-height:690px){
 .map-fixed-zoom{width:43px;height:43px}
 .map-fixed-reposition{height:32px}
}

/* ===========================================================
   POSITION RC4 — ZOOM FIN PARAMÉTRABLE
   =========================================================== */
.fine-zoom-plane{
 transform:
   translate(calc(var(--baseX) + var(--panX)),calc(var(--baseY) + var(--panY)))
   scale(var(--fineScale));
 will-change:transform;
}
.fine-zoom-iframe-shell{
 position:absolute;inset:0;overflow:hidden;background:#111;
}
.fine-zoom-iframe-shell>iframe{
 position:absolute;
 width:100%;height:100%;
 left:0;top:0;
 transform:scale(var(--fineScale));
 transform-origin:50% 50%;
 border:0;
}

/* ===========================================================
   RC6 — IA CONVERSATIONNELLE TRANSVERSALE
   Strictement contenue dans le mockup iPhone 16 / DISPLAY.
   =========================================================== */
.transverse.bottom.bottom-four{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.transverse.bottom.bottom-four button{min-width:0;padding:2px}
.transverse.bottom.bottom-four small{font-size:6.4px;white-space:nowrap;overflow:hidden}
.ai-transversal{border-color:#776841!important;color:#ead798!important}
.ai-transversal>small{color:#ead798!important}
.module:has(.ai-shell){overflow:hidden!important;padding-bottom:2px!important}
.ai-shell{
 height:100%;min-height:0;max-width:100%;overflow:hidden;
 display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;
 gap:6px;
}
.ai-head{
 min-width:0;display:flex;align-items:center;justify-content:space-between;gap:7px;
 padding:7px 8px;border:1px solid #5e563e;border-radius:11px;
 background:linear-gradient(180deg,#232622,#0d1010);
}
.ai-head>div{min-width:0;overflow:hidden}
.ai-head b{display:block;font:700 15px Georgia;color:#ead184}
.ai-head div span{display:block;font-size:6.5px;letter-spacing:.11em;color:#9f9f93;white-space:nowrap}
.ai-status{
 flex:0 0 auto;max-width:50%;padding:5px 6px;border:1px solid #56584f;border-radius:8px;
 font-size:6.3px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ai-status.live{color:#a8d2ad;border-color:#526f57}
.ai-status.demo{color:#e0c779;border-color:#75623d}
.ai-status.offline{color:#d48b83;border-color:#74423d}
.ai-messages{
 min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;
 padding:7px;border:1px solid #373a38;border-radius:12px;background:#080b0b;
 scrollbar-width:thin;
}
.ai-msg{max-width:90%;margin:0 0 7px;padding:7px 8px;border-radius:11px;font-size:9.4px;line-height:1.38;overflow-wrap:anywhere}
.ai-msg small{display:block;margin-bottom:3px;font-size:6px;font-weight:900;letter-spacing:.09em}
.ai-msg.user{margin-left:auto;background:#24251d;border:1px solid #6b5e3d}
.ai-msg.user small{color:#e2c777}
.ai-msg.assistant{margin-right:auto;background:#151a18;border:1px solid #435247}
.ai-msg.assistant small{color:#9ec3a4}
.ai-empty{height:100%;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#9ca09b;padding:16px}
.ai-empty b{font:700 15px Georgia;color:#dcc986;margin-bottom:6px}
.ai-empty span{font-size:8.5px;line-height:1.4}
.ai-context-strip{
 min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:5px;
 padding:5px 7px;border-left:2px solid #9a8246;background:#151713;font-size:6.3px;
}
.ai-context-strip span{color:#aa9b70;font-weight:800}
.ai-context-strip b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d9d4c3}
.ai-context-strip i{font-style:normal;color:#8f948e;white-space:nowrap}
.ai-compose{min-height:0}
.ai-compose textarea{
 resize:none;max-height:72px;min-height:48px;margin:0;padding:8px;font-size:10px;
 background:#0b0e0e;border-color:#4f4b3e;
}
.ai-actions{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:5px;margin-top:5px}
.ai-actions button{
 min-width:0;height:36px;border:1px solid #565145;border-radius:9px;
 background:linear-gradient(#202423,#0d1010);font-size:7.5px;font-weight:800;overflow:hidden;
}
.ai-actions button small{display:block;font-size:5.8px;color:#b9aa7a}
.ai-actions .primary-ai{border-color:#8b7440;color:#ecd791}
.ai-voice-state{margin-top:3px;text-align:center;color:#8c928d;font-size:6px;letter-spacing:.08em}
@media (max-height:700px){
 .ai-head{padding:5px 7px}
 .ai-compose textarea{min-height:42px;max-height:56px}
 .ai-actions button{height:32px}
 .ai-context-strip{padding:4px 6px}
}

/* ===========================================================
   RC7 — DIALOGUE VOCAL AUTOMATIQUE + COMMANDES BASSES RELEVÉES
   =========================================================== */
.module:has(.ai-shell){
 padding-bottom:8px!important;
}
.ai-shell{
 height:calc(100% - 2px)!important;
 grid-template-rows:auto minmax(0,1fr) auto auto!important;
 padding-bottom:4px;
}
.ai-compose{
 position:relative;
 padding:0 1px 7px;
 margin-bottom:2px;
}
.ai-actions{
 margin-top:5px!important;
 margin-bottom:2px!important;
}
.ai-actions button{
 height:38px!important;
}
.ai-voice-state{
 min-height:11px;
 padding-bottom:1px;
}
.ai-voice-bar{
 position:absolute;
 left:3px;right:3px;bottom:100%;
 margin-bottom:6px;
 z-index:12;
 height:42px;
 display:grid;
 grid-template-columns:auto 1fr minmax(0,2fr) auto;
 align-items:center;
 gap:6px;
 padding:6px 7px;
 border:1px solid #9a7f45;
 border-radius:11px;
 background:linear-gradient(180deg,rgba(36,34,24,.98),rgba(10,13,12,.99));
 box-shadow:0 7px 18px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.06);
}
.ai-voice-bar.hidden{display:none!important}
.voice-dot{
 width:8px;height:8px;border-radius:50%;
 background:#6fa77b;
 box-shadow:0 0 0 3px rgba(111,167,123,.12);
 animation:voiceDotPulse 1.1s ease-in-out infinite;
}
@keyframes voiceDotPulse{50%{transform:scale(1.25);opacity:.72}}
.voice-wave{
 height:22px;display:flex;align-items:center;gap:2px;min-width:38px;
}
.voice-wave i{
 display:block;width:2px;border-radius:3px;background:#d8c27c;
 animation:voiceWave .7s ease-in-out infinite alternate;
}
.voice-wave i:nth-child(1){height:7px;animation-delay:-.1s}
.voice-wave i:nth-child(2){height:16px;animation-delay:-.35s}
.voice-wave i:nth-child(3){height:10px;animation-delay:-.5s}
.voice-wave i:nth-child(4){height:19px;animation-delay:-.25s}
.voice-wave i:nth-child(5){height:12px;animation-delay:-.45s}
.voice-wave i:nth-child(6){height:8px;animation-delay:-.2s}
@keyframes voiceWave{to{height:4px;opacity:.55}}
.ai-voice-bar b{
 min-width:0;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 color:#eadb9f;
 font-size:6.8px;
 letter-spacing:.035em;
}
.ai-voice-bar button{
 min-width:42px;height:28px;
 border:1px solid #6c5540;
 border-radius:8px;
 background:#1b1815;
 color:#d8cbb1;
 font-size:6.4px;font-weight:900;
}
.ai-compose textarea{
 touch-action:pan-y;
}
@media (max-height:700px){
 .ai-shell{gap:4px!important}
 .ai-actions button{height:34px!important}
 .ai-compose{padding-bottom:5px}
 .ai-voice-bar{height:38px;margin-bottom:4px}
}


/* ===========================================================
   POSITION RC8 — BOUTON REPOSITIONNER COMPACT
   =========================================================== */
.map-fixed-controls{
 gap:0;
}
.map-fixed-reposition{
 margin-right:0;
}
.map-fixed-reposition.active-pin-mode{
 min-width:126px;
 max-width:146px;
}
@media (max-width:390px){
 .map-fixed-reposition.active-pin-mode{min-width:118px;max-width:136px}
}


/* =====================================================================
   POSITION FINAL CANDIDATE RC9 — CERCLE D'INCERTITUDE ADAPTATIF
   ===================================================================== */
.uncertainty-circle{
 position:absolute;z-index:18;pointer-events:none;border-radius:50%;
 border:1px dashed rgba(77,157,222,.82);
 background:rgba(71,151,218,.10);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
 color:#9dcaee;
}
.uncertainty-circle.screen{left:50%;top:50%;transform:translate(-50%,-50%);z-index:18}
.uncertainty-circle.good{border-color:rgba(82,169,224,.9);background:rgba(82,169,224,.085)}
.uncertainty-circle.precise{border-color:rgba(133,177,137,.95);background:rgba(113,165,119,.075);color:#b9d2bb}
.uncertainty-circle .uncertainty-inner{
 position:absolute;inset:15%;border-radius:50%;border:1px solid currentColor;opacity:.23;
}
.uncertainty-circle .uncertainty-cross{position:absolute;background:currentColor;opacity:.58}
.uncertainty-circle .uncertainty-cross.h{left:-10%;right:-10%;top:50%;height:1px}
.uncertainty-circle .uncertainty-cross.v{top:-10%;bottom:-10%;left:50%;width:1px}
.uncertainty-circle>span{
 position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);
 padding:2px 5px;border:1px solid rgba(95,144,181,.38);border-radius:99px;
 background:rgba(7,11,13,.72);color:currentColor;font-size:6px;font-weight:900;letter-spacing:.06em;
 white-space:nowrap;backdrop-filter:blur(4px)
}
.uncertainty-chip{
 position:absolute;left:9px;bottom:45px;z-index:29;max-width:58%;height:24px;
 display:flex;align-items:center;padding:0 8px;border-radius:9px;
 border:1px solid rgba(76,135,179,.55);background:rgba(8,13,16,.80);
 color:#9cc9e8;font-size:6.8px;font-weight:900;letter-spacing:.045em;white-space:nowrap;
 backdrop-filter:blur(7px);box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
.uncertainty-chip.good{color:#abd7ef;border-color:rgba(82,169,224,.58)}
.uncertainty-chip.precise{color:#b8d4ba;border-color:rgba(118,166,123,.62);background:rgba(11,18,13,.82)}
.better-position-offer{
 position:absolute;left:9px;right:67px;top:61px;z-index:44;
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center;
 padding:7px;border:1px solid #79683c;border-radius:11px;
 background:linear-gradient(180deg,rgba(31,33,27,.97),rgba(10,13,12,.98));
 box-shadow:0 8px 20px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.04);
 backdrop-filter:blur(9px)
}
.better-position-offer>div{min-width:0;overflow:hidden}
.better-position-offer b{display:block;color:#ead68d;font-size:7.2px;letter-spacing:.045em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.better-position-offer span{display:block;color:#aeb3ac;font-size:6.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.better-position-offer button{height:29px;padding:0 8px;border:1px solid #665b3e;border-radius:8px;background:linear-gradient(#232622,#0f1211);color:#ddd1aa;font-size:6.6px;font-weight:900}
.better-position-offer button:first-of-type{border-color:#927a41;color:#f0dc98}
.fullscreen-map-stage .live-map-host{background:#0d1112}
.map-fixed-zoom,.map-fixed-reposition,.map-command-button{
 box-shadow:inset 0 1px 0 rgba(255,255,255,.075),inset 0 -1px 0 rgba(0,0,0,.7),0 5px 13px rgba(0,0,0,.46)!important;
}
.map-fixed-zoom:active,.map-fixed-reposition:active,.map-command-button:active{
 transform:translateY(1px) scale(.985);box-shadow:inset 0 2px 5px rgba(0,0,0,.58),0 2px 5px rgba(0,0,0,.34)!important;
}
.ai-transversal{
 background:linear-gradient(180deg,#282720,#101312)!important;
 box-shadow:inset 0 1px 0 rgba(238,216,145,.10),0 3px 8px rgba(0,0,0,.38)!important;
}
.ai-transversal:active{transform:translateY(1px) scale(.985)}

/* RC11 — ENRICHIR HUB : extension sans régression */
.enrich-hub{display:flex;flex-direction:column;gap:7px;padding-bottom:6px}.enrich-intro{padding:8px 9px;border:1px solid #5a5138;border-radius:10px;background:linear-gradient(145deg,#1c201f,#0d1010);box-shadow:inset 0 1px 0 #d7bd6a22}.enrich-intro b{display:block;font:700 11px Georgia;color:#e4cf8a;letter-spacing:.06em}.enrich-intro span{display:block;margin-top:3px;font-size:7.5px;color:#9fa29b;letter-spacing:.03em}.enrich-section{display:flex;flex-direction:column;gap:4px}.enrich-section-title{font-size:6.8px;letter-spacing:.14em;color:#a79156;padding-left:3px}.enrich-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.enrich-tile{min-height:51px;padding:7px 8px;text-align:left;border:1px solid #494538;border-radius:10px;background:linear-gradient(#212526,#0d1011);box-shadow:inset 0 1px 0 #fff1,0 3px 8px #0005}.enrich-tile:active{transform:translateY(1px);background:linear-gradient(#151818,#252a28);border-color:#8a7849}.enrich-tile b{display:block;font-size:9px;color:#e7d7a6;letter-spacing:.025em}.enrich-tile small{display:block;margin-top:2px;font-size:6.7px;color:#858b87;line-height:1.2}.enrich-qualify{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.enrich-qualify button{min-height:48px;border:1px solid #504a3a;border-radius:10px;background:linear-gradient(#202425,#0d1011);color:#e7d7a6}.enrich-qualify button:last-child{grid-column:1/-1}.module:has(.enrich-hub){overflow:auto;scrollbar-width:none}.module:has(.enrich-hub)::-webkit-scrollbar{display:none}@media(max-height:760px){.enrich-tile{min-height:45px;padding:5px 7px}.enrich-hub{gap:5px}.enrich-section{gap:3px}}

/* =====================================================================
   RC12 — STABILISATION INTERFACE / VISIBILITÉ / CADRAGE MÉDIA
   Modifications visuelles ciblées, sans changement des fonctions validées.
   ===================================================================== */

/* IA : le titre générique ne consomme plus la hauteur du DISPLAY.
   Le bandeau R-IA devient le titre visuel et les commandes basses restent visibles. */
.module:has(.ai-shell){
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
  padding:0!important;
}
.module:has(.ai-shell)>h3{display:none!important}
.module:has(.ai-shell)>.interaction-context-bar{flex:0 0 auto}
.ai-shell{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:2px 2px 5px!important;
  grid-template-rows:auto minmax(72px,1fr) auto auto!important;
}
.ai-compose{
  flex:0 0 auto;
  min-height:0;
  padding-bottom:2px!important;
  margin-bottom:0!important;
}
.ai-actions{
  position:relative;
  z-index:5;
  flex:0 0 auto;
  margin:5px 0 0!important;
}
.ai-actions button{
  height:40px!important;
  min-height:40px!important;
  border-color:#746746!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 5px rgba(0,0,0,.5);
}
.ai-voice-state{min-height:10px!important;padding:2px 0 0!important}
@media(max-height:700px){
  .ai-head{padding:4px 6px!important}
  .ai-head b{font-size:13px!important}
  .ai-messages{padding:5px!important}
  .ai-context-strip{padding:3px 5px!important}
  .ai-compose textarea{min-height:38px!important;max-height:48px!important;padding:6px!important}
  .ai-actions button{height:36px!important;min-height:36px!important}
  .ai-voice-state{font-size:5.5px!important}
}

/* Média/photo : le viewer utilise l'espace réellement disponible et les +/- restent dégagés. */
.module:has(.media-viewer){
  height:100%;min-height:0;overflow:hidden!important;
  display:flex;flex-direction:column;
}
.module:has(.media-viewer)>h3{flex:0 0 auto;margin:2px 0 6px!important;font-size:17px!important}
.module:has(.media-viewer)>.interaction-context-bar{flex:0 0 auto}
.media-viewer{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:hidden!important}
.media-stage{padding:6px}
.media-stage img{max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:50% 50%!important}
.media-tools{
  position:relative;z-index:6;
  min-height:44px;align-items:center;
  padding:2px 0 0;
}
.media-tools button{height:40px;min-height:40px}
#mediaZoomOut,#mediaZoomIn{
  min-width:68px!important;
  height:42px!important;
  border-color:#b79a4e!important;
  background:linear-gradient(180deg,#34362f,#111413)!important;
  color:#f1dfa7!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:800!important;
  box-shadow:inset 0 1px 0 rgba(255,239,175,.16),0 3px 8px rgba(0,0,0,.52)!important;
}
#mediaFit{min-width:76px!important;color:#ded7c3!important}
.media-notice{min-height:31px;display:flex;align-items:center}

/* SUPER SCANNER : photo centrée par défaut, toujours contenue dans son viewport. */
.module:has(.scanner-premium){
  height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden!important;
}
.module:has(.scanner-premium)>h3{flex:0 0 auto;margin:1px 0 5px!important;font-size:16px!important}
.module:has(.scanner-premium)>.interaction-context-bar{flex:0 0 auto}
.scanner-premium{flex:1 1 auto!important;height:auto!important;min-height:0!important}
.scan-viewport{position:relative!important;display:block!important;overflow:hidden!important}
.scan-viewport canvas{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100% - 12px)!important;
  max-height:calc(100% - 12px)!important;
  transform-origin:center center!important;
  margin:0!important;
}
.scan-pdf-preview{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);border:0;border-radius:8px;background:#fff}
.scan-manip{position:relative;z-index:7;min-height:42px}
.scan-manip button{height:40px!important;min-height:40px!important}
.scan-manip button[data-scan-act="zout"],
.scan-manip button[data-scan-act="zin"]{
  border-color:#b79a4e!important;
  background:linear-gradient(180deg,#34362f,#111413)!important;
  color:#f1dfa7!important;
  font-size:22px!important;
  font-weight:800!important;
  box-shadow:inset 0 1px 0 rgba(255,239,175,.16),0 3px 8px rgba(0,0,0,.52)!important;
}

/* Petits écrans : préserver les commandes essentielles plutôt que les occulter. */
@media(max-height:700px){
  .work-display{margin:5px 0!important;padding:7px!important}
  .transverse button{height:40px!important}
  .safety{height:44px!important}
  .module:has(.scanner-premium)>h3{font-size:14px!important;margin-bottom:3px!important}
  .scan-toptools{gap:2px!important}
  .scan-tool{min-height:31px!important;padding:3px 1px!important}
  .scan-tool b{font-size:14px!important}
  .scan-tool span{font-size:5.7px!important}
  .scan-manip{min-height:36px!important}
  .scan-manip button{height:35px!important;min-height:35px!important}
  .scan-enhance button{min-height:32px!important}
  .scan-workflow{display:none!important}
  .scanner-premium textarea{max-height:50px!important;min-height:42px!important}
}

/* RC13 — POSITION : réserver une voie permanente aux commandes + / − / REPOSITIONNER. */
.fullscreen-map-stage .better-position-offer{right:67px!important}
@media(max-width:390px){
  .fullscreen-map-stage .better-position-offer{right:62px!important;grid-template-columns:minmax(0,1fr) auto auto;gap:3px;padding:6px}
  .fullscreen-map-stage .better-position-offer button{padding:0 6px;font-size:6.2px}
}
/* RC14 — POSITION : bouton REPOSITIONNER compact et zone basse protégée. */
.fullscreen-map-stage .map-fixed-controls{
  bottom:82px!important;
}
.fullscreen-map-stage .map-fixed-reposition.active-pin-mode{
  min-width:112px!important;
  max-width:132px!important;
}
.fullscreen-map-stage .map-fixed-reposition.active-pin-mode .scroll-label::after{
  content:""!important;
  display:none!important;
}
@media(max-width:390px){
  .fullscreen-map-stage .map-fixed-controls{bottom:78px!important}
  .fullscreen-map-stage .map-fixed-reposition.active-pin-mode{min-width:104px!important;max-width:124px!important}
}

/* ===========================================================
   POSITION RC15 — ZOOM CINÉMA CONTINU, CENTRE VERROUILLÉ
   =========================================================== */
.map-fixed-zoom{
 touch-action:none;
 user-select:none;
 -webkit-user-select:none;
 -webkit-touch-callout:none;
}
.map-fixed-zoom.zoom-holding{
 transform:translateY(1px) scale(.985);
 border-color:#b79a53;
 box-shadow:
   inset 0 1px 0 rgba(255,255,255,.08),
   inset 0 0 0 1px rgba(183,154,83,.22),
   0 3px 9px rgba(0,0,0,.46);
}
.fine-zoom-plane,
.fine-zoom-iframe-shell>iframe{
 transition:transform 90ms linear;
}


/* RC18 — INTERNATIONAL + DICTÉE UNIVERSELLE */
.lang-grid{overflow:auto;min-height:0}.lang-grid button{padding:7px 8px;border:1px solid #403d34;border-radius:10px;background:#141719;color:#dfdfd8;text-align:left;font-size:9px}.lang-grid button:active{border-color:#a88d48}.dictation-live{outline:1px solid #8fa68c!important;box-shadow:inset 0 0 0 1px #2f3a31!important;animation:dictFrame 1.25s ease-in-out infinite}@keyframes dictFrame{0%,100%{outline-color:#687a68}50%{outline-color:#b1bca4}}.wave i{width:1px!important;border-radius:0!important;background:#879785!important}.led{box-shadow:none!important;border:1px solid #ffffff24}.led.green,.led.blue{box-shadow:none!important}

/* RC18 FIX 1 — couverture de référence intacte, zones actives invisibles */
.cover-screen{padding:0!important;overflow:hidden;background:#000}.cover-reference-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}.cover-reference-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.cover-hotspot{position:absolute;z-index:3;border:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;padding:0!important;cursor:pointer;-webkit-tap-highlight-color:transparent}.cover-hotspot-enter{left:23%;top:61%;width:54%;height:10%}.cover-hotspot-international{left:13%;top:73%;width:74%;height:7%}.cover-reference-stage .lang-overlay{inset:8%;z-index:8}.cover-reference-stage .lang-grid{grid-template-columns:1fr 1fr;overflow:auto}.cover-reference-stage .lang-grid button{min-height:34px}.cover-head,.cover-vignette,.cover-overlay,.cover-foot{display:none!important}

/* RC18 FIX2 — pictogramme + initiales pour chaque langue */
.cover-reference-stage .lang-grid button{display:grid;grid-template-columns:24px 30px minmax(0,1fr);align-items:center;gap:7px;text-align:left;padding:7px 9px}
.lang-favicon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:16px;font-size:15px;line-height:1;border-radius:2px;overflow:hidden;filter:saturate(.88) contrast(.96)}
.lang-code{font-size:10px;letter-spacing:.10em;color:#d6bd7a;font-weight:800}
.lang-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}


/* RC18 FIX3 — micro-drapeau + nom natif + petit code */
.cover-reference-stage .lang-grid button{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:5px;text-align:left;padding:7px 9px}
.lang-favicon{display:inline-flex;align-items:center;justify-content:center;width:12px;height:9px;font-size:9px;line-height:1;border-radius:1px;overflow:hidden;filter:saturate(.82) contrast(.96);opacity:.94}
.lang-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#dfdfd8;font-weight:600}
.lang-code{font-size:8px;letter-spacing:.08em;color:#b9a66f;font-weight:700;opacity:.88}

/* RC18 FIX4 — langue native + vrai mini-drapeau, aucun code en doublon */
.lang-grid button{grid-template-columns:18px minmax(0,1fr)!important;}
.lang-favicon{font-size:12px!important;line-height:1!important;width:16px!important;min-width:16px!important;height:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.lang-code{display:none!important;}

/* RC18 FIX5 — INTERNATIONAL: mini-drapeau + nom natif + code international */
.cover-reference-stage .lang-grid button{display:grid!important;grid-template-columns:18px minmax(0,1fr) auto!important;align-items:center!important;gap:5px!important;}
.lang-favicon{font-size:12px!important;line-height:1!important;width:16px!important;min-width:16px!important;height:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.lang-name{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.lang-code{font-size:8px!important;letter-spacing:.08em!important;color:#a99b73!important;white-space:nowrap!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;}

/* RC18 FIX6 — drapeau graphique miniature réel + nom natif + code international */
.cover-reference-stage .lang-grid button{display:grid!important;grid-template-columns:18px minmax(0,1fr) auto!important;align-items:center!important;column-gap:6px!important;}
.lang-flag{display:block!important;width:16px!important;height:11px!important;object-fit:cover!important;border-radius:1.5px!important;box-shadow:0 0 0 .5px rgba(255,255,255,.24)!important;}
.lang-favicon{display:none!important;}
.lang-name{font-size:10px!important;font-weight:600!important;color:#dfdfd8!important;}
.lang-code{display:inline-block!important;font-size:8px!important;letter-spacing:.08em!important;color:#a99b73!important;font-weight:700!important;}

/* RC18 MASTER NEXT — gestuelle canonique et menu contextuel dans le DISPLAY */
.cover-hotspot-enter,.cover-hotspot-international{right:auto!important;bottom:auto!important}
.wheel.press-long{box-shadow:inset 0 0 0 1px rgba(199,185,143,.32)!important}
.wheel.press-advanced{box-shadow:inset 0 0 0 1px rgba(199,185,143,.55)!important}
.contextual-display{position:absolute;inset:0;z-index:20;box-sizing:border-box;padding:18px;background:linear-gradient(180deg,#101513 0%,#090d0c 100%);overflow:auto;color:#ded9c8}
.contextual-display:before{content:"";position:absolute;inset:7px;border:1px solid rgba(183,154,78,.62);border-radius:28px;pointer-events:none}
.contextual-head{position:relative;z-index:1;padding:9px 8px 13px;border-bottom:1px solid rgba(183,154,78,.32)}
.contextual-head span{display:block;font-size:8px;letter-spacing:.20em;color:#9c957e;margin-bottom:5px}
.contextual-head h3{margin:0;color:#ead58f;font:700 20px Georgia,serif;letter-spacing:.035em}
.contextual-head p{margin:7px 0 0;color:#aaa99f;font-size:10px;line-height:1.45}
.contextual-actions{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 7px 10px}
.contextual-actions button{appearance:none!important;min-height:66px!important;padding:10px 11px!important;border:1px solid #4e4b3d!important;border-radius:13px!important;background:linear-gradient(180deg,#1d211f,#101312)!important;color:#e7e1ce!important;text-align:left!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 4px 10px rgba(0,0,0,.26)!important}
.contextual-actions button:active{transform:translateY(1px);border-color:#a88d48!important}
.contextual-actions b{display:block;font-size:10px;letter-spacing:.055em;color:#e4cc82;margin-bottom:5px}
.contextual-actions small{display:block;font-size:8px;line-height:1.35;color:#aaa99f;font-weight:400}
.contextual-back{position:relative;z-index:1;margin:2px 7px 10px;padding:9px 12px;border:1px solid #555145;border-radius:11px;background:#151918;color:#ded9c8;font-size:9px}
.contextual-display.advanced .contextual-head h3{color:#d8c795}
@media(max-width:390px){.contextual-display{padding:14px}.contextual-actions{gap:6px;padding:10px 5px 8px}.contextual-actions button{min-height:58px!important;padding:8px!important}.contextual-head h3{font-size:17px}}
/* RC18 INTERNATIONAL + POSITION A POSTERIORI — sélecteur transversal */
#phone>#langOverlay,.phone-shell>.lang-overlay{position:absolute!important;inset:42px 12px 12px!important;z-index:9999!important}
.status-actions{position:relative;z-index:10000}.status-link{cursor:pointer;touch-action:manipulation}

/* RC18 INTL POSITION V3 — identification intacte + lisibilité langue */
.auth-grid .auth-label{display:block;margin:0 0 5px;font-style:normal;font-size:8px;line-height:1.15;color:#999;letter-spacing:.06em}
.auth-grid #authLanguage{display:block;margin-top:5px;white-space:normal;word-break:keep-all;color:#e7e0cc;letter-spacing:.035em}
#phone>#langOverlay{pointer-events:auto;overflow:hidden}
#phone>#langOverlay .lang-grid{min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}

/* RC18 INTERNATIONAL 6 ACTIVES — 18 EN DÉVELOPPEMENT */
.lang-section-head{display:flex;align-items:center;justify-content:space-between;padding:5px 2px 2px;color:#e4cc82;font-size:9px;letter-spacing:.10em}
.lang-section-head span{min-width:24px;text-align:center;border:1px solid #655a3a;border-radius:999px;padding:2px 5px;color:#d8c795}
.lang-section-head.development{color:#a8a69e}
.lang-section-separator{height:1px;min-height:1px;background:linear-gradient(90deg,transparent,#75683f,transparent);margin:2px 0}
#phone>#langOverlay{display:grid!important;grid-template-rows:auto auto auto 1px auto minmax(0,1fr) auto;gap:7px!important}
#phone>#langOverlay.hidden{display:none!important}
.lang-grid-active{overflow:visible!important;grid-template-columns:1fr 1fr!important}
.lang-grid-development{overflow:auto!important;grid-template-columns:1fr 1fr!important;opacity:.78}
.lang-grid-development button{border-color:#353632!important;background:#101312!important}
.language-development-panel{display:none;position:absolute;inset:0;z-index:30;background:#090b0cf7;padding:16px;align-items:center;justify-content:center}
.language-development-panel.open{display:flex}
.dev-card{width:100%;border:1px solid #75683f;border-radius:15px;background:linear-gradient(180deg,#181b1a,#0d0f0f);padding:15px;color:#e4e0d5;box-shadow:0 14px 35px #0008}
.dev-kicker{display:block;color:#e4cc82;font-weight:800;font-size:12px;letter-spacing:.06em;margin-bottom:10px}
.dev-card p{font-size:12px;line-height:1.55;margin:0 0 14px;color:#dedbd0}
.dev-active-title{font-size:8px;letter-spacing:.10em;color:#99978e;margin-bottom:7px}
.dev-active-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.dev-active-choices button,.dev-back{border:1px solid #4c493c;border-radius:9px;background:#151817;color:#e3dcc7;padding:9px;font-size:10px}
.dev-back{width:100%;margin-top:10px;color:#c9b879}

/* RC18 V4.1 — INTERNATIONAL: drapeau / libellé / code, zones strictement séparées */
#phone>#langOverlay .lang-grid button,
.cover-reference-stage .lang-grid button{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) max-content!important;
  align-items:center!important;
  column-gap:9px!important;
  padding:8px 10px!important;
  min-width:0!important;
}
#phone>#langOverlay .lang-grid .lang-flag,
.cover-reference-stage .lang-grid .lang-flag{
  grid-column:1!important;
  display:block!important;
  width:18px!important;
  height:12px!important;
  margin:0!important;
  object-fit:cover!important;
  border-radius:1.5px!important;
  box-shadow:0 0 0 .5px rgba(255,255,255,.24)!important;
}
#phone>#langOverlay .lang-grid .lang-name,
.cover-reference-stage .lang-grid .lang-name{
  grid-column:2!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#dfdfd8!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#phone>#langOverlay .lang-grid .lang-code,
.cover-reference-stage .lang-grid .lang-code{
  grid-column:3!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#a99b73!important;
  font-size:8px!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
  justify-self:end!important;
}

/* RC18 V5 — INTERNATIONAL horloger, évolutif */
#phone>#langOverlay{display:grid!important;grid-template-rows:auto auto auto auto auto minmax(170px,1fr) auto auto!important;gap:7px!important;background:linear-gradient(180deg,rgba(12,15,15,.985),rgba(6,8,8,.99))!important;backdrop-filter:none!important}
.intl-invite{padding:8px 10px;border-top:1px solid rgba(173,145,73,.32);border-bottom:1px solid rgba(173,145,73,.24);background:linear-gradient(90deg,transparent,rgba(163,142,82,.07),transparent);text-align:center}
.intl-invite b{display:block;font-size:9px;letter-spacing:.11em;color:#d8c58b;margin-bottom:3px}.intl-invite span{display:block;font-size:8px;line-height:1.35;color:#9f9e96}
.language-wheel{position:relative;min-height:170px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;padding:64px 8px;-webkit-overflow-scrolling:touch;border:1px solid #494537;border-radius:18px;background:linear-gradient(90deg,#080a0a,#191d1b 12%,#0b0e0d 50%,#191d1b 88%,#080a0a);box-shadow:inset 14px 0 24px #000,inset -14px 0 24px #000}
.language-wheel:before{content:"";position:sticky;display:block;top:calc(50% - 24px);height:48px;margin-bottom:-48px;z-index:0;border-top:1px solid rgba(192,164,91,.38);border-bottom:1px solid rgba(192,164,91,.38);background:linear-gradient(90deg,rgba(112,127,108,.10),rgba(179,190,169,.18),rgba(112,127,108,.10));pointer-events:none}
.language-wheel-row{position:relative;z-index:1;width:100%;height:48px;scroll-snap-align:center;display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:center;gap:10px;border:0!important;background:transparent!important;color:#777b77!important;padding:0 13px!important;text-align:left!important;transition:color .16s,transform .16s,opacity .16s;opacity:.48}
.language-wheel-row img{width:22px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 .5px rgba(255,255,255,.24)}.language-wheel-row span{font:600 11px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.language-wheel-row b{font-size:8px;letter-spacing:.12em;color:#8e856c}.language-wheel-row.current{color:#e6e1d2!important;opacity:1;transform:scale(1.015)}.language-wheel-row.current span{color:#e6d39a}.language-wheel-row.current b{color:#c5b37d}.other-plus{font:300 22px Georgia!important;color:#c8b675!important;text-align:center}
.language-wheel-hint{text-align:center;font-size:7px;letter-spacing:.16em;color:#77766f}.plebiscite-btn{width:100%;border:1px solid #8a7544!important;border-radius:10px!important;background:linear-gradient(#242621,#121412)!important;color:#e6d39a!important;padding:10px!important;font-size:9px!important;font-weight:800;letter-spacing:.06em}.plebiscite-btn:disabled{opacity:.68}.request-count{text-align:center;color:#8f8d84;font-size:7px;letter-spacing:.10em;margin:6px 0 10px}.universal-lines{border-top:1px solid #3f3d34;border-bottom:1px solid #3f3d34;padding:6px 0;margin-bottom:10px}.universal-lines p{margin:4px 0!important;font-size:9px!important;line-height:1.25!important}.universal-lines b{display:inline-block;width:22px;color:#c7b477}.other-label{display:block;font-size:7px;letter-spacing:.09em;color:#aaa79c;margin:8px 0 5px}.other-card input{margin-bottom:8px!important}

/* Micro-LED physique : aucune diffusion / aucun halo */
.micro-led,.led{position:relative;display:inline-block;border-radius:50%!important;border:1px solid rgba(218,218,206,.34)!important;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.70) 0 5%,rgba(255,255,255,.18) 7%,#a85f21 22%,#5b2f13 68%,#1d120b 100%)!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.52),inset -2px -2px 3px rgba(0,0,0,.48)!important}
.micro-led{width:9px;height:9px;flex:0 0 9px}.led{width:13px!important;height:13px!important}.micro-led:after,.led:after{content:"";position:absolute;left:24%;top:18%;width:28%;height:20%;border-radius:50%;background:rgba(255,255,255,.52);transform:rotate(-18deg);pointer-events:none}
.micro-led.green,.led.green{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.78) 0 5%,rgba(255,255,255,.18) 7%,#58a96a 22%,#2e643c 68%,#102317 100%)!important;animation:physicalLedBlink .82s steps(1,end) infinite}.micro-led.navy,.led.blue{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.70) 0 5%,rgba(255,255,255,.15) 7%,#385b86 22%,#193654 68%,#0b1826 100%)!important}.micro-led.red,.led.red{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.72) 0 5%,rgba(255,255,255,.16) 7%,#b84a42 22%,#6c2622 68%,#27100f 100%)!important}.micro-led.orange{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.70) 0 5%,rgba(255,255,255,.18) 7%,#c47b32 22%,#744019 68%,#28170c 100%)!important}@keyframes physicalLedBlink{0%,49%{filter:brightness(1.08)}50%,100%{filter:brightness(.58)}}
.status-actions{gap:8px!important}.status-actions .micro-led{margin-right:1px}

/* RC18 V5.1 — sublimation horlogère locale, sans changement de géométrie fonctionnelle */
.enrich-hub{padding-bottom:74px!important}
.enrich-intro{position:relative;overflow:hidden;background:linear-gradient(155deg,#202422 0%,#111413 48%,#090b0b 100%)!important;border-color:#665b3d!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 -1px 0 rgba(0,0,0,.78),0 4px 9px rgba(0,0,0,.30)!important}
.enrich-intro:before{content:"";position:absolute;left:10px;right:10px;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(225,203,132,.38),transparent);pointer-events:none}
.enrich-tile{position:relative;overflow:hidden;background:linear-gradient(145deg,#242827 0%,#171a19 42%,#0b0d0d 100%)!important;border-color:#504a3a!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.075),inset 1px 0 0 rgba(255,255,255,.025),inset 0 -2px 3px rgba(0,0,0,.56),0 4px 8px rgba(0,0,0,.30)!important}
.enrich-tile:before{content:"";position:absolute;inset:1px;border-radius:8px;border:1px solid rgba(225,207,150,.035);pointer-events:none}
.enrich-tile:after{content:"";position:absolute;left:8px;right:8px;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(238,224,181,.22),transparent);pointer-events:none}
.enrich-tile:active,.enrich-tile:focus-visible{border-color:#8d7948!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -2px 4px rgba(0,0,0,.62),0 0 0 1px rgba(173,145,73,.20)!important;outline:none}
.enrich-tile b{color:#e8d9aa!important;text-shadow:0 1px 0 #000;letter-spacing:.018em}.enrich-tile small{color:#929690!important}
.enrich-section-title{position:relative;color:#b19b61!important;text-shadow:0 1px #000}.enrich-section-title:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:linear-gradient(90deg,rgba(168,143,75,.26),transparent 72%);pointer-events:none}

/* RC18 V5.2 — libellés longs : taille constante, défilement horloger doux */
.rtags-marquee{overflow:hidden!important;white-space:nowrap!important;text-overflow:clip!important;position:relative}
.rtags-marquee-inner{display:inline-block;min-width:max-content;white-space:nowrap;transform:translateX(0)}
.rtags-marquee .rtags-marquee-inner{animation:rtagsPrecisionMarquee 8s ease-in-out 1.2s infinite alternate}
@keyframes rtagsPrecisionMarquee{0%,14%{transform:translateX(0)}86%,100%{transform:translateX(var(--rtags-marquee-distance,0px))}}
@media (prefers-reduced-motion:reduce){.rtags-marquee .rtags-marquee-inner{animation:none!important;transform:none!important}}
\n/* V5.9 — MOLETTE INSTRUMENT + POSTE R-IA */\n.wheel{width:88%;height:320px;border-radius:34px;border:1px solid #756b52;background:linear-gradient(90deg,#070809 0%,#202426 8%,#3b4041 15%,#171a1b 25%,#0b0d0e 50%,#171a1b 75%,#3a3f40 85%,#1f2324 92%,#070809 100%);box-shadow:inset 22px 0 30px #000,inset -22px 0 30px #000,inset 0 1px rgba(255,255,255,.12),0 18px 36px #000}\n.wheel:before{height:96px;background:linear-gradient(#050607 5%,rgba(5,6,7,.82) 42%,transparent)}.wheel:after{height:96px;background:linear-gradient(transparent,rgba(5,6,7,.82) 58%,#050607 95%)}\n.wheel-row{position:relative;height:64px;font:650 15px Georgia,serif;letter-spacing:.055em;color:#777b78;text-shadow:0 1px 1px #000;transform:perspective(220px) rotateX(10deg)}\n.wheel-row.current{transform:none;color:#454942;background:linear-gradient(90deg,#59645b 0%,#9fa997 13%,#cbd0be 34%,#d9ddcb 50%,#c8ceba 66%,#9ca792 87%,#566158 100%);text-shadow:0 1px rgba(255,255,255,.58);box-shadow:inset 0 1px rgba(255,255,255,.5),inset 0 -1px rgba(20,25,20,.5)}\n.wheel-row.current:before,.wheel-row.current:after{content:"";position:absolute;top:0;bottom:0;width:1px;background:rgba(239,232,207,.25)}.wheel-row.current:before{left:10px}.wheel-row.current:after{right:10px}\n.analysis-command{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;margin-bottom:8px;border:1px solid #4e4a3d;border-radius:12px;background:linear-gradient(145deg,#1b1f1f,#0c0e0f)}.analysis-command span{display:block;font-size:7px;letter-spacing:.14em;color:#9e9270}.analysis-command b{display:block;margin-top:3px;font-size:9px;color:#ddd4b9}.analysis-command button{border:1px solid #756b52;border-radius:8px;background:#181b1b;padding:8px;font-size:8px;color:#ddd4b9}.analysis-tile{appearance:none;width:100%;color:inherit}.analysis-tile:active{transform:translateY(1px)}.analysis-workbench{margin-top:8px;padding:10px;border:1px solid #4d493b;border-radius:12px;background:linear-gradient(#171a19,#0c0e0e)}.analysis-workbench span{font-size:8px;letter-spacing:.13em;color:#c4b27d}.analysis-workbench p{margin:6px 0 0;font-size:9px;line-height:1.45;color:#b8bcb8}.analysis-workbench .analysis-rule{color:#8f948f;border-top:1px solid #30332f;padding-top:6px}\n
/* V5.10 — ACTION R-IA RÉELLE */
.analysis-run{width:100%;margin:0 0 7px;padding:12px 10px;border:1px solid #8d805e;border-radius:10px;background:linear-gradient(#2b302d,#151817);color:#e5ddc4;font:700 10px Georgia,serif;letter-spacing:.08em;box-shadow:inset 0 1px rgba(255,255,255,.12),0 4px 12px #000}.analysis-run:disabled{opacity:.38;filter:saturate(.35)}
.analysis-progress{padding:8px 10px;margin-bottom:8px;border-left:2px solid #9a8d68;background:#111413}.analysis-progress b,.analysis-progress small{display:block}.analysis-progress b{font-size:9px;color:#d7cfb6}.analysis-progress small{margin-top:3px;font-size:8px;line-height:1.35;color:#90958f}
.analysis-result{margin-top:8px}.analysis-summary,.analysis-section,.analysis-next{margin:6px 0;padding:9px;border:1px solid #44473f;border-radius:9px;background:#101312}.analysis-summary>b,.analysis-section>b,.analysis-next>b{font-size:8px;letter-spacing:.09em;color:#c9b982}.analysis-summary p,.analysis-next p{font-size:9px;line-height:1.45;color:#c4c8c2}.analysis-section .node{font-size:8px}.report-human{padding:8px;margin-bottom:7px;border:1px solid #555044;border-radius:9px}.report-human b,.report-human small{display:block}.report-human small{margin-top:4px;font-size:8px;color:#999}.report-sources{margin-top:8px;font-size:8px}.report-sources pre{white-space:pre-wrap;font:8px/1.4 monospace}

/* V5.11 — MOLETTE HORLOGÈRE PREMIUM + RAPPORT TRANSVERSAL */
.top-five{grid-template-columns:.82fr .82fr .82fr .92fr 1.32fr!important;gap:6px!important}.top-five button{min-width:0!important}.top-five small{font-size:6.7px!important}.report-transversal{border-color:#716343!important;background:linear-gradient(155deg,#22231f,#101211)!important}.report-transversal>small{color:#dfca87!important}
.wheel-instrument{position:relative;width:96%;height:334px;display:flex;align-items:stretch;justify-content:center;padding:0 42px;filter:drop-shadow(0 18px 18px rgba(0,0,0,.72))}.wheel-instrument .wheel{width:100%;height:100%;border-radius:18px;border:1px solid #746a50;background:linear-gradient(90deg,#080909 0%,#232727 7%,#555958 12%,#1b1e1e 19%,#0b0d0d 50%,#1b1e1e 81%,#555958 88%,#232727 93%,#080909 100%);box-shadow:inset 25px 0 34px #000,inset -25px 0 34px #000,inset 0 2px 1px rgba(255,255,255,.16),inset 0 -2px 2px #000,0 0 0 2px #171a19,0 0 0 3px #554c37}
.wheel-rail{position:absolute;top:5px;bottom:5px;width:37px;border:1px solid #625942;border-radius:17px;background:linear-gradient(90deg,#090a0a,#343837 26%,#171919 55%,#050606);box-shadow:inset 1px 0 rgba(255,255,255,.13),inset -4px 0 7px #000,0 4px 10px #000;z-index:5}.wheel-rail.left{left:4px}.wheel-rail.right{right:4px;transform:scaleX(-1)}.wheel-rail:before,.wheel-rail:after,.wheel-rail i{content:"";position:absolute;left:50%;transform:translateX(-50%);width:9px;height:9px;border-radius:50%;border:1px solid #746b53;background:radial-gradient(circle at 35% 30%,#9b9277 0 8%,#3d3b34 16%,#121313 58%,#050606 100%);box-shadow:inset 0 0 0 1px #000}.wheel-rail:before{top:13px}.wheel-rail:after{bottom:13px}.wheel-rail i:first-of-type{top:42%}.wheel-rail i:last-of-type{top:56%}.wheel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:8;color:#e3d6a8;font-size:20px;text-shadow:0 1px #000}.wheel-arrow.left{left:28px}.wheel-arrow.right{right:28px}.wheel-row{height:66.8px!important;font-family:Georgia,serif!important;font-weight:700!important;letter-spacing:.035em!important}.wheel-row:not(.current){color:#817f77!important;filter:brightness(.78)}.wheel-row.current{color:#20251f!important;background:linear-gradient(180deg,#cbd1c2 0%,#aeba9f 14%,#bfd1b2 50%,#aab99e 86%,#d0d3c5 100%)!important;box-shadow:inset 0 1px rgba(255,255,255,.68),inset 0 -1px rgba(24,31,24,.58),0 1px 0 #151815!important}.wheel-row.current:before,.wheel-row.current:after{background:#6e745f!important;opacity:.35}.wheel-label{color:#c7b274!important;letter-spacing:.24em!important}.wheel-hint{letter-spacing:.08em!important;color:#777a74!important}
.report-head{padding:11px;border:1px solid #5d5541;border-radius:12px;background:linear-gradient(155deg,#1e2220,#0b0d0d);margin-bottom:9px}.report-head span,.report-head b{display:block}.report-head span{font-size:7px;letter-spacing:.16em;color:#9e906b}.report-head b{margin-top:5px;font:700 16px Georgia;color:#e3cf91}.report-head p{font-size:9px;line-height:1.4;color:#aeb2ad}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}.report-grid button{min-height:74px;text-align:left;border:1px solid #514c3e;border-radius:12px;padding:10px;background:linear-gradient(145deg,#202422,#0c0e0e);box-shadow:inset 0 1px rgba(255,255,255,.07),0 4px 8px #000}.report-grid b,.report-grid small{display:block}.report-grid b{font:700 10px Georgia;color:#e4d39d}.report-grid small{margin-top:5px;font-size:7.5px;line-height:1.35;color:#919690}

/* V5.12 — MOLETTE CALIBRÉE AU CENTRE · HORLOGERIE LASER */
.wheel-instrument{height:335px!important;width:97%!important;padding:0 44px!important;align-items:center!important}
.wheel-instrument .wheel{height:335px!important;border-radius:22px!important;border:1px solid #595c55!important;background:
 linear-gradient(90deg,#050606 0%,#151817 3%,#4a4f4c 8%,#222625 13%,#0b0d0c 22%,#060807 50%,#0b0d0c 78%,#222625 87%,#4a4f4c 92%,#151817 97%,#050606 100%)!important;
 box-shadow:inset 28px 0 34px #000,inset -28px 0 34px #000,inset 0 1px 0 rgba(255,255,255,.20),inset 0 -1px 0 #000,0 0 0 1px #090b0a,0 0 0 2px #444841,0 14px 30px rgba(0,0,0,.72)!important}
.wheel-instrument .wheel:before{height:72px!important;background:linear-gradient(#050606 8%,rgba(5,6,6,.88) 25%,transparent)!important}
.wheel-instrument .wheel:after{height:72px!important;background:linear-gradient(transparent,rgba(5,6,6,.88) 75%,#050606 92%)!important}
.wheel-row{height:67px!important;min-height:67px!important;position:relative;z-index:2;font-family:Georgia,'Times New Roman',serif!important;font-size:15px!important;font-weight:700!important;letter-spacing:.055em!important;color:#858781!important;text-shadow:0 1px 1px #000!important;cursor:pointer;user-select:none}
.wheel-row.current{height:67px!important;min-height:67px!important;color:#242a25!important;background:linear-gradient(180deg,#d7dccf 0%,#b7c3ad 8%,#9faf98 46%,#a9b9a2 54%,#bac5b2 92%,#d5d9ce 100%)!important;border-top:1px solid rgba(234,239,228,.48);border-bottom:1px solid rgba(39,47,40,.68);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 -1px 0 rgba(0,0,0,.38),inset 12px 0 20px rgba(37,45,38,.10),inset -12px 0 20px rgba(37,45,38,.10)!important;text-shadow:0 1px rgba(255,255,255,.42)!important}
.wheel-row.current:before,.wheel-row.current:after{content:"";position:absolute;top:50%;width:18px;height:1px;background:#2cf56c!important;opacity:1!important;transform:translateY(-.5px);box-shadow:none!important}
.wheel-row.current:before{left:8px}.wheel-row.current:after{right:8px}
.wheel-laser{position:absolute;top:50%;height:1px;width:26px;background:#2cf56c;transform:translateY(-.5px);z-index:10;pointer-events:none;box-shadow:none}
.wheel-laser.laser-left{left:35px}.wheel-laser.laser-right{right:35px}
.wheel-laser:after{content:"";position:absolute;top:-1px;width:3px;height:3px;border-radius:50%;background:#2cf56c;box-shadow:none}.laser-left:after{right:0}.laser-right:after{left:0}
.wheel-rail{top:2px!important;bottom:2px!important;width:39px!important;border-color:#51544d!important;background:linear-gradient(90deg,#060707,#252927 22%,#4a4e4a 43%,#171a19 62%,#050606)!important;box-shadow:inset 1px 0 rgba(255,255,255,.15),inset -5px 0 9px #000,0 7px 15px #000!important}
.wheel-arrow{color:#e8dfc1!important;font-size:17px!important;text-shadow:0 1px #000!important}.wheel-arrow.left{left:25px!important}.wheel-arrow.right{right:25px!important}
.wheel-label{margin-bottom:12px!important;font-size:8px!important;color:#c9b77f!important;letter-spacing:.28em!important}
.wheel-hint{margin-top:12px!important;font-size:7px!important;letter-spacing:.11em!important;color:#777b75!important}

/* V5.13 — lecture synchronisée du rapport : précision sans halo */
.report-readable{max-height:330px;overflow:auto;white-space:pre-wrap;padding:12px 13px;border:1px solid #4d4a40;border-radius:10px;background:#0c0e0f;color:#e8e8e3;font:12px/1.72 system-ui;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.report-word{border-radius:3px;padding:1px 0;transition:background-color .08s,color .08s,box-shadow .08s;cursor:pointer}
.report-word.reading-now{background:#9fb59a;color:#0a0d0a;box-shadow:inset 0 -1px 0 #74a47a;font-weight:700}
.report-reader-controls button{min-width:78px}

/* V5.14 — PAGE DE GARDE PLEIN ÉCRAN iPhone 16
   Correction ciblée du double mockup : lorsque la couverture est active,
   la couverture devient directement la surface de l'iPhone. */
.phone-shell:has(#cover.active)>.status{display:none!important}
.phone-shell:has(#cover.active)>#cover.screen{inset:0!important;padding:0!important}
.phone-shell:has(#cover.active){background:#000!important}
#cover.active .cover-reference-stage{inset:0!important;background:#000!important}
#cover.active .cover-reference-image{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}
/* Les zones tactiles suivent la composition de la couverture après passage
   de contain à cover (référence 896x1680 vers surface 393x852). */
#cover.active .cover-hotspot-enter{left:20%!important;top:61.2%!important;width:60%!important;height:10.2%!important}
#cover.active .cover-hotspot-international{left:10%!important;top:72.8%!important;width:80%!important;height:7.2%!important}
/* Les autres écrans gardent la barre R-TAGS existante et tous leurs comportements. */

/* V5.15 — COVER / MOCKUP IPHONE 16 : géométrie unique et continue.
   La référence de couverture contient déjà le châssis physique complet.
   Sur la couverture, le shell web ne doit donc jamais dessiner un second cadre.
   L'image est ajustée exactement à la surface 393×852 afin de conserver
   l'intégralité des flancs métalliques du haut au bas, sans crop latéral. */
.phone-shell:has(#cover.active){
  border:0!important;
  box-shadow:none!important;
  background:#000!important;
  border-radius:44px!important;
  overflow:hidden!important;
}
.phone-shell:has(#cover.active)>.status{display:none!important}
.phone-shell:has(#cover.active)>#cover.screen{inset:0!important;padding:0!important}
#cover.active .cover-reference-stage{position:absolute!important;inset:0!important;background:#000!important;overflow:hidden!important}
#cover.active .cover-reference-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  border-radius:0!important;
}
/* Hotspots recalés sur la référence complète, désormais non rognée. */
#cover.active .cover-hotspot-enter{left:22.5%!important;top:61.2%!important;width:55%!important;height:10.2%!important}
#cover.active .cover-hotspot-international{left:11%!important;top:72.8%!important;width:78%!important;height:7.2%!important}

/* V5.15 — COVER / MOCKUP IPHONE 16 : géométrie unique et continue. */
.phone-shell:has(#cover.active){border:0!important;box-shadow:none!important;background:#000!important;border-radius:44px!important;overflow:hidden!important}
.phone-shell:has(#cover.active)>.status{display:none!important}
.phone-shell:has(#cover.active)>#cover.screen{inset:0!important;padding:0!important}
#cover.active .cover-reference-stage{position:absolute!important;inset:0!important;background:#000!important;overflow:hidden!important}
#cover.active .cover-reference-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;object-position:center!important;transform:none!important;border-radius:0!important}
#cover.active .cover-hotspot-enter{left:22.5%!important;top:61.2%!important;width:55%!important;height:10.2%!important}
#cover.active .cover-hotspot-international{left:11%!important;top:72.8%!important;width:78%!important;height:7.2%!important}

/* V5.16 — SUPER SCANNER : recadrage manuel tactile + perspective */
.scan-guide.editing{pointer-events:auto;border:1px solid rgba(137,201,149,.95);background:rgba(137,201,149,.025);box-shadow:none}
.crop-handle,.crop-edge{display:none;position:absolute;z-index:8;margin:0;padding:0;min-height:0!important;background:#111815!important;border:1px solid #8bc99a!important;box-shadow:none!important}
.scan-guide.editing .crop-handle,.scan-guide.editing .crop-edge{display:block}
.crop-handle{width:16px;height:16px;border-radius:50%!important;transform:translate(-50%,-50%)}
.crop-handle.tl{left:0;top:0}.crop-handle.tr{left:100%;top:0}.crop-handle.br{left:100%;top:100%}.crop-handle.bl{left:0;top:100%}
.crop-edge{opacity:.75}.crop-edge.top,.crop-edge.bottom{width:34px;height:8px;left:50%;transform:translateX(-50%)}.crop-edge.left,.crop-edge.right{width:8px;height:34px;top:50%;transform:translateY(-50%)}
.crop-edge.top{top:-4px}.crop-edge.bottom{bottom:-4px}.crop-edge.left{left:-4px}.crop-edge.right{right:-4px}
.scan-guide.perspective .crop-edge{display:none!important}
.crop-actions{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:4px;align-items:center}.crop-actions button{min-height:34px!important}.crop-actions span{font-size:6.5px;letter-spacing:.08em;color:#9fbe9e;padding:0 4px;white-space:nowrap}
.crop-lens{position:absolute;width:82px;height:82px;border-radius:50%;z-index:20;padding:3px;background:#0a0d0b;border:1px solid #8bc99a;box-shadow:0 4px 14px #000;pointer-events:none;overflow:hidden}.crop-lens canvas{width:76px!important;height:76px!important;max-width:none!important;max-height:none!important;transform:none!important;filter:none!important;border-radius:50%}
\n\n/* V5.17 — MOLETTE PREMIUM + LIBELLÉS DOUX + PARTAGE RAPPORT */
/* Le calibrage mécanique reste sur 5 positions strictement symétriques ; seul le texte peut se déplacer. */
.wheel-row{overflow:hidden!important;padding:0 34px!important}
.wheel-row-text{display:inline-block;max-width:100%;white-space:nowrap;will-change:transform}
.wheel-row-text.rtags-marquee-inner{max-width:none}
.wheel-row .rtags-marquee-inner{display:inline-block;white-space:nowrap}
.wheel-row-text.rtags-marquee{overflow:hidden!important;max-width:100%}
.wheel-row-text.rtags-marquee .rtags-marquee-inner{animation:rtagsPrecisionMarquee 8.5s ease-in-out 1.15s infinite alternate!important}
/* Usinage plus fin : relief contenu, aucun halo. */
.wheel-instrument .wheel{box-shadow:inset 28px 0 34px #000,inset -28px 0 34px #000,inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(0,0,0,.9),0 8px 18px rgba(0,0,0,.82)!important}
.wheel-instrument .wheel:before,.wheel-instrument .wheel:after{pointer-events:none}
.wheel-row:not(.current){text-shadow:0 1px 0 #000!important}
.wheel-row.current{letter-spacing:.06em!important}
.wheel-laser,.wheel-row.current:before,.wheel-row.current:after{height:1px!important;box-shadow:none!important}
/* Quatre commandes sur une seule ligne : les deux commandes de gauche sont resserrées. */
.report-reader-controls{display:grid!important;grid-template-columns:1.28fr .72fr .72fr .82fr;gap:5px!important;flex-wrap:nowrap!important;width:100%;align-items:stretch}
.report-reader-controls button{min-width:0!important;width:100%;padding:8px 4px!important;font-size:7.6px!important;white-space:nowrap;overflow:hidden}
.report-reader-controls #speakReport{font-size:7.1px!important}
.report-reader-controls #shareReport{border-color:#756b52;background:linear-gradient(155deg,#22231f,#101211);color:#e1cf99}
@media (prefers-reduced-motion:reduce){.wheel-row-text.rtags-marquee .rtags-marquee-inner{animation:none!important;transform:none!important}}

/* V6 RC2 — IPHONE 16 MOCKUP NATIF + LISIBILITÉ + INSTRUMENT */
html,body{background:#050607!important}
.phone-shell{width:min(393px,100vw)!important;height:min(852px,100dvh)!important;border-radius:46px!important;border:1px solid #626866!important;background:linear-gradient(110deg,#1b1f20,#050607 46%,#222627)!important;box-shadow:0 26px 70px #000,inset 0 0 0 3px #080a0b,inset 0 0 0 5px #353a39!important}
.status{height:38px!important;padding:11px 24px 0!important;font-size:12px!important}
.screen{inset:38px 0 0!important;padding:13px 14px 15px!important}
.main-screen{padding:8px 11px 12px!important}.page-title.compact{padding:5px 0 7px!important}.page-title.compact span{font-size:11px!important}.page-title.compact b{font-size:20px!important}
.transverse{gap:6px!important}.transverse button{height:48px!important;font-size:17px!important}.transverse small{font-size:9px!important;line-height:1.05!important}
.work-display{margin:8px 0!important;padding:9px!important}.module h3{font-size:21px!important}.module p,.module li{font-size:14px!important;line-height:1.48!important}.notice{font-size:13px!important;line-height:1.42!important}.tile b{font-size:14px!important}.tile small{font-size:11px!important}.toolbar button{font-size:11px!important;min-height:38px!important}.editor,textarea,input[type=text]{font-size:16px!important}.badge{font-size:10px!important}.context-mini{font-size:9px!important}.context-mini b{font-size:11px!important}.cap{font-size:16px!important}.cap small{font-size:8px!important}
.wheel-label{font-size:10px!important}.wheel-hint{font-size:9px!important}.wheel-row{font-size:17px!important}.wheel-row.current{font-size:19px!important;font-weight:800!important}.wheel-instrument{width:100%!important;padding:0 39px!important}.wheel-instrument .wheel{border-radius:25px!important;background:linear-gradient(90deg,#030404 0%,#1d2120 4%,#555b58 9%,#252a28 14%,#0b0d0c 24%,#050706 50%,#0b0d0c 76%,#252a28 86%,#555b58 91%,#1d2120 96%,#030404 100%)!important;box-shadow:inset 31px 0 36px #000,inset -31px 0 36px #000,inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px #000,0 10px 22px #000!important}
.wheel-row.current{outline:1px solid rgba(118,160,123,.72);outline-offset:-1px!important}.wheel-row.current:before,.wheel-row.current:after,.wheel-laser{background:#45d66a!important;height:1px!important;box-shadow:none!important}
.report-readable{font-size:16px!important;line-height:1.68!important}.report-reader-controls button{font-size:9px!important}.report-reader-controls #speakReport{font-size:8.5px!important}

/* Couverture V6 : le shell EST le mockup iPhone, aucun iPhone dans l'iPhone. */
.phone-shell:has(#cover.active){border:1px solid #626866!important;box-shadow:0 26px 70px #000,inset 0 0 0 3px #080a0b,inset 0 0 0 5px #353a39!important;background:linear-gradient(110deg,#1b1f20,#050607 46%,#222627)!important;border-radius:46px!important;padding:7px!important}
.phone-shell:has(#cover.active)>#cover.screen{inset:7px!important;padding:0!important;border-radius:39px!important;overflow:hidden!important}
#cover.active .cover-reference-stage.v6-cover{position:absolute!important;inset:0!important;background:radial-gradient(circle at 50% 38%,#1d2320 0,#0b0e0d 34%,#050606 68%,#020303 100%)!important;overflow:hidden!important}
.v6-systembar{height:42px;display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:center;padding:0 17px;color:#e9e9e3;font-size:11px;letter-spacing:.02em}.v6-systembar>span:last-child{text-align:right;font-size:9px}.v6-island{width:104px;height:29px;border-radius:18px;background:#000;margin:auto;box-shadow:inset 0 0 0 1px #151515}
.v6-cover-content{position:absolute;inset:42px 0 0;padding:42px 25px 24px;display:flex;flex-direction:column;align-items:center}.v6-emblem{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font:700 45px Georgia;color:#121513;background:radial-gradient(circle at 34% 27%,#f0e7c9,#c6a95c 32%,#6d5a2d 58%,#1a1b17 77%);border:1px solid #a88d48;box-shadow:0 10px 22px #000,inset 0 1px rgba(255,255,255,.5)}
.v6-brand{text-align:center;margin-top:15px}.v6-brand h1{font:800 38px/1 Georgia;margin:0;letter-spacing:.055em;color:#f0eee6}.v6-brand h2{font:700 24px/1.1 Georgia;margin:8px 0 0;letter-spacing:.19em;color:#c9ad63}.v6-brand p{font-size:11px;letter-spacing:.18em;color:#a9aca6;margin:9px 0 0}
.v6-instrument-window{width:100%;margin-top:35px;padding:20px 16px;border:1px solid #575a50;border-radius:18px;background:linear-gradient(155deg,#171b19,#080a09);box-shadow:inset 0 1px rgba(255,255,255,.08),0 10px 24px #000;text-align:center}.v6-sage-line{height:1px;background:#8ea68c;margin:0 auto 14px;width:74%;box-shadow:none}.v6-instrument-window b{display:block;font-size:13px;letter-spacing:.10em;color:#d9d2bb}.v6-instrument-window span{display:block;margin-top:9px;font-size:12px;line-height:1.4;color:#aeb3ad}
.v6-enter{width:82%;margin-top:31px;min-height:70px;border:1px solid #9c8246;border-radius:17px;background:linear-gradient(#34342e,#141613);color:#eee8d5;box-shadow:inset 0 1px rgba(255,255,255,.18),0 8px 18px #000}.v6-enter b{display:block;font-size:19px;letter-spacing:.13em}.v6-enter small{display:block;margin-top:4px;font-size:10px;letter-spacing:.14em;color:#c7b474}.v6-international{margin-top:14px;border:0;background:none;color:#d0c59f;font-size:12px;letter-spacing:.12em;padding:10px 18px}.v6-cover-foot{margin-top:auto;font-size:8.5px;letter-spacing:.10em;color:#777d78;text-align:center}
#cover.active .cover-hotspot{position:static!important}.cover-reference-image{display:none!important}
@media(max-height:760px){.v6-cover-content{padding-top:24px}.v6-instrument-window{margin-top:22px}.v6-enter{margin-top:22px}.v6-brand h1{font-size:34px}}
/* V6 RC4 — PAGE D'ACCÈS AVANT GARDE + ENREGISTREMENT MULTI-DESTINATIONS */
.access-screen{padding:46px 18px 22px;background:linear-gradient(180deg,#101518 0%,#070a0c 100%);overflow:auto}.access-brand{text-align:center;margin:8px 0 20px}.access-brand .v6-emblem{margin:0 auto 10px}.access-brand h1{font-size:30px;letter-spacing:.08em;margin:0;color:#eee8d8}.access-brand p{font-size:15px;color:#aeb7b3;margin:6px 0}.login-card{border:1px solid #4c5555;border-radius:18px;padding:16px;background:linear-gradient(145deg,#1a2022,#0d1113);box-shadow:inset 0 1px rgba(255,255,255,.05)}.login-card h2{font-size:21px;margin:0 0 14px;color:#eee8d8}.login-card label{display:block;font-size:14px;color:#bdc5c1;margin:10px 0 5px}.login-card input{width:100%;box-sizing:border-box;min-height:48px;border-radius:11px;border:1px solid #596261;background:#080b0c;color:#f3efe2;padding:0 13px;font-size:17px}.login-actions{display:grid;gap:9px;margin-top:14px}.login-actions button{min-height:48px;font-size:16px}.login-links{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}.login-links button,.access-info-links button{border:0;background:none;color:#c8d0cb;text-decoration:underline;font-size:13px;padding:5px}.access-info-links{display:flex;justify-content:center;flex-wrap:wrap;gap:2px 7px;margin:18px 0 4px}.access-security{font-size:12px;line-height:1.45;color:#8f9995;text-align:center;margin-top:10px}.access-modal{position:absolute;inset:48px 12px 16px;z-index:80;background:#0b0f11;border:1px solid #6b746f;border-radius:18px;padding:17px;overflow:auto;box-shadow:0 16px 45px #000}.access-modal h3{font-size:21px;color:#eee8d8}.access-modal p{font-size:15px;line-height:1.55;color:#c8cfcb}.access-modal.hidden{display:none}.save-destinations{display:grid;gap:9px;margin-top:12px}.save-destination{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:9px;padding:11px;border:1px solid #4c5555;border-radius:12px;background:#111719;min-height:48px}.save-destination input{width:20px;height:20px}.save-destination b{font-size:16px;color:#eee8d8}.save-destination small{display:block;font-size:12px;color:#98a39e;margin-top:2px}.save-destination .dest-state{font-size:11px;color:#9ab9a5}.save-destination.unavailable{opacity:.58}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.save-actions button{min-height:46px;font-size:14px}.save-summary{margin-top:10px;font-size:13px;line-height:1.45}

/* V6 RC6 — ACCESS PASSKEY / BIOMETRIE : contraste instrument */
#passkeyBtn{
  min-height:48px;
  border:1px solid #b49444;
  border-radius:16px;
  background:linear-gradient(180deg,#252824 0%,#111412 100%);
  color:#f3ead3 !important;
  font-weight:800;
  letter-spacing:.055em;
  text-shadow:0 1px 0 #000;
  box-shadow:inset 0 1px rgba(255,239,184,.20),0 5px 14px rgba(0,0,0,.45);
  opacity:1 !important;
  -webkit-text-fill-color:#f3ead3;
}
#passkeyBtn:hover,#passkeyBtn:focus-visible{
  border-color:#d0b35d;
  color:#fff4d7 !important;
  outline:none;
}
#passkeyBtn:active{transform:translateY(1px);background:linear-gradient(180deg,#1c1f1c,#0c0f0d)}

/* V6 RC7 — PAGE DE GARDE NETTOYÉE + 6 LANGUES CLIQUABLES */
/* Aucun libellé de développement sur la couverture. La barre système n'existe qu'en tête. */
#cover.active ~ .status,.phone-shell:has(#cover.active)>.status{display:none!important;visibility:hidden!important}
.v6-brand p{display:none!important}
.v6-cover-content{padding:28px 25px 20px!important}
.v6-emblem{width:68px!important;height:68px!important;font-size:42px!important}
.v6-brand{margin-top:12px!important}.v6-brand h1{font-size:37px!important}.v6-brand h2{font-size:23px!important;margin-top:7px!important}
.v6-instrument-window{margin-top:24px!important;padding:15px 14px!important;border-radius:15px!important}
.v6-instrument-window .v6-sage-line{margin-bottom:10px!important;width:68%!important}
.v6-instrument-window b{font-size:12px!important}.v6-instrument-window span{font-size:11px!important;margin-top:7px!important}
.v6-enter{margin-top:20px!important;min-height:61px!important;width:80%!important}
.v6-language-zone{width:100%;margin-top:10px;display:flex;flex-direction:column;align-items:center;gap:6px}
.v6-international{margin:0!important;padding:5px 12px!important;display:flex;align-items:center;justify-content:center;gap:8px;color:#d8cfb0!important}
.v6-international b{font-size:10px;letter-spacing:.13em;font-weight:700}
.v6-globe{width:25px;height:25px;border:1px solid #8b967f;border-radius:50%;display:grid;place-items:center;font:700 18px/1 Georgia;color:#c8d2bd;background:radial-gradient(circle at 35% 30%,#27312b,#111714 64%,#080b09);box-shadow:inset 0 1px rgba(255,255,255,.10);transform:rotate(-14deg)}
.v6-active-languages{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:4px 5px;padding:0 2px}
.v6-active-languages button{min-width:0;height:31px;border:1px solid #343b36;border-radius:8px;background:linear-gradient(#171b18,#0c0f0d);color:#c9cdc5;display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:0 7px;font:600 8px/1 system-ui;letter-spacing:.01em;box-shadow:inset 0 1px rgba(255,255,255,.035)}
.v6-active-languages button:active,.v6-active-languages button[aria-current="true"]{border-color:#8da087;color:#eee8d5;background:linear-gradient(#222a23,#101511)}
.v6-active-languages img{width:16px;height:11px;object-fit:cover;border-radius:1px;box-shadow:0 0 0 .5px rgba(255,255,255,.20)}
.v6-cover-foot{margin-top:auto!important;font-size:7.8px!important}
#cover.active .lang-overlay{inset:45px 12px 12px!important;z-index:90!important}
@media(max-height:760px){.v6-cover-content{padding-top:17px!important}.v6-emblem{width:60px!important;height:60px!important;font-size:38px!important}.v6-brand h1{font-size:32px!important}.v6-instrument-window{margin-top:15px!important;padding:11px!important}.v6-enter{margin-top:13px!important;min-height:54px!important}.v6-active-languages button{height:28px!important}}

/* V6 RC8 — PAGE DE GARDE MATTE 3D — mapping fonctionnel inchangé */
#cover.active .v6-cover-content{position:absolute!important;inset:0!important;display:block!important;padding:0!important;background:#050607!important;overflow:hidden!important}
#cover.active .v6-cover-master-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important;z-index:1!important}
/* La référence visuelle porte toute la matière 3D. Les contrôles existants restent au-dessus, invisibles et tactiles. */
#cover.active .v6-emblem,#cover.active .v6-brand,#cover.active .v6-instrument-window,#cover.active .v6-cover-foot{opacity:0!important;pointer-events:none!important}
#cover.active .v6-systembar{display:none!important}
#cover.active .v6-enter{position:absolute!important;z-index:5!important;left:11%!important;top:68.2%!important;width:78%!important;height:8.4%!important;opacity:0!important;display:block!important;pointer-events:auto!important}
#cover.active .v6-language-zone{position:absolute!important;z-index:5!important;inset:0!important;display:block!important;pointer-events:none!important}
#cover.active .v6-international{position:absolute!important;left:22%!important;top:5.0%!important;width:56%!important;height:5.4%!important;opacity:0!important;pointer-events:auto!important}
#cover.active .v6-active-languages{position:absolute!important;left:7.5%!important;right:7.5%!important;top:78.3%!important;height:9.8%!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;grid-template-rows:repeat(2,1fr)!important;gap:1.1% 2%!important;pointer-events:none!important}
#cover.active .v6-active-languages button{display:block!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:auto!important;border:0!important;background:transparent!important;padding:0!important}
#cover.active .lang-overlay{z-index:20!important;pointer-events:auto!important;opacity:1!important}
#cover.active .lang-overlay.hidden{display:none!important}

/* RC9 — ENREGISTREMENT: sélecteurs propres, sans croix/halo */
.save-destination input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;
  border:1px solid #7b807d;border-radius:5px;background:#0b0f10;
  display:grid;place-items:center;box-shadow:inset 0 1px rgba(255,255,255,.04);
}
.save-destination input[type="checkbox"]::before{
  content:"";width:10px;height:6px;border-left:2px solid #e8e4d8;border-bottom:2px solid #e8e4d8;
  transform:rotate(-45deg) scale(0);transform-origin:center;transition:transform .12s ease;
}
.save-destination input[type="checkbox"]:checked{background:#39483e;border-color:#8fa08f}
.save-destination input[type="checkbox"]:checked::before{transform:rotate(-45deg) scale(1)}
.save-destination input[type="checkbox"]:disabled{opacity:.42;background:#141718;border-color:#555a57}
.save-destination input[type="checkbox"]:disabled::before{content:"—";border:0;width:auto;height:auto;transform:none;color:#777;font-size:14px;line-height:1}
.save-destination .dest-state{white-space:nowrap;font-style:normal;letter-spacing:.03em;color:#9aaa9f}
.save-destination.unavailable .dest-state{color:#7f8782}
.save-actions button{border:1px solid #55574f;border-radius:12px;background:linear-gradient(#202321,#111412);color:#e6e1d4;font-weight:750;letter-spacing:.035em;padding:9px 8px;box-shadow:inset 0 1px rgba(255,255,255,.035)}
.save-actions button.primary{border-color:#8d7943;background:linear-gradient(#2b2922,#171713);color:#eee7d4}

/* CANONGE — isolated module styles */
.canonge-module{display:grid;gap:10px;color:#deded6}.canonge-warning{border:1px solid #6f6b58;background:linear-gradient(180deg,#252725,#171918);padding:8px 10px;border-radius:9px;display:grid;gap:2px}.canonge-warning b{font-size:12px;letter-spacing:.09em;color:#d8caa1}.canonge-warning span{font-size:10px;color:#aaa99f}.canonge-workbench{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:9px;align-items:stretch}.canonge-face-stage{min-height:275px;position:relative;border:1px solid #505452;border-radius:12px;background:radial-gradient(circle at 50% 42%,#3d4240 0,#202321 50%,#111312 100%);overflow:hidden;box-shadow:inset 0 0 0 1px #0a0b0b,inset 0 10px 22px #0008}.canonge-face{width:100%;height:100%;max-height:300px;display:block}.canonge-band-lines{position:absolute;inset:0;pointer-events:none}.canonge-band-lines i{position:absolute;left:8%;right:8%;height:1px;background:#8ca18b66}.canonge-band-lines i:nth-child(1){top:35%}.canonge-band-lines i:nth-child(2){top:51%}.canonge-band-lines i:nth-child(3){top:68%}.canonge-bands{display:grid;gap:6px;align-content:center}.canonge-band{display:grid;grid-template-columns:34px 1fr 34px;gap:5px;align-items:center;border:1px solid #4a4d4a;background:linear-gradient(180deg,#303331,#1c1e1d);border-radius:8px;padding:4px}.canonge-band button{height:35px;border:1px solid #646861;background:#202321;color:#e9e7db;border-radius:6px;font-size:23px}.canonge-band span{display:grid;min-width:0}.canonge-band b{font-size:9px;letter-spacing:.04em;color:#d8d7cd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canonge-band strong{font-size:9px;color:#8ea28e}.canonge-fine{display:grid;grid-template-columns:1fr 1fr;gap:6px}.canonge-fine label{font-size:8px;letter-spacing:.04em;border:1px solid #444744;background:#1c1e1d;padding:6px;border-radius:7px;display:grid;gap:4px}.canonge-fine input{width:100%;accent-color:#8ea28e}.canonge-variants{display:flex;align-items:center;gap:6px}.canonge-variants span{font-size:9px;color:#a6a69e;margin-right:auto}.canonge-variants button{width:34px;height:30px;border-radius:6px;border:1px solid #555a56;background:#222523;color:#ddd}.canonge-variants button.active{background:#778b78;color:#101210;border-color:#9cad9c}.canonge-actions{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:6px}.canonge-actions button{min-height:36px;border:1px solid #555a56;border-radius:7px;background:#232624;color:#ddd;font-size:8px;font-weight:700}.canonge-actions button.primary{border-color:#7f876f;background:linear-gradient(#4a5149,#30362f)}.canonge-actions button:disabled{opacity:.42}.canonge-saved{font-size:9px;color:#999b94}.canonge-history{border-top:1px solid #3c403d;padding-top:5px}.canonge-history summary{font-size:9px;color:#b7b7ae;cursor:pointer}.canonge-history #canongeHistory{display:grid;gap:3px;padding-top:5px}.canonge-history #canongeHistory div{display:flex;justify-content:space-between;font-size:8px;color:#aaa}.canonge-history #canongeHistory span{font-size:8px;color:#777}@media(max-width:520px){.canonge-face-stage{min-height:235px}.canonge-workbench{grid-template-columns:1fr .95fr}.canonge-actions{grid-template-columns:1fr 1fr}.canonge-actions #cgReset{grid-column:1/-1}.canonge-fine{grid-template-columns:1fr 1fr}}

/* V6 CANONGE — VERTICAL BARREL V2 · 2026-09-28
   Visual-only refinement: massive vertical barrel, matte materials, ultra-fine muted accents.
   Functional wheel semantics remain in app.js unchanged. */
.wheel-instrument{
  width:100%!important;height:338px!important;padding:0 45px!important;
  perspective:720px!important;filter:drop-shadow(0 16px 18px rgba(0,0,0,.58))!important;
}
.wheel-instrument .wheel{
  height:338px!important;border-radius:38px!important;overflow:hidden!important;
  border:1px solid #4d504d!important;
  background:
    linear-gradient(90deg,#050606 0%,#111312 3%,#343835 8%,#5a5e59 11%,#292c29 15%,#101210 23%,#080908 50%,#101210 77%,#292c29 85%,#5a5e59 89%,#343835 92%,#111312 97%,#050606 100%)!important;
  box-shadow:
    inset 34px 0 42px rgba(0,0,0,.96),inset -34px 0 42px rgba(0,0,0,.96),
    inset 0 2px 0 rgba(255,255,255,.09),inset 0 -2px 0 rgba(0,0,0,.95),
    0 0 0 1px #171918,0 12px 22px rgba(0,0,0,.72)!important;
  transform:rotateX(.01deg); /* force stable 3D compositing */
}
.wheel-instrument .wheel:before{height:88px!important;background:linear-gradient(#030403 7%,rgba(4,5,4,.94) 28%,rgba(5,6,5,.52) 67%,transparent)!important}
.wheel-instrument .wheel:after{height:88px!important;background:linear-gradient(transparent,rgba(5,6,5,.52) 33%,rgba(4,5,4,.94) 72%,#030403 93%)!important}
.wheel-rail{width:40px!important;border-color:#444743!important;background:linear-gradient(90deg,#060706,#1c1f1d 24%,#414541 46%,#181a18 65%,#050605)!important;box-shadow:inset 1px 0 rgba(255,255,255,.08),inset -5px 0 10px #000,0 7px 15px rgba(0,0,0,.78)!important}
.wheel-rail:before,.wheel-rail:after,.wheel-rail i{border-color:#565851!important;background:radial-gradient(circle at 34% 28%,#777970 0 6%,#353732 16%,#101110 58%,#040504 100%)!important;box-shadow:inset 0 0 0 1px #000!important}
.wheel-row{
  height:67.6px!important;min-height:67.6px!important;font-family:Georgia,'Times New Roman',serif!important;
  font-size:17px!important;font-weight:700!important;letter-spacing:.055em!important;color:#777a75!important;
  text-shadow:0 1px 1px #000!important;transform-origin:50% 50%!important;
  animation:rtagsBarrelSettle .22s cubic-bezier(.16,.72,.24,1) both;
}
.wheel-row:nth-child(1),.wheel-row:nth-child(5){transform:perspective(340px) rotateX(17deg) scale(.94);filter:brightness(.56)}
.wheel-row:nth-child(2),.wheel-row:nth-child(4){transform:perspective(340px) rotateX(8deg) scale(.975);filter:brightness(.76)}
.wheel-row.current{
  transform:perspective(340px) rotateX(0) scale(1)!important;filter:none!important;font-size:19px!important;font-weight:800!important;
  color:#333832!important;background:linear-gradient(180deg,#aeb5aa 0%,#929b8f 9%,#849080 49%,#8d9889 55%,#9da699 91%,#b2b8ae 100%)!important;
  border-top:1px solid rgba(226,230,222,.22)!important;border-bottom:1px solid rgba(26,31,27,.78)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.24),inset 0 -1px rgba(0,0,0,.45),inset 16px 0 24px rgba(25,30,26,.14),inset -16px 0 24px rgba(25,30,26,.14)!important;
  text-shadow:0 1px rgba(255,255,255,.20)!important;
}
/* ultra-fine matte centering marks: no glow, no vivid neon */
.wheel-laser,.wheel-row.current:before,.wheel-row.current:after{height:1px!important;background:#7d8979!important;opacity:.62!important;box-shadow:none!important}
.wheel-laser{width:22px!important}.wheel-laser:after{width:2px!important;height:2px!important;background:#7d8979!important;box-shadow:none!important;opacity:.72!important}
.wheel-arrow{color:#c7c3b3!important;font-size:15px!important;text-shadow:none!important;opacity:.82!important}
.wheel-label{color:#a8a18b!important;font-size:10px!important;letter-spacing:.25em!important}.wheel-hint{color:#777a75!important;font-size:9px!important}
@keyframes rtagsBarrelSettle{0%{opacity:.72;translate:0 3px}58%{opacity:1;translate:0 -1px}100%{opacity:1;translate:0 0}}
@media (prefers-reduced-motion:reduce){.wheel-row{animation:none!important}}

/* R-TAGS V6 — COMPTEUR MULTITÂCHE V1 · module transversal */
.counter-module{display:grid;gap:10px;color:#d9d9d2}.counter-chain{font-size:8px;letter-spacing:.055em;color:#9b9d96;border:1px solid #40433f;background:#171918;padding:7px 8px;border-radius:8px;text-align:center;white-space:normal}.counter-chain i{font-style:normal;color:#777f75;margin:0 2px}.counter-report{display:grid;grid-template-columns:1fr auto;gap:3px 8px;border:1px solid #4a4d49;background:linear-gradient(180deg,#262927,#171918);padding:9px;border-radius:10px;box-shadow:inset 0 1px rgba(255,255,255,.035)}.counter-report b{grid-column:1/-1;font-size:10px;letter-spacing:.08em;color:#d7d4c8}.counter-report span{font-size:9px;color:#999d96}.counter-report strong{grid-column:1/-1;font-size:16px;color:#aeb8aa;margin-top:3px}.counter-toolbar{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.counter-toolbar button,.counter-footer button{border:1px solid #4e514c;background:linear-gradient(#252825,#151715);color:#d9d7cd;border-radius:8px;min-height:34px;font-size:8px;font-weight:750;letter-spacing:.035em}.counter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.counter-card{border:1px solid #484b47;background:linear-gradient(145deg,#2a2d2a,#141614 62%,#202320);border-radius:12px;padding:8px;box-shadow:inset 0 1px rgba(255,255,255,.04),0 7px 12px #0005}.counter-card.active{border-color:#6f796c}.counter-card-head{display:grid;grid-template-columns:1fr auto;gap:4px}.counter-name,.counter-pause,.counter-enrich{border:0;background:transparent;color:#b8b8af;text-align:left;font-size:8px;font-weight:800;letter-spacing:.04em}.counter-pause{color:#8e958c;text-align:right}.counter-value{text-align:center;font:700 44px/1.05 Georgia,'Times New Roman',serif;color:#e3e1d6;padding:8px 0 5px;text-shadow:0 2px #000}.counter-step{display:grid;grid-template-columns:1fr 1fr;gap:6px}.counter-step button{height:48px;border:1px solid #555a54;border-radius:9px;background:linear-gradient(#30332f,#171917);color:#d8d6ca;font:700 27px/1 Georgia,serif;box-shadow:inset 0 1px rgba(255,255,255,.05),0 3px 7px #0007}.counter-step .counter-plus{background:linear-gradient(#4a5148,#2c322c);border-color:#667061}.counter-enrich{width:100%;text-align:center;border-top:1px solid #373a36;margin-top:7px;padding-top:7px;color:#969b93}.counter-history{border:1px solid #3e413d;background:#141614;border-radius:10px;padding:8px}.counter-history h4{margin:0 0 6px;font-size:9px;letter-spacing:.12em;color:#a8a99f}.counter-event{display:grid;grid-template-columns:1fr auto auto;gap:7px;border-top:1px solid #292c29;padding:5px 1px;font-size:8px;color:#949891}.counter-event b{color:#b9bab2}.counter-event time{color:#6f746e}.counter-empty{font-size:9px;color:#777}.counter-footer{display:grid}.counter-footer button{border-color:#6c6755;color:#d8d1bb}.counter-text-report{white-space:pre-wrap;font-size:11px;line-height:1.5;color:#d7d5ca;background:#121412;border:1px solid #41443f;border-radius:9px;padding:10px}@media(max-width:520px){.counter-toolbar{grid-template-columns:1fr 1fr}.counter-grid{grid-template-columns:1fr 1fr}.counter-value{font-size:38px}.counter-step button{height:44px}}


/* R-TAGS V6 — MULTI-ZOOM ITÉRATIF V1 */
.mz-module{display:grid;gap:9px}.mz-chain{font-size:8px;letter-spacing:.04em;text-align:center;color:#989b94;border:1px solid #414440;background:#151715;border-radius:8px;padding:7px}.mz-chain i{font-style:normal;color:#777f75}.mz-chain b{color:#b8b5a8}.mz-stage{position:relative;min-height:260px;max-height:420px;display:grid;place-items:center;overflow:hidden;border:1px solid #4b4e49;border-radius:12px;background:#090a09;box-shadow:inset 0 0 0 1px #050605,inset 0 12px 24px #0008}.mz-stage canvas{display:block;max-width:100%;max-height:410px;object-fit:contain;touch-action:none}.mz-selection{display:none;position:absolute;border:1px solid #a6a895;background:#a6a89510;box-shadow:inset 0 0 0 1px #0008;pointer-events:none}.mz-selection:before,.mz-selection:after{content:"";position:absolute;background:#b0ae9c}.mz-selection:before{left:50%;top:-4px;width:1px;height:8px}.mz-selection:after{top:50%;left:-4px;width:8px;height:1px}.mz-status{display:flex;justify-content:space-between;gap:8px;border:1px solid #3f423e;background:#181a18;border-radius:8px;padding:7px 9px;font-size:8px}.mz-status b{color:#c7c4b7}.mz-status span{color:#858a83;text-align:right}.mz-controls{display:grid;grid-template-columns:.7fr .7fr 1.4fr 1.4fr;gap:6px}.mz-controls button{min-height:40px;border:1px solid #4c504b;border-radius:8px;background:linear-gradient(#292c29,#151715);color:#d3d0c4;font-size:8px;font-weight:800;letter-spacing:.04em}.mz-controls .mz-special{border-color:#686d63;background:linear-gradient(180deg,#3b3f3a,#20231f);box-shadow:inset 0 1px rgba(255,255,255,.05),0 3px 8px #0007}.mz-controls #mzAnalyze{border-color:#6a6557;color:#d8d1bd}.mz-help{font-size:8px;line-height:1.4;color:#7f837d}.mz-results{display:grid;gap:6px}.mz-results textarea{width:100%;box-sizing:border-box;background:#111311;color:#d7d4c8;border:1px solid #454842;border-radius:8px;padding:8px;font-size:10px}.mz-result-head{display:grid;gap:3px;border:1px solid #55594f;background:#1b1e1b;border-radius:8px;padding:8px}.mz-result-head b{font-size:10px;color:#c9c6b8}.mz-result-head span{font-size:8px;color:#858a82}.mz-zone-list{display:grid;gap:3px}.mz-zone-list div{display:grid;grid-template-columns:90px 44px 1fr;gap:6px;align-items:center;border-top:1px solid #30332f;padding:4px;font-size:8px}.mz-zone-list b{color:#aaa99f}.mz-zone-list span{color:#777d75}.mz-zone-list code{color:#d6d3c7;white-space:normal}@media(max-width:520px){.mz-controls{grid-template-columns:1fr 1fr}.mz-stage{min-height:230px}.mz-zone-list div{grid-template-columns:80px 38px 1fr}}

/* MULTI-ZOOM V2 — actions finales toujours optionnelles */
.mz-post-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:3px}.mz-post-actions button{min-height:38px;border:1px solid #4b4e49;border-radius:8px;background:linear-gradient(#282b28,#151715);color:#d2d0c5;font-size:8px;font-weight:800;letter-spacing:.035em}.mz-post-actions #mzSaveContext{border-color:#62695f;color:#d6d8cf}.mz-post-actions #mzShareResult{border-color:#625f55;color:#d8d1bd}.mz-post-actions #mzFinishNoSave{grid-column:1/-1;color:#999c95;background:#141614}.mz-action-state{border:1px solid #373a36;border-radius:7px;background:#111311;padding:7px 8px;font-size:8px;line-height:1.4;color:#858a82}@media(max-width:520px){.mz-post-actions{grid-template-columns:1fr}.mz-post-actions #mzFinishNoSave{grid-column:auto}}

/* A03 — ENREGISTREMENT : toute la carte est sélectionnable, état explicite */
.save-destination:not(.unavailable){cursor:pointer}
.save-destination.selected{border-color:#8fa08f;background:#172019;box-shadow:inset 0 0 0 1px rgba(143,160,143,.16)}
.save-destination.selected .dest-state{color:#c7d5c6}
.save-destination input[type="checkbox"]{pointer-events:auto;flex:none}

/* A02 — ARTISAN PLOMBIER · SUBLIMATION MATÉRIELLE NON-RÉGRESSIVE */
:root{--artisan-ivory:#ddd7c8;--artisan-sage:#8e9b89;--artisan-brass:#8b7958;--artisan-graphite:#101313;--artisan-steel:#353a39}
.phone-shell{background:linear-gradient(145deg,#2b2e2d 0,#111414 18%,#080a0a 58%,#202423 100%);border-color:#555955;box-shadow:0 28px 70px #000,inset 0 0 0 3px #090b0b,inset 0 0 0 5px #373b39}
.phone-shell:before{content:"";position:absolute;inset:4px;border-radius:39px;pointer-events:none;z-index:90;border:1px solid rgba(221,215,200,.11)}
.v6-cover-master-image{filter:grayscale(.82) sepia(.08) brightness(.34) contrast(1.08);opacity:.38}
.v6-brand h2{font-size:16px!important;letter-spacing:.12em!important;color:#d7d2c4!important;text-shadow:none!important}.v6-brand h1{color:#e2ddd0!important;text-shadow:none!important}
.v6-instrument-window,.login-card,.auth-card,.display-frame{border-color:#55574f!important;background:linear-gradient(155deg,rgba(43,47,45,.96),rgba(9,12,12,.98))!important;box-shadow:inset 0 1px rgba(255,255,255,.06),inset 0 -12px 24px rgba(0,0,0,.22)!important}
.v6-enter,.primary{border-color:#74694f!important;background:linear-gradient(#343632,#171a18)!important;color:#e1dccf!important;box-shadow:inset 0 1px rgba(255,255,255,.08)!important}
.wheel-instrument{border-color:#68675c!important;background:linear-gradient(90deg,#1c201f,#343836 12%,#111414 32%,#292d2b 50%,#111414 68%,#343836 88%,#1c201f)!important;box-shadow:inset 0 1px rgba(255,255,255,.08),inset 0 -2px 8px #000!important}
.wheel-row.current{background:linear-gradient(90deg,rgba(116,128,111,.14),rgba(142,155,137,.28),rgba(116,128,111,.14))!important;color:#e4e0d5!important;text-shadow:none!important}.wheel-laser{background:#9c9176!important;box-shadow:none!important;opacity:.5!important}
.ctx-led.ok,.ctx-led.wait,.memory-dot{box-shadow:none!important}.ctx-led.ok{background:#788576!important}.ctx-led.wait{background:#9b8658!important}
.trade-engraving{font-size:7px;letter-spacing:.16em;color:#a79d85;text-align:center;border-bottom:1px solid #4d4e47;padding:0 0 7px;margin-bottom:9px}.artisan-tool,.ria-tool-suggest{height:100%;overflow:auto;padding:4px}.artisan-tool label{display:block;font-size:7px;letter-spacing:.08em;color:#bdb8aa;margin:7px 0}.artisan-tool input,.artisan-tool select{width:100%;margin-top:4px;border:1px solid #55574f;border-radius:8px;background:#0c0f0f;color:#e0ddd4;padding:9px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tool-grid label:last-child:nth-child(odd){grid-column:1/-1}.artisan-tool button,.ria-tool-suggest button{border:1px solid #666354;border-radius:9px;background:linear-gradient(#2d302e,#151817);color:#ddd8ca;padding:9px;font-size:8px;font-weight:800}.tool-primary{background:linear-gradient(#596158,#303630)!important;border-color:#7c8275!important}.tool-result{margin:10px 0;padding:13px;border:1px solid #67675c;border-radius:10px;background:#0d1010;text-align:center;font:700 17px Georgia;color:#ddd8ca}.tool-note{margin-top:9px;padding:7px;border-left:2px solid #82775b;color:#aaa697;font-size:7px;line-height:1.4}.suggest-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:12px}.ria-tool-suggest h4{font:700 18px Georgia;color:#ddd8ca;margin:14px 0 6px}.ria-tool-suggest p{font-size:9px;color:#b5b2a8;line-height:1.45}
.page-title b,.page-title span{color:#d8d2c3!important;text-shadow:none!important}.transverse button{border-color:#4f514b!important;background:linear-gradient(#292d2b,#101313)!important}.transverse button small{color:#c8c2b3!important}
/* A02 verrou visuel absolu : aucune émission lumineuse / aucun halo */
.led,.micro-led,.memory-dot,.ctx-led,.finger,.rmark,.wheel-laser,.language-wheel-row img,.lang-flag,.v6-active-languages img{box-shadow:none!important;text-shadow:none!important;filter:none!important}
.led.green{background:#738272!important}.led.blue{background:#596675!important}.led{background:#8b7656!important}.cap.red{color:#b96c64!important}.error{color:#c9827c!important}.v6-cover-master-image{opacity:.08!important;filter:grayscale(1) contrast(.85) brightness(.35)!important}

/* A02.1 — badgeage toujours parcourable sur iPhone 16 */
#auth.screen{overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:24px}
#auth .auth-card{margin-top:18px}
#continueBtn{flex:0 0 auto;margin-top:14px;min-height:52px;position:sticky;bottom:0;z-index:8}
#continueBtn:disabled{opacity:.58;cursor:wait}

/* A02.2 — CORRECTIF TRANSITION INTERNATIONAL → COUVERTURE
   On conserve le moteur et les hotspots V6, mais la scène après INTERNATIONAL
   ne peut jamais devenir noire/invisible. Aucun halo, aucune couleur vive. */
#cover.active .v6-cover-content{
  background:linear-gradient(180deg,#181b1a 0%,#0c0f0e 42%,#080a09 100%)!important;
}
#cover.active .v6-cover-master-image{
  opacity:.16!important;
  filter:grayscale(1) sepia(.06) contrast(.9) brightness(.48)!important;
}
#cover.active .v6-brand{
  opacity:1!important;pointer-events:none!important;z-index:4!important;
  position:absolute!important;left:8%!important;right:8%!important;top:20%!important;
  text-align:center!important;
}
#cover.active .v6-brand h1{font-size:32px!important;letter-spacing:.12em!important;color:#e1ddd2!important;margin:0!important}
#cover.active .v6-brand h2{font-size:13px!important;letter-spacing:.18em!important;color:#a9aa9f!important;margin-top:8px!important}
#cover.active .v6-enter{
  opacity:1!important;pointer-events:auto!important;
  background:linear-gradient(180deg,#343735,#1a1d1b)!important;
  border:1px solid #69695f!important;color:#e3dfd3!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 4px 10px rgba(0,0,0,.38)!important;
  border-radius:12px!important;
}
#cover.active .v6-enter b{color:#e3dfd3!important;text-shadow:none!important}
#cover.active .v6-enter small{color:#aaa79b!important;text-shadow:none!important}
#cover.active .v6-cover-foot{
  opacity:1!important;pointer-events:none!important;z-index:4!important;
  color:#85877f!important;text-shadow:none!important;
}

/* A02.3 — FAÇADE PREMIUM ARTISAN · PLOMBIER — aucune dépendance visuelle DÉTECTIVE */
#cover.active .v6-cover-content{
  position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;padding:58px 24px 22px!important;overflow:hidden!important;
  background:
    linear-gradient(115deg,rgba(255,255,255,.025),transparent 20%,rgba(255,255,255,.018) 42%,transparent 64%),
    linear-gradient(180deg,#242826 0%,#151918 16%,#0c0f0e 54%,#171a18 100%)!important;
}
#cover.active .v6-cover-content:before{
  content:"";position:absolute;inset:14px;border:1px solid #50544f;border-radius:28px;pointer-events:none;
  box-shadow:inset 0 1px rgba(255,255,255,.06),inset 0 -1px #050606;
}
#cover.active .v6-cover-content:after{
  content:"PLOMBIER  ·  EAU  ·  PRESSION  ·  ÉTANCHÉITÉ";position:absolute;left:12%;right:12%;bottom:31px;
  padding-top:9px;border-top:1px solid #454941;color:#928d7e;text-align:center;font:600 7px/1.2 system-ui;
  letter-spacing:.17em;pointer-events:none;
}
#cover.active .v6-cover-master-image{display:none!important;opacity:0!important}
#cover.active .v6-emblem{display:grid!important;opacity:1!important;pointer-events:none!important;z-index:3!important;
  position:relative!important;flex:0 0 auto!important;width:76px!important;height:76px!important;margin:8px 0 0!important;
  border:1px solid #77705e!important;color:#ddd7c8!important;background:
  radial-gradient(circle at 34% 28%,#454943 0,#272b28 34%,#121514 66%,#080a09 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.10),inset 0 -8px 16px rgba(0,0,0,.34),0 8px 18px rgba(0,0,0,.35)!important;
  text-shadow:none!important}
#cover.active .v6-brand{display:block!important;opacity:1!important;pointer-events:none!important;z-index:3!important;
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;margin:14px 0 0!important;text-align:center!important}
#cover.active .v6-brand h1{font:800 34px/1 Georgia,serif!important;letter-spacing:.10em!important;color:#e4e0d6!important;margin:0!important;text-shadow:none!important}
#cover.active .v6-brand h2{font:700 15px/1.15 Georgia,serif!important;letter-spacing:.20em!important;color:#b6b09f!important;margin:9px 0 0!important;text-shadow:none!important}
#cover.active .v6-instrument-window{display:block!important;opacity:1!important;pointer-events:none!important;z-index:3!important;
  position:relative!important;width:92%!important;margin:27px 0 0!important;padding:17px 14px!important;border-radius:14px!important;
  border:1px solid #555950!important;background:linear-gradient(180deg,#242825,#111412)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.055),inset 0 -10px 18px rgba(0,0,0,.24),0 7px 16px rgba(0,0,0,.24)!important}
#cover.active .v6-instrument-window .v6-sage-line{display:block!important;width:64%!important;height:1px!important;margin:0 auto 11px!important;background:#7e8a79!important;box-shadow:none!important}
#cover.active .v6-instrument-window b{font-size:11px!important;letter-spacing:.13em!important;color:#d4cdbd!important}
#cover.active .v6-instrument-window span{font-size:9px!important;letter-spacing:.03em!important;color:#989c94!important;margin-top:7px!important}
#cover.active .v6-enter{position:relative!important;z-index:5!important;left:auto!important;top:auto!important;width:82%!important;height:auto!important;
  min-height:62px!important;margin:25px 0 0!important;opacity:1!important;display:block!important;pointer-events:auto!important;
  border:1px solid #6d6b5e!important;border-radius:13px!important;background:linear-gradient(180deg,#373a36,#1a1d1a)!important;
  color:#e4dfd2!important;box-shadow:inset 0 1px rgba(255,255,255,.08),inset 0 -8px 14px rgba(0,0,0,.20),0 6px 13px rgba(0,0,0,.26)!important}
#cover.active .v6-enter:active{transform:translateY(1px);background:linear-gradient(180deg,#30332f,#171a18)!important}
#cover.active .v6-enter b{font-size:17px!important;letter-spacing:.15em!important;color:#e5e0d4!important}
#cover.active .v6-enter small{font-size:8px!important;letter-spacing:.16em!important;color:#aaa392!important}
#cover.active .v6-language-zone{position:relative!important;z-index:5!important;inset:auto!important;width:88%!important;margin:11px 0 0!important;display:block!important;pointer-events:auto!important}
#cover.active .v6-international{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:40px!important;opacity:1!important;pointer-events:auto!important;
  margin:0!important;border:1px solid #484c46!important;border-radius:10px!important;background:linear-gradient(#202421,#111411)!important;
  color:#c8c2b3!important;font-size:9px!important;letter-spacing:.14em!important;box-shadow:inset 0 1px rgba(255,255,255,.04)!important}
#cover.active .v6-globe{color:#9aa493!important;margin-right:6px}
#cover.active .v6-active-languages{position:relative!important;left:auto!important;right:auto!important;top:auto!important;height:auto!important;width:100%!important;
  margin-top:6px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;grid-template-rows:repeat(2,30px)!important;gap:5px!important;pointer-events:auto!important}
#cover.active .v6-active-languages button{display:flex!important;width:100%!important;height:30px!important;opacity:1!important;pointer-events:auto!important;
  align-items:center!important;gap:5px!important;padding:0 7px!important;border:1px solid #3f433e!important;border-radius:7px!important;
  background:linear-gradient(#1b1f1c,#0f1210)!important;color:#aaa99f!important;font-size:7px!important}
#cover.active .v6-active-languages button[aria-current="true"]{border-color:#6e796a!important;background:linear-gradient(#272d27,#151a15)!important;color:#ddd8ca!important}
#cover.active .v6-active-languages img{display:block!important;width:15px!important;height:10px!important;opacity:.86!important;filter:saturate(.65) contrast(.95)!important;box-shadow:none!important}
#cover.active .v6-cover-foot{display:block!important;opacity:1!important;pointer-events:none!important;z-index:3!important;position:relative!important;
  margin-top:auto!important;padding-bottom:33px!important;color:#73766f!important;font-size:6.5px!important;letter-spacing:.11em!important;text-shadow:none!important}
/* INTERNATIONAL = panneau physique solide intégré, jamais un voile noir sur la façade */
#cover.active .lang-overlay{position:absolute!important;left:18px!important;right:18px!important;top:76px!important;bottom:25px!important;inset:auto 18px 25px!important;
  z-index:100!important;opacity:1!important;pointer-events:auto!important;padding:15px!important;border:1px solid #626459!important;border-radius:19px!important;
  background:linear-gradient(165deg,#292d2a 0%,#151917 34%,#0d100f 100%)!important;backdrop-filter:none!important;
  box-shadow:inset 0 1px rgba(255,255,255,.07),inset 0 -18px 30px rgba(0,0,0,.25),0 14px 32px rgba(0,0,0,.46)!important}
#cover.active .lang-title{color:#ded8c9!important;text-shadow:none!important;font-size:17px!important}
#cover.active .lang-overlay .overlay-close{border-color:#626256!important;background:linear-gradient(#30332f,#181b18)!important;color:#ddd8ca!important;box-shadow:none!important}
#cover.active .lang-overlay.hidden{display:none!important}
@media(max-height:760px){
 #cover.active .v6-cover-content{padding-top:48px!important}
 #cover.active .v6-emblem{width:62px!important;height:62px!important;font-size:37px!important;margin-top:0!important}
 #cover.active .v6-brand{margin-top:9px!important}#cover.active .v6-brand h1{font-size:29px!important}#cover.active .v6-brand h2{font-size:12px!important;margin-top:6px!important}
 #cover.active .v6-instrument-window{margin-top:16px!important;padding:12px!important}#cover.active .v6-enter{margin-top:15px!important;min-height:52px!important}
 #cover.active .v6-language-zone{margin-top:7px!important}#cover.active .v6-active-languages{display:none!important}
 #cover.active .v6-cover-foot{padding-bottom:27px!important}
}

/* A02.4 — ouverture premium : la façade est toujours la première scène. */
.v6-more-languages{margin-top:8px;width:100%;min-height:32px;border:1px solid #55584f;border-radius:11px;background:linear-gradient(180deg,#252925,#171a18);color:#d8cfba;font-size:9px;font-weight:700;letter-spacing:.12em;box-shadow:inset 0 1px rgba(255,255,255,.05);}
.v6-multi-hint{margin-top:5px;color:#8f9288;font-size:8px;letter-spacing:.04em;text-align:center;}
.multi-language-btn{width:100%;min-height:38px;border:1px solid #626256;border-radius:10px;background:linear-gradient(#292c29,#171a18);color:#ddd8ca;font-size:9px;font-weight:700;letter-spacing:.1em;}
.multi-language-btn[aria-pressed="true"]{background:linear-gradient(#333830,#1c211d);border-color:#74786b;}
.multi-language-state{padding:7px 9px;border:1px solid #3f433d;border-radius:9px;background:#111411;color:#aaa99f;font-size:8px;line-height:1.35;}


/* A02.8 — INTERNATIONAL : calibration exacte + 6 langues actives réellement lisibles */
#phone>#langOverlay{grid-template-rows:auto auto auto auto auto clamp(220px,32vh,300px) auto auto!important;overflow-y:auto!important}
.language-wheel{height:100%!important;min-height:220px!important;max-height:300px!important;padding:0 8px!important;scroll-padding-block:0!important;background:
 linear-gradient(to bottom,transparent calc(50% - 24px),rgba(192,164,91,.30) calc(50% - 24px),rgba(112,127,108,.16) calc(50% - 23px),rgba(179,190,169,.18) calc(50% + 23px),rgba(192,164,91,.30) calc(50% + 24px),transparent calc(50% + 24px)),
 linear-gradient(90deg,#080a0a,#191d1b 12%,#0b0e0d 50%,#191d1b 88%,#080a0a)!important}
.language-wheel:before{content:none!important;display:none!important}
.language-wheel-row{scroll-snap-align:center!important;scroll-snap-stop:always!important}
#langGridActive [data-lang].selected-primary{border-color:#9c8650!important;background:linear-gradient(180deg,#252821,#121513)!important;box-shadow:inset 0 0 0 1px rgba(220,198,128,.13)!important}
#langGridActive [data-lang].selected-primary .lang-code{color:#e0ca83!important}


/* R-TAGS A02.13 — TYPOGRAPHIE NON COMPRESSÉE / DÉFILEMENT DOUX */
.rtags-marquee-viewport{
  overflow:hidden !important;
  white-space:nowrap !important;
  min-width:0;
}
.rtags-marquee-track{
  display:inline-block;
  white-space:nowrap;
  font-size:inherit !important;
  font-weight:inherit !important;
  font-stretch:normal !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
  will-change:transform;
}
.rtags-marquee-track.is-overflowing{
  animation:rtagsGentleMarquee var(--rtags-marquee-duration,10s) ease-in-out 1s infinite alternate;
}
@keyframes rtagsGentleMarquee{
  0%,12%{transform:translateX(0)}
  88%,100%{transform:translateX(var(--rtags-marquee-shift,0px))}
}
@media (prefers-reduced-motion: reduce){
  .rtags-marquee-track.is-overflowing{animation:none !important}
}
/* A02.15 — CARNET DE NOTE AUGMENTÉ / aucun rétrécissement typographique */
.augmented-notebook{display:flex;flex-direction:column;gap:10px;min-height:100%;}
.notebook-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid rgba(218,198,148,.32);padding-bottom:8px}.notebook-head b{font-size:15px;letter-spacing:.08em}.notebook-head small{display:block;margin-top:4px;opacity:.72}.notebook-status{font-size:10px;white-space:nowrap;border:1px solid rgba(218,198,148,.35);padding:5px 7px;border-radius:8px}
.notebook-title,.notebook-page,.notebook-meta input,.notebook-meta select{font:inherit!important;font-size:inherit!important;letter-spacing:inherit!important}.notebook-title{font-weight:700!important;font-size:17px!important}.notebook-page{min-height:260px;line-height:1.55;resize:vertical;background:linear-gradient(rgba(255,255,255,.025),rgba(255,255,255,.012));}
.notebook-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.notebook-tools button{min-width:0;overflow:hidden;white-space:nowrap;font-size:11px}.notebook-meta{display:grid;grid-template-columns:1fr auto;gap:8px}.notebook-save{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.notebook-save button{min-width:0}


/* A02.17 — PAGE 1 CANONIQUE R-TAGS « EVIDENCES »
   Référence utilisateur intégrée sans modifier ses proportions ni sa typographie. */
#cover.active .v6-cover-content{
  padding:34px 24px 22px!important;
  background:
    radial-gradient(circle at 50% 19%,rgba(118,100,55,.10),transparent 27%),
    linear-gradient(180deg,#24231d 0%,#171812 31%,#0a0d0b 70%,#050706 100%)!important;
}
#cover.active .v6-cover-content:before{
  inset:10px!important;
  border-color:#5a584b!important;
  border-radius:30px!important;
}
#cover.active .v6-cover-content:after{
  content:""!important;
  left:18%!important;right:18%!important;bottom:31px!important;
  border-top:1px solid #5a5545!important;
}
#cover.active .genesis-evidences-identity{
  position:relative!important;
  z-index:4!important;
  width:88%!important;
  height:238px!important;
  margin:2px auto 0!important;
  overflow:hidden!important;
  flex:0 0 238px!important;
  background:#24231d!important;
  border-radius:3px!important;
}
#cover.active .genesis-evidences-identity img{
  position:absolute!important;
  display:block!important;
  width:112%!important;
  height:auto!important;
  left:-12%!important;
  top:-2px!important;
  max-width:none!important;
  filter:none!important;
}
#cover.active .v6-emblem,
#cover.active .v6-brand{
  display:none!important;
  opacity:0!important;
}
#cover.active .v6-instrument-window{
  width:82%!important;
  margin:14px 0 0!important;
  padding:12px 14px!important;
  border-color:#565346!important;
  background:linear-gradient(180deg,#25251f,#141713)!important;
}
#cover.active .v6-instrument-window .v6-sage-line{
  width:62%!important;
  background:#77715c!important;
}
#cover.active .v6-instrument-window b{
  color:#e5d4ae!important;
}
#cover.active .v6-instrument-window span{
  color:#9d9a8c!important;
}
#cover.active .v6-enter{
  width:78%!important;
  min-height:58px!important;
  margin-top:17px!important;
  border-color:#71664d!important;
  background:linear-gradient(180deg,#35352d,#181b17)!important;
}
#cover.active .v6-enter b{
  color:#f0dbb2!important;
}
#cover.active .v6-enter small{
  color:#aaa28d!important;
}
#cover.active .v6-language-zone{
  width:86%!important;
  margin-top:9px!important;
}
#cover.active .v6-international{
  border-color:#514d40!important;
  color:#d4c39e!important;
}
#cover.active .v6-cover-foot{
  color:#827c6a!important;
  letter-spacing:.16em!important;
  padding-bottom:28px!important;
}
@media(max-height:760px){
  #cover.active .genesis-evidences-identity{height:190px!important;flex-basis:190px!important;width:84%!important}
  #cover.active .v6-instrument-window{margin-top:9px!important;padding:9px 12px!important}
  #cover.active .v6-enter{margin-top:10px!important;min-height:49px!important}
}


/* A02.18 — CORRECTION PAGE 1
   Aucun screenshot encadré dans l'instrument :
   identité R-TAGS fusionnée directement au fond, sans blanc ni seconde bordure. */
#cover.active .genesis-evidences-identity{
  position:relative!important;
  z-index:4!important;
  width:76%!important;
  height:225px!important;
  flex:0 0 225px!important;
  margin:10px auto 0!important;
  overflow:hidden!important;
  background:#1e1e17!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
}
#cover.active .genesis-evidences-identity img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  filter:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
@media(max-height:760px){
  #cover.active .genesis-evidences-identity{
    width:72%!important;
    height:184px!important;
    flex-basis:184px!important;
    margin-top:5px!important;
  }
}


/* A02.19 — MENU CONTEXTUEL AUGMENTÉ
   Plus riche fonctionnellement, sans réduction de la typographie canonique. */
.contextual-display.contextual-augmented{
  padding:16px!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.contextual-display.contextual-augmented .contextual-head{
  position:sticky;
  top:-16px;
  z-index:4;
  background:linear-gradient(180deg,#101513 82%,rgba(16,21,19,.92));
  padding-top:14px;
}
.contextual-display.contextual-augmented .contextual-actions{
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  padding:12px 5px 12px!important;
}
.contextual-display.contextual-augmented .contextual-actions button{
  min-height:72px!important;
}
.contextual-display.contextual-augmented .contextual-back{
  position:sticky;
  bottom:0;
  width:calc(100% - 14px);
  background:#171b19!important;
  box-shadow:0 -8px 18px rgba(7,10,9,.82);
}
.share-real-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.share-real-grid button{min-height:74px;padding:10px;border:1px solid #555145;border-radius:13px;background:linear-gradient(180deg,#20241f,#111411);color:#e7e1ce;text-align:left}
.share-real-grid b{display:block;color:#e4cc82;font-size:10px;margin-bottom:5px}
.share-real-grid small{display:block;color:#aaa99f;font-size:8px;line-height:1.35}


/* A02.20 — PAGE 1 HARMONISÉE DÉFINITIVE
   Axe central unique · aucun screenshot · aucun rectangle parasite · modules alignés. */
#cover.active .v6-cover-content{
  --cover-column:78%;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:34px 24px 24px!important;
}
#cover.active .genesis-evidences-identity{
  position:relative!important;
  z-index:4!important;
  width:var(--cover-column)!important;
  height:auto!important;
  flex:0 0 auto!important;
  margin:8px auto 0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
}
#cover.active .genesis-evidences-identity .genesis-rp-logo{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:132px!important;
  height:132px!important;
  max-width:132px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto 10px!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.38))!important;
}
#cover.active .genesis-wordmark{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#efdab1!important;
  line-height:1!important;
}
#cover.active .genesis-wordmark strong{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:39px!important;
  line-height:1.02!important;
  font-weight:700!important;
  letter-spacing:.055em!important;
  white-space:nowrap!important;
  text-shadow:0 2px 2px rgba(0,0,0,.42)!important;
}
#cover.active .genesis-wordmark span{
  display:block!important;
  margin:8px 0 0!important;
  padding:0!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:700!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
  text-shadow:0 2px 2px rgba(0,0,0,.42)!important;
}

/* Une seule colonne optique pour les modules principaux. */
#cover.active .v6-instrument-window,
#cover.active .v6-enter,
#cover.active .v6-language-zone{
  width:var(--cover-column)!important;
  max-width:var(--cover-column)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
#cover.active .v6-instrument-window{
  margin-top:24px!important;
  min-height:112px!important;
  padding:18px 18px!important;
  justify-content:center!important;
}
#cover.active .v6-instrument-window .v6-sage-line{
  width:62%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#cover.active .v6-instrument-window b,
#cover.active .v6-instrument-window span{
  text-align:center!important;
}
#cover.active .v6-enter{
  margin-top:20px!important;
  min-height:70px!important;
}
#cover.active .v6-language-zone{
  margin-top:14px!important;
}
#cover.active .v6-international,
#cover.active .v6-more-langs{
  width:100%!important;
  box-sizing:border-box!important;
}
#cover.active .v6-lang-grid{
  width:100%!important;
  box-sizing:border-box!important;
}
#cover.active .v6-cover-foot{
  width:var(--cover-column)!important;
  left:auto!important;
  right:auto!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

/* Les anciennes images/brand de couverture ne doivent jamais réapparaître. */
#cover.active .v6-cover-master-image,
#cover.active .v6-emblem,
#cover.active .v6-brand{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Conservation des proportions : on adapte l'espacement, jamais la typographie. */
@media(max-height:760px){
  #cover.active .v6-cover-content{padding-top:24px!important}
  #cover.active .genesis-evidences-identity{width:76%!important;margin-top:3px!important}
  #cover.active .genesis-evidences-identity .genesis-rp-logo{
    width:108px!important;height:108px!important;max-width:108px!important;margin-bottom:7px!important
  }
  #cover.active .genesis-wordmark strong{font-size:34px!important}
  #cover.active .genesis-wordmark span{font-size:22px!important;margin-top:6px!important}
  #cover.active .v6-instrument-window{margin-top:16px!important;min-height:92px!important}
  #cover.active .v6-enter{margin-top:14px!important;min-height:58px!important}
  #cover.active .v6-language-zone{margin-top:10px!important}
}


/* A02.21 — INTERNATIONAL 24 LANGUES
   Correction structurelle : aucune superposition + molette parcourable de bout en bout.
   Une seule zone principale défile ; la molette n'est plus prisonnière d'un mini-scroll. */
#internationalPanel,
.international-panel,
.intl-panel,
#internationalOverlay .international-panel{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  box-sizing:border-box!important;
}

/* Le haut est remis dans un flux vertical réel. */
#internationalPanel .intl-active,
#internationalPanel .active-languages,
#internationalPanel .intl-multilingual,
#internationalPanel .multilingual-mode,
#internationalPanel .intl-multi,
.international-panel .intl-active,
.international-panel .active-languages,
.international-panel .intl-multilingual,
.international-panel .multilingual-mode,
.international-panel .intl-multi{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* Espacement de sécurité entre langues actives, multilingue et explication. */
#internationalPanel .intl-active,
#internationalPanel .active-languages,
.international-panel .intl-active,
.international-panel .active-languages{
  margin-bottom:14px!important;
}
#internationalPanel .intl-multilingual,
#internationalPanel .multilingual-mode,
#internationalPanel .intl-multi,
.international-panel .intl-multilingual,
.international-panel .multilingual-mode,
.international-panel .intl-multi{
  margin-top:12px!important;
  margin-bottom:16px!important;
  min-height:54px!important;
}
#internationalPanel .intl-multilingual p,
#internationalPanel .multilingual-mode p,
#internationalPanel .intl-multi p,
.international-panel .intl-multilingual p,
.international-panel .multilingual-mode p,
.international-panel .intl-multi p{
  position:relative!important;
  margin:8px 8px 0!important;
  line-height:1.35!important;
  white-space:normal!important;
}

/* La liste/molette : suppression du second ascenseur interne.
   Sa hauteur est calculée par son contenu ; le panneau principal assure le défilement. */
#internationalPanel .lang-wheel,
#internationalPanel .language-wheel,
#internationalPanel .intl-wheel,
#internationalPanel .dev-language-wheel,
#internationalPanel .languages-development-list,
.international-panel .lang-wheel,
.international-panel .language-wheel,
.international-panel .intl-wheel,
.international-panel .dev-language-wheel,
.international-panel .languages-development-list{
  position:relative!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
  clip:auto!important;
  contain:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
}

/* Aucun item langue ne doit être coupé par une hauteur fixe. */
#internationalPanel [data-lang],
#internationalPanel [data-language],
.international-panel [data-lang],
.international-panel [data-language]{
  flex:0 0 auto!important;
}

/* Les titres restent au-dessus de leur propre bloc, jamais superposés aux boutons. */
#internationalPanel h2,
#internationalPanel h3,
#internationalPanel .section-title,
.international-panel h2,
.international-panel h3,
.international-panel .section-title{
  position:relative!important;
  z-index:2!important;
  clear:both!important;
}

/* L'espace final garantit l'accès au dernier item sur iPhone. */
#internationalPanel::after,
.international-panel::after{
  content:""!important;
  display:block!important;
  height:72px!important;
  flex:0 0 72px!important;
}

/* Sur écran iPhone : le panneau reste contenu dans l'instrument. */
@media(max-width:430px){
  #internationalPanel,
  .international-panel{
    max-height:calc(100dvh - 54px)!important;
    padding-bottom:24px!important;
  }
}

/* A02.21 — sélecteurs exacts détectés dans cette version */
.language-wheel,
.language-wheel-hint{
height:auto!important;max-height:none!important;overflow:visible!important;clip:auto!important;}


/* A02.22 — CORRECTION EXACTE DE L'ÉCRAN INTERNATIONAL
   Cible réelle : #langOverlay / .intl-invite / .multi-language-* / #languageWheel.
   On annule les anciens grid-template incompatibles qui causaient la superposition. */
#phone>#langOverlay,
#cover.active #langOverlay{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  padding:15px 18px 24px!important;
  box-sizing:border-box!important;
}
#phone>#langOverlay::-webkit-scrollbar,
#cover.active #langOverlay::-webkit-scrollbar{width:0!important;height:0!important}

/* Chaque bloc reprend sa place dans le flux. */
#langOverlay>.lang-title,
#langOverlay>.lang-section-head,
#langOverlay>#langGridActive,
#langOverlay>.intl-invite,
#langOverlay>#multiLanguageBtn,
#langOverlay>#multiLanguageState,
#langOverlay>#languageWheel,
#langOverlay>.language-wheel-hint,
#langOverlay>#closeLangOverlay{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Haut : aucune superposition possible. */
#langOverlay .lang-title{
  margin:0 0 4px!important;
  line-height:1.12!important;
}
#langOverlay .lang-section-head{
  margin:2px 0 0!important;
  padding:5px 2px!important;
  min-height:24px!important;
}
#langOverlay #langGridActive{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0 0 6px!important;
}
#langOverlay .intl-invite{
  display:block!important;
  min-height:50px!important;
  margin:6px 0 0!important;
  padding:10px 10px!important;
  clear:both!important;
}
#langOverlay .intl-invite b{
  display:block!important;
  position:relative!important;
  margin:0 0 6px!important;
  line-height:1.2!important;
}
#langOverlay .intl-invite span{
  display:block!important;
  position:relative!important;
  margin:0!important;
  line-height:1.4!important;
  white-space:normal!important;
}
#langOverlay #multiLanguageBtn{margin:0!important;min-height:40px!important}
#langOverlay #multiLanguageState{margin:0 0 5px!important;min-height:38px!important}

/* MOLETTE : vraie fenêtre indépendante, avec réserve haute/basse permettant
   au PREMIER (RUSSE) et au DERNIER élément de venir exactement au centre. */
#langOverlay #languageWheel.language-wheel{
  display:block!important;
  height:330px!important;
  min-height:330px!important;
  max-height:330px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:141px 8px!important; /* (330 - 48)/2 : premier/dernier centrables */
  scroll-padding-top:141px!important;
  scroll-padding-bottom:141px!important;
  scroll-snap-type:y mandatory!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  box-sizing:border-box!important;
  border:1px solid #494537!important;
  border-radius:18px!important;
  background:
    linear-gradient(to bottom,
      transparent calc(50% - 24px),
      rgba(192,164,91,.30) calc(50% - 24px),
      rgba(112,127,108,.16) calc(50% - 23px),
      rgba(179,190,169,.18) calc(50% + 23px),
      rgba(192,164,91,.30) calc(50% + 24px),
      transparent calc(50% + 24px)),
    linear-gradient(90deg,#080a0a,#191d1b 12%,#0b0e0d 50%,#191d1b 88%,#080a0a)!important;
}
#langOverlay #languageWheel .language-wheel-row{
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  scroll-snap-align:center!important;
  scroll-snap-stop:always!important;
  margin:0!important;
}
#langOverlay .language-wheel-hint{
  margin:0!important;
  padding:2px 0 4px!important;
  min-height:16px!important;
}
#langOverlay #closeLangOverlay{
  margin:2px 0 0!important;
  min-height:42px!important;
}

/* iPhone plus court : on réduit la fenêtre de molette, jamais la police.
   La réserve de centrage est recalculée. */
@media(max-height:760px){
  #langOverlay #languageWheel.language-wheel{
    height:270px!important;
    min-height:270px!important;
    max-height:270px!important;
    padding-top:111px!important;
    padding-bottom:111px!important;
    scroll-padding-top:111px!important;
    scroll-padding-bottom:111px!important;
  }
}


/* A02.23 — POSITION : FLÈCHE COURT / LONG
   Court = recentrage GPS mesuré.
   Long 700 ms = positionnement avancé, sans altérer l'original GPS. */
.map-location-arrow{
  position:absolute!important;
  right:13px!important;
  bottom:132px!important;
  z-index:36!important;
  width:54px!important;
  height:54px!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  border:1px solid #625d4d!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#252925,#101311)!important;
  color:#eadcae!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 5px rgba(0,0,0,.48)!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-touch-callout:none!important;
}
.map-location-arrow-glyph{
  display:block!important;
  font-size:24px!important;
  line-height:22px!important;
  transform:rotate(-45deg)!important;
  transform-origin:center!important;
  color:#efe2b9!important;
}
.map-location-arrow small{
  display:block!important;
  margin-top:1px!important;
  font-size:5.7px!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  color:#b9ae8c!important;
}
.map-location-arrow.pressing{
  transform:translateY(1px)!important;
  background:linear-gradient(145deg,#30342f,#151816)!important;
}
.map-location-arrow.location-confirm{
  border-color:#7f9179!important;
  background:linear-gradient(145deg,#2b332d,#141a16)!important;
}
.map-location-arrow.advanced-active{
  border-color:#b59a57!important;
  background:linear-gradient(145deg,#383326,#17150f)!important;
}
.map-location-arrow.advanced-active::after{
  content:"PIN"!important;
  position:absolute!important;
  right:-4px!important;
  top:-5px!important;
  min-width:20px!important;
  height:14px!important;
  padding:0 3px!important;
  border:1px solid #8b7747!important;
  border-radius:7px!important;
  background:#15140f!important;
  color:#e7ce8c!important;
  font-size:6px!important;
  line-height:12px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
}
@media(max-height:760px){
  .map-location-arrow{
    right:10px!important;
    bottom:119px!important;
    width:48px!important;
    height:48px!important;
  }
  .map-location-arrow-glyph{font-size:21px!important}
}


/* A02.24 — IMMOBILIER · ÉTAT DES LIEUX */
.edl-inspection,.edl-summary{display:flex;flex-direction:column;gap:9px}
.edl-path{
 display:flex;align-items:center;gap:7px;flex-wrap:wrap;
 padding:9px 11px;border:1px solid #4d4a3f;border-radius:12px;
 background:#111512;color:#d8d3c1
}
.edl-path b{color:#cdb46f;font-size:9px;letter-spacing:.08em}
.edl-path strong{color:#ece4c9;font-size:11px}
.edl-source-rule{
 padding:7px 9px;border-left:2px solid #8e7a48;
 color:#a9aa9f;font-size:7px;letter-spacing:.08em;line-height:1.35
}
.edl-inspection label{
 display:block;color:#c8b77f;font-size:7px;font-weight:800;
 letter-spacing:.08em;margin-top:2px
}
.edl-inspection select,.edl-inspection input,.edl-inspection textarea{
 width:100%;box-sizing:border-box;border:1px solid #494b43;border-radius:10px;
 background:#0c100e;color:#e2dfd4;padding:10px;font-size:10px;outline:none
}
.edl-inspection textarea{resize:vertical;min-height:92px;line-height:1.45}
.edl-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.edl-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}
.edl-actions button{
 min-height:64px;padding:9px;border:1px solid #555145;border-radius:12px;
 background:linear-gradient(180deg,#20241f,#111411);color:#e6e0ce;text-align:left
}
.edl-actions button b{display:block;color:#ddc477;font-size:9px;margin-bottom:4px}
.edl-actions button small{display:block;color:#a7a89f;font-size:7px;line-height:1.3}
.edl-summary-list{display:flex;flex-direction:column;gap:6px}
.edl-summary-row{
 display:flex;justify-content:space-between;gap:10px;align-items:center;
 padding:9px 10px;border:1px solid #45483f;border-radius:10px;background:#101411
}
.edl-summary-row b{font-size:8px;color:#dfd8c3}
.edl-summary-row span{font-size:7px;color:#a9aa9f;text-align:right}
@media(max-width:390px){.edl-grid2,.edl-actions{grid-template-columns:1fr}}


/* A02.25 — LOCATION COURTE DURÉE · CONSTAT MÉTIER */
.lcd-inspection,.lcd-summary{display:flex;flex-direction:column;gap:9px}
.lcd-path{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 10px;border:1px solid #4d4a3f;border-radius:12px;background:#111512;color:#d8d3c1}
.lcd-path b{color:#cdb46f;font-size:8px;letter-spacing:.06em}.lcd-path strong{color:#ece4c9;font-size:10px}
.lcd-rule{padding:7px 9px;border-left:2px solid #8e7a48;color:#a9aa9f;font-size:7px;letter-spacing:.07em;line-height:1.35}
.lcd-inspection label{display:block;color:#c8b77f;font-size:7px;font-weight:800;letter-spacing:.08em;margin-top:2px}
.lcd-inspection select,.lcd-inspection input,.lcd-inspection textarea{width:100%;box-sizing:border-box;border:1px solid #494b43;border-radius:10px;background:#0c100e;color:#e2dfd4;padding:10px;font-size:10px;outline:none}
.lcd-inspection textarea{resize:vertical;min-height:88px;line-height:1.45}
.lcd-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lcd-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}
.lcd-actions button{min-height:62px;padding:9px;border:1px solid #555145;border-radius:12px;background:linear-gradient(180deg,#20241f,#111411);color:#e6e0ce;text-align:left}
.lcd-actions button b{display:block;color:#ddc477;font-size:9px;margin-bottom:4px}.lcd-actions button small{display:block;color:#a7a89f;font-size:7px;line-height:1.3}
.lcd-summary-list{display:flex;flex-direction:column;gap:6px}.lcd-summary-row{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #45483f;border-radius:10px;background:#101411}
.lcd-summary-row b{font-size:8px;color:#dfd8c3}.lcd-summary-row span{font-size:7px;color:#a9aa9f}
@media(max-width:390px){.lcd-grid2,.lcd-actions{grid-template-columns:1fr}}


/* A02.26 — INSTRUMENT 3D SENSORIEL · LUMIÈRE CONTENUE */
:root{
 --rtags-sage-0:#182019;--rtags-sage-1:#667663;--rtags-sage-2:#8f9f89;
 --rtags-sage-3:#b1bca9;--rtags-ivory:#d8d1bc;--rtags-brass:#8d7a50;
 --rtags-steel:#505651;--rtags-press-p:0;
}
.phone-shell{
 background:linear-gradient(90deg,rgba(255,255,255,.025),transparent 10%,transparent 90%,rgba(255,255,255,.018)),
            linear-gradient(145deg,#1b1f20 0%,#090b0c 42%,#111515 74%,#050607 100%)!important;
 border-color:#4b504f!important;
 box-shadow:0 34px 78px rgba(0,0,0,.88),inset 0 0 0 1px rgba(255,255,255,.045),
            inset 0 0 0 4px #090b0c,inset 0 0 0 6px #2a2e2e!important;
}
.work-display,.display-frame,.contextual-display,.edl-inspection,.lcd-inspection{
 box-shadow:inset 0 1px 0 rgba(255,255,255,.055),inset 0 -12px 24px rgba(0,0,0,.22),
            0 8px 18px rgba(0,0,0,.28)!important;
}
button,.primary{-webkit-tap-highlight-color:transparent}
.transverse button,.bottom button,.primary,.contextual-actions button,.contextual-back,
.edl-actions button,.lcd-actions button,.map-command button,.status-actions button,.map-location-arrow{
 position:relative!important;isolation:isolate;border-color:#555950!important;
 background:linear-gradient(180deg,rgba(255,255,255,.055),transparent 16%),
            linear-gradient(180deg,#292e2c 0%,#171b19 48%,#0c0f0e 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.13),inset 0 -2px 0 rgba(0,0,0,.72),
            inset 1px 0 0 rgba(255,255,255,.035),inset -1px 0 0 rgba(0,0,0,.5),
            0 5px 9px rgba(0,0,0,.42)!important;
 transform:translateZ(0);transition:transform .08s ease,box-shadow .10s ease,border-color .10s ease,background .10s ease;
}
/* Pourtour progressif 1 px, strictement contenu dans la touche. */
.transverse button::after,.bottom button::after,.primary::after,.contextual-actions button::after,
.contextual-back::after,.edl-actions button::after,.lcd-actions button::after,.map-command button::after,
.status-actions button::after,.map-location-arrow::before{
 content:""!important;position:absolute!important;inset:1px!important;border-radius:inherit!important;padding:1px!important;
 pointer-events:none!important;
 background:conic-gradient(from -90deg,rgba(168,185,159,.92) 0turn,
  rgba(168,185,159,.92) calc(var(--rtags-press-p,0) * 1turn),
  rgba(115,126,111,.08) calc(var(--rtags-press-p,0) * 1turn),rgba(115,126,111,.08) 1turn)!important;
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
 -webkit-mask-composite:xor!important;mask-composite:exclude!important;
 opacity:0!important;transition:opacity .08s ease!important;box-shadow:none!important;filter:none!important;z-index:3!important;
}
.rtags-pressure-active::after,.map-location-arrow.rtags-pressure-active::before{opacity:1!important}
.rtags-pressure-active{
 transform:translateY(1.5px) scale(.995)!important;border-color:#6e7869!important;
 box-shadow:inset 0 2px 5px rgba(0,0,0,.72),inset 0 1px 0 rgba(183,197,176,.08),
            0 2px 4px rgba(0,0,0,.38)!important;
}
/* Châssis de molette plus massif. */
.wheel-instrument{
 border:1px solid #5d625c!important;border-radius:28px!important;
 background:linear-gradient(180deg,rgba(255,255,255,.045),transparent 7%),
            linear-gradient(90deg,#111513 0%,#373c39 8%,#171b19 17%,#090b0a 50%,#171b19 83%,#373c39 92%,#111513 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -3px 8px rgba(0,0,0,.82),
            inset 8px 0 16px rgba(0,0,0,.30),inset -8px 0 16px rgba(0,0,0,.30),
            0 10px 18px rgba(0,0,0,.50)!important;
}
.wheel-instrument .wheel{
 border-color:#666c65!important;
 background:linear-gradient(90deg,rgba(255,255,255,.018),transparent 13%,transparent 87%,rgba(255,255,255,.014)),
            linear-gradient(90deg,#030404 0%,#1d211f 6%,#3f4641 10%,#161a18 16%,#070907 28%,#050706 50%,#070907 72%,#161a18 84%,#3f4641 90%,#1d211f 94%,#030404 100%)!important;
 box-shadow:inset 34px 0 38px rgba(0,0,0,.94),inset -34px 0 38px rgba(0,0,0,.94),
            inset 0 1px 0 rgba(255,255,255,.20),inset 0 -2px 0 rgba(0,0,0,.92),
            0 8px 15px rgba(0,0,0,.66)!important;
}
.wheel-rail{
 background:repeating-linear-gradient(0deg,transparent 0 7px,rgba(203,204,188,.14) 7px 8px),
            linear-gradient(90deg,#060706,#202421 24%,#505650 46%,#1b1e1c 66%,#050605)!important;
 border-color:#5a5f58!important;
 box-shadow:inset 1px 0 rgba(255,255,255,.12),inset -5px 0 9px rgba(0,0,0,.9),
            0 7px 14px rgba(0,0,0,.58)!important;
}
/* Centre vert sauge : matière rétroéclairée, graduations fines, aucune diffusion externe. */
.wheel-row.current{
 color:#20271f!important;
 background:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 8px,rgba(67,80,65,.13) 8px 9px),
            linear-gradient(180deg,#c2cbbd 0%,#9eae99 8%,#879b83 45%,#92a48d 55%,#aab8a4 92%,#c5ccc0 100%)!important;
 border-top:1px solid rgba(226,233,221,.48)!important;border-bottom:1px solid rgba(38,48,39,.78)!important;
 outline:1px solid rgba(126,143,121,.58)!important;outline-offset:-1px!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.56),inset 0 -1px 0 rgba(0,0,0,.42),
            inset 18px 0 24px rgba(42,53,43,.14),inset -18px 0 24px rgba(42,53,43,.14)!important;
}
.wheel-row.current::before,.wheel-row.current::after,.wheel-laser{
 background:#899b83!important;opacity:.78!important;box-shadow:none!important;
}
.wheel-laser::after{background:#899b83!important;box-shadow:none!important}
.wheel-row.current .wheel-row-text{position:relative}
.wheel-row.current .wheel-row-text::before,.wheel-row.current .wheel-row-text::after{
 content:""!important;position:absolute!important;top:50%!important;width:22px!important;height:8px!important;
 transform:translateY(-50%)!important;opacity:.32!important;
 background:repeating-linear-gradient(90deg,#3d4b3c 0 1px,transparent 1px 4px)!important;box-shadow:none!important;
}
.wheel-row.current .wheel-row-text::before{right:calc(100% + 10px)!important}
.wheel-row.current .wheel-row-text::after{left:calc(100% + 10px)!important}
.wheel.press-long{
 border-color:#7b846f!important;
 box-shadow:inset 32px 0 36px rgba(0,0,0,.94),inset -32px 0 36px rgba(0,0,0,.94),
            inset 0 0 0 1px rgba(147,162,139,.26),0 6px 13px rgba(0,0,0,.62)!important;
}
.wheel.press-advanced{
 border-color:#8d7a50!important;
 box-shadow:inset 32px 0 36px rgba(0,0,0,.94),inset -32px 0 36px rgba(0,0,0,.94),
            inset 0 0 0 1px rgba(151,130,82,.30),0 6px 13px rgba(0,0,0,.62)!important;
}
.edl-inspection select,.edl-inspection input,.edl-inspection textarea,
.lcd-inspection select,.lcd-inspection input,.lcd-inspection textarea{
 border-color:#51584f!important;background:linear-gradient(180deg,#0f1411,#090c0a)!important;
 box-shadow:inset 0 2px 5px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.edl-path,.lcd-path{
 border-color:#595b50!important;background:linear-gradient(180deg,#171c18,#0d100e)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 3px 7px rgba(0,0,0,.24)!important;
}
@media(prefers-reduced-motion:reduce){
 .rtags-pressure-active{transform:none!important}
 .transverse button::after,.bottom button::after,.primary::after,.contextual-actions button::after,
 .contextual-back::after,.edl-actions button::after,.lcd-actions button::after,.map-command button::after,
 .status-actions button::after,.map-location-arrow::before{transition:none!important}
}


/* ================================================================
   A02.27 — CARNET DE NOTE · CORRECTION VISUELLE · ZÉRO HALO
   ================================================================ */

/* Scrollbar du DISPLAY : intégrée au graphite, fine, sans rectangle blanc. */
.module{
 scrollbar-width:thin!important;
 scrollbar-color:#737f70 #111512!important;
 scrollbar-gutter:stable!important;
}
.module::-webkit-scrollbar{width:6px!important;height:6px!important}
.module::-webkit-scrollbar-track{
 background:#111512!important;
 border-left:1px solid #30352f!important;
 border-radius:6px!important;
 box-shadow:none!important;
}
.module::-webkit-scrollbar-thumb{
 background:linear-gradient(180deg,#7f8c7a,#596657)!important;
 border:1px solid #252b25!important;
 border-radius:6px!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.10)!important;
}
.module::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#8d9a87,#647260)!important}
.module::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
.module::-webkit-scrollbar-corner{background:#111512!important}

/* La zone de note garde son aspect matériel et aucune lueur ne sort du cadre. */
.augmented-notebook .notebook-page{
 background:linear-gradient(180deg,#171c19 0%,#101412 100%)!important;
 border:1px solid #65705f!important;
 outline:none!important;
 box-shadow:inset 0 2px 5px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,255,255,.045)!important;
 color:#f0eee7!important;
 caret-color:#e7e1ce!important;
}
.augmented-notebook .notebook-page:focus,
.augmented-notebook .notebook-page.dictation-live{
 border-color:#81917b!important;
 outline:1px solid #71806c!important;
 outline-offset:-2px!important;
 box-shadow:inset 0 2px 5px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,255,255,.045)!important;
 animation:none!important;
}

/* Les 8 commandes ne sont plus des boutons Windows blancs. */
.augmented-notebook .notebook-tools{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:7px!important;
}
.augmented-notebook .notebook-tools button,
.augmented-notebook .notebook-save button{
 appearance:none!important;
 -webkit-appearance:none!important;
 position:relative!important;
 min-width:0!important;
 min-height:42px!important;
 padding:7px 3px!important;
 overflow:hidden!important;
 border:1px solid #5b6058!important;
 border-radius:8px!important;
 background:
  linear-gradient(180deg,rgba(255,255,255,.055),transparent 18%),
  linear-gradient(180deg,#2b302d 0%,#171b18 52%,#0c0f0d 100%)!important;
 color:#ddd8c9!important;
 font:800 11px/1.08 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
 letter-spacing:.015em!important;
 text-align:center!important;
 white-space:normal!important;
 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.12),
  inset 0 -2px 0 rgba(0,0,0,.72),
  0 3px 5px rgba(0,0,0,.34)!important;
 filter:none!important;
}
.augmented-notebook .notebook-tools button span{
 display:block!important;
 color:#ddd8c9!important;
 opacity:1!important;
}
.augmented-notebook .notebook-tools button:focus-visible,
.augmented-notebook .notebook-save button:focus-visible{
 outline:1px solid #82917c!important;
 outline-offset:-2px!important;
 border-color:#71806c!important;
 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.12),
  inset 0 -2px 0 rgba(0,0,0,.72),
  0 3px 5px rgba(0,0,0,.34)!important;
}
.augmented-notebook .notebook-tools button:active,
.augmented-notebook .notebook-save button:active,
.augmented-notebook .notebook-tools button.rtags-pressure-active,
.augmented-notebook .notebook-save button.rtags-pressure-active{
 transform:translateY(1px)!important;
 border-color:#74806e!important;
 box-shadow:
  inset 0 2px 4px rgba(0,0,0,.72),
  inset 0 1px 0 rgba(255,255,255,.055),
  0 1px 2px rgba(0,0,0,.30)!important;
}

/* Progression lumineuse de pression : filet interne de 1 px, jamais un halo. */
.augmented-notebook .notebook-tools button::after,
.augmented-notebook .notebook-save button::after{
 content:""!important;
 position:absolute!important;
 inset:1px!important;
 border-radius:inherit!important;
 padding:1px!important;
 pointer-events:none!important;
 background:conic-gradient(
  from -90deg,
  rgba(153,171,146,.88) 0turn,
  rgba(153,171,146,.88) calc(var(--rtags-press-p,0) * 1turn),
  rgba(104,118,101,.07) calc(var(--rtags-press-p,0) * 1turn),
  rgba(104,118,101,.07) 1turn
 )!important;
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
 -webkit-mask-composite:xor!important;
 mask-composite:exclude!important;
 opacity:0!important;
 box-shadow:none!important;
 filter:none!important;
 z-index:2!important;
}
.augmented-notebook .notebook-tools button.rtags-pressure-active::after,
.augmented-notebook .notebook-save button.rtags-pressure-active::after{opacity:1!important}

/* Champs inférieurs cohérents avec le carnet. */
.augmented-notebook .notebook-title,
.augmented-notebook .notebook-meta input,
.augmented-notebook .notebook-meta select{
 background:#0c100e!important;
 color:#e9e6dc!important;
 border-color:#555d53!important;
 outline:none!important;
 box-shadow:inset 0 2px 4px rgba(0,0,0,.55)!important;
}
.augmented-notebook .notebook-title:focus,
.augmented-notebook .notebook-meta input:focus,
.augmented-notebook .notebook-meta select:focus{
 border-color:#788773!important;
 outline:1px solid #6e7d69!important;
 outline-offset:-2px!important;
 box-shadow:inset 0 2px 4px rgba(0,0,0,.55)!important;
}

/* Verrou explicite : aucun halo lumineux dans le carnet. */
.augmented-notebook,
.augmented-notebook *,
.augmented-notebook *::before,
.augmented-notebook *::after{
 --notebook-no-halo:1;
}


/* A02.28 — PHOTO PRÉCISION · moteurs réels · zéro halo */
.photo-series-dock,.photo-signature{
 border:1px solid #5d6459;border-radius:12px;background:linear-gradient(180deg,#171c18,#0d100e);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -2px 4px rgba(0,0,0,.45);
 padding:10px;margin-top:9px;color:#ded9ca;
}
.photo-series-dock>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:center}
.photo-series-dock b,.photo-signature b{color:#d5bd77}.photo-series-dock span{font-size:9px;color:#aeb1a8}
.photo-series-actions,.photo-sign-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.photo-series-actions button,.photo-sign-actions button,.media-signature{
 appearance:none;border:1px solid #5b6058;border-radius:8px;background:linear-gradient(180deg,#2b302d,#111512);
 color:#ddd8c9;min-height:38px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),inset 0 -2px 0 rgba(0,0,0,.65);
}
.photo-sign-preview{min-height:180px;display:grid;place-items:center;margin:9px 0;border:1px solid #4f564d;border-radius:10px;background:#090c0a;overflow:hidden}
.photo-sign-preview img{max-width:100%;max-height:360px;display:block}
.photo-sign-empty{font-size:10px;color:#8f978d;letter-spacing:.08em}
.photo-sign-fields{display:grid;gap:7px}
.photo-sign-fields input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #51594f;border-radius:8px;background:#0b0f0c;color:#e8e4d8;box-shadow:inset 0 2px 4px rgba(0,0,0,.55)}
.photo-sign-note{margin-top:9px;padding:8px;border-left:2px solid #82917c;color:#aeb2a9;font-size:8px;line-height:1.45}
.mz-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.photo-series-dock *, .photo-signature *, .media-signature{filter:none!important}

/* A02.29 — repère de version discret, sans halo */
.build-stamp{position:absolute;right:8px;top:5px;font-style:normal;font-size:7px;letter-spacing:.08em;color:#a7ad9f;opacity:.72}


/* A02.30 — SUPER SCANNER : commandes compactes opportunes · zéro halo */
.scan-compact-dock{
  position:relative;z-index:12;
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;
  flex:0 0 38px;min-height:38px;
  padding:2px 3px;
  border:1px solid #4f4b3d;border-radius:10px;
  background:linear-gradient(180deg,#181b19,#0b0e0c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -2px 3px rgba(0,0,0,.55);
}
.scan-compact-dock button,.scan-advanced-wheel button{
  position:relative;appearance:none;min-width:0!important;min-height:32px!important;height:32px!important;
  padding:0!important;border:1px solid #555143!important;border-radius:7px!important;
  background:linear-gradient(180deg,#292d29,#101310)!important;color:#e8e0c8!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065),inset 0 -2px 2px rgba(0,0,0,.6)!important;
}
.scan-compact-dock button b,.scan-advanced-wheel button b{
  display:grid;place-items:center;height:100%;font:800 16px/1 system-ui;color:#e8e0c8;
}
.scan-compact-dock button[data-scan-cmd="expert"] b{font-size:11px;color:#d5bd77}
.scan-compact-dock button::after,.scan-advanced-wheel button::after{
  content:attr(data-label);position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);
  width:max-content;max-width:150px;padding:5px 7px;border:1px solid #6a6552;border-radius:6px;
  background:#111512;color:#e9e2ce;font:700 7px/1.2 Inter,system-ui;letter-spacing:.035em;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .1s linear;
  box-shadow:0 3px 7px rgba(0,0,0,.48);
}
@media(hover:hover) and (pointer:fine){
  .scan-compact-dock button:hover::after,.scan-advanced-wheel button:hover::after{opacity:1;visibility:visible}
}
.scan-compact-dock.feedback::before{
  content:attr(data-feedback);position:absolute;left:50%;bottom:calc(100% + 5px);transform:translateX(-50%);
  padding:5px 8px;border:1px solid #6a6552;border-radius:6px;background:#111512;color:#e9e2ce;
  font:700 7px/1.2 Inter,system-ui;white-space:nowrap;z-index:20;
}
.scan-more{border-color:#8a7440!important}
.scan-advanced-wheel{
  position:absolute;z-index:40;
  left:50%;bottom:48px;transform:translateX(-50%);
  width:min(310px,calc(100% - 18px));
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
  padding:8px;border:1px solid #69614b;border-radius:18px;
  background:linear-gradient(180deg,#1b1f1b,#0a0d0b);
  box-shadow:0 8px 18px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.045);
}
.scan-advanced-wheel.hidden{display:none!important}
.scan-advanced-wheel button{height:42px!important;min-height:42px!important;border-radius:12px!important}
.scan-advanced-wheel button b{font-size:17px}
.scan-advanced-wheel button[data-scan-cmd="original"]{border-color:#75836a!important}
.scanner-premium{position:relative}
.scan-manip,.scan-enhance{display:none!important}
@media(max-height:700px){
  .scan-compact-dock{flex-basis:34px;min-height:34px}
  .scan-compact-dock button{height:29px!important;min-height:29px!important}
  .scan-advanced-wheel{bottom:42px}
}


/* A02.31 — ENRICHIR : cible, versions et continuité · zéro halo */
.enrichment-target{
 display:grid;gap:3px;padding:8px 10px;margin-bottom:8px;border:1px solid #70664e;border-radius:10px;
 background:linear-gradient(180deg,#1b1e1a,#0d100e);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -2px 3px rgba(0,0,0,.52);
}
.enrichment-target span{font:800 7px/1.2 system-ui;letter-spacing:.12em;color:#a7ae9f}
.enrichment-target b{font:800 11px/1.25 system-ui;color:#e6dec6}
.enrichment-target small{font:650 7px/1.35 system-ui;color:#aeb3a8}
.enrichment-live-bar{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;
 margin:-2px 0 8px;padding:5px;border:1px solid #625c49;border-radius:9px;background:#111512;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.enrichment-live-bar span{display:grid;min-width:0}
.enrichment-live-bar span b{font:850 7px/1.1 system-ui;color:#d5bd77;letter-spacing:.08em}
.enrichment-live-bar span small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:650 7px/1.2 system-ui;color:#aeb3a8}
.enrichment-live-bar button,.enrich-footer button{
 appearance:none;border:1px solid #625c49;border-radius:7px;background:linear-gradient(180deg,#292d29,#111411);
 color:#e7e0cc;min-height:30px;padding:0 7px;font:800 7px/1 system-ui;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06),inset 0 -2px 2px rgba(0,0,0,.55);
}
.enrich-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.enrich-footer button:only-child{grid-column:1/-1}


/* A02.32 — PARTAGER · 20 réseaux · instrument compact · zéro halo */
.social-share-head{display:grid;gap:3px;margin:12px 0 6px;padding:7px 8px;border:1px solid #5f5948;border-radius:9px;background:#111512}
.social-share-head b{font:850 9px/1.2 system-ui;color:#e4cc82;letter-spacing:.08em}
.social-share-head small,.social-share-note{font:650 7px/1.35 system-ui;color:#a9ada4}
.social-share-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:6px 0 8px}
.social-share-btn{
 position:relative;appearance:none;display:grid;grid-template-rows:auto 1fr auto;place-items:center;gap:2px;
 min-width:0!important;min-height:62px!important;padding:5px 2px!important;border:1px solid #555143!important;border-radius:10px!important;
 background:linear-gradient(180deg,#252925,#101310)!important;color:#e8e0c8!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.055),inset 0 -2px 3px rgba(0,0,0,.58)!important;
}
.social-share-btn .social-rank{position:absolute;left:4px;top:4px;font:750 6px/1 system-ui;color:#858b82}
.social-share-btn .social-mark{display:grid;place-items:center;width:24px;height:24px;margin-top:2px;border:1px solid #6c6550;border-radius:7px;background:#171a17;font:850 9px/1 system-ui;color:#d8c47e}
.social-share-btn b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 6.4px/1 system-ui;letter-spacing:.02em;color:#e8e0c8}
.social-share-btn:active{transform:translateY(1px)}
.social-share-note{padding:6px 8px;border-left:2px solid #70664e;background:#101310}
@media(max-width:360px){.social-share-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* A02.33 — PARTAGER transversal + menu universel d'envoi · aucun halo */
.safety{gap:6px}
#transverseShareBtn.share-transversal{
 width:62px;min-width:62px;background:linear-gradient(180deg,#2b2e29,#111411);
 border-color:#71684f;color:#e7dfc7;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 -3px 4px rgba(0,0,0,.58),0 2px 3px rgba(0,0,0,.34);
}
#transverseShareBtn.share-transversal:active{transform:translateY(1px)}
.share-picto{position:relative;display:block;width:26px;height:24px;margin:0 auto 2px}
.share-picto i{position:absolute;width:6px;height:6px;border:1.4px solid #d8c47e;border-radius:50%;background:#171a17}
.share-picto i:nth-child(1){left:1px;top:9px}
.share-picto i:nth-child(2){right:1px;top:1px}
.share-picto i:nth-child(3){right:1px;bottom:1px}
.share-picto:before,.share-picto:after{content:"";position:absolute;left:7px;width:13px;height:1px;background:#d8c47e;transform-origin:left center}
.share-picto:before{top:10px;transform:rotate(-28deg)}
.share-picto:after{top:14px;transform:rotate(28deg)}
.send-menu-head{display:grid;gap:4px;padding:9px 10px;margin-bottom:7px;border:1px solid #665f4c;border-radius:10px;background:#111512}
.send-menu-head b{font:850 10px/1.2 system-ui;color:#e2ca81;letter-spacing:.06em}
.send-menu-head small{font:650 7px/1.4 system-ui;color:#abb0a7}
.send-scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.send-scope-btn{
 appearance:none;position:relative;display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto;
 column-gap:5px;text-align:left;min-height:49px;padding:6px;border:1px solid #585345;border-radius:9px;
 background:linear-gradient(180deg,#252925,#111411);color:#e7dfc7;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.055),inset 0 -2px 3px rgba(0,0,0,.56);
}
.send-scope-btn>span{grid-row:1/3;align-self:center;font:800 7px/1 system-ui;color:#858b82}
.send-scope-btn>b{align-self:end;font:820 7px/1.15 system-ui;color:#e7dfc7}
.send-scope-btn>small{align-self:start;font:620 6px/1.2 system-ui;color:#9ea49b}
.send-scope-btn:active{transform:translateY(1px)}
.send-menu-foot{display:flex;justify-content:flex-end;margin-top:7px}
.send-menu-foot button,.share-scope-banner button{
 appearance:none;min-height:28px;border:1px solid #5f5948;border-radius:7px;background:#171a17;color:#ded6c0;
 font:800 7px/1 system-ui;padding:0 9px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),inset 0 -2px 2px rgba(0,0,0,.5);
}
.share-scope-banner{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 7px;align-items:center;margin-bottom:7px;padding:7px 8px;border:1px solid #6b624b;border-radius:9px;background:#111512}
.share-scope-banner span{font:750 6px/1 system-ui;color:#939a91;letter-spacing:.1em}
.share-scope-banner b{font:850 9px/1.2 system-ui;color:#e2ca81}
.share-scope-banner button{grid-column:2;grid-row:1/3}

/* A02.35 — réseaux compacts · pictogrammes contenus · aucun vide artificiel */
.social-share-head{
 margin:7px 0 4px!important;
 padding:5px 7px!important;
}
.social-share-grid{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 grid-auto-rows:46px!important;
 align-content:start!important;
 gap:3px!important;
 margin:4px 0 6px!important;
}
.social-share-btn{
 position:relative!important;
 display:grid!important;
 grid-template-rows:20px 11px!important;
 align-content:center!important;
 justify-items:center!important;
 gap:2px!important;
 min-width:0!important;
 min-height:46px!important;
 height:46px!important;
 padding:4px 2px 3px!important;
 overflow:hidden!important;
 border-radius:8px!important;
}
.social-brand-icon{
 display:block!important;
 width:14px!important;
 height:14px!important;
 max-width:14px!important;
 max-height:14px!important;
 object-fit:contain!important;
 align-self:center!important;
 justify-self:center!important;
 opacity:.84!important;
 filter:saturate(.58) brightness(.91) contrast(.96)!important;
}
.social-share-btn b{
 display:block!important;
 align-self:center!important;
 max-width:100%!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 white-space:nowrap!important;
 font:800 5.7px/1 system-ui!important;
 letter-spacing:.01em!important;
 color:#d8d2c1!important;
 text-align:center!important;
}
.social-share-btn .social-rank,
.social-share-btn .social-mark{
 display:none!important;
}
.social-share-btn:active .social-brand-icon{
 opacity:.94!important;
 filter:saturate(.68) brightness(.96) contrast(.98)!important;
}
.social-share-note{
 margin-top:2px!important;
 padding:5px 7px!important;
}
@media(max-width:360px){
 .social-share-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:44px!important;
 }
 .social-share-btn{height:44px!important;min-height:44px!important}
}


/* A02.36 — MENU D'ENVOI · TYPOGRAPHIE IPHONE 16 LISIBLE
   Les boutons gardent leur géométrie. Le texte utilise la surface disponible.
   Si un libellé dépasse réellement, le moteur R-TAGS Marquee le fait défiler doucement. */
.send-menu-head{
 gap:5px!important;
 padding:10px 12px!important;
}
.send-menu-head>b{
 display:block!important;
 width:100%!important;
 font:900 13px/1.18 system-ui!important;
 letter-spacing:.025em!important;
 color:#ead38c!important;
}
.send-menu-head>small{
 display:block!important;
 width:100%!important;
 font:680 9.2px/1.28 system-ui!important;
 letter-spacing:.005em!important;
 color:#c2c5bd!important;
}
.send-scope-btn{
 grid-template-columns:30px minmax(0,1fr)!important;
 column-gap:8px!important;
 padding:7px 9px!important;
}
.send-scope-btn>span{
 font:850 10px/1 system-ui!important;
 color:#a9ada5!important;
}
.send-scope-btn>b{
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 align-self:end!important;
 font:900 10.2px/1.15 system-ui!important;
 letter-spacing:.005em!important;
 color:#eee5cd!important;
}
.send-scope-btn>small{
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 align-self:start!important;
 font:650 7.6px/1.18 system-ui!important;
 letter-spacing:0!important;
 color:#b8bcb4!important;
}
.send-menu-head>[data-rtags-marquee],
.send-scope-btn>[data-rtags-marquee]{
 overflow:hidden!important;
 white-space:nowrap!important;
 text-overflow:clip!important;
}
.send-menu-head .rtags-marquee-track.is-overflowing,
.send-scope-btn .rtags-marquee-track.is-overflowing{
 animation-duration:var(--rtags-marquee-duration,10s)!important;
 animation-timing-function:ease-in-out!important;
}


/* A02.37 — pictogrammes réseaux +1/3 environ · blocs strictement inchangés */
.social-share-grid{
 grid-auto-rows:46px!important;
}
.social-share-btn{
 min-height:46px!important;
 height:46px!important;
}
.social-brand-icon{
 width:19px!important;
 height:19px!important;
 max-width:19px!important;
 max-height:19px!important;
 opacity:.84!important;
 filter:saturate(.58) brightness(.91) contrast(.96)!important;
}
.social-share-btn{
 grid-template-rows:22px 11px!important;
}
@media(max-width:360px){
 .social-share-grid{grid-auto-rows:44px!important}
 .social-share-btn{height:44px!important;min-height:44px!important}
 .social-brand-icon{
  width:19px!important;height:19px!important;
  max-width:19px!important;max-height:19px!important;
 }
}


/* A02.38 — PARTAGE CONTEXTUEL : ACTIF → COMMENT → OÙ · réseaux d'abord */
.share-live-banner,.share-where-head,.share-other-head{
 display:grid;gap:3px;margin:0 0 7px;padding:8px 10px;
 border:1px solid #625c49;border-radius:10px;background:#111512;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.share-live-banner span{font:800 6.5px/1 system-ui;color:#969d94;letter-spacing:.1em}
.share-live-banner b,.share-where-head b,.share-other-head b{
 display:block;overflow:hidden;white-space:nowrap;
 font:900 11px/1.18 system-ui;color:#e8cf82;letter-spacing:.025em;
}
.share-live-banner small,.share-where-head small,.share-other-head small{
 display:block;overflow:hidden;white-space:nowrap;
 font:650 7.6px/1.25 system-ui;color:#b8bdb4;
}
.share-method-grid{margin-bottom:3px}
.send-menu-foot{gap:5px}
.share-where-head{margin-bottom:5px}
.share-other-head{margin-top:8px;margin-bottom:4px;padding:6px 8px}
.share-other-head b{font-size:8px}
.share-other-head small{font-size:6.5px}


/* A02.39 — micro-polissage 3D non fonctionnel : relief contenu, aucun halo, aucun mapping modifié. */
.transverse button,.safety .cap{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -2px 3px rgba(0,0,0,.34),0 1px 1px rgba(0,0,0,.30);
  text-shadow:0 1px 0 rgba(0,0,0,.55);
}
.transverse button::after,.safety .cap::after{
  content:"";position:absolute;inset:1px;border-radius:inherit;pointer-events:none;
  border-top:1px solid rgba(255,255,255,.055);border-bottom:1px solid rgba(0,0,0,.16);
}
.display-frame{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -3px 9px rgba(0,0,0,.24),0 1px 0 rgba(255,255,255,.025);
}


/* ================================================================
   A02.41 — OUVERTURE CANONIQUE
   Façade R-TAGS EVIDENCES = première scène ; 6 langues toujours visibles.
   Aucun R décoratif supplémentaire ; bouton CONTINUER accessible.
   ================================================================ */
#cover.active .genesis-evidences-identity{position:relative!important}
#cover.active .v6-language-zone{order:4!important;margin-top:10px!important}
#cover.active .v6-enter{order:5!important;margin-top:11px!important;min-height:56px!important;width:86%!important}
#cover.active .v6-cover-foot{order:6!important}
#cover.active .v6-active-languages{display:grid!important;grid-template-columns:repeat(3,1fr)!important;grid-template-rows:repeat(2,30px)!important}
#cover.active .v6-enter b{color:#e8e3d6!important}
#cover.active .v6-enter small{color:#72b8b4!important}
.p1-situation-screen{padding-top:56px!important}
.p1-situation-card{margin:18px 16px;padding:18px;border:1px solid #59615b;border-radius:18px;background:linear-gradient(155deg,#202522,#0e1210);box-shadow:inset 0 1px rgba(255,255,255,.06),inset 0 -12px 24px rgba(0,0,0,.24),0 10px 24px rgba(0,0,0,.34)}
.p1-situation-card small{display:block;margin-top:10px;color:#8fa19b;font-size:9px;letter-spacing:.14em}
.p1-situation-card b,.p1-situation-card strong{display:block;margin-top:4px;color:#e5e0d4;font:700 18px/1.25 Georgia,serif}
.p1-situation-card p{margin:16px 0;color:#aeb7b2;font-size:12px;line-height:1.5}
.p1-situation-card .primary{width:100%;min-height:50px;margin-top:8px}
@media(max-height:760px){
  #cover.active .genesis-evidences-identity{height:170px!important;flex-basis:170px!important}
  #cover.active .v6-instrument-window{min-height:76px!important;margin-top:8px!important;padding:8px 10px!important}
  #cover.active .v6-language-zone{margin-top:6px!important}
  #cover.active .v6-active-languages{display:grid!important;grid-template-rows:repeat(2,27px)!important}
  #cover.active .v6-active-languages button{height:27px!important}
  #cover.active .v6-enter{margin-top:7px!important;min-height:48px!important}
  #cover.active .v6-cover-foot{padding-bottom:16px!important}
}

/* A02.42 — SUPER SCANNER REMANIÉ : scan auto type iScanner, multipage, zéro chevauchement */
.module:has(.scanner-premium){overflow:auto!important;-webkit-overflow-scrolling:touch}
.scanner-premium{height:auto!important;min-height:100%!important;overflow:visible!important;gap:7px!important;padding-bottom:4px}
.scan-body{flex:1 1 300px!important;min-height:280px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 64px!important;gap:7px!important;overflow:visible!important}
.scan-viewport{min-height:280px!important;border-color:#625b48!important;background:radial-gradient(circle at 50% 42%,#121612 0%,#070907 56%,#030403 100%)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),inset 0 -18px 34px rgba(0,0,0,.34)!important}
.scan-compact-dock{position:static!important;z-index:2!important;flex:0 0 auto!important;min-height:44px!important;margin:0!important;grid-template-columns:repeat(8,minmax(0,1fr))!important}
.scan-compact-dock button{height:38px!important;min-height:38px!important}
.scan-workflow,.scanner-premium>#scanStatus,.scanner-premium>#ocrText,.scanner-premium>#expertResult{position:relative!important;z-index:1!important}
.scan-pages{min-width:0;overflow-y:auto;overflow-x:hidden;padding-right:1px}
.scan-page-list{display:flex;flex-direction:column;gap:5px}
.scan-page-thumb{min-height:48px!important;padding:3px!important;border-color:#545143!important}
.scan-page-thumb span{display:block;font:800 12px/1 system-ui;color:#e7ddc3}.scan-page-thumb b{font:800 6px/1 system-ui;color:#a79d82}
.scan-page-thumb.selected{border-color:#9caf82!important;background:linear-gradient(#242b22,#111511)!important}
.scan-capture-center{width:min(92%,360px);display:grid;gap:8px;justify-items:stretch;text-align:center}
.scan-capture-center>b{font:700 25px/1.05 Georgia;color:#e6cf83;letter-spacing:.02em}.scan-capture-center>span{font-size:9px;color:#aaa48f}
.scan-auto-live,.capture-now{min-height:48px!important;border-radius:12px!important;font-size:9px!important;letter-spacing:.08em!important}
.scan-auto-live{border-color:#8ea27a!important;background:linear-gradient(180deg,#31392e,#151a14)!important;color:#eef2e9!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -2px 3px rgba(0,0,0,.5)!important}
.secondary-capture{min-height:40px!important;border-color:#635b47!important;color:#d8ceb2!important;background:linear-gradient(#20231f,#0f120f)!important}
.live-scan-stage{position:absolute;inset:0;z-index:30;overflow:hidden;background:#020302;border-radius:11px}
.live-scan-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#020302}
.live-scan-guide{position:absolute;border:1.5px solid #a9b89d;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);transition:left .10s linear,top .10s linear,width .10s linear,height .10s linear,border-color .12s linear}
.live-scan-guide i{position:absolute;width:24px;height:24px;border-color:#c8d5bc}.live-scan-guide i:nth-child(1){left:-2px;top:-2px;border-left:3px solid;border-top:3px solid}.live-scan-guide i:nth-child(2){right:-2px;top:-2px;border-right:3px solid;border-top:3px solid}.live-scan-guide i:nth-child(3){left:-2px;bottom:-2px;border-left:3px solid;border-bottom:3px solid}.live-scan-guide i:nth-child(4){right:-2px;bottom:-2px;border-right:3px solid;border-bottom:3px solid}
.live-scan-guide.locked{border-color:#4e8ed7}.live-scan-guide.locked i{border-color:#6aa8ed}
.live-scan-state{position:absolute;left:10px;right:10px;bottom:12px;padding:8px 10px;border:1px solid rgba(202,190,151,.55);border-radius:10px;background:rgba(7,9,7,.82);backdrop-filter:blur(7px);text-align:center}.live-scan-state b{display:block;font-size:8px;letter-spacing:.08em;color:#e6dcc1}.live-scan-state span{display:block;margin-top:3px;font-size:7px;color:#b8b5a9}
.live-scan-cancel{position:absolute;right:9px;top:9px;min-height:32px!important;padding:0 10px!important;border-radius:8px!important;background:rgba(11,14,11,.88)!important;border-color:#6b6250!important;font-size:7px!important}
@media(max-width:430px){.scan-body{grid-template-columns:minmax(0,1fr) 58px!important}.scan-toptools{grid-template-columns:repeat(3,1fr)!important}.scan-tool{min-height:39px!important}.scan-viewport{min-height:300px!important}.scan-page-thumb,.page-chip,.page-add{min-height:50px!important}.scanner-premium textarea{min-height:46px!important;max-height:64px!important}.scan-workflow{font-size:5.8px!important}}
@media(max-height:760px){.scan-body{min-height:255px!important;flex-basis:255px!important}.scan-viewport{min-height:255px!important}.scan-auto-live{min-height:42px!important}.scan-capture-center>b{font-size:20px}.scan-compact-dock{min-height:40px!important}.scan-compact-dock button{height:34px!important;min-height:34px!important}}
\n\n/* A02.43 — BLOC FONCTIONNEL : SUPER SCANNER COMPACT + MULTI-ZOOM ITÉRATIF */
/* Le document reste la scène principale : pictogrammes compacts, aucun outil ne recouvre le document. */
.scan-icon-tools{grid-template-columns:repeat(6,minmax(34px,1fr))!important;gap:3px!important;margin:0!important}
.scan-icon-tools .scan-tool{min-height:35px!important;padding:2px!important;position:relative}
.scan-icon-tools .scan-tool b{font-size:16px!important;line-height:1!important}
.scan-icon-tools .scan-tool span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scanner-premium .scan-body{flex:1 1 410px!important;min-height:330px!important}
.scanner-premium .scan-viewport{min-height:330px!important}
.scan-pages{align-self:stretch!important;justify-content:flex-start!important}
.scan-auto-multipage.active{border-color:#a89459!important;color:#eadcae!important;background:linear-gradient(#343327,#171814)!important}
.scan-status-compact{margin:0!important;min-height:28px!important;padding:5px 7px!important;line-height:1.25!important}
.scan-results-panel{border:1px solid #3f4038;border-radius:8px;background:#0c0e0e;overflow:hidden}
.scan-results-panel summary{cursor:pointer;list-style:none;padding:6px 8px;font-size:7px;font-weight:800;letter-spacing:.08em;color:#c9bea0;text-align:center}
.scan-results-panel summary::-webkit-details-marker{display:none}.scan-results-panel:not([open]){max-height:29px}.scan-results-panel[open]{padding-bottom:5px}
.scan-results-panel textarea{margin:0 5px;width:calc(100% - 10px)!important}.scan-results-panel .scan-expert{padding:0 5px}
@media(max-width:430px){.scanner-premium .scan-body{flex-basis:370px!important;min-height:310px!important}.scanner-premium .scan-viewport{min-height:310px!important}.scan-icon-tools{grid-template-columns:repeat(6,minmax(31px,1fr))!important}.scan-icon-tools .scan-tool{min-height:32px!important}.scan-icon-tools .scan-tool b{font-size:15px!important}}

/* MULTI-ZOOM : le résultat affiché est la base réelle de la passe suivante. */
.mz-history{display:flex;gap:4px;overflow-x:auto;padding:1px 0 3px;scrollbar-width:none}.mz-history::-webkit-scrollbar{display:none}
.mz-history button{flex:0 0 auto;min-width:31px;height:29px;border:1px solid #474a44;border-radius:7px;background:#151715;color:#aaa99e;font:800 8px system-ui}
.mz-history button.active{border-color:#96865a;color:#e5dcc1;background:#292820}
.mz-controls-compact{grid-template-columns:repeat(6,1fr)!important;gap:4px!important}
.mz-controls-compact button{min-height:42px!important;padding:3px 1px!important;display:grid;place-items:center;align-content:center;gap:2px}
.mz-controls-compact button b{font-size:16px;line-height:1;font-weight:500}.mz-controls-compact button span{font-size:5.7px;letter-spacing:.04em;white-space:nowrap}
.mz-controls-compact .mz-restart{border-color:#756a4f!important}.mz-controls-compact .mz-special{border-color:#8b7a50!important}
.mz-stage{min-height:310px!important;max-height:470px!important}.mz-stage canvas{max-height:460px!important}
@media(max-width:520px){.mz-controls-compact{grid-template-columns:repeat(6,1fr)!important}.mz-controls-compact button{min-width:0!important}.mz-controls-compact button span{font-size:5px}.mz-stage{min-height:280px!important}.mz-help{font-size:7px!important}}


/* A02.43.1 — panneau de restitution documentaire ouvert, compact et hors de la scène document */
.scan-export-toggle{font-weight:900}
.scan-export-panel{margin:7px 0 3px;padding:9px 10px;border:1px solid rgba(201,164,84,.38);border-radius:12px;background:linear-gradient(180deg,rgba(31,28,25,.95),rgba(18,17,16,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.055),inset 0 -1px 0 rgba(0,0,0,.7)}
.scan-export-panel.hidden{display:none!important}.scan-export-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.scan-export-title b{font-size:10px;letter-spacing:.08em;color:#e5d7b5}.scan-export-title small{font-size:8px;color:#9e9a91;text-align:right}.scan-export-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.scan-export-grid button{min-width:0;height:43px;padding:4px 2px;border-radius:9px;border:1px solid rgba(205,170,91,.38);background:linear-gradient(180deg,#3a342d,#211e1b);color:#eee6d7;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 5px rgba(0,0,0,.3)}.scan-export-grid button b{display:block;font-size:12px;line-height:14px}.scan-export-grid button span{display:block;font-size:7px;letter-spacing:.04em}.scan-export-note{display:block;margin-top:7px;font-size:8px;line-height:1.25;color:#98958f}@media(max-width:520px){.scan-export-grid{grid-template-columns:repeat(3,1fr)}.scan-export-title{align-items:flex-start;flex-direction:column;gap:2px}.scan-export-title small{text-align:left}}

/* A02.43.3 — sortie explicite du module LANGUES vers ACCUEIL */
#langOverlay .overlay-close{position:sticky;bottom:0;z-index:12;flex:0 0 auto;min-height:42px;margin-top:8px!important}

/* A02.43.4 — SUPER SCANNER AUTO FIABLE : 4 coins, anti-rafale, file miniatures, fin de série */
.live-scan-polygon{position:absolute;inset:0;width:100%;height:100%;z-index:31;pointer-events:none;overflow:visible}
.live-scan-polygon polygon{fill:rgba(72,130,190,.06);stroke:#6aa8ed;stroke-width:2;vector-effect:non-scaling-stroke;filter:none}
.live-scan-polygon circle{fill:#0b1116;stroke:#7db5ef;stroke-width:2;vector-effect:non-scaling-stroke}
.live-scan-polygon.locked polygon{stroke:#a9c8ed;stroke-width:2.5}
.live-scan-polygon.locked circle{fill:#6aa8ed;stroke:#e2efff}
.live-scan-finish{position:absolute;left:9px;top:9px;z-index:35;min-height:32px!important;padding:0 10px!important;border-radius:8px!important;background:rgba(25,29,23,.90)!important;border:1px solid #887b55!important;color:#efe3bd!important;font-size:7px!important;font-weight:800!important;letter-spacing:.07em!important}
.scan-page-thumb{position:relative;overflow:hidden!important;min-height:66px!important;padding:2px!important}
.scan-page-thumb img{display:block;width:100%;height:43px;object-fit:cover;border-radius:5px;border:1px solid rgba(255,255,255,.08);background:#050605}
.scan-page-thumb span{position:absolute;left:4px;top:4px;min-width:17px;height:17px;display:grid!important;place-items:center;background:rgba(5,7,5,.82);border:1px solid #756c54;border-radius:5px;color:#f1e7ca!important;font-size:8px!important}
.scan-page-thumb b{display:block;margin-top:2px!important}
.scan-finish-series{border-color:#8d7c51!important;color:#eadcab!important;background:linear-gradient(#29271f,#12130f)!important}
.scanner-series-summary{padding:10px;border:1px solid #514c3c;border-radius:12px;background:linear-gradient(155deg,#171a16,#0a0c0a);text-align:center}.scanner-series-summary>b{display:block;color:#e9dfc1;font-size:13px}.scanner-series-summary>small{display:block;margin-top:4px;color:#9e9a8b;font-size:8px}
.scanner-series-thumbs{display:flex;gap:5px;overflow-x:auto;margin-top:9px;padding-bottom:3px}.scanner-series-thumbs img{width:56px;height:72px;object-fit:cover;border:1px solid #635c48;border-radius:7px;background:#050605}
.scanner-save-field{display:grid;gap:5px;margin-top:10px}.scanner-save-field span{font-size:7px;font-weight:800;letter-spacing:.1em;color:#b5aa8d}.scanner-save-field input{min-height:42px;border:1px solid #4d4c42;border-radius:9px;background:#0b0d0b;color:#e8e2d2;padding:0 10px}
.scanner-class-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.scanner-class-grid button{min-height:62px;text-align:left;padding:8px;border:1px solid #48483f;border-radius:10px;background:linear-gradient(#181a17,#0c0e0c);color:#d8d0b7;font-size:8px;font-weight:800}.scanner-class-grid button small{display:block;margin-top:4px;color:#8f9188;font-size:6.5px;font-weight:600}.scanner-class-grid button.selected{border-color:#9c8957;background:linear-gradient(#2c2a21,#141510);color:#f0e3b9}
.scanner-series-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:10px!important}.scanner-series-actions #scannerBackToScan{grid-column:1/-1}
@media(max-width:430px){.scan-page-thumb{min-height:62px!important}.scan-page-thumb img{height:39px}.scanner-class-grid{grid-template-columns:1fr 1fr}.live-scan-state{bottom:10px!important}.live-scan-finish{max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* A02.43.5 — RAPPORTS IMAGES RÉELLES */
.report-media-section{margin:14px 0;padding:12px;border:1px solid rgba(198,164,96,.34);border-radius:14px;background:rgba(18,18,16,.38)}
.report-media-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:10px}
.report-media-head b{letter-spacing:.08em}.report-media-head small{opacity:.72;text-align:right}
.report-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.report-media-card{padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.025)}
.report-media-title{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.report-media-title small{opacity:.68}
.report-media-card figure{margin:7px 0}.report-media-card img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:9px;background:#0c0c0b;border:1px solid rgba(255,255,255,.08)}
.report-media-card figcaption{font-size:11px;letter-spacing:.12em;margin-top:4px;opacity:.72}.report-media-card figure.enriched figcaption{font-weight:700}
.report-media-card p{font-size:12px;opacity:.76;margin:7px 0 0}.report-media-empty{padding:10px;border:1px dashed rgba(255,255,255,.14);border-radius:10px;opacity:.7;margin:12px 0}
@media(max-width:640px){.report-media-grid{grid-template-columns:1fr}.report-media-card img{max-height:48vh}.report-media-head{flex-direction:column;align-items:flex-start}.report-media-head small{text-align:left}}

/* A02.43.6 — validation visuelle sobre du document + confirmation obturateur */
.live-scan-polygon.ready polygon{
  stroke:#e6cf86!important;
  stroke-width:3!important;
  fill:rgba(230,207,134,.075)!important;
  filter:none!important;
}
.live-scan-polygon.ready circle{
  fill:#e6cf86!important;
  stroke:#fff1bd!important;
  stroke-width:2.2!important;
  filter:none!important;
}
.live-scan-stage.document-ready .live-scan-state{
  border-color:rgba(230,207,134,.72)!important;
}
.live-scan-polygon.capture-ready polygon{
  stroke:#fff0b8!important;
  stroke-width:3.4!important;
  fill:rgba(255,240,184,.10)!important;
}
.live-scan-stage{position:relative}
.live-scan-stage::after{
  content:"";position:absolute;inset:0;z-index:34;pointer-events:none;
  background:rgba(255,248,224,0);transition:background 160ms ease-out;
}
.live-scan-stage.capture-confirm::after{background:rgba(255,248,224,.12)}


/* A02.43.7 — CAMERA IPHONE REGRESSION FIX
   Flux vidéo réel visible sous les calques de détection, sans canvas noir superposé. */
.live-scan-stage{isolation:isolate!important}
.live-scan-stage video{
  z-index:1!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  background:transparent!important;
  -webkit-transform:translateZ(0)!important;
  transform:translateZ(0)!important;
  backface-visibility:hidden!important;
}
.live-scan-stage video.camera-live-ready{opacity:1!important}
.live-scan-polygon{z-index:3!important}
.live-scan-state{z-index:4!important}
.live-scan-finish,.live-scan-cancel{z-index:5!important}
#liveScanProbe{display:none!important}


/* A02.43.8 — IPHONE BLACK CAMERA HARD FIX
   Le stage reste un calque plein écran; aucun override relatif ne doit lui retirer sa hauteur. */
.live-scan-stage{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  overflow:hidden!important;
  background:#020302!important;
}
.live-scan-stage video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  visibility:visible!important;
  display:block!important;
  background:#020302!important;
}

/* A02.43.11 — pipeline visuel SUBLIMATION AVANT OCR */
.scan-pipeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:7px 0 9px;padding:6px;border:1px solid rgba(174,145,91,.35);border-radius:10px;background:rgba(26,24,21,.72)}
.scan-pipeline span{min-width:0;padding:5px 3px;border-radius:7px;border:1px solid rgba(255,255,255,.10);font-size:8px;line-height:1.1;text-align:center;letter-spacing:.04em;color:#b9b4aa;background:rgba(255,255,255,.025);transition:.18s ease}
.scan-pipeline span.done{border-color:rgba(120,174,142,.62);color:#e8f2e9;background:rgba(76,118,88,.16)}
.scan-pipeline span.active{border-color:rgba(211,181,111,.82);color:#fff5d7;background:rgba(150,118,54,.18);box-shadow:inset 0 0 0 1px rgba(244,218,151,.08)}
.scan-pipeline span.error{border-color:rgba(178,84,75,.62);color:#f1d8d3}
.scan-page-thumb{position:relative;overflow:hidden}
.scan-page-state{position:absolute;left:3px;right:3px;bottom:3px;padding:2px 3px;border-radius:4px;background:rgba(15,15,14,.82);font-size:6.5px;line-height:1.1;color:#ddd8cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid rgba(255,255,255,.10)}
.scan-page-state.done,.scan-page-state.ocr_ok{color:#e2f3e5;border-color:rgba(118,171,135,.5)}
.scan-page-state.error{color:#f1d5ce;border-color:rgba(179,88,76,.52)}
@media(max-width:640px){.scan-pipeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.scan-pipeline span{font-size:7px;padding:4px 2px}}

/* A02.43.13 — moteur vision OpenCV, habillage R‑TAGS conservé */
.scan-engine-badge{display:inline-flex;align-items:center;justify-content:center;margin-top:5px;padding:4px 8px;border:1px solid rgba(171,145,93,.42);border-radius:8px;background:rgba(34,31,27,.58);color:#d8ccb5;font-size:9px;font-weight:700;letter-spacing:.08em;line-height:1.1;text-transform:uppercase;box-shadow:none}
.live-scan-polygon polygon{transition:stroke .16s linear,fill .16s linear,filter .16s linear;vector-effect:non-scaling-stroke}
.live-scan-polygon.ready polygon,.live-scan-polygon.locked polygon{filter:none}


/* A02.43.14 — ACCUEIL : anti-sélection navigateur sur appui long */
#main [data-cmd="home"],
#main [data-cmd="home"] *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}

/* SUPER SCANNER V6.4 — commandes hors document, lecture fidèle, confirmation brève. */
.scanner-premium .scan-capture-bar{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:9px;position:static;flex:0 0 auto;margin:8px 0}
.scanner-premium .scan-capture-bar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;height:auto;padding:7px 4px;font-size:11px;color:#e8e4d9;border:1px solid #807866;border-radius:12px;background:linear-gradient(#394044,#22292d)}
.scanner-premium .scan-capture-bar button b{font-size:21px;line-height:1}
.scanner-premium .scan-capture-bar .scan-shutter{border-color:#c7b585;background:linear-gradient(#56594e,#353d35);color:#f4edd8}
.scanner-premium .scan-capture-bar button[aria-pressed=true]{border-color:#a9c8ad;background:#35483d}
.scanner-premium .scan-capture-bar span{font-size:10px;line-height:1.25;letter-spacing:.04em}
.scanner-premium .scan-live-feedback{padding:5px 4px;min-height:36px;text-align:center;line-height:1.4}
.scanner-premium .scan-live-feedback b,.scanner-premium .scan-live-feedback span{display:block;font-size:11px;color:#ddd9ce}
.scanner-premium .scan-live-feedback span{font-size:10px;color:#b6bcb6}
.scanner-premium .scan-review-actions{display:flex;flex-wrap:wrap;gap:6px}
.scanner-premium .scan-review-actions button{position:static!important;min-height:44px!important;font-size:10px!important}
.scanner-premium [hidden]{display:none!important}
.scanner-premium .scan-edit-tools{flex:none}
.scanner-premium .scan-edit-tools summary{padding:8px 5px;font-size:10px;cursor:pointer;color:#d1c7af}
.scanner-premium .scan-capture-center{width:90%;gap:10px;pointer-events:none}
.scanner-premium .scan-capture-center small{font-size:12px;line-height:1.5;color:#c4c8c2}
.scanner-premium .scan-capture-center>b{font-size:20px}
.scanner-premium .scan-capture-center>span{font-size:12px}
.scanner-premium .scan-body{display:grid!important;grid-template-columns:minmax(0,1fr) 54px!important;min-height:240px!important;flex:0 0 auto!important}
.scanner-premium .scan-viewport{height:clamp(245px,41dvh,480px)!important;min-height:245px!important}
.scanner-premium .live-scan-stage video{object-fit:contain!important}
.scanner-premium .scan-compact-dock{display:grid;grid-template-columns:repeat(9,minmax(0,1fr))!important}
.scanner-premium .scan-compact-dock button{min-width:0;min-height:44px!important;height:44px!important}
.scanner-premium .scan-review{border:1px solid #81765e;border-radius:10px;padding:10px;margin:7px 0;background:#242b29}
.scanner-premium .scan-review>b{font-size:12px;color:#e0d6b9}
.scanner-premium .scan-review label{display:grid;gap:5px;margin:9px 0;font-size:12px;color:#dedbd2}
.scanner-premium .scan-review input,.scanner-premium .scan-review textarea{box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:9px;border:1px solid #777c71;border-radius:7px;background:#15201d;color:#ecebe3}
.scanner-premium .scan-review-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.scanner-premium .scan-review-options button{min-height:44px;font-size:10px;white-space:normal}
.scanner-premium .live-scan-polygon polygon{fill:transparent;stroke:#a9b9c3}
.scanner-premium .live-scan-polygon.locked polygon{stroke:#a9d3b6;stroke-width:2.5}
.scanner-premium .live-scan-polygon.capture-ready polygon{stroke:#e4f6dd!important;fill:transparent!important;filter:drop-shadow(0 0 5px #bde1ac)!important}
.scanner-premium .live-scan-stage.capture-confirm::after{background:transparent!important}
@media(prefers-reduced-motion:reduce){.scanner-premium .live-scan-polygon polygon{transition:none}}

/* CALCULATRICE + */
.calc-plus{display:grid;gap:10px}.calc-plus-head,.calc-plus-subhead{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.calc-plus-head b{font:700 18px Georgia;color:#e6dec8;letter-spacing:.04em}.calc-plus-head span,.calc-plus-subhead span{font-size:7px;color:#98978e;letter-spacing:.08em}
.calc-plus-display{border:1px solid #555449;border-radius:12px;background:linear-gradient(#151815,#090b09);padding:9px;display:grid;gap:7px}.calc-plus-display input{width:100%;box-sizing:border-box;border:0;background:transparent;color:#c8c6bc;font-size:16px;text-align:right;outline:none}.calc-plus-display output{display:block;min-height:38px;text-align:right;font:700 28px Georgia;color:#eee5cb;overflow-wrap:anywhere}
.calc-plus-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.calc-plus-pad button,.calc-plus-memory-actions button{min-height:44px;border:1px solid #56564d;border-radius:9px;background:linear-gradient(#292c29,#141615);color:#ddd8ca;font-weight:800}.calc-plus-pad .calc-plus-equals{grid-column:1/-1;border-color:#817653;background:linear-gradient(#38382c,#1b1c16);font-size:18px}
.calc-plus-convert,.calc-plus-memory{border:1px solid #45473f;border-radius:11px;background:#101310;padding:9px;display:grid;gap:8px}.calc-plus-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.calc-plus-grid label{font-size:7px;font-weight:800;color:#aaa696;letter-spacing:.07em}.calc-plus-grid input,.calc-plus-grid select{width:100%;box-sizing:border-box;margin-top:4px;min-height:42px;border:1px solid #51534b;border-radius:8px;background:#0b0e0c;color:#e0ddd3;padding:8px;font-size:16px}.calc-plus-conv-result{min-height:36px;padding:8px;border:1px solid #4a4c44;border-radius:8px;background:#0a0c0a;color:#ded7c4;font:700 16px Georgia;text-align:center}
.calc-plus-memory-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.calc-plus-history{display:grid;gap:4px}.calc-plus-history button{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid #393c36;border-radius:8px;background:#0d100e;color:#aaa69a;padding:7px;text-align:left}.calc-plus-history b{color:#ded8c7}@media(max-width:430px){.calc-plus-memory-actions{grid-template-columns:1fr 1fr}}

/* MESURES + MODULES OPTIONNELS */
.calc-plus-optional,.calc-plus-measure-tools,.calc-plus-measure-tools,.measure-addon{border:1px solid #45473f;border-radius:11px;background:#101310;padding:9px;display:grid;gap:8px}
.calc-plus-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.calc-plus-option-grid button{min-height:66px;text-align:left;border:1px solid #5a5b51;border-radius:10px;background:linear-gradient(#262925,#121512);color:#dfdacd;padding:9px}
.calc-plus-option-grid button b{display:block;font:700 11px Georgia;letter-spacing:.04em}.calc-plus-option-grid button small{display:block;margin-top:4px;color:#94968f;font-size:7px;line-height:1.35}
.addon-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.addon-head b{font:700 18px Georgia;color:#e6dec8}.addon-head span{font-size:7px;color:#96978f;letter-spacing:.08em}
.addon-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.addon-grid.four{grid-template-columns:repeat(2,1fr)}
.addon-grid label,.addon-wide{font-size:7px;font-weight:800;color:#aaa696;letter-spacing:.07em}
.addon-grid input,.addon-grid select,.addon-wide input{width:100%;box-sizing:border-box;margin-top:4px;min-height:42px;border:1px solid #51534b;border-radius:8px;background:#0b0e0c;color:#e0ddd3;padding:8px;font-size:16px}
.addon-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.addon-actions button,.measure-addon>button{min-height:44px;border:1px solid #56564d;border-radius:9px;background:linear-gradient(#292c29,#141615);color:#ddd8ca;font-weight:800}
.plan-preview{min-height:130px;border:1px dashed #55584f;border-radius:10px;background:#090b09;display:grid;place-items:center;color:#85887f;overflow:hidden}.plan-preview img{display:block;max-width:100%;max-height:320px;object-fit:contain}
.calc-plus-measure-panel{display:grid;grid-template-columns:1fr 1fr;gap:7px}.calc-plus-measure-panel label{font-size:7px;font-weight:800;color:#aaa696}.calc-plus-measure-panel input,.calc-plus-measure-panel select{width:100%;box-sizing:border-box;margin-top:4px;min-height:42px;border:1px solid #51534b;border-radius:8px;background:#0b0e0c;color:#e0ddd3;padding:8px;font-size:16px}
@media(max-width:430px){.calc-plus-option-grid,.addon-grid,.addon-grid.four,.addon-actions,.calc-plus-measure-panel{grid-template-columns:1fr}}

/* Interface compacte du SUPER SCANNER : pictogrammes et libelles contextuels.
   Sur ordinateur : survol/clavier. Sur iPhone : appui/focus sans imposer de grands boutons. */
.scanner-premium .scan-icon-tools .scan-tool{position:relative;overflow:visible!important}
.scanner-premium .scan-icon-tools .scan-tool:is(:hover,:focus-visible,:focus) span{
 position:absolute!important;clip:auto!important;clip-path:none!important;
 width:max-content!important;height:auto!important;max-width:160px!important;
 overflow:visible!important;margin:0!important;padding:5px 8px!important;
 left:50%;top:calc(100% + 6px);transform:translateX(-50%);
 z-index:40!important;background:#191d1b!important;color:#f2eedf!important;
 border:1px solid #9e987c!important;border-radius:5px!important;
 font-size:11px!important;line-height:1.3!important;white-space:normal!important;
 box-shadow:0 2px 8px #0009!important;pointer-events:none
}

/* R-IA: show connection state and let the user choose dossier transmission. */
#main .ai-context-consent{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;line-height:1.4;color:#e5e6da;padding:6px}
#main #aiIncludeContext{width:22px;height:22px;flex:0 0 22px;accent-color:#a9c19e}
#main #aiReconnect{min-height:44px;padding:7px;font-size:10px;border:1px solid #899679;border-radius:8px;background:#26352c;color:#f1f3e5}
#main .ai-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}
#main .ai-status{grid-column:1;grid-row:2;overflow-wrap:anywhere;max-width:100%;white-space:normal;font-size:10px;overflow:visible}
#main #aiReconnect{grid-column:2;grid-row:1 / span 2}
