/* APOSYS owns its surfaces; no selector restyles the existing workshop. */
#aposys-root { font: 14px/1.5 system-ui, sans-serif; color: #18354e; }
#aposys-root * { box-sizing: border-box; }
#aposys-root [hidden] { display: none !important; }
#aposys-root button, #aposys-root input, #aposys-root textarea, #aposys-root select { font: inherit; }
#aposys-root button { cursor: pointer; min-height: 44px; border-radius: 10px; padding: 9px 13px; border: 1px solid #d6dedf; background: #fff; color: #18354e; text-transform: none; letter-spacing: normal; box-shadow: none; }
#aposys-root button:disabled { opacity: .55; cursor: default; }
#aposys-root :focus-visible { outline: 3px solid #d99719; outline-offset: 2px; }
#aposys-root .ap-launch { position: fixed; z-index: 110; right: 24px; bottom: calc(84px + var(--dpe-mobile-nav-height, 0px)); border: 1px solid #ffc13b; border-radius: 36px; background: #ffc13b; color: #18354e; box-shadow: 0 6px 24px #142d4933; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; text-align: left; }
#aposys-root .ap-launch:hover { background: #ffce67; border-color: #ffce67; }
#aposys-root.ap-entry .ap-launch { bottom: max(calc(24px + env(safe-area-inset-bottom, 0px)), var(--ap-footer-clearance, 24px)); }
#aposys-root .ap-launch-name { font-size: 14px; font-weight: 750; letter-spacing: .6px; }
#aposys-root .ap-launch-description { display: block; font-size: 11px; font-weight: 500; letter-spacing: normal; }
#aposys-root .ap-mark { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #18354e; background: #ffc13b; }
#aposys-root .ap-launch .ap-mark { background: #fff9e8; }
#aposys-root .ap-mark svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#aposys-root .ap-verification h3 { font-size: 14px; margin: 18px 0 6px; }
#aposys-root .ap-checkpoint { border-bottom: 1px solid #d6dedf; padding: 4px 0; }
#aposys-root .ap-checkpoint summary { cursor: pointer; min-height: 44px; padding: 9px 0; font-weight: 600; }
#aposys-root .ap-checkpoint summary span { display: block; font-weight: 400; margin-top: 4px; }
#aposys-root .ap-checkpoint p { overflow-wrap: anywhere; }
#aposys-root .ap-panel { position: fixed; z-index: 9999; width: 412px; height: min(660px, calc(100dvh - 32px)); max-width: calc(100vw - 24px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #b6c4cc; border-radius: 18px; background: #f8f7f2; box-shadow: 0 16px 55px #142d4933; text-align: left; }
#aposys-root .ap-head { display: flex; align-items: center; padding: 8px; background: #18354e; color: #fff; gap: 2px; flex-shrink: 0; }
#aposys-root .ap-head button { background: transparent; border-color: transparent; color: #fff; padding: 8px; min-width: 44px; }
#aposys-root .ap-head .ap-move { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; text-align: left; cursor: grab; touch-action: none; }
#aposys-root .ap-head .ap-new { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
#aposys-root .ap-move:active { cursor: grabbing; }
#aposys-root .ap-name { min-width: 0; font-size: 15px; font-weight: 750; letter-spacing: 1px; }
#aposys-root .ap-subtitle { font-size: 11px; color: #d6e2e9; display: block; letter-spacing: normal; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aposys-root .ap-context { margin: 0; padding: 9px 16px; border-bottom: 1px solid #e1e4dd; font-size: 12px; color: #4a6070; flex-shrink: 0; }
#aposys-root .ap-address { display: block; margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
#aposys-root .ap-ai-notice { display: block; margin-top: 3px; font-size: 11px; }
#aposys-root .ap-log { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 18px 16px 8px; }
#aposys-root .ap-message { margin: 0 0 14px; padding: 12px 14px; border-radius: 3px 14px 14px; background: #fff; border: 1px solid #e2e7e8; white-space: pre-wrap; overflow-wrap: anywhere; }
#aposys-root .ap-message.ap-user { margin-left: 28px; background: #e6edf1; border: 0; border-radius: 14px 3px 14px 14px; }
#aposys-root .ap-message p { margin: 0 0 8px; }
#aposys-root .ap-message p:last-child { margin-bottom: 0; }
#aposys-root .ap-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
#aposys-root .ap-actions button { font-size: 12px; padding: 7px 10px; }
#aposys-root .ap-choice[aria-pressed=true] { border-color: #18354e; background: #fff1c7; color: #18354e; box-shadow: inset 0 0 0 1px #18354e; }
#aposys-root .ap-choice-record { margin-top: 10px; padding: 8px 10px; border-left: 3px solid #ffc13b; background: #fff8e8; color: #18354e; font-size: 12px; }
#aposys-root .ap-primary { background: #18354e; border-color: #18354e; color: #fff; }
#aposys-root .ap-guide { display: grid; gap: 8px; margin-top: 12px; }
#aposys-root .ap-guide > button { text-align: left; }
#aposys-root .ap-details { font-size: 12px; margin: 4px 0; }
#aposys-root .ap-details summary { cursor: pointer; min-height: 44px; display: list-item; padding: 12px 0; color: #3e5b70; }
#aposys-root .ap-details p { margin: 8px 0; }
#aposys-root .ap-windows { display: grid; gap: 4px; margin: 10px 0; max-height: 200px; overflow-y: auto; }
#aposys-root .ap-check { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 0; cursor: pointer; }
#aposys-root input[type=checkbox] { width: 19px; height: 19px; flex-shrink: 0; accent-color: #18354e; }
#aposys-root input[type=number], #aposys-root select { display: block; width: 100%; padding: 10px; margin: 6px 0 10px; border-radius: 8px; border: 1px solid #a8b8bf; background: #fff; color: #18354e; min-height: 44px; }
#aposys-root .ap-hint { font-size: 12px; color: #536775; }
#aposys-root .ap-result { border: 1px solid #ccd9dd; background: #f0f4f4; padding: 12px; border-radius: 10px; margin-top: 12px; }
#aposys-root .ap-result strong { display: block; font-size: 16px; }
#aposys-root .ap-compose { padding: 10px 12px 12px; background: #fff; border-top: 1px solid #e1e4dd; display: flex; gap: 8px; align-items: end; flex-shrink: 0; }
#aposys-root .ap-attachments { display: flex; gap: 8px; padding: 6px 12px; flex-shrink: 0; background: #f8f7f2; border-top: 1px solid #e1e4dd; }
#aposys-root .ap-attachments button { font-size: 12px; padding: 7px 10px; }
#aposys-root textarea { resize: none; min-height: 48px; height: 70px; max-height: 130px; width: 100%; padding: 10px; border: 1px solid #a8b8bf; border-radius: 10px; color: #18354e; background: #fff; }
#aposys-root .ap-feedback { margin: 0; padding: 0 14px 8px; background: #fff; font-size: 12px; color: #875214; }
@media (max-width: 640px), (max-height: 600px) {
  #aposys-root .ap-launch { padding: 10px; border-radius: 50%; }
  #aposys-root .ap-launch-name { display: none; }
}
@media (max-width: 640px) {
  #aposys-root .ap-launch { right: 14px; bottom: calc(78px + var(--dpe-mobile-nav-height, 60px)); }
  #aposys-root .ap-panel { left: 0 !important; width: 100%; max-width: none; border: 0; border-radius: 0; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
  #aposys-root .ap-head { padding-top: max(8px, env(safe-area-inset-top)); }
  #aposys-root .ap-move { cursor: default; touch-action: auto; }
  #aposys-root textarea, #aposys-root input[type=number], #aposys-root select { font-size: 16px; }
}
#aposys-root .ap-history-notice{margin:0;padding:8px 16px;border-bottom:1px solid #dbe3e8;font-size:11px;line-height:1.5;flex:none}
#aposys-root .ap-history-notice button{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;padding:2px;cursor:pointer}
#aposys-root .ap-history-view{min-height:0;overflow:auto;flex:1;padding:16px}
#aposys-root .ap-history-view .ap-message{margin-top:12px;max-width:100%}
#aposys-root .ap-log[hidden],#aposys-root .ap-history-view[hidden],#aposys-root .ap-compose[hidden]{display:none!important}

/* The conversation is the home page; the dossier uses a full-height overlay.
   All workshop geometry, colours and navigation remain owned by the workshop. */
#aposys-root { --ap-ink:#18354e; --ap-muted:#536775; --ap-paper:#faf8f3; --ap-line:#e3e5df; font:15px/1.65 'DM Sans',system-ui,sans-serif; color:var(--ap-ink); }
#aposys-root svg:not(.ap-mark svg) { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex:none; }
#aposys-root .ap-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#aposys-root button { transition:background .15s,border-color .15s; border-radius:12px; }
#aposys-root button:not(:disabled):hover { background:#f0eee6; border-color:#bfc9ca; }
#aposys-root .ap-panel { width:500px; height:100dvh; max-width:100vw; border:0; border-left:1px solid var(--ap-line); border-radius:0; background:var(--ap-paper); box-shadow:-12px 0 44px #142d4918; }
#aposys-root .ap-head { padding:14px 16px; gap:8px; background:var(--ap-paper); color:var(--ap-ink); border-bottom:1px solid var(--ap-line); }
#aposys-root .ap-head button { color:var(--ap-ink); min-width:44px; padding:8px; }
#aposys-root .ap-head .ap-move { padding:0; gap:10px; }
#aposys-root .ap-head .ap-move:hover { background:transparent; border-color:transparent; }
#aposys-root .ap-name { font-size:15px; letter-spacing:.07em; }
#aposys-root .ap-subtitle { color:var(--ap-muted); font-size:11px; }
#aposys-root .ap-mark { width:38px; height:38px; border-radius:12px; background:var(--ap-ink); color:#ffcf68; }
#aposys-root .ap-tools { display:flex; gap:1px; align-items:center; flex:none; }
#aposys-root .ap-icon-button { display:inline-grid; place-items:center; width:44px; min-height:44px; padding:8px; border:1px solid transparent; background:transparent; }
#aposys-root .ap-history-notice { margin:0; padding:0; border:0; line-height:1; }
#aposys-root .ap-tools .ap-history-notice button { padding:8px; text-decoration:none; }
#aposys-root .ap-history-status { padding:9px 20px; color:#855015; background:#fff2d1; font-size:12px; }
#aposys-root .ap-context { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:10px 22px; font-size:12px; border-bottom:1px solid var(--ap-line); }
#aposys-root .ap-address { display:inline; margin:0; font-weight:500; }
#aposys-root .ap-current-tab { color:var(--ap-muted); }
#aposys-root .ap-objective { display:block; width:100%; color:var(--ap-ink); font-weight:650; }
#aposys-root .ap-log { padding:28px 24px 16px; scrollbar-width:thin; scrollbar-color:#b8c4c7 transparent; }
#aposys-root .ap-message { position:relative; width:100%; max-width:800px; margin:0 auto 28px; padding:0 0 0 42px; border:0; border-radius:0; background:transparent; line-height:1.8; }
#aposys-root .ap-message .ap-speaker { position:absolute; left:0; top:3px; width:28px; height:28px; border-radius:9px; }
#aposys-root .ap-message .ap-speaker svg { width:21px; height:21px; }
#aposys-root .ap-message.ap-user { width:fit-content; max-width:88%; margin:0 0 28px auto; padding:12px 18px; background:#e9eee9; border-radius:18px 18px 4px 18px; color:var(--ap-ink); }
#aposys-root .ap-actions { gap:8px; margin-top:14px; }
#aposys-root .ap-actions button { font-size:13px; line-height:1.4; padding:10px 13px; background:#fffefb; }
#aposys-root .ap-guide { gap:10px; }
#aposys-root .ap-guide > button { padding:12px 16px; font-size:14px; background:#fffefb; }
#aposys-root .ap-welcome { margin:0 auto 22px; padding:0; white-space:normal; }
#aposys-root .ap-welcome-intro { text-align:center; max-width:620px; margin:6px auto 28px; }
#aposys-root .ap-welcome-intro > .ap-mark { width:62px; height:62px; border-radius:20px; margin-bottom:18px; }
#aposys-root .ap-welcome-intro > .ap-mark svg { width:42px; height:42px; stroke-width:1.3; }
#aposys-root .ap-welcome-intro h1,#aposys-root .ap-welcome-intro h2 { color:var(--ap-ink); font:400 clamp(27px,3.5vw,40px)/1.2 'DM Serif Display',Georgia,serif; letter-spacing:-.025em; margin:0 0 14px; }
#aposys-root .ap-welcome-intro p { color:var(--ap-muted); font-size:15px; line-height:1.7; margin:0 auto; max-width:430px; }
#aposys-root .ap-starters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#aposys-root .ap-starter { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; min-height:158px; padding:18px; border:1px solid var(--ap-line); border-radius:16px; background:#fffdf8; text-align:left; line-height:1.4; }
#aposys-root .ap-starter > svg { color:#8b6d26; width:23px; height:23px; margin-bottom:3px; }
#aposys-root .ap-starter-title { font-size:14px; font-weight:650; }
#aposys-root .ap-starter-desc { color:var(--ap-muted); font-size:12px; font-weight:400; line-height:1.6; }
#aposys-root .ap-goal-starter { display:grid; grid-template-columns:24px minmax(0,1fr); align-content:start; align-items:center; gap:12px 8px; }
#aposys-root .ap-goal-starter > svg { margin:0; }
#aposys-root .ap-goal-starter .ap-starter-desc { display:none; }
#aposys-root .ap-goal-actions { display:flex; grid-column:1/-1; flex-wrap:wrap; gap:5px; margin-top:4px; }
#aposys-root .ap-goal-actions button { min-height:44px; padding:7px 10px; font-size:12px; background:#f5f1e6; border-color:transparent; border-radius:8px; }
#aposys-root .ap-more { margin:16px 0 0; text-align:center; }
#aposys-root .ap-more > summary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 16px; color:var(--ap-muted); font-size:13px; cursor:pointer; list-style:none; }
#aposys-root .ap-more > summary::after { content:'⌄'; padding-left:8px; }
#aposys-root .ap-more .ap-actions { text-align:left; }
#aposys-root.ap-has-chat .ap-welcome-intro { display:none; }
#aposys-root .ap-compose { align-items:flex-end; margin:0 18px 8px; padding:10px; gap:8px; background:#fffefb; border:1px solid #cbd2ce; border-radius:22px; box-shadow:0 4px 18px #142d4907; }
#aposys-root .ap-compose:focus-within { border-color:var(--ap-ink); outline:2px solid #8a6d27; outline-offset:2px; }
#aposys-root textarea { min-height:64px; height:72px; max-height:180px; padding:8px 10px; border:0; outline:none; border-radius:0; background:transparent; box-shadow:none; font-size:15px; line-height:1.6; }
#aposys-root textarea:focus-visible { outline:none; }
#aposys-root textarea::placeholder { color:#5d6f7a; opacity:1; }
#aposys-root .ap-compose .ap-send { min-width:44px; width:44px; height:44px; min-height:44px; padding:10px; background:var(--ap-ink); border:0; color:#fffdf8; border-radius:14px; }
#aposys-root .ap-compose .ap-send:not(:disabled):hover { background:#2e526b; }
#aposys-root .ap-feedback { background:transparent; padding:0 24px 6px; }
#aposys-root .ap-feedback:empty { display:none; }
#aposys-root .ap-info { position:relative; flex:none; margin:0; padding:0 22px 10px; text-align:center; font-size:11px; color:var(--ap-muted); }
#aposys-root .ap-info > summary { display:inline-flex; align-items:center; min-height:44px; cursor:pointer; padding:0 8px; list-style:none; }
#aposys-root summary::-webkit-details-marker { display:none; }
#aposys-root .ap-info-body { position:absolute; bottom:100%; right:20px; width:min(320px,calc(100% - 40px)); text-align:left; padding:18px; background:#fffefb; border:1px solid var(--ap-line); border-radius:14px; box-shadow:0 8px 28px #142d491c; z-index:3; font-size:12px; }
#aposys-root .ap-info-body p { margin:0 0 10px; }
#aposys-root .ap-info-body a { color:var(--ap-ink); display:inline-flex; align-items:center; min-height:36px; }
#aposys-root .ap-attachments { background:transparent; padding:8px 22px; border:0; }
#aposys-root .ap-result { margin:16px 0 0; padding:20px; border:1px solid #d3ddd7; border-radius:18px; background:#f1f4ed; white-space:normal; }
#aposys-root .ap-grades { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0; }
#aposys-root .ap-grade-card { display:flex; flex-direction:column; align-items:center; gap:8px; }
#aposys-root .ap-grade-label { font-size:12px; color:var(--ap-muted); }
#aposys-root .ap-grade { display:inline-grid; place-items:center; width:64px; height:56px; border-radius:10px; background:#d5dedc; color:#18354e; font-size:32px; font-weight:750; line-height:1; }
#aposys-root .ap-grade-arrow { font-size:25px; color:var(--ap-muted); }
#aposys-root .ap-grade[data-grade=A] { background:#319c4f; color:#fff; }
#aposys-root .ap-grade[data-grade=B] { background:#54b65a; color:#18354e; }
#aposys-root .ap-grade[data-grade=C] { background:#c4d743; }
#aposys-root .ap-grade[data-grade=D] { background:#f4e234; }
#aposys-root .ap-grade[data-grade=E] { background:#f1b32a; }
#aposys-root .ap-grade[data-grade=F] { background:#e6731c; }
#aposys-root .ap-grade[data-grade=G] { background:#d52d24; color:#fff; }
#aposys-root.ap-expanded .ap-panel { width:100vw; max-width:100vw; height:100dvh; border:0; }
#aposys-root.ap-expanded .ap-log { padding-inline:max(24px,calc((100vw - 860px)/2)); }
#aposys-root.ap-expanded .ap-compose { width:min(820px,calc(100% - 48px)); margin-inline:auto; }
#aposys-root.ap-floating .ap-panel { height:min(820px,calc(100dvh - 24px)); max-width:calc(100vw - 16px); border:1px solid var(--ap-line); border-radius:22px; box-shadow:0 14px 50px #142d4933; }
#aposys-root.ap-home .ap-launch { position:static; width:fit-content; margin:0 auto 18px; background:var(--ap-ink); color:#fffdf8; border-color:var(--ap-ink); }
#aposys-root.ap-home .ap-panel { position:relative; width:100%; max-width:none; height:min(850px,calc(100svh - 100px)); min-height:600px; border:0; border-radius:0; box-shadow:none; }
#aposys-root.ap-home .ap-head { padding:4px 20px; border:0; }
#aposys-root.ap-home .ap-move { cursor:default; touch-action:auto; }
#aposys-root.ap-home .ap-log { padding:18px 30px; }
#aposys-root.ap-home .ap-compose { margin-inline:28px; }
#aposys-root.ap-home .ap-starter { min-height:132px; padding:18px; }
#aposys-root.ap-home .ap-welcome-intro { margin-bottom:22px; }
#aposys-root.ap-home .ap-welcome { margin-bottom:12px; }
#aposys-root.ap-home .ap-starter-title { font-size:15px; }
#aposys-root.ap-home .ap-starter-desc { font-size:13px; }
#aposys-root:not(.ap-home) .ap-welcome-intro h2 { font-size:30px; }
#aposys-root:not(.ap-home) .ap-welcome-intro > .ap-mark { width:48px; height:48px; margin-bottom:12px; border-radius:16px; }
#aposys-root:not(.ap-home) .ap-welcome-intro > .ap-mark svg { width:34px; height:34px; }
@media (max-width:640px) {
  #aposys-root .ap-panel { width:100%; padding-bottom:env(safe-area-inset-bottom); }
  #aposys-root .ap-head { padding:10px 12px; padding-top:max(10px,env(safe-area-inset-top)); }
  #aposys-root .ap-head .ap-move { min-height:44px; }
  #aposys-root .ap-tools > button[aria-label="Agrandir APOSYS"],#aposys-root .ap-tools > button[aria-label="Réduire la vue APOSYS"],#aposys-root .ap-tools > button[aria-label="Réduire APOSYS"] { display:none; }
  #aposys-root .ap-log { padding:20px 16px 10px; }
  #aposys-root .ap-message { padding-left:36px; font-size:15px; }
  #aposys-root .ap-message.ap-user { padding:11px 15px; }
  #aposys-root .ap-welcome { padding:0; }
  #aposys-root .ap-welcome-intro { margin-bottom:22px; }
  #aposys-root .ap-welcome-intro > .ap-mark { width:50px; height:50px; border-radius:16px; margin-bottom:14px; }
  #aposys-root .ap-welcome-intro > .ap-mark svg { width:35px; height:35px; }
  #aposys-root .ap-welcome-intro p { font-size:14px; }
  #aposys-root .ap-starters { gap:9px; }
  #aposys-root .ap-starter { padding:14px; min-height:150px; }
  #aposys-root .ap-starter-title { font-size:13px; }
  #aposys-root .ap-starter-desc { font-size:12px; }
  #aposys-root .ap-goal-actions { gap:4px; }
  #aposys-root .ap-goal-actions button { padding:6px; font-size:11px; }
  #aposys-root .ap-compose { margin-inline:12px; border-radius:19px; }
  #aposys-root textarea { font-size:16px; }
  #aposys-root .ap-context { padding:10px 16px; }
  #aposys-root .ap-info { padding-bottom:max(6px,env(safe-area-inset-bottom)); }
  #aposys-root.ap-home .ap-panel { height:calc(100svh - 72px); min-height:0; }
  #aposys-root.ap-home .ap-head { padding:4px 12px 10px; }
  #aposys-root.ap-home .ap-log { padding:12px 16px; }
  #aposys-root.ap-home .ap-compose { margin-inline:12px; }
  #aposys-root.ap-home .ap-starter { padding:14px; min-height:150px; }
  #aposys-root.ap-home .ap-starter-title { font-size:13px; }
  #aposys-root.ap-home .ap-starter-desc { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { #aposys-root button { transition:none; } }
@media (min-width:641px) {
  #aposys-root.ap-home .ap-welcome-intro > .ap-mark { width:54px; height:54px; margin-bottom:12px; }
  #aposys-root.ap-home .ap-welcome-intro > .ap-mark svg { width:38px; height:38px; }
  #aposys-root.ap-home .ap-welcome-intro h1 { margin-bottom:12px; }
  #aposys-root.ap-home .ap-welcome-intro p { line-height:1.6; }
  #aposys-root.ap-home .ap-welcome-intro { margin-bottom:18px; }
  #aposys-root.ap-home .ap-starter { min-height:126px; }
}
#aposys-root.ap-short .ap-context,#aposys-root.ap-short .ap-info,#aposys-root.ap-short .ap-welcome-intro { display:none; }
#aposys-root.ap-short .ap-head { padding:4px 8px; }
#aposys-root.ap-short .ap-subtitle { display:none; }
#aposys-root.ap-short .ap-log { padding-top:10px; padding-bottom:8px; }
#aposys-root.ap-short textarea { min-height:48px; height:52px; }

/* Floating assistant only: native pages keep their design and full width. */
#aposys-root .ap-mark { --ap-orb-size:36px; position:relative; display:inline-grid; place-items:center; width:var(--ap-orb-size); height:var(--ap-orb-size); padding:0; border-radius:50%; background:radial-gradient(ellipse at 30% 24%,#fff 0%,#f9f7ed 30%,#e4e8df 64%,#acbfbd 100%); box-shadow:inset -3px -5px 7px #18354e20,inset 2px 3px 5px #ffffffb3,0 2px 7px #142d4926; }
#aposys-root .ap-mark::after { content:''; position:absolute; top:16%; left:25%; width:24%; height:12%; border-radius:50%; background:#fff; opacity:.75; transform:rotate(-28deg); }
#aposys-root .ap-orb-face { display:flex; align-items:center; justify-content:center; gap:calc(var(--ap-orb-size) * .14); transform:translate(calc(var(--ap-look-x,0) * var(--ap-orb-size) * .12),calc(var(--ap-look-y,0) * var(--ap-orb-size) * .12)); transition:transform .08s ease-out; }
#aposys-root .ap-orb-eye { display:block; width:calc(var(--ap-orb-size) * .14); height:calc(var(--ap-orb-size) * .19); border-radius:50%; background:#18354e; box-shadow:inset 1px 1px 1px #fff3; }
#aposys-root .ap-message .ap-speaker { --ap-orb-size:28px; border-radius:50%; }
#aposys-root .ap-launch { width:60px; height:60px; min-height:60px; padding:4px; border-radius:50%; background:transparent; border:0; box-shadow:none; overflow:visible; }
#aposys-root .ap-launch .ap-mark { --ap-orb-size:52px; width:var(--ap-orb-size); height:var(--ap-orb-size); }
#aposys-root .ap-launch-help { position:absolute; right:calc(100% + 8px); top:50%; transform:translateY(-50%); white-space:nowrap; padding:8px 13px; border:1px solid #e3e5df; border-radius:24px; background:#faf8f3; color:#18354e; font-size:13px; font-weight:600; line-height:1.5; box-shadow:0 3px 12px #142d491c; }
#aposys-root .ap-launch:hover { background:transparent; }
#aposys-root .ap-launch:hover .ap-launch-help { background:#fffdf8; border-color:#bfc9ca; }
#aposys-root .ap-head .ap-move { justify-content:flex-start; }
#aposys-root .ap-head { padding:10px 14px; }
#aposys-root .ap-context { padding:6px 16px; gap:4px 10px; }
#aposys-root .ap-address:not(.ap-objective) { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#aposys-root .ap-current-tab { flex:none; }
#aposys-root.ap-floating .ap-panel { width:clamp(320px,38vw,440px); border-radius:18px; box-shadow:0 12px 36px #142d4926; }
#aposys-root .ap-log { padding:18px 18px 12px; }
#aposys-root:not(.ap-home) .ap-welcome-intro { text-align:left; margin:0 0 18px; }
#aposys-root:not(.ap-home) .ap-welcome-intro h2 { font-size:26px; }
#aposys-root .ap-welcome-intro p { font-size:14px; line-height:1.6; }
#aposys-root .ap-starters { gap:10px; }
#aposys-root .ap-starter { min-height:124px; padding:14px; gap:6px; }
#aposys-root .ap-compose { margin:8px 14px 6px; padding:6px 8px; flex:none; }
#aposys-root textarea { min-height:44px; height:44px; max-height:112px; padding:8px; line-height:1.5; }
#aposys-root.ap-input-focus .ap-head,#aposys-root.ap-input-focus .ap-context,#aposys-root.ap-input-focus .ap-info { display:none; }
#aposys-root.ap-input-focus .ap-compose { padding:6px; margin:0 10px 6px; }
#aposys-root.ap-input-focus .ap-log { padding:0; }
#aposys-root.ap-input-focus textarea { min-height:44px; max-height:44px; height:44px!important; }

.sim-root.ap-fluid-workshop > :is(.sim-page,.mode-tabs,.dossier-navigation) { width:calc(100% - 24px); max-width:none; margin-left:12px; margin-right:12px; box-sizing:border-box; }
.sim-root.ap-fluid-workshop .sim-main:not(:has(.sidekick-config > *)) { grid-template-columns:minmax(0,1fr); }
.sim-root.ap-fluid-workshop .col-sidekick:has(> .sidekick-config:empty) { display:none; }
.ap-page-search { --fiche:#fffdf8; --encre:#18354e; --encre-2:#536775; --trait:#d6dedf; --trait-fort:#9bafb8; --bleu:#18354e; --body:'DM Sans',system-ui,sans-serif; --mono:inherit; margin:16px 12px; padding:20px; border:1px solid #d6dedf; border-radius:12px; background:#faf8f3; color:#18354e; }
.ap-page-search[hidden] { display:none!important; }
.ap-search-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.ap-search-heading h2 { margin:0; font-size:18px; }
.ap-page-search button { cursor:pointer; min-height:44px; }
.ap-search-heading button { padding:8px 14px; border:1px solid #d6dedf; border-radius:8px; background:#fffdf8; color:#18354e; }
.ap-page-search > p { margin:8px 0 18px; font-size:13px; }
.ap-page-search .search .btn { padding:10px 16px; border:0; border-radius:8px; background:#18354e; color:#fff; }
.ap-page-search .hero-results { max-width:720px; }
.ap-page-search .hs-geo { margin-top:10px; background:transparent; border:0; color:#18354e; }
@media(min-width:641px) {
  .ap-page-search :is(.ap-search-heading,[data-inline-search],.hero-results,#vzmap-wrap) { max-width:min(720px,calc(100vw - clamp(320px,38vw,440px) - 72px)); }
}
@media(max-width:640px) {
  #aposys-root.ap-floating .ap-panel { width:100%; max-width:none; border-radius:16px 16px 0 0; }
  #aposys-root .ap-tools > button[aria-label="Réduire APOSYS"] { display:inline-grid; }
  #aposys-root .ap-log { padding:12px 18px 8px; }
  #aposys-root .ap-welcome-intro p { display:none; }
  #aposys-root .ap-welcome-intro h2 { margin-bottom:0; }
  #aposys-root .ap-starter { display:grid; grid-template-columns:22px minmax(0,1fr); align-content:start; align-items:center; min-height:90px; padding:10px; gap:6px; }
  #aposys-root .ap-starter > svg { width:19px; height:19px; margin:0; }
  #aposys-root .ap-starter-title { font-size:12.5px; line-height:1.3; }
  #aposys-root .ap-starter-desc { grid-column:1/-1; font-size:11.5px; line-height:1.5; }
  #aposys-root .ap-goal-actions { margin-top:0; }
  .sim-root.ap-fluid-workshop > :is(.sim-page,.mode-tabs,.dossier-navigation) { width:100%; margin-left:0; margin-right:0; }
  .ap-page-search { margin:12px 8px; padding:16px; }
  .ap-page-search .search input { min-width:0; width:100%; }
  .ap-search-open #sim-mobile .m-zone3 { overflow-y:auto; padding-bottom:210px; }
  .ap-search-open #sim-mobile .m-zone3 > * { flex-shrink:0; }
}
@media(prefers-reduced-motion:reduce) { #aposys-root .ap-orb-face { transform:none; transition:none; } }
