/* Appbar theme toggle (both themes) */
.appbar-actions{display:flex;align-items:center;gap:2px}
.theme-toggle{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:#4e5968;cursor:pointer}
.theme-toggle svg{width:22px;height:22px;display:block}
.theme-toggle .icon-sun{display:none}
html[data-theme="dark"] .theme-toggle .icon-sun{display:block}
html[data-theme="dark"] .theme-toggle .icon-moon{display:none}
.theme-toggle:focus-visible{outline:2px solid #3182f6;outline-offset:2px}
/* GENERATED dark-theme overrides (colors mapped from the light styles). */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"]{color:#f2f4f6;background:#1b1c21}
html[data-theme="dark"] .shell{background:#1b1c21}
html[data-theme="dark"] .header{background:#1b1c21}
html[data-theme="dark"] .reset:disabled{color:#5f6773}
html[data-theme="dark"] .reset{color:#a3abb6}
html[data-theme="dark"] .step{color:#8b95a1}
html[data-theme="dark"] .step strong{color:#f2f4f6}
html[data-theme="dark"] .progress{background:#262930}
html[data-theme="dark"] .progress::-webkit-progress-bar{background:#262930}
html[data-theme="dark"] .number{color:#8b95a1}
html[data-theme="dark"] .scale{color:#8b95a1}
html[data-theme="dark"] .tile{background:#22242a;border:1px solid #2f323a;color:#a3abb6}
html[data-theme="dark"] .option:hover .tile{background:#18283f}
html[data-theme="dark"] .footer{background:#1b1c21}
html[data-theme="dark"] .previous{color:#c5cad1}
html[data-theme="dark"] .previous:disabled{color:#5f6773}
html[data-theme="dark"] .complete p{color:#c5cad1}
html[data-theme="dark"] .lead{color:#c5cad1}
html[data-theme="dark"] .fields label{color:#c5cad1}
html[data-theme="dark"] .fields select{border:1px solid #2f323a;color:#f2f4f6;background-color:#22242a}
html[data-theme="dark"] .primary:disabled{background:#1c3557}
html[data-theme="dark"] .note{color:#a3abb6}
html[data-theme="dark"] .route-option{border:1px solid #2f323a}
html[data-theme="dark"] .route-option:has(input:checked){background:#18283f}
html[data-theme="dark"] .route-option p{color:#a3abb6}
html[data-theme="dark"] .score-row{border-bottom:1px solid #2f323a}
html[data-theme="dark"] .score-value.negative{color:#a3abb6}
html[data-theme="dark"] .role-description{color:#c5cad1}
html[data-theme="dark"] .storage-note{color:#a3abb6}
html[data-theme="dark"] .secondary{background:#262930;color:#c5cad1}
html[data-theme="dark"] .choice-note{color:#a3abb6}
html[data-theme="dark"] .toast{background:rgba(58,61,70,.96)}
html[data-theme="dark"] .profile-cta .primary.is-incomplete{background:#1c3557}
html[data-theme="dark"] .profile-row{background:#1b1c21;color:#c5cad1}
html[data-theme="dark"] .profile-value{color:#8b95a1}
html[data-theme="dark"] .profile-row.is-set .profile-value{color:#c5cad1}
html[data-theme="dark"] .profile-chevron{color:#5f6773}
html[data-theme="dark"] .profile-notice{background:#262930}
html[data-theme="dark"] .profile-notice h2{color:#c5cad1}
html[data-theme="dark"] .profile-notice ul{color:#a3abb6}
html[data-theme="dark"] .profile-cta{background:#1b1c21}
html[data-theme="dark"] .profile-cta:before{background:linear-gradient(to bottom,transparent,#1b1c21)}
html[data-theme="dark"] .profile-sheet{color:#f2f4f6;background:#1b1c21}
html[data-theme="dark"] .sheet-close{color:#a3abb6}
html[data-theme="dark"] .sheet-option{color:#c5cad1}
html[data-theme="dark"] .sheet-grip span{background:#2f323a}
html[data-theme="dark"] .sheet-option{color:#a3abb6}
html[data-theme="dark"] .sheet-option:has(input:checked){color:#a3abb6}
html[data-theme="dark"] .sheet-grip span{background:#2f323a}
html[data-theme="dark"] .sheet-list-region.has-more:after{background:linear-gradient(to bottom,rgba(27,28,33,0),rgba(27,28,33,.15) 25%,rgba(27,28,33,.65) 65%,#1b1c21)}
html[data-theme="dark"] .reset-sheet p{color:#a3abb6}
html[data-theme="dark"] .reset-actions .secondary{background:#262930;color:#c5cad1}
html[data-theme="dark"] .intro-copy{color:#c5cad1}
html[data-theme="dark"] .intro-copy strong{color:#e5e8eb}
html[data-theme="dark"] .result-divider{background:#262930}
html[data-theme="dark"] .score-bar{background:#262930}
html[data-theme="dark"] .score-bar:before{background:#464a54}
html[data-theme="dark"] .role-sheet .role-description{color:#c5cad1}
html[data-theme="dark"] .appbar-back{color:#f2f4f6}
html[data-theme="dark"] .full-role-description{color:#c5cad1}
html[data-theme="dark"] .role-tabs{background:#1b1c21;border-bottom:1px solid #2f323a}
html[data-theme="dark"] .role-tab{color:#8b95a1}
html[data-theme="dark"] .tab-copy{color:#c5cad1}
html[data-theme="dark"] .tab-reference{color:#8b95a1}
html[data-theme="dark"] .role-cautions{color:#c5cad1}
html[data-theme="dark"] .b-comparisons{border-top:12px solid #262930}
html[data-theme="dark"] .b-comparison-copy{color:#a3abb6}
html[data-theme="dark"] .b-comparison-card{background:#22242a}
html[data-theme="dark"] .b-pair-title{color:#e5e8eb}
html[data-theme="dark"] .b-pair-row{color:#c5cad1}
html[data-theme="dark"] .b-pair-row .score-bar{background:#2f323a}
html[data-theme="dark"] .b-pair-row .score-bar:before{background:#5f6773}
html[data-theme="dark"] .b-split-label{color:#c5cad1}
html[data-theme="dark"] .b-split-track{background:#2f323a}
html[data-theme="dark"] .b-split-right{background:#8b95a1}
html[data-theme="dark"] .result-panel .b-comparison-card{border-bottom:1px solid #2f323a}
html[data-theme="dark"] .b-split-track{background:#464a54}
html[data-theme="dark"] .b-split-right{background:#464a54}
html[data-theme="dark"] .b-pair-summary{color:#8b95a1}
html[data-theme="dark"] .match-item{border-bottom:1px solid #2f323a}
html[data-theme="dark"] .match-name{color:#f2f4f6}
html[data-theme="dark"] .match-basis{color:#8b95a1}
html[data-theme="dark"] .match-chevron{color:#8b95a1}
html[data-theme="dark"] .match-content{border-top:1px solid #2f323a}
html[data-theme="dark"] .match-content{background:#22242a}
html[data-theme="dark"] .match-list:before{background:#262930}
html[data-theme="dark"] .match-content .compat-section+.compat-section{border-top:1px solid #2f323a}
html[data-theme="dark"] .role-advice-heading{color:#f2f4f6}
html[data-theme="dark"] #role-panel-1>.compat-section+.compat-section,html[data-theme="dark"] #role-panel-2>.compat-section+.compat-section{border-top:1px solid #2f323a}
html[data-theme="dark"] .compatibility-example-title{color:#f2f4f6}
html[data-theme="dark"] .choices .choice-hint{color:#a3abb6}
html[data-theme="dark"] .options-list .tile{background:#262930;border:1px solid #262930;color:#c5cad1}
html[data-theme="dark"] .options-list .opt-check{border:1.5px solid #464a54;background:#1b1c21}
html[data-theme="dark"] .options-list .option input:checked+.tile .opt-check{background:#1b1c21}
html[data-theme="dark"] .result-share-button{background:#262930;color:#c5cad1}
html[data-theme="dark"] .share-local-note{color:#8b95a1}
html[data-theme="dark"] .share-link-dialog{color:#f2f4f6}
html[data-theme="dark"] .share-link-dialog p{color:#a3abb6}
html[data-theme="dark"] .share-link-dialog textarea{border:1px solid #2f323a}
html[data-theme="dark"] .share-export{background:#1b1c21;color:#f2f4f6}
html[data-theme="dark"] .share-export .share-role-summary{color:#c5cad1}
html[data-theme="dark"] .share-sheet .result-share-button{color:#a3abb6}
html[data-theme="dark"] .share-sheet .share-sheet-desc{color:#8b95a1}
html[data-theme="dark"] .footer::before{background:linear-gradient(to bottom,rgba(27,28,33,0),rgba(27,28,33,.15) 25%,rgba(27,28,33,.65) 65%,#1b1c21)}
html[data-theme="dark"] .nickname-sheet .nickname-input{border:1px solid #2f323a;color:#f2f4f6;background:#1b1c21}
html[data-theme="dark"] .nickname-sheet .nickname-hint{color:#8b95a1}
/* Manual dark-theme fixes */
html[data-theme="dark"] .theme-toggle{color:#c5cad1}
html[data-theme="dark"] img.brand,html[data-theme="dark"] .brand{filter:brightness(0) invert(.95)}
html[data-theme="dark"] .options-list .option input:checked+.tile{background:#3182f6;border-color:#3182f6;color:#fff}
html[data-theme="dark"] .options-list .option input:checked+.tile .opt-check{background:#fff;border-color:#fff}
html[data-theme="dark"] dialog,html[data-theme="dark"] .profile-sheet{background:#23252b;color:#f2f4f6;border:1px solid #2f323a}
html[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.6)}
html[data-theme="dark"] .share-link-dialog textarea,html[data-theme="dark"] .nickname-sheet .nickname-input{background:#1b1c21;color:#f2f4f6;border-color:#3a3d45}
html[data-theme="dark"] body[data-screen="intro"] .profile-cta,html[data-theme="dark"] body[data-screen="profile"] .profile-cta{background:transparent}
html[data-theme="dark"] .profile-cta:before{background:linear-gradient(to bottom,rgba(27,28,33,0),#1b1c21)}
html[data-theme="dark"] body[data-screen="intro"] .profile-cta:before,html[data-theme="dark"] body[data-screen="profile"] .profile-cta:before{display:none}
html[data-theme="dark"] .share-sheet .result-share-button,html[data-theme="dark"] .share-sheet .result-share-button.share-kakao{background:transparent;color:#a3abb6}
html[data-theme="dark"]:root{--outer-bg:#1b1c21}
@media (min-width:500px){html[data-theme="dark"]:root{--outer-bg:#16171b;background:var(--outer-bg)}}
/* Dark: the comparison list resets (no thick top bar) and full-bleed rows, matching the intro notice band. */
html[data-theme="dark"] .result-panel .b-comparisons{margin:0;padding:0;border:0}
html[data-theme="dark"] .result-panel .b-comparison-card{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px;border-radius:0}
html[data-theme="dark"] .share-export .score-row{border:0}
/* Appbar optical alignment: icon glyphs line up with the 24px content edges. */
html .appbar-back{margin-left:-17px}
/* Appbar: reset is now a home icon button, same size as the theme toggle. */
html .reset{display:grid;place-items:center;width:40px;height:40px;min-height:0;padding:0;margin-right:-11px;border-radius:10px;color:#4e5968;white-space:nowrap}
html .reset svg{width:22px;height:22px;display:block}
html .reset:focus-visible{outline:2px solid #3182f6;outline-offset:2px}
html[data-theme="dark"] .reset{color:#c5cad1}
html .reset:disabled{color:#b0b8c1}
html[data-theme="dark"] .reset:disabled{color:#5f6773}
