/* AFP 0.7.1 — dedicated conversation application, not a resized popup. */
.afp-chat-page-body {--afp-page-bg:#fff;--afp-page-soft:#f7f8f7;--afp-page-text:#24362c;--afp-page-muted:#5b6c61;--afp-page-line:#e1e7e2;background:var(--afp-page-bg)!important;color:var(--afp-page-text)}
html[data-theme=dark] .afp-chat-page-body {--afp-page-bg:#191e1b;--afp-page-soft:#202823;--afp-page-text:#edf3ee;--afp-page-muted:#b5c2b9;--afp-page-line:#35463a}
.afp-chat-page-body .ann,.afp-chat-page-body .navbar,.afp-chat-page-body .hdr__search-wrap {display:none!important}
.afp-chat-page-body #site-header {position:relative!important;background:var(--afp-page-bg)!important;border-bottom:1px solid var(--afp-page-line);box-shadow:none!important;z-index:30}
.afp-chat-page-body #site-header:after {display:none!important}
.afp-chat-page-body .hdr__main {min-height:64px!important;padding-block:8px!important}
.afp-chat-page-body #site-header .theme-toggle--mobile {display:inline-flex!important}
.afp-chat-page-body #site-header .langpick--mobile-header {display:block!important}
.afp-chat-page-body #site-header .afp-chat-entry {display:none!important}
.afp-chat-workspace {display:grid;grid-template-columns:240px minmax(0,1fr);max-width:none;width:100%;height:var(--afp-workspace-height,calc(100dvh - 65px));min-height:220px;margin:0;padding:0;background:var(--afp-page-bg);color:var(--afp-page-text);font:400 16px/1.7 Vazir,"Noto Sans Arabic",Tahoma,system-ui,sans-serif;overflow:hidden}
.afp-chat-rail {display:flex;flex-direction:column;gap:24px;min-width:0;padding:24px 16px;background:var(--afp-page-soft);border-inline-end:1px solid var(--afp-page-line);overflow:auto}
.afp-rail-brand {display:flex;gap:10px;align-items:center;min-height:44px;color:var(--afp-page-text)!important;font-size:16px;font-weight:700;text-decoration:none!important}
.afp-rail-mark {font:800 16px/1 system-ui,sans-serif;letter-spacing:1px;color:#176447;background:#e7f2eb;padding:12px 8px;border-radius:8px}
html[data-theme=dark] .afp-rail-mark {color:#91d7b1;background:#2c4032}
.afp-rail-reset {display:flex;align-items:center;gap:10px;width:100%;min-height:46px;border:1px solid var(--afp-page-line);border-radius:8px;padding:10px 12px;background:var(--afp-page-bg);color:var(--afp-page-text);font:inherit;font-size:14px;cursor:pointer;text-align:start}
.afp-rail-reset:hover {border-color:#7b9585}
.afp-chat-page-links {display:flex;flex-direction:column;gap:8px;font-size:14px}
.afp-chat-page-links a {display:flex;align-items:center;gap:12px;min-height:44px;border-radius:8px;padding:8px 12px;color:var(--afp-page-muted);text-decoration:none}
.afp-chat-page-links a:before {content:"↗";font-size:20px}
.afp-chat-page-links a:hover {background:var(--afp-page-bg);color:var(--afp-page-text)}
.afp-rail-note {margin-top:auto;padding:16px 8px 0;border-top:1px solid var(--afp-page-line);font-size:14px;color:var(--afp-page-muted)}
.afp-rail-note p {margin:8px 0 0;font-size:14px;line-height:1.8}
.afp-chat-no-account {font-size:14px;color:var(--afp-page-muted)}
.afp-chat-stage {display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.afp-chat-page-intro {display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:10px 32px;margin:0}
.afp-chat-page-intro h1 {margin:0;color:var(--afp-page-text);font:650 18px/1.6 Vazir,Tahoma,system-ui,sans-serif}
.afp-chat-page-intro p {display:none}
.afp-page-actions {display:flex;align-items:center;flex:none}
.afp-chat-page-mount {min-height:0;min-width:0;flex:1;display:flex}
#afp-chat-root.afp-chat-page-mode,#afp-chat-root.afp-chat-page-mode[dir=ltr] {position:relative;inset:auto;width:100%;height:100%!important;max-height:none;min-height:0;z-index:1;font-size:16px;box-sizing:border-box;--afp-bg:var(--afp-page-bg);--afp-soft:var(--afp-page-soft);--afp-text:var(--afp-page-text);--afp-muted:var(--afp-page-muted);--afp-border:var(--afp-page-line);--afp-input-border:#82958a;--afp-accent:#176447;--afp-accent-hover:#104f37;--afp-accent-text:#fff;--afp-user-bg:#eef3ef;--afp-focus:#2879bb;color-scheme:light}
html[data-theme=dark] #afp-chat-root.afp-chat-page-mode {--afp-input-border:#71877a;--afp-accent:#91d7b1;--afp-accent-hover:#b0e5c7;--afp-accent-text:#142a1d;--afp-user-bg:#2b3930;--afp-focus:#8cbeff;color-scheme:dark}
#afp-chat-root.afp-chat-page-mode .afp-panel {position:relative;inset:auto!important;width:100%;max-width:none;height:100%;max-height:none;min-height:0;border:0;border-radius:0;background:var(--afp-bg);box-shadow:none}
#afp-chat-root.afp-chat-page-mode .afp-header,#afp-chat-root.afp-chat-page-mode .afp-launcher,#afp-chat-root.afp-chat-page-mode .afp-close {display:none!important}
#afp-chat-root.afp-chat-page-mode .afp-log {padding:24px max(24px,calc((100% - 780px)/2));scroll-padding-block:24px;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
#afp-chat-root.afp-chat-page-mode .afp-log>:not(.afp-user) {max-width:780px;margin-inline:auto}
#afp-chat-root.afp-chat-page-mode .afp-message {font-size:16px;line-height:1.95;margin-bottom:24px}
#afp-chat-root.afp-chat-page-mode .afp-user {max-width:82%;padding:10px 16px;border-radius:12px;width:fit-content;margin-inline-start:auto;margin-inline-end:0}
#afp-chat-root.afp-chat-page-mode .afp-graph {margin-top:24px}
#afp-chat-root.afp-chat-page-mode .afp-graph-question {font-size:18px;font-weight:650;margin-bottom:16px;line-height:1.8}
#afp-chat-root.afp-chat-page-mode .afp-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#afp-chat-root.afp-chat-page-mode .afp-option {padding:10px 16px;border-color:var(--afp-border);border-radius:8px;min-height:46px;height:auto;white-space:normal;line-height:1.7}
#afp-chat-root.afp-chat-page-mode .afp-options .afp-option {color:var(--afp-text);background:var(--afp-soft)}
#afp-chat-root.afp-chat-page-mode .afp-options .afp-option:hover {border-color:var(--afp-input-border);background:var(--afp-user-bg)}
#afp-chat-root.afp-chat-page-mode .afp-options .afp-option:last-child:nth-child(odd) {grid-column:1/-1}
#afp-chat-root.afp-chat-page-mode .afp-graph-nav {gap:8px;margin-top:20px}
#afp-chat-root.afp-chat-page-mode .afp-graph-nav .afp-option {flex:0 1 auto;min-width:0;width:auto;padding:8px 14px;font-size:14px;background:transparent;color:var(--afp-muted)}
#afp-chat-root.afp-chat-page-mode .afp-hint {font-size:14px;line-height:1.8;margin:12px 0;color:var(--afp-muted)}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-log {padding-top:clamp(24px,8vh,88px)}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-assistant {white-space:normal;margin-bottom:24px}
#afp-chat-root.afp-chat-page-mode .afp-welcome-title {display:block;font-size:28px;line-height:1.65;font-weight:700;letter-spacing:-.4px}
#afp-chat-root.afp-chat-page-mode .afp-welcome-subtitle {display:block;font-size:16px;font-weight:400;color:var(--afp-muted);line-height:1.8;margin-top:8px}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-graph-question {display:none}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-graph {margin-top:0}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-options .afp-option {min-height:58px;display:flex;gap:12px;align-items:center}
#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-options .afp-option:before {content:"↗";font-size:18px;color:var(--afp-muted);flex:none}
#afp-chat-root.afp-chat-page-mode .afp-controls {flex:none;position:relative;overflow:visible;max-height:none;padding:8px max(24px,calc((100% - 780px)/2)) 20px;background:var(--afp-bg);border-top:0;z-index:5}
#afp-chat-root.afp-chat-page-mode .afp-consent-row {display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;margin:0 0 4px;font-size:14px}
#afp-chat-root.afp-chat-page-mode .afp-consent {font-size:14px;line-height:1.6;padding:6px 0;min-height:44px;align-items:center}
#afp-chat-root.afp-chat-page-mode .afp-consent input {margin:0;width:18px;height:18px}
#afp-chat-root.afp-chat-page-mode .afp-privacy-details {position:static;flex:none;margin:0;padding:0;border:0}
#afp-chat-root.afp-chat-page-mode .afp-privacy-details>summary {display:flex;align-items:center;gap:6px;list-style:none;min-height:44px;padding:6px 0;background:transparent;color:var(--afp-muted);font-size:14px;border:0;white-space:nowrap;cursor:pointer}
#afp-chat-root.afp-chat-page-mode .afp-privacy-details>summary::-webkit-details-marker {display:none}
#afp-chat-root.afp-chat-page-mode .afp-privacy-details[open] .afp-notice {position:absolute;inset-inline-end:0;bottom:calc(100% + 8px);width:min(480px,100%);max-height:240px;overflow:auto;margin:0;padding:16px;background:var(--afp-soft);border:1px solid var(--afp-input-border);border-radius:12px;box-shadow:0 4px 20px #00000016}
#afp-chat-root.afp-chat-page-mode .afp-form {padding:8px;gap:8px;align-items:flex-end;border:1px solid var(--afp-input-border);border-radius:12px;min-height:66px;box-shadow:0 2px 8px #00000005}
#afp-chat-root.afp-chat-page-mode .afp-form:focus-within {outline:2px solid var(--afp-focus);outline-offset:2px}
#afp-chat-root.afp-chat-page-mode .afp-form textarea {padding:8px 10px;min-height:44px;height:44px;max-height:136px;border:0!important;outline:0!important;box-shadow:none!important;line-height:1.7;overflow-y:auto}
#afp-chat-root.afp-chat-page-mode .afp-send {display:grid;place-items:center;min-height:44px;min-width:44px;width:44px;height:44px;padding:0;border-radius:8px;font-size:0}
#afp-chat-root.afp-chat-page-mode .afp-send svg {width:22px;height:22px}
#afp-chat-root.afp-chat-page-mode .afp-status {margin:8px 0 0;font-size:14px}
#afp-chat-root.afp-chat-page-mode .afp-request-actions {display:flex;gap:8px;align-items:center;justify-content:flex-end}
#afp-chat-root.afp-chat-page-mode .afp-request-actions:has(>button:not([hidden])) {margin-top:8px}
#afp-chat-root.afp-chat-page-mode .afp-request-actions .afp-option {width:auto;min-height:44px;font-size:14px;padding:8px 14px}
#afp-chat-root.afp-chat-page-mode .afp-summary {padding:16px;background:var(--afp-soft);border:1px solid var(--afp-border);border-radius:12px}
#afp-chat-root.afp-chat-page-mode .afp-response-actions {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
#afp-chat-root.afp-chat-page-mode .afp-response-actions>button {width:auto;flex:0 1 auto;min-height:44px;font-size:14px;padding:8px 14px;text-align:center;background:transparent}
#afp-chat-root.afp-chat-page-mode .afp-response-actions>button:nth-child(3) {background:var(--afp-accent);color:var(--afp-accent-text)}
#afp-chat-root.afp-chat-page-mode .afp-response-actions>.afp-support-form,#afp-chat-root.afp-chat-page-mode .afp-response-actions>.afp-hint {width:100%;flex-basis:100%}
#afp-chat-root.afp-chat-page-mode .afp-route {width:auto;margin:16px 0}
#afp-chat-root.afp-chat-page-mode .afp-sources {padding:0;background:transparent;border:1px solid var(--afp-border);border-radius:8px;margin:20px 0}
#afp-chat-root.afp-chat-page-mode .afp-sources summary {padding:12px 16px;min-height:48px;font-size:14px;cursor:pointer;color:var(--afp-muted)}
#afp-chat-root.afp-chat-page-mode .afp-sources details[open] {padding-bottom:8px}
#afp-chat-root.afp-chat-page-mode .afp-sources details>a,#afp-chat-root.afp-chat-page-mode .afp-sources details>.afp-hint {margin-inline:16px}
#afp-chat-root.afp-chat-page-mode .afp-sources a {padding-block:8px;min-height:44px}
#afp-chat-root.afp-chat-page-mode .afp-support-form,#afp-chat-root.afp-chat-page-mode .afp-handoff {padding:24px;border:1px solid var(--afp-border);border-radius:12px;background:var(--afp-soft);max-width:720px;margin-inline:auto}
#afp-chat-root.afp-chat-page-mode .afp-support-form .afp-handoff {padding:16px}
#afp-chat-root.afp-chat-page-mode .afp-support-form .afp-selection-label {margin-top:16px;font-size:14px}
#afp-chat-root.afp-chat-page-mode .afp-support-form input {min-height:48px}
#afp-chat-root.afp-chat-page-mode .afp-support-form textarea {min-height:96px}
#afp-chat-root.afp-chat-page-mode.afp-local-form .afp-controls {display:none}
#afp-chat-root.afp-chat-page-mode :is(.afp-graph-question,.afp-assistant):focus {outline:0!important;box-shadow:none!important;border:0!important}
.afp-page-actions .afp-clear {display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--afp-page-line);border-radius:8px;padding:8px 12px;color:var(--afp-page-muted);background:transparent;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.afp-page-actions .afp-clear:hover {background:var(--afp-page-soft)}
.afp-chat-workspace :is(a,button,summary):focus-visible {outline:2px solid #4288c5;outline-offset:3px}
@media(max-width:900px){.afp-chat-workspace {grid-template-columns:200px minmax(0,1fr)}.afp-chat-page-intro{padding-inline:24px}.afp-chat-rail{padding-inline:12px}}
@media(max-width:720px){
 .afp-chat-workspace {display:flex;flex-direction:column}
 .afp-chat-rail {display:none}
 .afp-chat-stage {flex:1}
 .afp-chat-page-body .hdr__main {min-height:60px!important;padding-block:6px!important}
 .afp-chat-page-intro {min-height:56px;padding:6px 16px;gap:8px}
 .afp-chat-page-intro h1 {font-size:16px}
 .afp-page-actions .afp-clear {font-size:14px;border:0;padding:6px;gap:4px}
 #afp-chat-root.afp-chat-page-mode .afp-log {padding:20px 16px;scroll-padding-top:20px}
 #afp-chat-root.afp-chat-page-mode .afp-controls {padding:4px 16px max(12px,env(safe-area-inset-bottom,0px))}
 #afp-chat-root.afp-chat-page-mode.afp-start-view .afp-log {padding-top:clamp(20px,5vh,44px)}
 #afp-chat-root.afp-chat-page-mode .afp-welcome-title {font-size:24px}
 #afp-chat-root.afp-chat-page-mode.afp-start-view .afp-assistant {margin-bottom:20px}
 #afp-chat-root.afp-chat-page-mode .afp-consent-row {gap:8px}
 #afp-chat-root.afp-chat-page-mode .afp-consent {gap:8px}
 #afp-chat-root.afp-chat-page-mode .afp-privacy-details>summary svg {display:none}
 #afp-chat-root.afp-chat-page-mode .afp-options {gap:8px}
 #afp-chat-root.afp-chat-page-mode .afp-options .afp-option {padding:10px 12px;font-size:16px}
 #afp-chat-root.afp-chat-page-mode.afp-start-view .afp-options .afp-option:before {display:none}
 #afp-chat-root.afp-chat-page-mode .afp-support-form,#afp-chat-root.afp-chat-page-mode .afp-handoff {padding:16px}
 #afp-chat-root.afp-chat-page-mode .afp-response-actions>button {flex:1 1 auto}
 #afp-chat-root.afp-chat-page-mode .afp-response-actions>button:nth-child(3) {flex-basis:100%}
}
@media(max-width:359px){#afp-chat-root.afp-chat-page-mode .afp-options {grid-template-columns:1fr}.afp-chat-page-intro h1{font-size:14px}.afp-page-actions .afp-clear{font-size:14px}.afp-page-actions .afp-clear svg{display:none}}
@media(max-height:500px){#afp-chat-root.afp-chat-page-mode.afp-start-view .afp-log{padding-top:16px}.afp-chat-page-intro{min-height:48px}.afp-chat-page-body .hdr__main{min-height:56px!important}.afp-chat-rail{gap:12px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.afp-chat-workspace *{scroll-behavior:auto!important;transition:none!important}}

/* Keep disclosure controls independent of the site's generic details styling. */
#afp-chat-root.afp-chat-page-mode .afp-sources summary {background:transparent!important;color:var(--afp-muted)!important;border:0!important;border-radius:8px;margin:0;line-height:1.7;padding:10px 16px;min-height:46px}
#afp-chat-root.afp-chat-page-mode .afp-graph:has(>.afp-response-actions)>.afp-option {display:inline-flex;align-items:center;width:auto;min-height:44px;padding:8px 14px;font-size:14px;margin-block:4px;margin-inline-end:8px;color:var(--afp-muted);background:transparent}
.afp-rail-new .afp-clear {text-decoration:none;box-shadow:none;font-size:14px}
#afp-chat-root.afp-chat-page-mode .afp-math-gate label bdi {display:inline-block;font-variant-numeric:tabular-nums;margin-inline-start:4px}
#afp-chat-root.afp-chat-page-mode .afp-sources details {background:var(--afp-bg)!important;border:0!important;border-radius:8px;margin:0;padding:0;box-shadow:none}
#afp-chat-root.afp-chat-page-mode .afp-sources summary {background:var(--afp-soft)!important}
#afp-chat-root.afp-chat-page-mode .afp-user {margin-left:auto;margin-right:0}
