/* Full TM deep-blue palette. Light mode keeps the original complete palette. */
html[data-tm-theme=deep]{color-scheme:dark;--bg:#0d1930;--ink:#edf3ff;--muted:#b4c3dc;--line:#334967;--pale:#253b5e;--blue:#9abaff;--deep:#365eac;--tm-surface:#172840;--tm-raised:#203550;--tm-accent:#426ed0}
html[data-tm-theme=deep] body{background:var(--bg);color:var(--ink)}
html[data-tm-theme=deep] .detail-content{--muted:#b4c3dc}
html[data-tm-theme=deep] :is(.detail-map,.route-preview-map,.map-frame){background:#172840}
html[data-tm-theme=deep] :is(.header,.rail,.mobile-nav){background:#102139;border-color:var(--line);color:var(--ink)}
html[data-tm-theme=deep] :is(.source-discovery,.search-bar,.place-card,.map-panel,.profile-banner,.profile-editor,.my-panel,.my-stats>button,.my-management,.my-settings,.my-content,.route-card,.social-card,.section-card,.saved-empty-panel,.setting-row,.table-wrap,dialog,#modal,.view-toggle,.chip,.source-type,.tm-theme,.tm-discovery-tabs button,.button.secondary,.card-save,.place-pill,.map-overlay,.skip){background:var(--tm-surface);color:var(--ink);border-color:var(--line)}
html[data-tm-theme=deep] :is(.my-hero,.my-travel-art,.my-route-preview,.route-stop,.source-kind,.profile-icon,.avatar,.my-stat-icon,.route-symbol,.my-empty-icon,.saved-empty-symbol,.upload,.my-stop-list>div,.map-heading,.modal-header,.feedback-section,.compact-feedback,.source-row,.social-input,.card-image){background:var(--tm-raised);color:var(--ink);border-color:var(--line)}
html[data-tm-theme=deep] :is(input,select,textarea,.language select,.query-control,.search-bar select,.discovery-select select,.discovery-query input,.field input,.field select,.field textarea){background:#12233b;color:var(--ink);border-color:#526887}
html[data-tm-theme=deep] :is(input,textarea)::placeholder{color:#a8b9d2;opacity:1}
html[data-tm-theme=deep] :is(input,select,textarea):disabled{background:#203047;color:#9eabc1}
html[data-tm-theme=deep] :is(.subtitle,.eyebrow,.card-location,.card-excerpt,.card-bottom,.person,.count,.map-note,.brand-note p,.editor-note,.detail-copy,.footer-note,.my-login-note,.my-kicker,.text-caption,.photo-credit,.tm-discovery-tabs small,.discovery-heading p,.my-empty p,.my-hero p,.my-panel p,.route-bottom,.route-place-names,.source-row span,.source-row small){color:var(--muted)}
html[data-tm-theme=deep] :is(h1,h2,h3,h4,legend,.field,.discovery-select,.discovery-query,.map-heading,.language,.my-identity,.my-stats strong,.my-hero-copy){color:var(--ink)}
html[data-tm-theme=deep] :is(.button:not(.secondary):not(.soft),.chip.active,.source-type.active,.card-save.saved,.mobile-nav .add-button,.tm-discovery-tabs button[aria-pressed=true]){background:#365eac;color:#fff;border-color:#779de9}
html[data-tm-theme=deep] :is(.button:not(.secondary):not(.soft),.chip.active,.source-type.active):hover{background:#426ec1}
html[data-tm-theme=deep] :is(.rail button.active,.mobile-nav button.active,.view-toggle button.active,.button.soft,.my-tabs button.active,.my-management summary){background:#29436c;color:#dbe8ff}
html[data-tm-theme=deep] :is(.rail button,.mobile-nav button,.view-toggle button){color:#bdcde5}
html[data-tm-theme=deep] :is(.open-place,.text-action,.my-text-button,.stop-letter,.tm-grip,.photo-credit a){color:#a8c6ff}
html[data-tm-theme=deep] :is(.card-bottom,.source-row,.feedback-section,.my-section-heading,.route-bottom,.modal-header,.my-stop-list>div,table,th,td){border-color:var(--line)}
html[data-tm-theme=deep] :is(.icon-button,.stop-actions button,.row-actions button,.small-action,.source-remove){background:#233a5b;color:#e8f0ff;border-color:var(--line)}
html[data-tm-theme=deep] .tm-grip{background:#203550;border-color:#607b9f}
html[data-tm-theme=deep] :is(button,a,input,select,textarea):focus-visible{outline-color:#b2ceff}
html[data-tm-theme=deep] dialog::backdrop{background:rgb(3 9 20 / .76)}
/* Reuse the exact logo silhouette; remove its white matte without editing imagery. */
html[data-tm-theme=deep] .header .logo{background:transparent;border-radius:0;filter:grayscale(1) invert(1) brightness(3) contrast(2);mix-blend-mode:screen}
html[data-tm-theme=deep] :is(.logo-image,.my-identity-icon img){background:var(--tm-surface)}
html[data-tm-theme=deep] .map-overlay img{background:var(--tm-surface)}
html[data-tm-theme=deep] .my-travel-art{background:linear-gradient(140deg,#23416a,#17283f)}
html[data-tm-theme=deep] :is(.my-art-ticket,.my-art-pin,.my-art-card){background:#29436c;color:#edf3ff;border-color:#526c92}
html[data-tm-theme=deep] .server-error{background:#4b2532;color:#ffdae0;border-color:#b86b82}
html[data-tm-theme=deep] .youtube-mark{color:#ff8d96}
html[data-tm-theme=deep] .tm-theme{background:#29436c;color:#eaf2ff;border-color:#6b87b0}

/* My page: theme the tab shell; keep layout wrappers and inset previews clear. */
html[data-tm-theme=deep] .my-tabs{background:#172840;border:1px solid #334967}
html[data-tm-theme=deep] .my-tabs button{color:#c5d3e9}
html[data-tm-theme=deep] .my-tabs button.active{background:#365eac;color:#fff;box-shadow:none}
html[data-tm-theme=deep] #app :is(.my-content,.my-stats,.my-overview-grid,.my-route-preview){background:transparent}
html[data-tm-theme=deep] .my-identity-icon{background:#29436c;color:#dce9ff}
