/* Built from the existing day theme. Native LibreChat html.dark is the only mode switch. */
/* 啊婆AI presentation layer. Native LibreChat controls and data are preserved. */html:not(.dark),html:not(.dark),html:not(.dark){color-scheme:light;--presentation:#faf8f3;--white:#fffefa;--text-primary:#4b2c24;--text-secondary:#806e60;--text-secondary-alt:#927d6c;--text-tertiary:#927d6c;--header-primary:#faf8f3;--header-hover:#eee6da;--header-button-hover:#eee6da;--surface-primary:#faf8f3;--surface-primary-alt:#f6f2e9;--surface-primary-contrast:#eee6da;--surface-secondary:#f0ece3;--surface-secondary-alt:#e5ddce;--surface-tertiary:#e9e0d2;--surface-tertiary-alt:#fffefa;--surface-dialog:#fffefa;--surface-active:#e5ddce;--surface-active-alt:#e9dfcf;--surface-hover:#e9e0d2;--surface-hover-alt:#e1d5c2;--surface-chat:#fffefa;--surface-submit:#dd783e;--surface-submit-hover:#bf6030;--border-light:#eae5dc;--border-medium:#dfd2c2;--border-medium-alt:#dfd2c2;--border-heavy:#c7b29b;--border-xheavy:#a18b73;--ring-primary:#dd783e;--brand-purple:#dd783e;--green-500:#dd783e;--green-600:#cf6d35;--green-700:#c96933;--green-800:#b95b2b;--background:43 41% 97%;--foreground:12 35% 22%;--card:45 100% 99%;--card-foreground:12 35% 22%;--popover:45 100% 99%;--popover-foreground:12 35% 22%;--primary:22 70% 55%;--primary-foreground:45 100% 99%;--secondary:40 27% 91%;--secondary-foreground:12 35% 22%;--muted:40 27% 91%;--muted-foreground:27 15% 44%;--accent:35 28% 86%;--accent-foreground:12 35% 22%;--border:36 25% 85%;--input:36 25% 85%;--ring:22 70% 55%}
html:not(.dark) body{background:#faf8f3!important;color:#4b2c24;font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
html:not(.dark) input,html:not(.dark) textarea,html:not(.dark) button{font-family:inherit}
html:not(.dark) main{background-color:#faf8f3}
html:not(.dark) button:focus-visible,html:not(.dark) a:focus-visible{outline-color:#dd783e}
html:not(.dark) input,html:not(.dark) textarea{color:var(--text-primary)}
html:not(.dark) input::placeholder,html:not(.dark) textarea::placeholder{color:#a99886!important}
html:not(.dark) form:has([data-testid="text-input"])>div{border-radius:22px}
html:not(.dark) div:has(>textarea[data-testid="text-input"]){background:transparent}
html:not(.dark) textarea[data-testid="text-input"]{line-height:1.85!important}
html:not(.dark) button[data-testid="send-button"]{background:#dd783e!important;color:#fffefa!important;border-radius:12px!important}
html:not(.dark) [data-testid="new-chat-button"]{border:1px solid #d8c8b2!important;border-radius:13px!important;margin-top:12px;margin-bottom:12px;background:#f7f1e7!important}
html:not(.dark) nav{background:#f0ece3}
html:not(.dark) nav:before{content:"啊婆AI";display:block;background:url('/apoa/logo.png') no-repeat 16px center;background-size:48px;padding:24px 18px 24px 78px;font-size:24px;font-weight:750;color:#4b2c24;letter-spacing:.5px}
html:not(.dark) nav a,html:not(.dark) nav button{border-radius:11px}
html:not(.dark) h1,html:not(.dark) h2{letter-spacing:.025em}
html:not(.dark) .apoa-landing-logo{display:block;width:112px;height:112px;object-fit:contain;margin:0 auto 16px;mix-blend-mode:multiply}
html:not(.dark) .apoa-subtitle{text-align:center;font-size:13px;color:#927d6c;letter-spacing:.06em;margin:14px 12px 0;line-height:1.8}
html:not(.dark) h1.apoa-welcome,html:not(.dark) h2.apoa-welcome{font-size:clamp(26px,3vw,38px)!important;font-weight:550!important;color:#4b2c24!important}
html:not(.dark) img[src*="logo.svg"]{content:url('/apoa/logo.png');height:100px!important;object-fit:contain}
html:not(.dark) body:has(input[type="password"]) .bg-white,html:not(.dark) body:has(input[type="password"]) .dark\:bg-gray-900{background:#faf8f3!important}
html:not(.dark) body:has(input[type="password"]) .text-black,html:not(.dark) body:has(input[type="password"]) .dark\:text-white{color:#4b2c24!important}
html:not(.dark) body:has(input[type="password"]) input{background:#fffefa!important;border-color:#dfd2c2!important;border-radius:13px!important;color:#4b2c24!important}
html:not(.dark) body:has(input[type="password"]) button[type="submit"]{background:#dd783e!important;border-radius:13px!important;color:white!important}
html:not(.dark) body:has(input[type="password"]) main{padding:30px 0}
html:not(.dark) body:has(input[type="password"]) div:has(>img[src*="logo.svg"]){height:100px!important}
html:not(.dark) code,html:not(.dark) pre{font-family:ui-monospace,SFMono-Regular,monospace}
html:not(.dark) pre{background:#f0ece3!important;color:#4b2c24!important;border:1px solid #dfd2c2;border-radius:14px}
html:not(.dark) pre code{color:inherit}
html:not(.dark) ::selection{background:#f0c6a6;color:#4b2c24}
@media(max-width:767px){html:not(.dark) nav:before{padding-top:18px;padding-bottom:18px;font-size:21px}
html:not(.dark) .apoa-landing-logo{width:88px;height:88px}
html:not(.dark) .apoa-subtitle{font-size:12px}
html:not(.dark) textarea[data-testid="text-input"]{font-size:16px!important}
}html:not(.dark) input.webkit-dark-styles,html:not(.dark) input.webkit-dark-styles:-webkit-autofill{background-color:#fffefa!important;-webkit-text-fill-color:#4b2c24!important;-webkit-box-shadow:0 0 0 1000px #fffefa inset!important;box-shadow:0 0 0 1000px #fffefa inset!important}
html:not(.dark) label[for="email"],html:not(.dark) label[for="password"],html:not(.dark) label[for="confirm_password"]{background:#fffefa!important;color:#927d6c!important}
html:not(.dark) a[href="/register"]{color:#bf6030!important}
/* Reading hierarchy: override inherited Tailwind dark prose without changing app logic. */html:not(.dark) .message-render,html:not(.dark) .user-turn,html:not(.dark) .agent-turn{--text-primary:#40352f;--text-secondary:#786b61;--text-secondary-alt:#786b61;--text-tertiary:#786b61;opacity:1!important;color:#40352f!important}
html:not(.dark) .message-render{max-width:820px!important;margin-inline:auto!important}
html:not(.dark) .markdown,html:not(.dark) .prose,html:not(.dark) .message-content{--tw-prose-body:#40352f;--tw-prose-headings:#4b2c24;--tw-prose-lead:#40352f;--tw-prose-links:#a34f25;--tw-prose-bold:#4b2c24;--tw-prose-counters:#786b61;--tw-prose-bullets:#786b61;--tw-prose-quotes:#786b61;--tw-prose-quote-borders:#d9c6b0;--tw-prose-captions:#786b61;--tw-prose-code:#4b2c24;--tw-prose-pre-code:#40352f;--tw-prose-pre-bg:#f0ece3;--tw-prose-th-borders:#d9c6b0;--tw-prose-td-borders:#e5dbcc;--tw-prose-invert-body:#40352f;--tw-prose-invert-headings:#4b2c24;--tw-prose-invert-lead:#40352f;--tw-prose-invert-links:#a34f25;--tw-prose-invert-bold:#4b2c24;--tw-prose-invert-counters:#786b61;--tw-prose-invert-bullets:#786b61;--tw-prose-invert-quotes:#786b61;--tw-prose-invert-code:#4b2c24;--tw-prose-invert-pre-code:#40352f;--tw-prose-invert-pre-bg:#f0ece3;color:#40352f!important;font-size:16.5px!important;line-height:1.8!important;opacity:1!important;max-width:780px!important}
html:not(.dark) .markdown :is(p,li,ul,ol,td,dd,dt),html:not(.dark) .message-content :is(p,li){color:#40352f!important;opacity:1!important;line-height:1.8}
html:not(.dark) .markdown :is(h1,h2,h3,h4,h5,h6,strong,b,th),html:not(.dark) .message-content :is(strong,b){color:#4b2c24!important;font-weight:650}
html:not(.dark) .markdown :is(h1,h2,h3,h4){line-height:1.5;margin-top:1.4em;margin-bottom:.65em}
html:not(.dark) .markdown p{margin-bottom:.85em}
html:not(.dark) .markdown :is(ul,ol){padding-inline-start:1.5em;margin-block:.75em}
html:not(.dark) .markdown li{margin-block:.3em}
html:not(.dark) .markdown li::marker{color:#786b61!important}
html:not(.dark) .markdown a{color:#a34f25!important;text-decoration:underline;text-underline-offset:3px}
html:not(.dark) .markdown a:hover{color:#7f3c1b!important}
html:not(.dark) .markdown blockquote{color:#786b61!important;border-inline-start:3px solid #d9c6b0;background:#f3eee5;padding:12px 18px;border-radius:0 10px 10px 0}
html:not(.dark) .markdown blockquote p{color:#786b61!important}
html:not(.dark) .markdown :not(pre)>code{color:#4b2c24!important;background:#eee6da!important;border-radius:5px;padding:.15em .35em;font-size:.9em}
html:not(.dark) .markdown pre,html:not(.dark) .markdown pre code{background:#f0ece3!important;color:#40352f!important;line-height:1.65!important}
html:not(.dark) .markdown pre{overflow-x:auto;padding:16px;border:1px solid #dfd2c2;border-radius:12px}
html:not(.dark) .markdown pre button{color:#4b2c24!important}
html:not(.dark) .markdown table{border-collapse:collapse;width:100%;font-size:15px;background:#fffefa;color:#40352f!important}
html:not(.dark) .markdown :is(th,td){border:1px solid #dfd2c2;padding:10px 14px;text-align:start}
html:not(.dark) .markdown th{background:#efe7db}
html:not(.dark) .markdown tbody tr:nth-child(even){background:#f6f1e8}
html:not(.dark) .markdown-table-wrapper{overflow-x:auto}
html:not(.dark) .user-turn .message-content{background:#efe7db!important;border-radius:18px;padding:14px 18px;color:#40352f!important}
html:not(.dark) .agent-turn .message-content{background:transparent!important}
html:not(.dark) .user-turn>h2,html:not(.dark) .agent-turn>h2{color:#4b2c24!important}
html:not(.dark) .message-render time,html:not(.dark) .message-render h2 :is(small,time),html:not(.dark) .message-render [class*="text-text-tertiary"]{color:#786b61!important;opacity:1!important}
html:not(.dark) [class~="group/reasoning"],html:not(.dark) [class~="group/thinking-container"]{color:#786b61!important;opacity:1!important}
html:not(.dark) [class~="group/reasoning"] .markdown,html:not(.dark) [class~="group/reasoning"] .markdown :is(p,li,strong),html:not(.dark) [class~="group/thinking-container"] .markdown,html:not(.dark) [class~="group/thinking-container"] .markdown :is(p,li,strong){color:#786b61!important;font-size:15px!important}
html:not(.dark) [class~="group/reasoning"] button{color:#786b61!important}
@media(max-width:767px){html:not(.dark) .markdown,html:not(.dark) .prose,html:not(.dark) .message-content{font-size:16px!important}
html:not(.dark) .message-render{width:100%!important}
html:not(.dark) .user-turn .message-content{padding:12px 14px}
html:not(.dark) .markdown :is(th,td){padding:8px 10px}
}html:not(.dark) .markdown table thead,html:not(.dark) .markdown table thead tr,html:not(.dark) .markdown table th{background:#efe7db!important;color:#4b2c24!important}
html:not(.dark) .markdown table,html:not(.dark) .markdown table tr,html:not(.dark) .markdown table :is(th,td){border-color:#dfd2c2!important}
html:not(.dark) .markdown table tbody tr{background:#fffefa!important}
html:not(.dark) .markdown table tbody tr:nth-child(even){background:#f6f1e8!important}
html:not(.dark) .markdown blockquote{border-color:#d9c6b0!important}
html:not(.dark) .markdown pre :is(button,svg){color:#4b2c24!important}
/* Portal tooltips must carry their own palette, independent of chat ancestry. */html:not(.dark) .tooltip,html:not(.dark) [role="tooltip"]{--text-primary:#fff9f0;--text-secondary:#f0dfcc;--text-secondary-alt:#f0dfcc;--surface-primary:#4b2c24;background:#4b2c24!important;color:#fff9f0!important;border:1px solid #4b2c24!important;border-radius:9px;box-shadow:0 4px 15px #4b2c2420;font-size:13px;line-height:1.6;padding:7px 11px}
html:not(.dark) .tooltip :is(span,p,kbd,div),html:not(.dark) [role="tooltip"] :is(span,p,kbd,div){color:#fff9f0!important}
html:not(.dark) .tooltip svg,html:not(.dark) [role="tooltip"] svg{color:#4b2c24!important;fill:#4b2c24!important}
html:not(.dark) .tooltip svg path,html:not(.dark) [role="tooltip"] svg path{fill:#4b2c24!important;stroke:#4b2c24!important}
html:not(.dark) [role="dialog"].z-\[200\].bg-surface-secondary{--text-primary:#fff9f0;--text-secondary:#efddca;--text-tertiary:#efddca;background:#4b2c24!important;color:#fff9f0!important;border-color:#6d493b!important}
html:not(.dark) [role="dialog"].z-\[200\] :is(.text-text-primary,.text-text-secondary,.text-text-tertiary){color:inherit!important}
html:not(.dark) svg[viewBox="0 0 24 16"],html:not(.dark) svg[viewBox="0 0 41 41"]{color:#4b2c24!important}
html:not(.dark) svg[viewBox="0 0 24 16"]{fill:currentColor!important}
html:not(.dark) svg[viewBox="0 0 41 41"] path[fill="currentColor"]{fill:currentColor!important}
html:not(.dark) :is(nav,header) svg:is(.text-white,.dark\:text-white,.text-gray-100,.dark\:text-gray-100){color:#4b2c24!important}
html:not(.dark) :is(nav,header) svg [fill="white"],html:not(.dark) :is(nav,header) svg [fill="#fff"],html:not(.dark) :is(nav,header) svg [fill="#ffffff"]{fill:#4b2c24!important}
html:not(.dark) :is(nav,header) svg [stroke="white"]{stroke:#4b2c24!important}
html:not(.dark) :is(nav,header) button:hover{background-color:#e9e0d2}
html:not(.dark) :is(nav,header) :is(button,a)[aria-current="page"],html:not(.dark) :is(nav,header) [aria-selected="true"]{background-color:#e5ddce!important;color:#4b2c24!important}
html:not(.dark) :is(nav,header) :is(button,a):focus-visible{outline:2px solid #dd783e;outline-offset:2px}
html:not(.dark) button:disabled svg{color:#927d6c!important}
html:not(.dark) button[data-testid="send-button"]:disabled{background:#ece3d6!important;color:#927d6c!important}
html:not(.dark) img[src*="/apoa/logo.png"],html:not(.dark) img[src*="assets/logo.svg"],html:not(.dark) .apoa-landing-logo{background:transparent!important;mix-blend-mode:normal!important;box-shadow:none!important;object-fit:contain!important}
html:not(.dark) div:has(>img[src*="/apoa/logo.png"]),html:not(.dark) div:has(>img[src*="assets/logo.svg"]){background-color:transparent!important;box-shadow:none!important}
html:not(.dark) .apoa-hero{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;background:transparent!important}
html:not(.dark) .apoa-hero>.size-10{display:none!important}
html:not(.dark) .apoa-landing-logo{width:112px;height:112px;margin:0 auto 20px}
html:not(.dark) .apoa-subtitle{max-width:520px;margin-top:14px}
html:not(.dark) nav:before{background-color:transparent!important;background-size:48px}
@media(max-width:767px){html:not(.dark) .apoa-landing-logo{width:88px;height:88px;margin-bottom:16px}
}/* Model menu: Ariakit active/selected items previously inherited dark:text-white. */html:not(.dark) :is([role="menu"],[role="listbox"]){--text-primary:#4b2c24;--text-secondary:#786b61;--text-secondary-alt:#786b61;color:#4b2c24!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]){color:#4b2c24!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]) :is(span,label,.truncate){color:inherit!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([aria-selected="true"],[aria-checked="true"]){background:#e5ddce!important;color:#4b2c24!important;font-weight:600}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([data-active-item],:hover,:focus-visible){background:#efe7db!important;color:#4b2c24!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"])[data-active-item]::before{background:#dd783e!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([aria-disabled="true"],:disabled){color:#927d6c!important;background:transparent!important;opacity:.65!important}
html:not(.dark) :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]) svg{color:#4b2c24!important}
html:not(.dark) :is([role="menu"],[role="listbox"]) input{color:#40352f!important;background:#fffefa!important}
html:not(.dark) :is([role="menu"],[role="listbox"]) input::placeholder{color:#786b61!important}


/* Night palette; identical geometry. */
/* 啊婆AI presentation layer. Native LibreChat controls and data are preserved. */html.dark,html.dark,html.dark{color-scheme:dark;--presentation:#24211e;--white:#302a25;--text-primary:#f3eadf;--text-secondary:#b7a99a;--text-secondary-alt:#b7a99a;--text-tertiary:#b7a99a;--header-primary:#24211e;--header-hover:#44392f;--header-button-hover:#44392f;--surface-primary:#24211e;--surface-primary-alt:#302a25;--surface-primary-contrast:#44392f;--surface-secondary:#292521;--surface-secondary-alt:#44392f;--surface-tertiary:#44392f;--surface-tertiary-alt:#302a25;--surface-dialog:#302a25;--surface-active:#44392f;--surface-active-alt:#44392f;--surface-hover:#44392f;--surface-hover-alt:#44392f;--surface-chat:#302a25;--surface-submit:#dd783e;--surface-submit-hover:#e6a16c;--border-light:#51463d;--border-medium:#51463d;--border-medium-alt:#51463d;--border-heavy:#51463d;--border-xheavy:#b7a99a;--ring-primary:#dd783e;--brand-purple:#dd783e;--green-500:#dd783e;--green-600:#dd783e;--green-700:#dd783e;--green-800:#ce703a;--background:43 41% 97%;--foreground:12 35% 22%;--card:45 100% 99%;--card-foreground:12 35% 22%;--popover:45 100% 99%;--popover-foreground:12 35% 22%;--primary:22 70% 55%;--primary-foreground:45 100% 99%;--secondary:40 27% 91%;--secondary-foreground:12 35% 22%;--muted:40 27% 91%;--muted-foreground:27 15% 44%;--accent:35 28% 86%;--accent-foreground:12 35% 22%;--border:36 25% 85%;--input:36 25% 85%;--ring:22 70% 55%}
html.dark body{background:#24211e!important;color:#f3eadf;font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
html.dark input,html.dark textarea,html.dark button{font-family:inherit}
html.dark main{background-color:#24211e}
html.dark button:focus-visible,html.dark a:focus-visible{outline-color:#dd783e}
html.dark input,html.dark textarea{color:var(--text-primary)}
html.dark input::placeholder,html.dark textarea::placeholder{color:#b7a99a!important}
html.dark form:has([data-testid="text-input"])>div{border-radius:22px}
html.dark div:has(>textarea[data-testid="text-input"]){background:transparent}
html.dark textarea[data-testid="text-input"]{line-height:1.85!important}
html.dark button[data-testid="send-button"]{background:#dd783e!important;color:#302a25!important;border-radius:12px!important}
html.dark [data-testid="new-chat-button"]{border:1px solid #51463d!important;border-radius:13px!important;margin-top:12px;margin-bottom:12px;background:#302a25!important}
html.dark nav{background:#292521}
html.dark nav:before{content:"啊婆AI";display:block;background:url('/apoa/logo.png') no-repeat 16px center;background-size:48px;padding:24px 18px 24px 78px;font-size:24px;font-weight:750;color:#f3eadf;letter-spacing:.5px}
html.dark nav a,html.dark nav button{border-radius:11px}
html.dark h1,html.dark h2{letter-spacing:.025em}
html.dark .apoa-landing-logo{display:block;width:112px;height:112px;object-fit:contain;margin:0 auto 16px;mix-blend-mode:multiply}
html.dark .apoa-subtitle{text-align:center;font-size:13px;color:#b7a99a;letter-spacing:.06em;margin:14px 12px 0;line-height:1.8}
html.dark h1.apoa-welcome,html.dark h2.apoa-welcome{font-size:clamp(26px,3vw,38px)!important;font-weight:550!important;color:#f3eadf!important}
html.dark img[src*="logo.svg"]{content:url('/apoa/logo.png');height:100px!important;object-fit:contain}
html.dark body:has(input[type="password"]) .bg-white,html.dark body:has(input[type="password"]) .dark\:bg-gray-900{background:#24211e!important}
html.dark body:has(input[type="password"]) .text-black,html.dark body:has(input[type="password"]) .dark\:text-white{color:#f3eadf!important}
html.dark body:has(input[type="password"]) input{background:#302a25!important;border-color:#51463d!important;border-radius:13px!important;color:#f3eadf!important}
html.dark body:has(input[type="password"]) button[type="submit"]{background:#dd783e!important;border-radius:13px!important;color:white!important}
html.dark body:has(input[type="password"]) main{padding:30px 0}
html.dark body:has(input[type="password"]) div:has(>img[src*="logo.svg"]){height:100px!important}
html.dark code,html.dark pre{font-family:ui-monospace,SFMono-Regular,monospace}
html.dark pre{background:#292521!important;color:#f3eadf!important;border:1px solid #51463d;border-radius:14px}
html.dark pre code{color:inherit}
html.dark ::selection{background:#44392f;color:#f3eadf}
@media(max-width:767px){html.dark nav:before{padding-top:18px;padding-bottom:18px;font-size:21px}
html.dark .apoa-landing-logo{width:88px;height:88px}
html.dark .apoa-subtitle{font-size:12px}
html.dark textarea[data-testid="text-input"]{font-size:16px!important}
}html.dark input.webkit-dark-styles,html.dark input.webkit-dark-styles:-webkit-autofill{background-color:#302a25!important;-webkit-text-fill-color:#f3eadf!important;-webkit-box-shadow:0 0 0 1000px #302a25 inset!important;box-shadow:0 0 0 1000px #302a25 inset!important}
html.dark label[for="email"],html.dark label[for="password"],html.dark label[for="confirm_password"]{background:#302a25!important;color:#b7a99a!important}
html.dark a[href="/register"]{color:#e6a16c!important}
/* Reading hierarchy: override inherited Tailwind dark prose without changing app logic. */html.dark .message-render,html.dark .user-turn,html.dark .agent-turn{--text-primary:#e8e0d6;--text-secondary:#b7a99a;--text-secondary-alt:#b7a99a;--text-tertiary:#b7a99a;opacity:1!important;color:#e8e0d6!important}
html.dark .message-render{max-width:820px!important;margin-inline:auto!important}
html.dark .markdown,html.dark .prose,html.dark .message-content{--tw-prose-body:#e8e0d6;--tw-prose-headings:#f3eadf;--tw-prose-lead:#e8e0d6;--tw-prose-links:#e6a16c;--tw-prose-bold:#f3eadf;--tw-prose-counters:#b7a99a;--tw-prose-bullets:#b7a99a;--tw-prose-quotes:#b7a99a;--tw-prose-quote-borders:#51463d;--tw-prose-captions:#b7a99a;--tw-prose-code:#f3eadf;--tw-prose-pre-code:#e8e0d6;--tw-prose-pre-bg:#292521;--tw-prose-th-borders:#51463d;--tw-prose-td-borders:#51463d;--tw-prose-invert-body:#e8e0d6;--tw-prose-invert-headings:#f3eadf;--tw-prose-invert-lead:#e8e0d6;--tw-prose-invert-links:#e6a16c;--tw-prose-invert-bold:#f3eadf;--tw-prose-invert-counters:#b7a99a;--tw-prose-invert-bullets:#b7a99a;--tw-prose-invert-quotes:#b7a99a;--tw-prose-invert-code:#f3eadf;--tw-prose-invert-pre-code:#e8e0d6;--tw-prose-invert-pre-bg:#292521;color:#e8e0d6!important;font-size:16.5px!important;line-height:1.8!important;opacity:1!important;max-width:780px!important}
html.dark .markdown :is(p,li,ul,ol,td,dd,dt),html.dark .message-content :is(p,li){color:#e8e0d6!important;opacity:1!important;line-height:1.8}
html.dark .markdown :is(h1,h2,h3,h4,h5,h6,strong,b,th),html.dark .message-content :is(strong,b){color:#f3eadf!important;font-weight:650}
html.dark .markdown :is(h1,h2,h3,h4){line-height:1.5;margin-top:1.4em;margin-bottom:.65em}
html.dark .markdown p{margin-bottom:.85em}
html.dark .markdown :is(ul,ol){padding-inline-start:1.5em;margin-block:.75em}
html.dark .markdown li{margin-block:.3em}
html.dark .markdown li::marker{color:#b7a99a!important}
html.dark .markdown a{color:#e6a16c!important;text-decoration:underline;text-underline-offset:3px}
html.dark .markdown a:hover{color:#f3b781!important}
html.dark .markdown blockquote{color:#b7a99a!important;border-inline-start:3px solid #51463d;background:#302a25;padding:12px 18px;border-radius:0 10px 10px 0}
html.dark .markdown blockquote p{color:#b7a99a!important}
html.dark .markdown :not(pre)>code{color:#f3eadf!important;background:#44392f!important;border-radius:5px;padding:.15em .35em;font-size:.9em}
html.dark .markdown pre,html.dark .markdown pre code{background:#292521!important;color:#e8e0d6!important;line-height:1.65!important}
html.dark .markdown pre{overflow-x:auto;padding:16px;border:1px solid #51463d;border-radius:12px}
html.dark .markdown pre button{color:#f3eadf!important}
html.dark .markdown table{border-collapse:collapse;width:100%;font-size:15px;background:#302a25;color:#e8e0d6!important}
html.dark .markdown :is(th,td){border:1px solid #51463d;padding:10px 14px;text-align:start}
html.dark .markdown th{background:#38312b}
html.dark .markdown tbody tr:nth-child(even){background:#302a25}
html.dark .markdown-table-wrapper{overflow-x:auto}
html.dark .user-turn .message-content{background:#38312b!important;border-radius:18px;padding:14px 18px;color:#e8e0d6!important}
html.dark .agent-turn .message-content{background:transparent!important}
html.dark .user-turn>h2,html.dark .agent-turn>h2{color:#f3eadf!important}
html.dark .message-render time,html.dark .message-render h2 :is(small,time),html.dark .message-render [class*="text-text-tertiary"]{color:#b7a99a!important;opacity:1!important}
html.dark [class~="group/reasoning"],html.dark [class~="group/thinking-container"]{color:#b7a99a!important;opacity:1!important}
html.dark [class~="group/reasoning"] .markdown,html.dark [class~="group/reasoning"] .markdown :is(p,li,strong),html.dark [class~="group/thinking-container"] .markdown,html.dark [class~="group/thinking-container"] .markdown :is(p,li,strong){color:#b7a99a!important;font-size:15px!important}
html.dark [class~="group/reasoning"] button{color:#b7a99a!important}
@media(max-width:767px){html.dark .markdown,html.dark .prose,html.dark .message-content{font-size:16px!important}
html.dark .message-render{width:100%!important}
html.dark .user-turn .message-content{padding:12px 14px}
html.dark .markdown :is(th,td){padding:8px 10px}
}html.dark .markdown table thead,html.dark .markdown table thead tr,html.dark .markdown table th{background:#38312b!important;color:#f3eadf!important}
html.dark .markdown table,html.dark .markdown table tr,html.dark .markdown table :is(th,td){border-color:#51463d!important}
html.dark .markdown table tbody tr{background:#302a25!important}
html.dark .markdown table tbody tr:nth-child(even){background:#302a25!important}
html.dark .markdown blockquote{border-color:#51463d!important}
html.dark .markdown pre :is(button,svg){color:#f3eadf!important}
/* Portal tooltips must carry their own palette, independent of chat ancestry. */html.dark .tooltip,html.dark [role="tooltip"]{--text-primary:#f3eadf;--text-secondary:#b7a99a;--text-secondary-alt:#b7a99a;--surface-primary:#f3eadf;background:#f3eadf!important;color:#f3eadf!important;border:1px solid #f3eadf!important;border-radius:9px;box-shadow:0 4px 15px #00000000;font-size:13px;line-height:1.6;padding:7px 11px}
html.dark .tooltip :is(span,p,kbd,div),html.dark [role="tooltip"] :is(span,p,kbd,div){color:#f3eadf!important}
html.dark .tooltip svg,html.dark [role="tooltip"] svg{color:#f3eadf!important;fill:#f3eadf!important}
html.dark .tooltip svg path,html.dark [role="tooltip"] svg path{fill:#f3eadf!important;stroke:#f3eadf!important}
html.dark [role="dialog"].z-\[200\].bg-surface-secondary{--text-primary:#f3eadf;--text-secondary:#b7a99a;--text-tertiary:#b7a99a;background:#f3eadf!important;color:#f3eadf!important;border-color:#51463d!important}
html.dark [role="dialog"].z-\[200\] :is(.text-text-primary,.text-text-secondary,.text-text-tertiary){color:inherit!important}
html.dark svg[viewBox="0 0 24 16"],html.dark svg[viewBox="0 0 41 41"]{color:#f3eadf!important}
html.dark svg[viewBox="0 0 24 16"]{fill:currentColor!important}
html.dark svg[viewBox="0 0 41 41"] path[fill="currentColor"]{fill:currentColor!important}
html.dark :is(nav,header) svg:is(.text-white,.dark\:text-white,.text-gray-100,.dark\:text-gray-100){color:#f3eadf!important}
html.dark :is(nav,header) svg [fill="white"],html.dark :is(nav,header) svg [fill="#fff"],html.dark :is(nav,header) svg [fill="#ffffff"]{fill:#f3eadf!important}
html.dark :is(nav,header) svg [stroke="white"]{stroke:#f3eadf!important}
html.dark :is(nav,header) button:hover{background-color:#44392f}
html.dark :is(nav,header) :is(button,a)[aria-current="page"],html.dark :is(nav,header) [aria-selected="true"]{background-color:#44392f!important;color:#f3eadf!important}
html.dark :is(nav,header) :is(button,a):focus-visible{outline:2px solid #dd783e;outline-offset:2px}
html.dark button:disabled svg{color:#b7a99a!important}
html.dark button[data-testid="send-button"]:disabled{background:#38312b!important;color:#b7a99a!important}
html.dark img[src*="/apoa/logo.png"],html.dark img[src*="assets/logo.svg"],html.dark .apoa-landing-logo{background:transparent!important;mix-blend-mode:normal!important;box-shadow:none!important;object-fit:contain!important}
html.dark div:has(>img[src*="/apoa/logo.png"]),html.dark div:has(>img[src*="assets/logo.svg"]){background-color:transparent!important;box-shadow:none!important}
html.dark .apoa-hero{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;background:transparent!important}
html.dark .apoa-hero>.size-10{display:none!important}
html.dark .apoa-landing-logo{width:112px;height:112px;margin:0 auto 20px}
html.dark .apoa-subtitle{max-width:520px;margin-top:14px}
html.dark nav:before{background-color:transparent!important;background-size:48px}
@media(max-width:767px){html.dark .apoa-landing-logo{width:88px;height:88px;margin-bottom:16px}
}/* Model menu: Ariakit active/selected items previously inherited dark:text-white. */html.dark :is([role="menu"],[role="listbox"]){--text-primary:#f3eadf;--text-secondary:#b7a99a;--text-secondary-alt:#b7a99a;color:#f3eadf!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]){color:#f3eadf!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]) :is(span,label,.truncate){color:inherit!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([aria-selected="true"],[aria-checked="true"]){background:#44392f!important;color:#f3eadf!important;font-weight:600}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([data-active-item],:hover,:focus-visible){background:#38312b!important;color:#f3eadf!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"])[data-active-item]::before{background:#dd783e!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is([aria-disabled="true"],:disabled){color:#b7a99a!important;background:transparent!important;opacity:.65!important}
html.dark :is([role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]) svg{color:#f3eadf!important}
html.dark :is([role="menu"],[role="listbox"]) input{color:#e8e0d6!important;background:#302a25!important}
html.dark :is([role="menu"],[role="listbox"]) input::placeholder{color:#b7a99a!important}


html:not(.dark){color-scheme:light}
html.dark{color-scheme:dark;--text-primary:#e8e0d6;--text-secondary:#b7a99a;--text-secondary-alt:#b7a99a;--text-tertiary:#b7a99a;--surface-primary:#24211e;--surface-secondary:#292521;--surface-chat:#302a25;--surface-dialog:#302a25;--surface-hover:#44392f;--surface-active:#44392f;--ring-primary:#e6a16c;--background:30 9% 13%;--foreground:33 28% 87%;--card:27 13% 17%;--card-foreground:33 28% 87%;--popover:27 13% 17%;--popover-foreground:33 28% 87%;--primary:23 70% 55%;--primary-foreground:23 29% 11%;--secondary:30 11% 15%;--secondary-foreground:33 28% 87%;--muted:30 11% 15%;--muted-foreground:29 17% 66%;--accent:28 18% 23%;--accent-foreground:33 28% 87%;--border:27 14% 28%;--input:27 14% 28%;--ring:26 71% 66%}
html.dark .message-render,html.dark .user-turn,html.dark .agent-turn{--text-primary:#e8e0d6;--text-secondary:#b7a99a}
html.dark nav{background:#292521}html.dark :is([role="menu"],[role="listbox"],[role="dialog"],[role="combobox"]){background-color:#302a25!important;color:#e8e0d6!important;border-color:#51463d!important}
html.dark .user-turn .message-content{background:#38312b!important}
html.dark .agent-turn .message-content{background:transparent!important}
html.dark .tooltip,html.dark [role="tooltip"],html.dark [role="dialog"].z-\[200\].bg-surface-secondary{--text-primary:#f3eadf;--text-secondary:#b7a99a;background:#43382f!important;color:#f3eadf!important;border-color:#51463d!important;box-shadow:none!important}
html.dark .tooltip svg,html.dark [role="tooltip"] svg,html.dark .tooltip svg path,html.dark [role="tooltip"] svg path{color:#43382f!important;fill:#43382f!important;stroke:#43382f!important}
html.dark svg[viewBox="0 0 24 16"],html.dark svg[viewBox="0 0 41 41"],html.dark :is(nav,header) svg,html.dark .message-render button svg{color:#b7a99a!important}
html.dark :is(nav,header) svg :is([fill="white"],[fill="#fff"],[fill="#ffffff"]){fill:currentColor!important}
html.dark button[data-testid="send-button"]{background:#dd783e!important;color:#241a14!important}
html.dark button[data-testid="send-button"] svg{color:#241a14!important}
html.dark button[data-testid="send-button"]:disabled{background:#38312b!important;color:#b7a99a!important}
html.dark button[data-testid="send-button"]:disabled svg{color:#b7a99a!important}
html.dark :is(button,a,input,textarea,[tabindex]):focus-visible{outline-color:#e6a16c!important;--tw-ring-color:#e6a16c}
html.dark :is(.shadow-md,.shadow-lg,.shadow-xl){box-shadow:none!important}
html.dark .markdown pre,html.dark .markdown pre code{background:#302a25!important;color:#e8e0d6!important}
html.dark .markdown table thead,html.dark .markdown table thead tr,html.dark .markdown table th{background:#38312b!important}
html.dark input::placeholder,html.dark textarea::placeholder{color:#b7a99a!important;opacity:1}
html.dark [role="menu"] input,html.dark [role="listbox"] input{background:#302a25!important}
html.dark .markdown pre .token.comment{color:#b7a99a!important}html.dark .markdown pre .token.keyword{color:#d7b9ee!important}html.dark .markdown pre .token.string{color:#bed5a1!important}html.dark .markdown pre .token.number,html.dark .markdown pre .token.boolean{color:#efbc88!important}html.dark .markdown pre .token.function{color:#a5d7e6!important}

html.dark .markdown pre :is(.hljs-comment,.hljs-meta){color:#b7a99a!important}
html.dark .markdown pre :is(.hljs-keyword,.hljs-doctag,.hljs-formula,.hljs-literal){color:#d7b9ee!important}
html.dark .markdown pre :is(.hljs-string,.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp){color:#bed5a1!important}
html.dark .markdown pre :is(.hljs-number,.hljs-built_in,.hljs-type,.hljs-attr,.hljs-variable,.hljs-template-variable){color:#efbc88!important}
html.dark .markdown pre :is(.hljs-title,.hljs-link,.hljs-symbol,.hljs-bullet,.hljs-selector-id,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo){color:#a5d7e6!important}

/* Keep the focus indicator on the whole composer, never around its inner textarea. */
html textarea[data-testid="text-input"]:is(:focus,:focus-visible){outline:none!important;box-shadow:none!important;border-color:transparent!important;--tw-ring-shadow:0 0 transparent;--tw-ring-offset-shadow:0 0 transparent;--tw-ring-offset-width:0px;--tw-ring-color:transparent}
html:not(.dark) form:has(textarea[data-testid="text-input"]:focus-visible) .rounded-t-3xl.border{border-color:#dd783e!important}
html.dark form:has(textarea[data-testid="text-input"]:focus-visible) .rounded-t-3xl.border{border-color:#e6a16c!important}
html .apoa-auth-logo{height:auto!important;display:flex;flex-direction:column;align-items:center;gap:10px;background:transparent!important}
html .apoa-auth-logo img{width:100px!important;height:100px!important;background:transparent!important}
html .apoa-auth-brand{font-family:inherit;font-size:24px;font-weight:650;line-height:1.4;letter-spacing:.03em;color:#4b2c24}
html.dark .apoa-auth-brand{color:#f3eadf}

/* Login brand is anchored to the native auth heading, independent of logo JS. */
html .apoa-auth-brand{display:none!important}
html main .w-authPageWidth>h1::before{content:"啊婆AI";display:block;font-family:inherit;font-size:24px;font-weight:650;line-height:1.4;letter-spacing:.03em;margin-bottom:12px;color:#4b2c24}
html.dark main .w-authPageWidth>h1::before{color:#f3eadf}
/* Keep the existing transparent avatar and brand together above the login form. */
html body:not(:has(.message-render)) div.mt-6.h-10.w-full.bg-cover:has(>img[src*="assets/logo.svg"]){display:none!important}
html main .w-authPageWidth>h1::before{padding-top:112px;background-image:url('/apoa/logo.png');background-repeat:no-repeat;background-position:center top;background-size:96px 96px}
/* Branded landing has real content height; do not float it over the composer. */
html .transform-gpu:has(.apoa-hero){height:auto!important;max-height:none!important;min-height:0!important;flex-shrink:0!important;padding-bottom:0!important;margin-bottom:40px!important}
@media(max-width:767px){html .transform-gpu:has(.apoa-hero){margin-bottom:28px!important}}
