/* 設定は共有メニュー、単独ページではそのページの操作領域に置く。 */
html[data-site-ui] label.site-appearance {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .65rem;
    margin: 0; padding: .4rem .6rem; width: fit-content; max-width: 100%;
    border: 1px solid #abb3bf; border-radius: .5rem; background: #f7f8fa; color: #293344;
    font: 600 .85rem/1.4 system-ui,sans-serif; letter-spacing: normal; text-align: start;
}
html[data-site-ui] label.site-appearance select {
    appearance: auto; display: inline-block; box-sizing: border-box; width: auto; min-width: 0 !important; max-width: 100%;
    min-height: 36px; margin: 0; padding: .25rem .4rem; background: #fff; color: #253142;
    border: 1px solid #8793a1; border-radius: .3rem; font: inherit; color-scheme: light;
}
html[data-site-ui] .site-appearance select:focus-visible {outline: 3px solid #ac4d19; outline-offset: 2px}
html[data-site-ui] .lp-menu .site-appearance {min-width: 11rem; border-inline: 0; border-bottom: 0; border-radius: 0; margin-top: .25rem; background: transparent; color: inherit}
.site-appearance-slot {display: flex; justify-content: flex-end; padding: .7rem 0; max-width: 100%; flex: 1 1 100%}
@media print {.site-appearance-slot, html[data-site-ui] label.site-appearance {display:none}}
/* もともと暗いブランド画面でもライト設定で本文と操作欄を読めるようにする。 */
html[data-theme="light"] {color-scheme:light}
html[data-theme="light"][data-site-ui="policy-ink"] {
    --bg:#f6f7f8; --panel:#fff; --ink:#222d3a; --muted:#495768; --line:#c6cdd3; --accent:#13615b; --accent-2:#aa5236;
}
html[data-theme="light"][data-site-ui="policy-ink"] body {background:#f0f3f3}
html[data-theme="light"][data-site-ui="policy-ink"] .policy {background:white;box-shadow:0 7px 28px #24333d15}
html[data-theme="light"][data-site-ui="policy-ink"] .button.primary {color:white}
html[data-theme="light"][data-site-ui="ideas"] {
    --bg:#f4f6f5; --bg-elevated:#fff; --bg-panel:#fff; --bg-panel-strong:#e4eae7; --text:#22342f; --muted:#475f56;
    --border:#becdc6; --primary:#12694f; --primary-strong:#155e4a; --warning:#7a4a13; --danger:#a43b36; --success:#116549;
    --shadow:0 8px 20px #283f3614;
}
html[data-theme="light"][data-site-ui="ideas"] body {background:var(--bg)}
html[data-theme="light"][data-site-ui="ideas"] :is(.auth-card,.shell-bar-inner,.ai-result-block,.ai-doc-output,.hero-copy,.hero-meta,.panel,.modal-card,.idea-card,.stat-card,.stack-item) {background:var(--bg-panel); color:var(--text)}
html[data-theme="light"][data-site-ui="ideas"] :is(.idea-card.is-selected,.idea-table tbody tr.is-selected) {background:#deeee5}
html[data-theme="light"][data-site-ui="ideas"] :is(.message-error,.tag-chip.minus) {color:#8c2928}
html[data-theme="light"][data-site-ui="ideas"] .message-warning {color:#764614}
html[data-theme="light"][data-site-ui="ideas"] .tag-chip.plus {color:#146446}
html[data-theme="light"][data-site-ui="skate"] body {background:#e7e9e6}
html[data-theme="light"][data-site-ui="skate"] :is(.meter,.panel,.controls button,.privacy-link) {background:#f4f4ec;color:#252834}
html[data-theme="light"][data-site-ui="skate"] :is(.panel,.hud) {--ink:#252834;--muted:#4e5865;--teal:#18695f;--coral:#9f4830}
html[data-theme="light"][data-site-ui="cafe"] {
    --bg:#faf5e9;--bg2:#efe7d7;--surface:#fffaf0;--border:#c9b79c;--gold:#775019;--gold-lt:#805614;--cream:#322619;--text:#3d2e21;--muted:#66513d;
}
html[data-theme="light"] .sample-cafe :is(nav,footer,#reserve) {background:var(--bg2)}
html[data-theme="light"] .sample-cafe :is(.nav-reserve,.btn-primary) {color:#fff}
html[data-theme="light"] .sample-cafe .hero {--cream:#fff4da;--gold:#e3bd73;--gold-lt:#ffdf96;--text:#ffedcd;--muted:#e0d0bd}
html[data-theme="light"] .sample-cafe .hero .btn-primary {color:#241b12}
html[data-theme="light"][data-site-ui="creator"] {
    --bg:#fcf8fb;--bg2:#f0ebf2;--surface:#fff;--surface2:#f0ebf2;--border:#c9c0cb;--pink:#92385c;--pink-lt:#943956;--cyan:#206b69;--text:#292333;--muted:#62576a;
}
html[data-theme="light"] .sample-creator nav {background:#fcf8fbf5}
html[data-theme="light"] .sample-creator .hero {color:#f6eff6;--text:#fcf4fb;--muted:#e0d5dd;--pink:#efa8bc;--cyan:#9dd7d7}
html[data-theme="light"] .sample-creator :is(.price-btn--primary,.price-card--popular::before) {color:#fff}
html[data-theme="light"] :is(.sample-cafe,.sample-creator) .sample-banner {background:#e7eef6;color:#31597c}
html[data-theme="light"] :is(.sample-cafe,.sample-creator) .sample-banner a {color:inherit}
@media (forced-colors:active) {html[data-site-ui] label.site-appearance select {color-scheme:light dark}}
html[data-theme="light"][data-site-ui="policy-paper"] .eyebrow {color:#944962}
html[data-theme="light"] .sample-salon #cta {background:#136b52}
html[data-site-ui="ideas"] body > .site-appearance-slot {width:min(100% - 32px,1380px);margin-inline:auto}
