/* Calken v159: fine-tune after the 3 Dec 2026 audit of v158. Loaded last. */

/* Studio: preview note */
.sd-note{margin:16px 0 0;padding:12px 16px;border:1px solid color-mix(in srgb,#C9A45C 55%,transparent);border-radius:14px;background:color-mix(in srgb,#C9A45C 10%,transparent);font-size:14px;line-height:1.5;color:var(--ink);max-width:760px}
.sd-note b{color:var(--ink)}
.sd-note a{color:inherit;text-decoration:underline;text-underline-offset:3px;font-weight:600;white-space:nowrap}

/* Studio: solid buttons. They used the page colour as text, which is see-through in the glass theme (unreadable) */
html:not([data-theme=light]) .sd .sd-btn:not(:disabled),html:not([data-theme=light]) .sd .sd-bid,html:not([data-theme=light]) .sd-vf button,html:not([data-theme=light]) .sd-sheet .sd-btn:not(:disabled),html:not([data-theme=light]) .sd-chips button.on{background:#F3EFE7!important;color:#121214!important;border-color:#F3EFE7!important}
html[data-theme=light] .sd .sd-btn:not(:disabled),html[data-theme=light] .sd .sd-bid,html[data-theme=light] .sd-vf button,html[data-theme=light] .sd-sheet .sd-btn:not(:disabled),html[data-theme=light] .sd-chips button.on{background:#121214!important;color:#F3EFE7!important;border-color:#121214!important}
.sd-sheet{background:color-mix(in srgb,#0b0c0e 88%,transparent)!important}html[data-theme=light] .sd-sheet{background:color-mix(in srgb,#f3efe7 92%,transparent)!important}
.sd button:focus-visible,.sd a:focus-visible,.sd-walk:focus-visible,.sd-sheet button:focus-visible,.sd-sheet input:focus-visible{outline:2px solid #C9A45C;outline-offset:3px}

/* Phone tab bar: labels stay readable over bright photos (was 2.4:1 on photo pages) */
html:not([data-theme=light]) #mob-tabs{background:rgba(18,18,20,.82)!important}

/* Earn filters in the dark theme: v157 darkened them for the light theme, which made them too dark here */
html:not([data-theme=light]) body [data-earn-f]:not(.on){color:#b9b6b0!important}
html:not([data-theme=light]) body [data-earn-f].on{color:#121214!important}

/* Portfolio product facts in the light theme: product-coloured labels in a deeper shade (Studio gold was 2:1) */
html[data-theme=light] .pf-facts dt{filter:brightness(.6)}

/* /plan on phones: the "Prefer to talk first?" panel was wider than the screen and its right edge was cut off */
@media (max-width:760px){.ckb-plan{grid-template-columns:minmax(0,1fr)!important}.ckb-help,.ckb-help>*{min-width:0;max-width:100%;overflow-wrap:break-word}}

/* Sideways rows reachable by keyboard get a visible focus ring */
[data-v159-scroll]:focus-visible{outline:2px solid currentColor;outline-offset:3px}
