#applex-assistant{--applex-ink:#172b40;--applex-muted:#536778;--applex-border:#dce5eb;--applex-accent:#175c75;--applex-soft:#eef6f8;position:relative;max-width:100%;font-family:inherit;color:var(--applex-ink);font-size:14px;line-height:1.45;text-align:start}
#applex-entry{position:relative;display:flex;align-items:center;max-width:100%;min-width:44px;min-height:44px;font:inherit;color:inherit}
#applex-dialog-entry{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;font:inherit;color:inherit}
#applex-assistant *,#applex-assistant *::before,#applex-assistant *::after{box-sizing:border-box}
#applex-assistant button,#applex-assistant input,#applex-assistant select,#applex-assistant textarea{font:inherit}
#applex-assistant button{cursor:pointer;min-height:40px;border-radius:12px;border:1px solid transparent;transition:background .12s ease}
#applex-assistant button:disabled{cursor:default;opacity:.52}
#applex-assistant button:focus-visible,#applex-assistant input:focus-visible,#applex-assistant textarea:focus-visible,#applex-assistant select:focus-visible{outline:3px solid #ee8e58;outline-offset:2px}
#applex-entry .applex-launcher,button[data-applex-owned-launcher]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:4px;background:transparent;color:inherit;border:0;border-radius:12px;min-height:44px;cursor:pointer}
#applex-entry .applex-launcher:focus-visible,button[data-applex-owned-launcher]:focus-visible{outline:3px solid #ee8e58;outline-offset:2px}
#applex-entry .applex-mark,button[data-applex-owned-launcher] .applex-mark{display:block;width:36px;height:36px;object-fit:contain;filter:var(--applex-icon-filter,none)}
#applex-assistant .applex-panel{position:relative;width:min(430px,100%);max-height:680px;margin-top:8px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--applex-border);border-radius:20px;box-shadow:0 8px 24px #172b4018}
#applex-assistant.applex-embedded{display:flex;flex-direction:column;min-height:0;width:100%;height:100%}
#applex-assistant.applex-embedded .applex-body{padding:0;min-height:0}
#applex-assistant.applex-embedded .applex-footer{padding:10px 0 0;background:transparent}
#applex-entry .applex-focus-label{display:inline-block;max-width:min(280px,100%);vertical-align:middle;margin-inline-start:6px;color:inherit;font-size:12px;overflow-wrap:anywhere}
#applex-assistant .applex-field-hint{margin:0 0 12px;color:var(--applex-accent);font-size:12px}
#applex-assistant .applex-back-help{align-self:flex-start;margin:8px 12px 0}
#applex-assistant .applex-view-controls{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;padding:4px 12px;border-bottom:1px solid var(--applex-border)}
#applex-assistant .applex-view-controls button{font-size:12px;min-height:34px;padding:5px 8px}
#applex-assistant .applex-audio-meter,#applex-voice-state .applex-audio-meter{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:38px;height:24px;flex:0 0 auto}
#applex-assistant .applex-audio-meter i,#applex-voice-state .applex-audio-meter i{display:block;width:4px;height:22px;background:currentColor;border-radius:4px;transform:scaleY(calc(.12 + var(--applex-level,0)));transition:transform .09s linear;transform-origin:center}
#applex-assistant .applex-audio-meter i:nth-child(2n),#applex-voice-state .applex-audio-meter i:nth-child(2n){height:16px}
#applex-voice-state{position:fixed;z-index:2100;left:12px;top:12px;max-width:calc(100vw - 24px);font-family:inherit;color:#172b40;font-size:12px;line-height:1.4;text-align:start}
#applex-voice-state *{box-sizing:border-box}
#applex-voice-state .applex-voice-bubble{width:min(250px,calc(100vw - 24px));padding:7px 9px;border:1px solid #dce5eb;border-radius:14px;background:#fff;box-shadow:0 6px 24px #172b4026}
#applex-voice-state .applex-voice-summary{display:flex;justify-content:space-between;align-items:center;gap:8px}
#applex-voice-state button{font:inherit;cursor:pointer;border:1px solid #dce5eb;border-radius:8px;background:#eef6f8;color:#175c75;padding:5px 7px;min-height:32px}
#applex-voice-state .applex-voice-summary button{font-size:20px;min-width:32px;padding:0;background:transparent}
#applex-voice-state .applex-voice-phase{display:flex;align-items:center;gap:7px;margin:4px 0;color:#175c75}
#applex-voice-state .applex-speech-preview{margin:5px 0 8px;max-height:3.9em;overflow:hidden;overflow-wrap:anywhere}
#applex-voice-state .applex-voice-actions{display:flex;gap:5px;flex-wrap:wrap}
#applex-voice-state button:focus-visible{outline:3px solid #ee8e58;outline-offset:2px}
#applex-voice-state[data-applex-compact="true"] .applex-voice-bubble{width:min(190px,calc(100vw - 24px));padding:5px 7px}
#applex-voice-state[data-applex-compact="true"] .applex-speech-preview{max-height:1.4em;margin:2px 0;white-space:nowrap;text-overflow:ellipsis}
#applex-voice-state[data-applex-compact="true"] .applex-voice-actions button:first-child{display:none}
#applex-voice-state[data-applex-compact="true"] .applex-voice-summary strong{font-size:11px}
#applex-voice-state[data-applex-compact="true"] .applex-voice-phase{font-size:11px;margin:1px 0}
@media(min-width:901px){#applex-assistant.applex-workspace .applex-panel{position:fixed;z-index:2000;left:var(--applex-panel-left,12px);bottom:var(--applex-panel-bottom,64px);width:min(430px,calc(100vw - 24px));height:var(--applex-panel-height,600px);max-height:calc(100dvh - 24px);margin:0}}
@media(max-width:900px){#applex-assistant.applex-workspace .applex-panel{position:fixed;z-index:2000;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 82px);bottom:calc(env(safe-area-inset-bottom,0px) + 12px);width:auto;height:auto;max-height:none;margin:0}}
#applex-assistant.applex-workspace[data-applex-dialog="true"] .applex-panel{position:fixed;left:var(--applex-panel-left);right:auto;top:var(--applex-panel-top);bottom:auto;width:var(--applex-panel-width);height:var(--applex-panel-height);max-height:var(--applex-panel-height);margin:0}
#applex-assistant .applex-panel[popover]:not(:popover-open){display:none}
#applex-assistant .applex-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;background:var(--applex-soft);border-bottom:1px solid var(--applex-border);flex:0 0 auto}
#applex-assistant .applex-header strong{display:block;font-size:19px;letter-spacing:-.02em}
#applex-assistant .applex-header small{display:block;color:var(--applex-muted);font-size:12px;margin-top:2px}
#applex-assistant .applex-close{min-width:40px;padding:0;font-size:25px;background:transparent;color:var(--applex-ink)}
#applex-assistant .applex-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scrollbar-width:thin}
#applex-assistant .applex-messages{max-height:330px;min-height:70px;overflow:auto;overscroll-behavior:contain;padding:0 1px 12px;scrollbar-width:thin}
#applex-assistant .applex-welcome{margin:0 0 16px;color:var(--applex-muted)}
#applex-assistant .applex-message{width:92%;border-radius:14px;padding:10px 12px;margin:0 0 10px;background:var(--applex-soft);overflow-wrap:anywhere}
#applex-assistant .applex-message p{margin:0;white-space:pre-wrap}
#applex-assistant .applex-message-user{margin-inline-start:auto;background:#e9edf1}
#applex-assistant .applex-message-assistant{margin-inline-end:auto;border:1px solid #d7e7ec}
#applex-assistant .applex-voice{display:block;margin-top:8px;padding:0 8px!important;min-height:32px!important;background:#fff!important;color:var(--applex-accent)!important;border-color:var(--applex-border)!important;font-size:12px!important}
#applex-assistant .applex-compose{display:block;margin:0}
#applex-assistant label,#applex-assistant legend{display:block;margin-bottom:6px;font-weight:550;font-size:13px}
#applex-assistant textarea,#applex-assistant input,#applex-assistant select{display:block;width:100%;border:1px solid #becdd6;border-radius:12px;padding:10px 12px;background:#fff;color:var(--applex-ink);font-size:15px;box-shadow:none!important;min-height:42px}
#applex-assistant textarea{resize:vertical;max-height:200px;min-height:72px}
#applex-assistant .applex-compose-actions,#applex-assistant .applex-crop-actions,#applex-assistant .applex-review-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}
#applex-assistant .applex-compose-actions .applex-primary{margin-inline-start:auto}
#applex-assistant .applex-primary{background:var(--applex-accent);color:#fff;padding:8px 13px}
#applex-assistant .applex-secondary{background:var(--applex-soft);color:var(--applex-accent);border-color:#c9dfe7;padding:8px 10px}
#applex-assistant .applex-quiet{background:transparent;color:var(--applex-muted);padding:8px}
#applex-assistant .applex-small{font-size:12px;color:var(--applex-muted);margin:8px 0 0}
#applex-assistant .applex-recording{margin:9px 0 0;color:#a33734;font-size:13px;font-weight:600}
#applex-assistant .applex-footer{flex:0 0 auto;padding:10px 16px 13px;border-top:1px solid var(--applex-border);background:#fafcfd}
#applex-assistant .applex-footer .applex-small{margin-top:4px;font-size:11px}
#applex-assistant .applex-status{font-size:12px;color:var(--applex-accent);overflow-wrap:anywhere}
#applex-assistant .applex-document-picker>button{margin-top:8px}
#applex-assistant .applex-review{margin-top:14px}
#applex-assistant .applex-review p{margin:0 0 10px}
#applex-assistant .applex-review-notice{padding:10px 12px;background:var(--applex-soft);border-radius:12px;font-size:13px}
#applex-assistant .applex-warning{color:#7f541d;background:#fff7e8;border:1px solid #ecdcba;padding:8px 10px;border-radius:10px;font-size:12px}
#applex-assistant figure{margin:0 0 10px}
#applex-assistant figcaption{margin-bottom:5px;font-weight:600;font-size:13px}
#applex-assistant .applex-crop-stage{position:relative;width:100%;border:1px solid var(--applex-border);border-radius:9px;overflow:hidden;background:#e9edf1;line-height:0;user-select:none}
#applex-assistant .applex-crop-stage>img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:0;pointer-events:none}
#applex-assistant .applex-corners{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:visible}
#applex-assistant .applex-corners polygon{fill:#175c7525;stroke:#ef8b43;stroke-width:7;pointer-events:none}
#applex-assistant .applex-corners circle{fill:#fff;stroke:#175c75;stroke-width:8;cursor:move;touch-action:none;outline:none}
#applex-assistant .applex-corners circle:focus{fill:#f7bc8d;stroke:#d5682a;stroke-width:12}
#applex-assistant .applex-crop-actions{margin-bottom:12px}
#applex-assistant .applex-crop-actions button{font-size:12px;padding:6px 9px}
#applex-assistant .applex-corrected{margin-top:16px}
#applex-assistant .applex-corrected img{display:block;width:auto;height:auto;max-width:100%;max-height:350px;margin:0 auto;border:1px solid var(--applex-border);border-radius:9px;object-fit:contain}
#applex-assistant .applex-corrected.is-outdated img{opacity:.5}
#applex-assistant .applex-field{margin-bottom:10px}
#applex-assistant .applex-field input,#applex-assistant .applex-field textarea{margin-top:5px}
#applex-assistant .applex-fields{margin:12px 0;padding:12px;border:1px solid var(--applex-border);border-radius:12px}
#applex-assistant .applex-fields legend{padding:0 5px;width:auto}
#applex-assistant .applex-field small{display:inline-block;margin-inline-start:5px;color:#8a5e1e;font-weight:400}
@media(max-width:700px){
  #applex-entry .applex-focus-label{position:absolute;inline-size:1px;block-size:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
  #applex-assistant .applex-panel{width:100%;max-height:70dvh;border-radius:17px}
  #applex-assistant .applex-body{padding:12px}
  #applex-assistant .applex-messages{max-height:32dvh}
  #applex-assistant .applex-compose-actions button{font-size:12px;padding:7px 9px}
  #applex-assistant textarea,#applex-assistant input,#applex-assistant select{font-size:16px}
  #applex-assistant .applex-corners circle{r:25px;stroke-width:10}
}
@media(prefers-reduced-motion:reduce){#applex-assistant button{transition:none}}

@media(min-width:1001px){body:has(.portal-sidebar) .appstead-footer{padding-inline-start:calc(var(--portal-sidebar-width,0px) + 92px);}}

/* Process-internal document review controls. */
.applex-review-check{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:.55rem;margin:.65rem 0;line-height:1.45}.applex-review-check input[type=checkbox]{width:1.1rem;height:1.1rem;min-width:1.1rem;margin:.12rem 0 0;accent-color:var(--accent,#8b5cf6)}.applex-review-confirmations{border:1px solid var(--line,#d8dde6);border-radius:.7rem;padding:.7rem;margin-top:1rem}.applex-review-confirmations legend{padding:0 .3rem;font-weight:700}.applex-review-field-row{margin-bottom:.8rem}.applex-review-field-row>.applex-review-check{margin-top:.15rem}.applex-review-field-row [data-applex-field-corrected]{display:block;margin-inline-start:1.65rem;color:inherit}.applex-review-check input:focus-visible{outline:2px solid var(--accent,#8b5cf6);outline-offset:3px}[data-applex-review-state]:empty{display:none}
