#mirror-preview .belief-category-radars{grid-template-columns:minmax(0,1fr);gap:16px}#mirror-preview .category-bars-card{padding:18px 16px;min-width:0}#mirror-preview .category-bars-card h3{min-height:0;text-align:left;padding:0 26px 0 0!important;margin:0;font-size:18px;line-height:1.4;color:#fff}#mirror-preview .category-bars-average{font:600 24px/1.4 system-ui;color:#fff;margin:10px 0 14px}#mirror-preview .category-bars-average>span{font-size:13px;font-weight:400;color:#ffffffb3}.category-score-list{padding:0;margin:0;list-style:none}.category-score-list li{padding:0;margin:0;border-top:1px solid #ffffff18}.category-score-list a,.category-score-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 38px;gap:10px;align-items:center;padding:11px 0;text-decoration:none;color:#fff!important;font:13px/1.5 system-ui}.category-score-name{overflow-wrap:anywhere;min-width:0}.category-score-pips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.category-score-pips i{height:7px;border:1px solid #ffffff66;border-radius:1px}.category-score-pips i.filled{background:var(--category-color);border-color:var(--category-color)}.category-score-value{white-space:nowrap;font-size:11px;color:#fff}.category-score-list a:hover{background:#ffffff0c}.category-score-list a:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(min-width:900px){#mirror-preview .belief-category-radars{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1400px){#mirror-preview .belief-category-radars{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:360px){.category-score-list a,.category-score-row{grid-template-columns:minmax(0,1fr) 48px 34px;gap:7px}}
.conscious-bars-card .category-score-pips{grid-template-columns:repeat(5,minmax(0,1fr))}.conscious-bars-card .category-score-pips i.filled{background:var(--row-color);border-color:var(--row-color)}

#mirror-preview .radar-insight>.category-bars-card{width:100%;max-width:420px;box-sizing:border-box;margin:16px auto 4px;position:relative}
#mirror-preview .radar-insight>.category-bars-card h3{font-size:18px}
@media(max-width:600px){#mirror-preview .radar-insight>.category-bars-card{max-width:100%;padding:18px 14px}}

html.category-popup-open{overflow:hidden}
#mirror-preview .category-detail-popup{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:14px;background:transparent;color:#fff;overflow:auto;overscroll-behavior:contain}
.category-detail-popup::backdrop{background:#000b;backdrop-filter:blur(5px)}
#mirror-preview .category-popup-toolbar{display:flex;justify-content:flex-end;position:sticky;top:0;z-index:2;background:#100e0bf5;padding:6px 0 8px}
#mirror-preview .category-popup-close{min-height:40px;padding:8px 14px;border-radius:8px;border:1px solid #ad8c50;background:#211b12;color:#f3dfb7;cursor:pointer;font:14px system-ui}
#mirror-preview .category-popup-close:focus-visible{outline:2px solid #f6d995;outline-offset:-4px}
#mirror-preview .category-detail-popup>.category-bars-card{box-sizing:border-box;width:100%;margin:0;padding:22px 18px}
@media(max-width:400px){#mirror-preview .category-detail-popup>.category-bars-card{padding:18px 14px}}

.category-all{margin-top:24px;min-width:0}
#mirror-preview .category-all-toggle{display:table;margin:0 auto;padding:12px 26px;border:1px solid #ae8c52;border-radius:9px;color:#f2dcad;background:#241d13;font:14px/1.5 system-ui;cursor:pointer;list-style:none;text-align:center;min-width:120px}
.category-all-toggle::-webkit-details-marker{display:none}
.category-all-toggle::marker{content:''}
.category-all-toggle .category-all-open,.category-all[open]>.category-all-toggle .category-all-closed{display:none}
.category-all[open]>.category-all-toggle .category-all-open{display:inline}
#mirror-preview .category-all-toggle:focus-visible{outline:2px solid #f6d995;outline-offset:4px}
#mirror-preview #room:has(.radar-overview){max-width:none;width:100%;box-sizing:border-box}
#mirror-preview .habits-profile .radar-overview,#mirror-preview .habit-banner-content>.radar-card{width:100%;max-width:none}
#mirror-preview .habits-profile .radar-card .habit-radar{width:100%;max-width:none;height:auto;max-height:85svh;margin-inline:auto}
#mirror-preview .habits-profile .radar-card{padding:20px 12px}
@media(max-width:600px){#mirror-preview #room:has(.radar-overview){padding-left:12px;padding-right:12px}#mirror-preview .habits-profile .radar-card{padding:16px 4px}#mirror-preview .habits-profile .radar-card .habit-radar{max-height:none}}
@media print{.category-all>section{display:block!important}.category-all-toggle{display:none!important}}

#mirror-preview .habit-chart-overview{display:block;margin-top:0}
#mirror-preview .habit-chart-section>.radar-card{width:100%;max-width:none;margin:0}
#mirror-preview .habit-chart-section>.category-all{margin-top:24px}

#mirror-preview .category-popup-toolbar{gap:8px;align-items:center;justify-content:initial}
#mirror-preview .category-popup-prev,#mirror-preview .category-popup-next{min-width:42px;min-height:40px;padding:7px 12px;border:1px solid #ad8c50;border-radius:8px;background:#211b12;color:#f3dfb7;font:20px/1 system-ui;cursor:pointer}
#mirror-preview .category-popup-position{color:#eee0c2;font:13px system-ui;white-space:nowrap}
#mirror-preview .category-popup-close{margin-left:auto}
#mirror-preview .category-detail-popup{touch-action:pan-y pinch-zoom}

/* Stack unequal category cards without empty grid-row space. */
#mirror-preview .belief-category-radars{display:block;column-count:1;column-gap:16px}
#mirror-preview .belief-category-radars>.category-bars-card{display:inline-block;vertical-align:top;width:100%;box-sizing:border-box;break-inside:avoid;margin:0 0 16px}
@media(min-width:900px){#mirror-preview .belief-category-radars{column-count:2}}
@media(min-width:1400px){#mirror-preview .belief-category-radars{column-count:3}}
@media print{#mirror-preview .belief-category-radars{column-count:1}}

/* Keep result pages aligned with the room's centered card collection. */
#mirror-preview #room:has(.reflection-world),
#mirror-preview #room:has(.radar-overview){width:100%;max-width:1160px;margin-left:auto;margin-right:auto;box-sizing:border-box}
#mirror-preview .habits-profile .radar-card .habit-radar{display:block;width:100%;max-width:760px;height:auto;max-height:none;margin-left:auto;margin-right:auto}
@media(max-width:600px){#mirror-preview #room:has(.reflection-world){padding-left:12px;padding-right:12px}#mirror-preview .habits-profile .radar-card .habit-radar{max-width:100%}}

/* Anchor carousel controls independently of each category's content height. */
#mirror-preview .category-detail-popup{--popup-top:clamp(16px,8dvh,80px);position:fixed;inset:var(--popup-top) 0 auto;margin:0 auto;max-height:calc(100dvh - var(--popup-top) - 16px)}
@media(max-width:600px){#mirror-preview .category-detail-popup{--popup-top:max(16px,env(safe-area-inset-top));max-height:calc(100dvh - var(--popup-top) - max(16px,env(safe-area-inset-bottom)))}}

.power-resource-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:48px 24px 28px;border:1px solid #a88b55;border-radius:18px;background:linear-gradient(140deg,#292116,#100e0b);color:#f1e5ce}
.power-resource-dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}
.power-resource-dialog h2{font:400 26px/1.3 Georgia,serif;color:#ebcf92;text-align:center;margin:0 0 24px}
.power-resource-dialog .resource-close{position:absolute;right:12px;top:8px;background:transparent;border:0;color:#e5d3ae;font-size:28px;cursor:pointer}
.power-resource-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.power-resource-options a{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 8px;border:1px solid #9d8153;border-radius:12px;color:#f0dfbc;text-decoration:none;text-align:center;font:600 16px/1.3 system-ui;background:#34291b}
.power-resource-options a span{font-size:34px}.power-resource-options a:hover{background:#514026}.power-resource-options a:focus-visible{outline:2px solid #f4d393;outline-offset:3px}

.power-resource-dialog .resource-intro{color:#c7baa5;font:15px/1.6 system-ui;text-align:center;margin:-8px 0 24px}

.power-resource-dialog .resource-or{display:inline-block;margin:0 .65em;color:#ebcf92;font-size:12px;letter-spacing:.12em}

.belief-pair-poles{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:6px;align-items:center;font-size:12px;line-height:1.4}
.belief-pair-poles>span{min-width:0;color:#c7bfae}
.belief-pair-poles>span:last-child{text-align:right}
.belief-pair-poles .belief-chosen{color:#f5d694;font-weight:600}
.belief-position-label{display:block;margin-top:5px;font:10px/1.4 system-ui;color:#d6c6a8}
.category-score-list a:has(.belief-pair-poles){grid-template-columns:minmax(0,1fr) 48px 32px;gap:8px}
.power-resource-dialog .belief-resource-opposite{font:20px/1.4 Georgia;color:#edd397;text-align:center;margin:0 0 12px}
.power-resource-dialog .belief-resource-position{font:13px/1.5 system-ui;text-align:center;color:#e7d6b4}

/* Place the saved position between the two belief statements. */
.category-score-list a:has(.belief-pair-poles){grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:center}
.category-score-list a:has(.belief-pair-poles) .category-score-name,.category-score-list a .belief-pair-poles{display:contents}
.category-score-list a .belief-pair-poles>span:first-child{grid-column:1;grid-row:1/3;text-align:left}
.category-score-list a .belief-pair-poles>span:nth-child(2){display:none}
.category-score-list a .belief-pair-poles>span:last-child{grid-column:3;grid-row:1/3;text-align:right}
.category-score-list a:has(.belief-pair-poles) .category-score-pips{grid-column:2;grid-row:1;align-self:end}
.category-score-list a:has(.belief-pair-poles) .category-score-value{grid-column:2;grid-row:2;text-align:center;align-self:start}
.category-score-list a:has(.belief-pair-poles) .belief-position-label{grid-column:1/-1;grid-row:3;text-align:center;margin:3px 0 0}

/* Belief rows: statement, saved-position bar, opposite statement only. */
.category-score-list a:has(.belief-pair-poles) .belief-position-label,
.category-score-list a:has(.belief-pair-poles) .category-score-value{display:none!important}
.category-score-list a .belief-pair-poles>span:first-child,
.category-score-list a .belief-pair-poles>span:last-child{grid-row:1}
.category-score-list a:has(.belief-pair-poles) .category-score-pips{grid-row:1;align-self:center}

/* Equal belief statements, with the community's reframe marker. */
.power-resource-dialog.belief-resource-dialog h2,
.power-resource-dialog.belief-resource-dialog .belief-resource-opposite{font:400 clamp(22px,5vw,30px)/1.35 Georgia,serif!important;color:#edd397;text-align:center;letter-spacing:0}
.power-resource-dialog.belief-resource-dialog h2{margin:16px 0 22px}
.power-resource-dialog.belief-resource-dialog .belief-resource-opposite{margin:0 0 22px}
