/* GENERATED by gen_dark.mjs from the light stylesheets; hand overrides live in theme-dark-tuned.css. */

/* ---- from style.css (152 declarations) ---- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --answer: #b4c0cf;
    --answer-muted: #a5b2c2;
    --ink: #9abfdc;
    --deep: #9bc1da;
    --muted: #92b2c8;
    --blue: #8eb2d1;
    --line: rgba(81,124,154,0.15);
    --paper: #13161b;
    background-color: #171a1f
}
:root[data-theme="dark"] body[data-page=home] {
    background-color: #181b20
}
:root[data-theme="dark"] body[data-page=chat] {
    background-color: #15181c
}
:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible,:root[data-theme="dark"] textarea:focus-visible {
    outline-color: #3681f8
}
:root[data-theme="dark"] .skip-link {
    background-color: #13161b;
    box-shadow: 0 6px 20px rgba(0,0,0,0.41)
}
:root[data-theme="dark"] body[data-page=home] .sky-scene::after {
    background: linear-gradient(90deg,rgba(22,25,30,0.063) 0%,rgba(27,23,17,0.027) 100%)
}
:root[data-theme="dark"] .home-account-link {
    border-bottom-color: rgba(86,127,155,0.35)
}
:root[data-theme="dark"] .home-account-link:hover {
    color: #9ec4e3
}
:root[data-theme="dark"] .test-indicator {
    border-color: #443b29;
    background-color: rgba(20,24,28,0.851);
    color: #c8b289
}
:root[data-theme="dark"] .composer {
    border-color: rgba(42,46,51,0.85);
    background-color: rgba(19,22,27,0.98);
    box-shadow: 0 15px 55px -23px rgba(0,0,0,0.594)
}
:root[data-theme="dark"] .composer:focus-within {
    border-color: #304655;
    box-shadow: 0 14px 50px -19px rgba(0,0,0,0.6),0 0 0 3px rgba(19,22,27,0.52)
}
:root[data-theme="dark"] .composer textarea::placeholder {
    color: #9ebcd1
}
:root[data-theme="dark"] .send-button {
    color: #ffffff;
    box-shadow: 0 3px 9px rgba(0,0,0,0.283)
}
:root[data-theme="dark"] .send-button:hover:not(:disabled) {
    background-color: #4f87aa
}
:root[data-theme="dark"] .send-button:disabled {
    background-color: #181b1f;
    color: #91b0c5
}
:root[data-theme="dark"] .noscript {
    background-color: #13161b
}
:root[data-theme="dark"] .balance-link {
    border-color: #30393e;
    background-color: rgba(19,22,27,0.788)
}
:root[data-theme="dark"] .balance-link:hover {
    background-color: #13161b
}
:root[data-theme="dark"] .account-link {
    border-color: rgba(87,123,146,0.25);
    background-color: rgba(19,22,27,0.718)
}
:root[data-theme="dark"] .account-link:hover {
    background-color: #13161b
}
:root[data-theme="dark"] .share-chat:hover:not(:disabled) {
    color: #93bcd9
}
:root[data-theme="dark"] .new-chat:hover:not(:disabled) {
    color: #93bcd9
}
:root[data-theme="dark"] .message-user {
    background-color: #161a1e;
    border-color: #303439
}
:root[data-theme="dark"] .message-assistant {
    border-color: #303439;
    background-color: rgba(19,22,27,0.941);
    box-shadow: 0 9px 30px -31px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .message-label {
    color: #92b7d0
}
:root[data-theme="dark"] .message-user .message-content a {
    color: #92bad8;
    text-decoration-color: #93bed7
}
:root[data-theme="dark"] .message-prose h1,:root[data-theme="dark"] .message-prose h2,:root[data-theme="dark"] .message-prose h3,:root[data-theme="dark"] .message-prose h4,:root[data-theme="dark"] .message-prose h5,:root[data-theme="dark"] .message-prose h6 {
    color: #b6c7d4
}
:root[data-theme="dark"] .message-prose strong {
    color: #b6c7d4
}
:root[data-theme="dark"] .message-prose li::marker {
    color: #8ab2cd
}
:root[data-theme="dark"] .message-prose blockquote {
    border-left-color: #344753;
    background-color: #14181c
}
:root[data-theme="dark"] .message-prose a {
    color: #92bbd8
}
:root[data-theme="dark"] .message-prose :not(pre)>code {
    border-color: #303439;
    background-color: #15181d;
    color: #adbecf
}
:root[data-theme="dark"] .message-prose pre {
    border-color: #30343a;
    background-color: #15181c;
    color: #aec3d6
}
:root[data-theme="dark"] .message-prose th,:root[data-theme="dark"] .message-prose td {
    border-color: #31353b
}
:root[data-theme="dark"] .message-prose th {
    background-color: #15181c
}
:root[data-theme="dark"] .message-prose tr:nth-child(even) td {
    background-color: #14171c
}
:root[data-theme="dark"] .message-prose hr {
    background-color: #191c20
}
:root[data-theme="dark"] .activity-panel {
    color: #a2bed3
}
:root[data-theme="dark"] .activity-heading {
    color: #95b0c2
}
:root[data-theme="dark"] .activity-pulse {
    background-color: #153442;
    box-shadow: 0 0 0 4px #141c1f
}
:root[data-theme="dark"] .activity-timer {
    color: #a7bbc6
}
:root[data-theme="dark"] .activity-steps {
    border-left-color: #32363b
}
:root[data-theme="dark"] .activity-steps li {
    color: #a6bbc8
}
:root[data-theme="dark"] .activity-steps li::before {
    border-color: #324751;
    background-color: #13161b
}
:root[data-theme="dark"] .activity-steps li.is-active {
    color: #8db1c9
}
:root[data-theme="dark"] .activity-steps li.is-active::before {
    background-color: #132f3c;
    box-shadow: 0 0 0 3px #171a1f
}
:root[data-theme="dark"] .activity-step-time {
    color: #a8bbc4
}
:root[data-theme="dark"] .activity-note {
    color: #a5bbc9
}
:root[data-theme="dark"] .activity-draft {
    border-top-color: #303439
}
:root[data-theme="dark"] .activity-stall {
    color: #a6bbc8
}
:root[data-theme="dark"] .activity-summary {
    color: #98b0bf
}
:root[data-theme="dark"] .activity-summary summary:hover {
    color: #94bcda
}
:root[data-theme="dark"] .activity-summary ol {
    border-left-color: #32363b
}
:root[data-theme="dark"] .activity-summary li span:last-child {
    color: #9cafba
}
:root[data-theme="dark"] .thinking-dots i {
    background-color: #1f303a
}
:root[data-theme="dark"] .chat-dock {
    background: linear-gradient(180deg,rgba(21,24,28,0) 0%,rgba(21,24,28,0.961) 22%,#15181c 58%)
}
:root[data-theme="dark"] .composer-hint {
    color: #96b0c2
}
:root[data-theme="dark"] .chat-footnote {
    color: #9bb1c0
}
:root[data-theme="dark"] .chat-status {
    border-color: #453732;
    background-color: #15181d;
    color: #d7a59d
}
:root[data-theme="dark"] .status-actions button {
    border-color: #533b37;
    background-color: #13161b;
    color: #daa9a0
}
:root[data-theme="dark"] .status-actions button:hover {
    background-color: #14171c
}
:root[data-theme="dark"] .access-note {
    border-color: #42381e;
    background-color: #191711;
    color: #c5b087
}
:root[data-theme="dark"] .access-note a:hover {
    color: #d2bc97
}
:root[data-theme="dark"] .share-dialog {
    border-color: #31353a;
    background-color: #13161b;
    color: #a5c2d8;
    box-shadow: 0 25px 85px rgba(0,0,0,0.502)
}
:root[data-theme="dark"] .share-dialog::backdrop {
    background-color: rgba(55,86,107,0.502)
}
:root[data-theme="dark"] .share-dialog h2 {
    color: #a5c4da
}
:root[data-theme="dark"] .share-close {
    color: #93adbe
}
:root[data-theme="dark"] .share-close:hover {
    background-color: #15191d;
    color: #95bfdb
}
:root[data-theme="dark"] .share-description {
    color: #98b2c4
}
:root[data-theme="dark"] .share-primary {
    background-color: #4a768b;
    color: #ffffff
}
:root[data-theme="dark"] .share-primary:hover:not(:disabled) {
    background-color: #5288a3
}
:root[data-theme="dark"] .share-result label {
    color: #99b4c7
}
:root[data-theme="dark"] .share-link-row input {
    border-color: #31393e;
    background-color: #14181c;
    color: #a1c0d7
}
:root[data-theme="dark"] .share-result-actions a,:root[data-theme="dark"] .share-result-actions button {
    color: #8bb5d0
}
:root[data-theme="dark"] .share-result-actions a:hover,:root[data-theme="dark"] .share-result-actions button:hover {
    color: #96bfdc
}
:root[data-theme="dark"] .share-local-note {
    background-color: #16191d;
    color: #c7ae87
}
:root[data-theme="dark"] .share-feedback {
    color: #88c0b5
}
:root[data-theme="dark"] .share-feedback.is-error {
    color: #d4a29d
}
:root[data-theme="dark"] .mode-nav {
    border-color: #31353a;
    background-color: #16191d
}
:root[data-theme="dark"] .mode-nav a {
    color: #97b2c5
}
:root[data-theme="dark"] .mode-nav a:hover {
    color: #92bbd7
}
:root[data-theme="dark"] .mode-nav a[aria-current=page] {
    background-color: #13161b;
    box-shadow: 0 1px 5px rgba(0,0,0,0.241);
    color: #98c1dd
}
:root[data-theme="dark"] .home-code-link {
    border-bottom-color: rgba(86,127,155,0.35)
}
:root[data-theme="dark"] .home-code-link:hover {
    color: #9ec4e3
}
@media (max-width:700px) {
    :root[data-theme="dark"] .new-chat:hover:not(:disabled),:root[data-theme="dark"] .share-chat:hover:not(:disabled) {
        background-color: rgba(19,22,27,0.741)
    }
}
:root[data-theme="dark"] .chat-sessions-backdrop {
    background-color: rgba(52,84,106,0.318)
}
:root[data-theme="dark"] .chat-sessions-panel {
    border-right-color: #32363b;
    background-color: rgba(20,23,28,0.933);
    color: #9cc0d7
}
:root[data-theme="dark"] .chat-sessions-head button {
    color: #90b2c7
}
:root[data-theme="dark"] .chat-sessions-head button:hover {
    background-color: #171a1e
}
:root[data-theme="dark"] .chat-sessions-note {
    color: #97b1c2
}
:root[data-theme="dark"] .chat-sessions-list {
    color: #94b5c9
}
:root[data-theme="dark"] .chat-sessions-empty {
    color: #a5bbc9
}
:root[data-theme="dark"] .chat-session-row:hover,:root[data-theme="dark"] .chat-session-row.is-current {
    background-color: #161a1e
}
:root[data-theme="dark"] .chat-session-select {
    color: #97bdd7
}
:root[data-theme="dark"] .chat-session-action {
    color: #9db2c0
}
:root[data-theme="dark"] .chat-session-action:hover {
    background-color: #161d20;
    color: #93bcd8
}
:root[data-theme="dark"] .chat-session-editor {
    border-color: #31434d;
    background-color: #13161b;
    color: #9cc0d7
}
@media (max-width:700px) {
    :root[data-theme="dark"] .chat-sessions-panel {
        background-color: #14171c;
        box-shadow: 12px 0 40px rgba(0,0,0,0.276)
    }
}

/* ---- from code.css (271 declarations) ---- */
:root[data-theme="dark"] body[data-page=code] {
    background-color: #15181c;
    color: #a7c3d6
}
:root[data-theme="dark"] body[data-page=code] button:focus-visible,:root[data-theme="dark"] body[data-page=code] a:focus-visible,:root[data-theme="dark"] body[data-page=code] input:focus-visible,:root[data-theme="dark"] body[data-page=code] select:focus-visible,:root[data-theme="dark"] body[data-page=code] textarea:focus-visible {
    outline-color: #315c74
}
:root[data-theme="dark"] .code-header {
    border-bottom-color: #31353a;
    background-color: rgba(20,23,28,0.859)
}
:root[data-theme="dark"] .mode-nav {
    border-color: #31353a;
    background-color: #16191d
}
:root[data-theme="dark"] .mode-nav a {
    color: #97b2c5
}
:root[data-theme="dark"] .mode-nav a:hover {
    color: #92bbd7
}
:root[data-theme="dark"] .mode-nav a[aria-current=page] {
    background-color: #13161b;
    box-shadow: 0 1px 5px rgba(0,0,0,0.241);
    color: #98c1dd
}
:root[data-theme="dark"] .code-top-status {
    color: #98b1bf
}
:root[data-theme="dark"] .code-top-status i {
    background-color: #1e2529
}
:root[data-theme="dark"] .code-top-status.is-live i {
    background-color: #0a382c;
    box-shadow: 0 0 0 3px #121e1a
}
:root[data-theme="dark"] .code-top-status.is-busy i {
    background-color: #3b2300;
    box-shadow: 0 0 0 3px #1e180b
}
:root[data-theme="dark"] .code-top-status.is-error i {
    background-color: #4d211b
}
:root[data-theme="dark"] .code-projects {
    border-right-color: #31353a;
    background-color: rgba(20,24,28,0.749)
}
:root[data-theme="dark"] .code-rail-eyebrow {
    color: #9bb1bd
}
:root[data-theme="dark"] .code-new-project {
    border-color: #2e3d44;
    background-color: #13161b;
    color: #91bbd6;
    box-shadow: 0 3px 15px rgba(0,0,0,0.128)
}
:root[data-theme="dark"] .code-new-project:hover {
    border-color: #2e4c5b;
    background-color: #14171b
}
:root[data-theme="dark"] .code-projects-list-head {
    color: #9cb0bd
}
:root[data-theme="dark"] .code-list-refresh {
    border-color: #32363b;
    background-color: #13161b;
    color: #8fb2c8
}
:root[data-theme="dark"] .code-list-refresh:hover {
    border-color: #344751;
    background-color: #14171b;
    color: #90bcd6
}
:root[data-theme="dark"] .code-session-item {
    color: #97bcd1
}
:root[data-theme="dark"] .code-session-item:hover,:root[data-theme="dark"] .code-session-item.is-active {
    background-color: #16191e
}
:root[data-theme="dark"] .code-session-item span {
    color: #a5bbc8
}
:root[data-theme="dark"] .code-session-row:hover {
    background-color: #15191d
}
:root[data-theme="dark"] .code-session-rename {
    color: #a4bbc9
}
:root[data-theme="dark"] .code-session-rename:hover {
    background-color: #181c20;
    color: #8cb9d2
}
:root[data-theme="dark"] .code-session-more {
    color: #a4bbc9
}
:root[data-theme="dark"] .code-session-more:hover,:root[data-theme="dark"] .code-session-more[aria-expanded="true"] {
    background-color: #1c2127;
    color: #a9cde2
}
:root[data-theme="dark"] .code-session-more:focus-visible,:root[data-theme="dark"] .code-row-menu button:focus-visible,:root[data-theme="dark"] .code-archived-toggle:focus-visible {
    outline-color: #7fb6d6
}
:root[data-theme="dark"] .code-archived-toggle {
    border-color: #32363b;
    background-color: #13161b;
    color: #9cc3da
}
:root[data-theme="dark"] .code-archived-toggle:hover {
    background-color: #181c20
}
:root[data-theme="dark"] .code-row-menu {
    border-color: #32363b;
    background-color: #13161b;
    box-shadow: 0 12px 34px rgba(0,0,0,0.5)
}
:root[data-theme="dark"] .code-row-menu button {
    color: #a9c7d9
}
:root[data-theme="dark"] .code-row-menu button:hover,:root[data-theme="dark"] .code-row-menu button:focus {
    background-color: #1c2127
}
:root[data-theme="dark"] .code-row-menu button.is-danger {
    color: #f0a197
}
:root[data-theme="dark"] .code-row-menu button.is-danger:hover,:root[data-theme="dark"] .code-row-menu button.is-danger:focus {
    background-color: #2e1c1a
}
:root[data-theme="dark"] .code-quiet {
    color: #98b1be
}
:root[data-theme="dark"] .code-rail-foot {
    border-top-color: #303439;
    color: #9db0bc
}
:root[data-theme="dark"] .code-center {
    background-color: rgba(20,23,28,0.388)
}
:root[data-theme="dark"] .code-workspace-bar {
    border-bottom-color: #303439;
    background-color: rgba(19,22,27,0.639)
}
:root[data-theme="dark"] .code-crumb {
    color: #98b1bd
}
:root[data-theme="dark"] .code-workspace-identity strong {
    color: #9dc0d9
}
:root[data-theme="dark"] .code-rename-current {
    color: #a2bcc9
}
:root[data-theme="dark"] .code-save-button {
    border-color: #33373c;
    background-color: #13161b;
    color: #8bb6cf
}
:root[data-theme="dark"] .code-save-button:hover:not(:disabled) {
    background-color: #15181d
}
:root[data-theme="dark"] .code-run-status {
    background-color: #15191d;
    color: #83b7a6
}
:root[data-theme="dark"] .code-run-status.is-working {
    background-color: #1b180f;
    color: #c2a882
}
:root[data-theme="dark"] .code-mode-label {
    color: #a5bbc8
}
:root[data-theme="dark"] .code-workspace-actions select {
    border-color: #32363b;
    background-color: #13161b;
    color: #97bcd2
}
:root[data-theme="dark"] .code-icon-button {
    color: #95b2c2
}
:root[data-theme="dark"] .code-icon-button:hover {
    background-color: #161a1e;
    color: #92bcd8
}
:root[data-theme="dark"] .code-start-art {
    border-color: #31353b;
    background-color: rgba(19,22,27,0.847);
    box-shadow: 0 12px 36px rgba(0,0,0,0.219)
}
:root[data-theme="dark"] .code-overline {
    color: #98b1c1
}
:root[data-theme="dark"] .code-start-view h1 {
    color: #9bc1da
}
:root[data-theme="dark"] .code-start-lede {
    color: #96b2c3
}
:root[data-theme="dark"] .code-start-form {
    border-color: #31353a;
    background-color: #13161b;
    box-shadow: 0 18px 48px -35px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .code-start-form:focus-within {
    border-color: #32444e;
    box-shadow: 0 18px 48px -30px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .code-start-form textarea {
    color: #9dc0d9
}
:root[data-theme="dark"] .code-start-form textarea::placeholder {
    color: #a7bbc8
}
:root[data-theme="dark"] .code-start-form-bottom {
    border-top-color: #2e3237
}
:root[data-theme="dark"] .code-start-form-bottom>span {
    color: #9eafb9
}
:root[data-theme="dark"] .code-start-form-bottom button {
    background-color: #507a93;
    color: #ffffff
}
:root[data-theme="dark"] .code-start-form-bottom button:hover:not(:disabled) {
    background-color: #203b4b
}
:root[data-theme="dark"] .code-start-options label>span {
    color: #97b2c3
}
:root[data-theme="dark"] .code-start-options input,:root[data-theme="dark"] .code-start-options select {
    border-color: #31353a;
    background-color: rgba(19,22,27,0.831);
    color: #92bbd2
}
:root[data-theme="dark"] .code-start-options input::placeholder {
    color: #abbac3
}
:root[data-theme="dark"] .code-starters button {
    border-color: #31353a;
    background-color: rgba(19,22,27,0.675);
    color: #8fb7d1
}
:root[data-theme="dark"] .code-starters button:hover {
    border-color: #2e444d;
    background-color: #13161b
}
:root[data-theme="dark"] .code-starters button span {
    color: #92b2c2
}
:root[data-theme="dark"] .code-form-error {
    border-color: #473733;
    background-color: #15181c;
    color: #d4a39b
}
:root[data-theme="dark"] .code-workspace-empty {
    color: #a1bccc
}
:root[data-theme="dark"] .code-workspace-empty h2 {
    color: #97bcd5
}
:root[data-theme="dark"] .code-msg-user {
    background-color: #171a1e;
    color: #96bfda
}
:root[data-theme="dark"] .code-msg-assistant {
    color: #b0c2ce
}
:root[data-theme="dark"] .code-msg-error {
    border-color: #453631;
    background-color: #15181c;
    color: #d4a39a
}
:root[data-theme="dark"] .code-msg-note {
    color: #a5bbc9
}
:root[data-theme="dark"] .code-tool {
    border-color: #31353a;
    background-color: #13161b
}
:root[data-theme="dark"] .code-tool.is-running {
    border-color: #2e3a40;
    background-color: #14171b
}
:root[data-theme="dark"] .code-tool.is-error {
    border-color: #463732
}
:root[data-theme="dark"] .code-tool>button {
    color: #93bad1
}
:root[data-theme="dark"] .code-tool-icon {
    color: #8dbfda
}
:root[data-theme="dark"] .code-tool.is-error .code-tool-icon {
    color: #f29f8e
}
:root[data-theme="dark"] .code-tool-summary {
    color: #a6bbc8
}
:root[data-theme="dark"] .code-tool-toggle {
    color: #a8bbc5
}
:root[data-theme="dark"] .code-tool pre {
    border-top-color: #303439;
    background-color: #14181c;
    color: #9bb7c7
}
:root[data-theme="dark"] .code-progress {
    border-color: #31353b;
    background-color: #14171c;
    color: #97b7ca
}
:root[data-theme="dark"] .code-progress.is-live {
    border-color: #2f3a3e;
    background-color: #14171c
}
:root[data-theme="dark"] .code-progress.is-error {
    border-color: #433632;
    background-color: #14171c
}
:root[data-theme="dark"] .code-progress-dot {
    background-color: #18323d
}
:root[data-theme="dark"] .code-progress.is-live .code-progress-dot {
    box-shadow: 0 0 0 4px #171a1e
}
:root[data-theme="dark"] .code-progress.is-error .code-progress-dot {
    background-color: #44251f
}
:root[data-theme="dark"] .code-progress-title {
    color: #95bdd5
}
:root[data-theme="dark"] .code-progress-time {
    color: #a5bbc8
}
:root[data-theme="dark"] .code-progress-current {
    color: #93b8cd
}
:root[data-theme="dark"] .code-progress-idle {
    color: #a5bbc8
}
:root[data-theme="dark"] .code-progress-steps {
    border-left-color: #2f373b
}
:root[data-theme="dark"] .code-progress-steps li {
    color: #92afc0
}
:root[data-theme="dark"] .code-progress-steps li::before {
    border-color: #33444c;
    background-color: #13161b
}
:root[data-theme="dark"] .code-progress-steps li.is-current {
    color: #8fbbd5
}
:root[data-theme="dark"] .code-progress-steps li.is-current::before {
    background-color: #152c37
}
:root[data-theme="dark"] .code-progress-steps li.is-error {
    color: #d09f96
}
:root[data-theme="dark"] .code-progress-steps li.is-error::before {
    border-color: #634139;
    background-color: #42251f
}
:root[data-theme="dark"] .code-progress-steps li time {
    color: #aabac3
}
:root[data-theme="dark"] .code-composer-wrap {
    border-top-color: #303439;
    background-color: rgba(20,23,28,0.961)
}
:root[data-theme="dark"] .code-composer {
    border-color: #32363b;
    background-color: #13161b;
    box-shadow: 0 8px 22px rgba(0,0,0,0.191)
}
:root[data-theme="dark"] .code-composer:focus-within {
    border-color: #2f454e
}
:root[data-theme="dark"] .code-composer textarea {
    color: #9dc0d9
}
:root[data-theme="dark"] .code-composer textarea::placeholder {
    color: #aabac4
}
:root[data-theme="dark"] .code-composer-bottom span {
    color: #abbac4
}
:root[data-theme="dark"] .code-composer-bottom .code-test-access {
    color: #a4bcc8
}
:root[data-theme="dark"] .code-composer-bottom button {
    background-color: #507b93;
    color: #ffffff
}
:root[data-theme="dark"] .code-composer-bottom button:disabled {
    background-color: #191d21;
    color: #a5bbc9
}
:root[data-theme="dark"] .code-composer-bottom .code-stop {
    background-color: #16191d;
    color: #d09f96
}
:root[data-theme="dark"] .code-composer-bottom .code-stop:hover {
    background-color: #221814
}
:root[data-theme="dark"] .code-followup-status {
    border-color: #2e373a;
    background-color: #15181c;
    color: #8db2c8
}
:root[data-theme="dark"] .code-followup-status.is-ended {
    border-color: #3f372a;
    background-color: #14181c;
    color: #c6ad87
}
:root[data-theme="dark"] .code-followup-status button {
    border-color: #304148;
    background-color: #13161b;
    color: #8db9d3
}
:root[data-theme="dark"] .code-followup-status button:hover {
    background-color: #16191d
}
:root[data-theme="dark"] .code-notice {
    color: #d2a199
}
:root[data-theme="dark"] .code-permission {
    border-color: #463a1d;
    background-color: #14171c;
    box-shadow: 0 8px 22px rgba(0,0,0,0.212)
}
:root[data-theme="dark"] .code-permission-head {
    color: #bea27d
}
:root[data-theme="dark"] .code-permission strong {
    color: #d1b090
}
:root[data-theme="dark"] .code-permission p {
    color: #c2aa88
}
:root[data-theme="dark"] .code-permission pre {
    background-color: #1c1913;
    color: #bfb4a4
}
:root[data-theme="dark"] .code-permission-actions button {
    border-color: #433b2b;
    background-color: #13161b;
    color: #c7af8b
}
:root[data-theme="dark"] .code-permission-actions button[data-permission=allow] {
    border-color: #588ea9;
    background-color: #507b93;
    color: #ffffff
}
:root[data-theme="dark"] .code-artifacts {
    border-left-color: #31353a;
    background-color: #13171b
}
:root[data-theme="dark"] .code-artifacts-top {
    border-bottom-color: #303439
}
:root[data-theme="dark"] .code-artifacts-title {
    color: #9ebccf
}
:root[data-theme="dark"] .code-artifact-actions {
    border-bottom-color: #2f3339
}
:root[data-theme="dark"] .code-artifact-actions button {
    border-color: #32363b;
    background-color: #13161b;
    color: #92b6cb
}
:root[data-theme="dark"] .code-artifact-actions button:hover:not(:disabled) {
    background-color: #15181c
}
:root[data-theme="dark"] .code-artifact-actions .code-deploy {
    border-color: #5e8da6;
    background-color: #548198;
    color: #ffffff
}
:root[data-theme="dark"] .code-artifact-actions .code-deploy:hover:not(:disabled) {
    background-color: #243c49
}
:root[data-theme="dark"] .code-deployment-status {
    border-bottom-color: #2f3338;
    background-color: #14181c;
    color: #94b0bf
}
:root[data-theme="dark"] .code-deployment-status.is-ready {
    background-color: #15181c;
    color: #88bba9
}
:root[data-theme="dark"] .code-deployment-status.is-error {
    background-color: #15181c;
    color: #d2a197
}
:root[data-theme="dark"] .code-deployment-status a {
    color: #8bb7d1
}
:root[data-theme="dark"] .code-artifact-tabs {
    border-bottom-color: #2f3338
}
:root[data-theme="dark"] .code-artifact-tabs button {
    color: #a7bbc5
}
:root[data-theme="dark"] .code-artifact-tabs button[aria-selected=true] {
    color: #91bbd7
}
:root[data-theme="dark"] .code-artifact-tabs button[aria-selected=true]::after {
    background-color: #1b3847
}
:root[data-theme="dark"] .code-panel-empty>span {
    border-color: #31353a;
    background-color: #14171c;
    color: #a4bcc7
}
:root[data-theme="dark"] .code-panel-empty strong {
    color: #95b4c6
}
:root[data-theme="dark"] .code-panel-empty p {
    color: #a9bbc1
}
:root[data-theme="dark"] .code-panel-heading {
    color: #9bb4c1
}
:root[data-theme="dark"] .code-panel-heading button {
    color: #86b3cc
}
:root[data-theme="dark"] .code-panel-helper {
    color: #a9bbc3
}
:root[data-theme="dark"] .code-preview-address {
    border-bottom-color: #303439;
    background-color: #14181c;
    color: #93abb9
}
:root[data-theme="dark"] .code-preview-address a {
    color: #88b5ce
}
:root[data-theme="dark"] .code-preview-ready iframe {
    background-color: #13161b
}
:root[data-theme="dark"] .code-file-row {
    color: #97b2c3
}
:root[data-theme="dark"] .code-folder-row {
    color: #90b6cd
}
:root[data-theme="dark"] .code-folder-row:hover {
    background-color: #15191d
}
:root[data-theme="dark"] .code-folder-row span:first-child {
    color: #97bed0
}
:root[data-theme="dark"] .code-file-row:hover,:root[data-theme="dark"] .code-file-row.is-selected {
    background-color: #16191d;
    color: #8db8d3
}
:root[data-theme="dark"] .code-file-row span:first-child {
    color: #99bece
}
:root[data-theme="dark"] .code-file-viewer {
    border-top-color: #303439
}
:root[data-theme="dark"] .code-file-viewer-head {
    background-color: #14181c;
    color: #90b3ca
}
:root[data-theme="dark"] .code-file-viewer-head button {
    color: #a1bccb
}
:root[data-theme="dark"] .code-file-viewer pre {
    color: #a2bfd1
}
:root[data-theme="dark"] .code-todos li,:root[data-theme="dark"] .code-activity li {
    border-bottom-color: #2e3237;
    color: #93afbc
}
:root[data-theme="dark"] .code-todos li>span:first-child {
    color: #a4bcc7
}
:root[data-theme="dark"] .code-todos li.is-progress {
    color: #bda67e
}
:root[data-theme="dark"] .code-todos li.is-complete {
    color: #a6bcc3
}
:root[data-theme="dark"] .code-activity li::before {
    background-color: #1c2930
}
:root[data-theme="dark"] .code-activity li.is-error::before {
    background-color: #47211a
}
:root[data-theme="dark"] .code-artifacts-foot {
    border-top-color: #2f3338;
    color: #abbbbf
}
:root[data-theme="dark"] .code-confirm {
    border-color: #32363b;
    background-color: #13161b;
    color: #a0bed2;
    box-shadow: 0 20px 65px rgba(0,0,0,0.438)
}
:root[data-theme="dark"] .code-confirm::backdrop {
    background-color: rgba(59,90,109,0.49)
}
:root[data-theme="dark"] .code-confirm h2 {
    color: #99c0d7
}
:root[data-theme="dark"] .code-confirm p {
    color: #96aebb
}
:root[data-theme="dark"] .code-confirm button {
    border-color: #32363c;
    background-color: #13161b;
    color: #8fb8cf
}
:root[data-theme="dark"] .code-confirm button:last-child {
    border-color: #628ca5;
    background-color: #557c93;
    color: #ffffff
}
:root[data-theme="dark"] #code-end-confirm,:root[data-theme="dark"] #code-delete-confirm {
    border-color: #784942;
    background-color: #542c27
}
:root[data-theme="dark"] .code-rename-label {
    color: #a2bccc
}
:root[data-theme="dark"] .code-rename-input {
    border-color: #31393d;
    background-color: #14171c;
    color: #9bc0d7
}
:root[data-theme="dark"] .code-rename-error {
    color: #d2a198 !important
}
@media (max-width:980px) {
    :root[data-theme="dark"] .code-projects {
        box-shadow: 18px 0 35px rgba(0,0,0,0.304)
    }
}
@media (max-width:700px) {
    :root[data-theme="dark"] .code-artifacts {
        box-shadow: -15px 0 35px rgba(0,0,0,0.29)
    }
}
@media (max-width:700px) {
    :root[data-theme="dark"] .code-artifacts-open {
        border-color: #31393d;
        background-color: #13161b;
        color: #89b5cf;
        box-shadow: 0 5px 18px rgba(0,0,0,0.262)
    }
}

/* ---- from repo.css (33 declarations) ---- */
:root[data-theme="dark"] .repo-card {
    background-color: rgba(19,22,27,0.902);
    border-color: #31353a;
    box-shadow: 0 2px 14px rgba(0,0,0,0.191)
}
:root[data-theme="dark"] .repo-card h1 {
    color: #a0c3de
}
:root[data-theme="dark"] .repo-card h2 {
    color: #a0c3de
}
:root[data-theme="dark"] .repo-card h3 {
    color: #93b4ca
}
:root[data-theme="dark"] .repo-card p {
    color: #9ab9ca
}
:root[data-theme="dark"] .repo-who {
    color: #97b2c5
}
:root[data-theme="dark"] .repo-card label {
    color: #9abfd6
}
:root[data-theme="dark"] .repo-hint {
    color: #a2bccc
}
:root[data-theme="dark"] .repo-card input,:root[data-theme="dark"] .repo-card select,:root[data-theme="dark"] .repo-card textarea {
    border-color: #34393e;
    background-color: #13161b;
    color: #a0c3de
}
:root[data-theme="dark"] .repo-button {
    background-color: #42667e;
    color: #ffffff
}
:root[data-theme="dark"] .repo-link-button {
    color: #92bbd7
}
:root[data-theme="dark"] .repo-note {
    color: #97b2c5 !important
}
:root[data-theme="dark"] .repo-error {
    color: #d6a49c !important
}
:root[data-theme="dark"] .repo-small a {
    color: #97b2c5
}
:root[data-theme="dark"] .repo-tasks li {
    border-color: #303439;
    background-color: #14171b
}
:root[data-theme="dark"] .repo-tasks li:hover {
    border-color: #333d43
}
:root[data-theme="dark"] .repo-tasks li.is-unread {
    border-color: #4c9874;
    box-shadow: inset 3px 0 0 rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .repo-task-title {
    color: #a0c3de
}
:root[data-theme="dark"] .repo-task-sub {
    color: #97b2c5
}
:root[data-theme="dark"] .repo-state {
    background-color: #16191d;
    color: #93b4ca
}
:root[data-theme="dark"] .repo-state[data-state=pr_ready] {
    background-color: #161a1e;
    color: #91bea6
}
:root[data-theme="dark"] .repo-state[data-state=failed],:root[data-theme="dark"] .repo-state[data-state=budget] {
    background-color: #171a1e;
    color: #d6a49c
}
:root[data-theme="dark"] .repo-log,:root[data-theme="dark"] .repo-diff {
    background-color: #28363f
}

/* ---- from share.css (23 declarations) ---- */
:root[data-theme="dark"] .shared-header-link {
    border-color: rgba(87,123,146,0.25);
    background-color: rgba(19,22,27,0.769)
}
:root[data-theme="dark"] .shared-header-link:hover {
    background-color: #13161b;
    color: #93bcd9
}
:root[data-theme="dark"] .shared-eyebrow {
    color: #91b2c7
}
:root[data-theme="dark"] .read-only-tag {
    border-color: #32363c;
    background-color: rgba(19,22,27,0.6);
    color: #93b2c7
}
:root[data-theme="dark"] .shared-intro h1 {
    color: #9dc1d9
}
:root[data-theme="dark"] .shared-description {
    color: #96b2c4
}
:root[data-theme="dark"] .shared-meta {
    color: #a1bccb
}
:root[data-theme="dark"] .shared-conversation .message-assistant {
    background-color: rgba(19,22,27,0.949)
}
:root[data-theme="dark"] .shared-loading {
    color: #91adc2
}
:root[data-theme="dark"] .shared-error {
    border-color: #303439;
    background-color: rgba(19,22,27,0.929);
    box-shadow: 0 12px 38px -32px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .shared-error-mark {
    background-color: #16191d;
    color: #8bb5d0
}
:root[data-theme="dark"] .shared-error h2 {
    color: #9abfdc
}
:root[data-theme="dark"] .shared-error p {
    color: #94b1c4
}
:root[data-theme="dark"] .shared-error a,:root[data-theme="dark"] .shared-outro a {
    color: #ffffff
}
:root[data-theme="dark"] .shared-error a:hover,:root[data-theme="dark"] .shared-outro a:hover {
    background-color: #4f87aa
}
:root[data-theme="dark"] .shared-outro p {
    color: #92b1c6
}

/* ---- from local-account.css (46 declarations) ---- */
:root[data-theme="dark"] body[data-page=local-account] {
    background-color: #171a1f;
    color: #9abfdc
}
:root[data-theme="dark"] body[data-page=local-account] .sky-scene::after {
    background: linear-gradient(180deg,rgba(22,25,30,0.659) 0%,rgba(22,25,30,0.69) 45%,#15181c 100%)
}
:root[data-theme="dark"] .local-header-label {
    border-left-color: rgba(71,89,103,0.361);
    color: #91b5cc
}
:root[data-theme="dark"] .local-sign-out {
    border-color: #354248;
    background-color: rgba(19,22,27,0.788);
    color: #9abfdc
}
:root[data-theme="dark"] .local-sign-out:hover {
    background-color: #13161b
}
:root[data-theme="dark"] .local-loading {
    color: #90b3cc
}
:root[data-theme="dark"] .local-eyebrow,:root[data-theme="dark"] .local-feature-type {
    color: #8cb6d1
}
:root[data-theme="dark"] .local-intro>p,:root[data-theme="dark"] .local-dashboard-head p {
    color: #95b4c7
}
:root[data-theme="dark"] .local-rule {
    background-color: #392100
}
:root[data-theme="dark"] .local-login-card {
    border-color: #2a2e33;
    background-color: rgba(19,22,27,0.945);
    box-shadow: 0 23px 70px -39px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .local-login-card h2 {
    color: #9cc1dc
}
:root[data-theme="dark"] .local-login-card>p:not(.local-error) {
    color: #92adbf
}
:root[data-theme="dark"] .local-login-card label {
    color: #9abfdc
}
:root[data-theme="dark"] .local-login-card input {
    border-color: #333d43;
    background-color: #14171b;
    color: #9abfdc
}
:root[data-theme="dark"] .local-login-card input:focus {
    outline-color: #2e3f49
}
:root[data-theme="dark"] .local-login-card button {
    background-color: #426479;
    color: #ffffff
}
:root[data-theme="dark"] .local-login-card button:hover:not(:disabled) {
    background-color: #5786a5
}
:root[data-theme="dark"] .local-login-card small {
    color: #92abbc
}
:root[data-theme="dark"] .local-error {
    background-color: #15191d;
    color: #d4a39b
}
:root[data-theme="dark"] .local-status,:root[data-theme="dark"] .local-connection {
    color: #8cbda8
}
:root[data-theme="dark"] .local-status {
    border-color: #2c3e37;
    background-color: #16191d
}
:root[data-theme="dark"] .local-feature {
    border-color: #2a2e33;
    background-color: rgba(19,22,27,0.945);
    box-shadow: 0 15px 42px -34px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .local-feature:hover {
    box-shadow: 0 24px 48px -30px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .local-feature-icon {
    background-color: #16191e;
    color: #8db7d2
}
:root[data-theme="dark"] .local-feature strong {
    color: #9bc1da
}
:root[data-theme="dark"] .local-feature>span:nth-last-of-type(1) {
    color: #93b1c5
}
:root[data-theme="dark"] .local-feature b {
    color: #8db7d3
}
:root[data-theme="dark"] .local-detail-card {
    border-color: #303439;
    background-color: rgba(19,23,27,0.91)
}
:root[data-theme="dark"] .local-detail-card p {
    color: #93b1c5
}
:root[data-theme="dark"] .local-connection.is-pending {
    color: #bfaa82
}
:root[data-theme="dark"] .local-xapi-ask {
    color: #8db7d3
}

/* ---- from account/style.css (134 declarations) ---- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --sky: #151c20;
    --ink: #9bc1da;
    --deep: #9fc5e0;
    --muted: #99b4ca;
    --blue: #8cb6d2;
    --line: #31393e;
    --paper: #13161b;
    --soft: #15181c;
    --danger: #d6a4a0;
    --success: #8fbfa9
}
:root[data-theme="dark"] body {
    background: linear-gradient(160deg,#141d23 0%,#16191d 52%,#14171c 100%)
}
:root[data-theme="dark"] a:focus-visible,:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] input:focus-visible {
    outline-color: #3681f8
}
:root[data-theme="dark"] .skip-link {
    background-color: #13161b
}
:root[data-theme="dark"] .site-header {
    border-bottom-color: rgba(87,123,146,0.14)
}
:root[data-theme="dark"] .header-label {
    border-left-color: rgba(87,123,146,0.25);
    color: #95b5ca
}
:root[data-theme="dark"] .quiet-button {
    border-color: rgba(87,123,146,0.28);
    background-color: rgba(19,22,27,0.533)
}
:root[data-theme="dark"] .quiet-button:hover {
    background-color: #13161b
}
:root[data-theme="dark"] .loading-dot {
    box-shadow: 0 0 0 5px rgba(57,33,0,0.2)
}
:root[data-theme="dark"] .auth-intro>p {
    color: #98b9d0
}
:root[data-theme="dark"] .auth-card {
    border-color: #2a2e33;
    background-color: rgba(19,22,27,0.941);
    box-shadow: 0 25px 70px -45px rgba(0,0,0,0.6),0 2px 14px rgba(0,0,0,0.121)
}
:root[data-theme="dark"] .field input {
    border-color: #353d43;
    background-color: #14171b
}
:root[data-theme="dark"] .field input:focus {
    box-shadow: 0 0 0 3px rgba(82,135,169,0.149)
}
:root[data-theme="dark"] .field input[readonly] {
    background-color: #15181d
}
:root[data-theme="dark"] .primary-button {
    color: #ffffff
}
:root[data-theme="dark"] .primary-button:hover:not(:disabled) {
    background-color: #497c9b
}
:root[data-theme="dark"] .secondary-button {
    border-color: #353d43;
    background-color: #13161b
}
:root[data-theme="dark"] .secondary-button:hover:not(:disabled) {
    background-color: #15181c
}
:root[data-theme="dark"] .form-error {
    background-color: #15191d
}
:root[data-theme="dark"] .noscript {
    background-color: #13161b
}
:root[data-theme="dark"] .account-nav {
    border-color: rgba(42,46,51,0.651);
    background-color: rgba(19,22,27,0.62);
    box-shadow: 0 12px 42px -32px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .nav-heading {
    color: #9ab1c2
}
:root[data-theme="dark"] .nav-links a {
    color: #95b7cd
}
:root[data-theme="dark"] .nav-links a:hover {
    background-color: #16191e
}
:root[data-theme="dark"] .nav-links a[aria-current=page] {
    background-color: #171a1e;
    color: #9dc5e1
}
:root[data-theme="dark"] .nav-icon {
    color: #88b5ce
}
:root[data-theme="dark"] .card {
    border-color: #2a2e33;
    background-color: rgba(19,22,27,0.941);
    box-shadow: 0 12px 42px -36px rgba(0,0,0,0.6)
}
:root[data-theme="dark"] .stat-card.primary {
    color: #ffffff
}
:root[data-theme="dark"] .stat-card.primary .stat-value {
    color: #ffffff
}
:root[data-theme="dark"] .stat-card.primary a {
    color: #ffffff
}
:root[data-theme="dark"] .activity-list li {
    border-bottom-color: #303439
}
:root[data-theme="dark"] .activity-symbol {
    background-color: #161a1e
}
:root[data-theme="dark"] .activity-symbol.credit {
    background-color: #1d1910;
    color: #c0ab83
}
:root[data-theme="dark"] .note-card {
    background-color: rgba(20,23,28,0.929)
}
:root[data-theme="dark"] .note-mark {
    border-color: #2e393f
}
:root[data-theme="dark"] .low-balance-note {
    border-color: #41381c;
    background-color: #191711;
    color: #c7b189
}
:root[data-theme="dark"] .product-status {
    color: #ffffff
}
:root[data-theme="dark"] .customer-service-grid .balance-panel .setting-status {
    background-color: #15201b;
    color: #93c3ae
}
:root[data-theme="dark"] .customer-service-grid .balance-panel .setting-status.pending {
    background-color: #1c180e;
    color: #c8b088
}
:root[data-theme="dark"] .product-enrollment {
    border-color: #2f383c;
    background-color: rgba(20,23,28,0.925)
}
:root[data-theme="dark"] .usage-filters button {
    border-color: #31393e;
    background-color: rgba(19,22,27,0.902)
}
:root[data-theme="dark"] .usage-filters button[aria-pressed=true] {
    color: #ffffff
}
:root[data-theme="dark"] .usage-filters button:hover:not([aria-pressed=true]) {
    background-color: #161a1e
}
:root[data-theme="dark"] .balance-panel {
    background-color: #355971;
    color: #ffffff;
    border-color: #49708b
}
:root[data-theme="dark"] .amount-option span {
    border-color: #31393e;
    background-color: #14171c
}
:root[data-theme="dark"] .amount-option input:checked+span {
    background-color: #16191d
}
:root[data-theme="dark"] .amount-option input:focus-visible+span {
    outline-color: #3681f8
}
:root[data-theme="dark"] .data-table th {
    color: #91aec3;
    background-color: #14171b
}
:root[data-theme="dark"] .data-table td {
    border-bottom-color: #2f3338;
    color: #98bad1
}
:root[data-theme="dark"] .load-more-row {
    border-top-color: #2f3338
}
:root[data-theme="dark"] .inline-error {
    background-color: #15191d
}
:root[data-theme="dark"] .input-prefix {
    border-color: #353d43;
    background-color: #14171b
}
:root[data-theme="dark"] .input-prefix input {
    border-left-color: #32363b
}
:root[data-theme="dark"] .input-prefix:focus-within {
    outline-color: #3681f8
}
:root[data-theme="dark"] .limit-meter {
    background-color: #171a1f
}
:root[data-theme="dark"] .limit-meter>span.near {
    background-color: #3c2400
}
:root[data-theme="dark"] .limit-meter>span.over {
    background-color: #552525
}
:root[data-theme="dark"] .fact-list div {
    border-bottom-color: #2f3338
}
:root[data-theme="dark"] .consent-box {
    border-color: #30383b;
    background-color: #14171b
}
:root[data-theme="dark"] .setting-status {
    background-color: #16191e
}
:root[data-theme="dark"] .setting-status.on {
    background-color: #161a1e
}
:root[data-theme="dark"] .setting-status.pending {
    background-color: #1c180e;
    color: #beac82
}
:root[data-theme="dark"] .project-note {
    background-color: #14181c;
    color: #c2b086
}
:root[data-theme="dark"] .project-note strong {
    color: #cab58c
}
:root[data-theme="dark"] .status-flag {
    background-color: #16191e
}
:root[data-theme="dark"] .status-flag.failed {
    background-color: #15191d
}
:root[data-theme="dark"] .link-form {
    border-top-color: #2f3339
}
:root[data-theme="dark"] .key-form {
    border-bottom-color: #2f3339
}
:root[data-theme="dark"] .key-list li {
    border-bottom-color: #2f3338
}
:root[data-theme="dark"] .issued-key {
    border-color: #423918;
    background-color: #191711
}
:root[data-theme="dark"] .issued-key p {
    color: #c1b186
}
:root[data-theme="dark"] .issued-key code {
    border-color: #40391e;
    background-color: #13161b;
    color: #a3c2d6
}
:root[data-theme="dark"] .toast {
    border-color: #2e383c;
    background-color: #13161b;
    box-shadow: 0 15px 45px rgba(0,0,0,0.41)
}
:root[data-theme="dark"] .toast.error {
    border-color: #473432
}
:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .card:not(.primary):not(.balance-panel):not(.note-card) {
    background-color: #13161b
}
:root[data-theme="dark"] .note-card {
    background-color: #14171c
}
:root[data-theme="dark"] .balance-action {
    color: #9fc5e0 !important
}
:root[data-theme="dark"] .balance-action:hover {
    background-color: #311e00
}
:root[data-theme="dark"] .build-test-card {
    background-color: #14171c !important
}
:root[data-theme="dark"] .status-flag.uncertain {
    background-color: #1c180e;
    color: #c8b088
}
:root[data-theme="dark"] .limit-meter {
    background-color: #171a1f
}
:root[data-theme="dark"] .limit-meter::-webkit-progress-bar {
    background-color: #171a1f
}
:root[data-theme="dark"] .limit-meter.near::-webkit-progress-value {
    background-color: #3c2400
}
:root[data-theme="dark"] .limit-meter.over::-webkit-progress-value {
    background-color: #552525
}
:root[data-theme="dark"] .limit-meter.near::-moz-progress-bar {
    background-color: #3c2400
}
:root[data-theme="dark"] .limit-meter.over::-moz-progress-bar {
    background-color: #552525
}
:root[data-theme="dark"] .google-button {
    border-color: #353d43;
    background-color: #13161b
}
:root[data-theme="dark"] .google-button:hover {
    border-color: #3b4a52;
    background-color: #14171c
}
:root[data-theme="dark"] .google-g {
    color: #70b5ff
}

/* ---- hand-tuned (founder 2026-09-27: dark theme; body text >= 7:1, everything >= 4.5:1) ---- */
:root[data-theme="dark"]{--answer:#d5dbe2;--answer-muted:#aab4bf;--paper:#1f2630;--ink:#c9d5de;--deep:#dde6ec;--muted:#9fb1be;--blue:#8cc0e3;--line:rgba(170,195,212,.17);--sky:#121a22;--soft:#1a222b;background:#10161d;color:var(--ink)}
:root[data-theme="dark"] body{background:#10161d}
/* The sunset becomes a quiet dusk: same picture, far darker, so the cards and text stay the focus. */
:root[data-theme="dark"] .sky-scene{filter:brightness(.3) saturate(.7) contrast(1.05)}
:root[data-theme="dark"] .message-prose,:root[data-theme="dark"] .message-content{color:var(--answer)}
:root[data-theme="dark"] .message-prose h1,:root[data-theme="dark"] .message-prose h2,:root[data-theme="dark"] .message-prose h3,:root[data-theme="dark"] .message-prose h4,:root[data-theme="dark"] .message-prose h5,:root[data-theme="dark"] .message-prose h6,:root[data-theme="dark"] .message-prose strong{color:#e8edf2}
:root[data-theme="dark"] .message-prose a{color:#8cc8ee;text-decoration-color:#4f7d99}
:root[data-theme="dark"] img[src$="/james-wordmark.svg"],:root[data-theme="dark"] img[src$="/james-wordmark.svg?v"]{content:url(/assets/james-wordmark-dark.svg)}
:root[data-theme="dark"] img[src$="/james-mark.svg"]{content:url(/assets/james-mark-dark.svg)}
/* A built app keeps its own theme: the preview frame is never darkened. */
:root[data-theme="dark"] #code-preview-frame{color-scheme:light;background:#fff}
.theme-toggle{display:inline-flex;align-items:center;gap:6px;margin:0 10px;padding:7px 10px;border:1px solid var(--line,rgba(30,73,100,.15));border-radius:999px;background:transparent;color:inherit;font:600 .8rem/1 inherit;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{border-color:currentColor}
.theme-toggle:focus-visible{outline:2px solid #3e749e;outline-offset:2px}
.theme-toggle .theme-icon-moon{display:none}
:root[data-theme="dark"] .theme-toggle .theme-icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .theme-icon-moon{display:inline}
@media (max-width:700px){.theme-toggle .theme-toggle-label{display:none}.theme-toggle{padding:7px}}
/* Buttons whose background is a text token in light mode get a steady accent in dark (white on #2f6a8c = 5.9:1). */
:root[data-theme="dark"] .shared-error a,:root[data-theme="dark"] .shared-outro a,:root[data-theme="dark"] .primary-button,:root[data-theme="dark"] .stat-card.primary,:root[data-theme="dark"] .usage-filters button[aria-pressed=true],:root[data-theme="dark"] .send-button{background:#2f6a8c;border-color:#2f6a8c;color:#fff}
:root[data-theme="dark"] .shared-error a:hover,:root[data-theme="dark"] .shared-outro a:hover,:root[data-theme="dark"] .primary-button:hover,:root[data-theme="dark"] .send-button:hover:not(:disabled){background:#387aa0}
/* Dark text stays dark on the gold button. */
:root[data-theme="dark"] .balance-action{color:#183b51!important}
:root[data-theme="dark"] .stat-card.primary .stat-label,:root[data-theme="dark"] .stat-card.primary small{color:#e3eef5}
/* Phones: the Chat/Code header has no room; the theme follows the OS there, and the toggle stays on the account page. */
@media (max-width:700px){.chat-header .theme-toggle,.code-header .theme-toggle{display:none}}

:root[data-theme="dark"] .attach-button{border-color:#32363b;background-color:#13161b;color:#9cc3da}
:root[data-theme="dark"] .attach-button:hover{background-color:#1c2127;border-color:#3d5566}
:root[data-theme="dark"] .attach-chip{border-color:#32363b;background-color:#15191e;color:#b4cfdf}
:root[data-theme="dark"] .attach-chip img{background-color:#1c2127}
:root[data-theme="dark"] .attach-meta,:root[data-theme="dark"] .attach-chip.is-pending{color:#9db3c1}
:root[data-theme="dark"] .attach-remove{color:#9db3c1}
:root[data-theme="dark"] .attach-remove:hover{background-color:#232a31;color:#dbe7ee}
:root[data-theme="dark"] .composer.is-drop{border-color:#7fb6d6;box-shadow:0 0 0 3px #7fb6d633}
:root[data-theme="dark"] .message-images img{border-color:#32363b}
:root[data-theme="dark"] .attach-chip.is-file .attach-icon{background-color:#1f2a33;color:#a9cde2}

:root[data-theme="dark"] .answer-copy,:root[data-theme="dark"] .code-copy{border-color:#32363b;background-color:#13161b;color:#9cc3da}
:root[data-theme="dark"] .answer-copy:hover,:root[data-theme="dark"] .code-copy:hover{background-color:#1c2127}
:root[data-theme="dark"] .answer-copy:focus-visible,:root[data-theme="dark"] .code-copy:focus-visible{outline-color:#7fb6d6}
:root[data-theme="dark"] .answer-copy.is-copied,:root[data-theme="dark"] .code-copy.is-copied{color:#8fe0b4;border-color:#2f6b4b;background-color:#132019}
:root[data-theme="dark"] .code-mode-note{color:#97b2c3}
