/* Only TEST and its explicitly linked companion pages load this design layer. */
body.biot-test,body.biot-companion{--bg:#0f1b15;--panel:#16271e;--green:#a4e9c3;--cyan:#a6d5d5;--orange:#d8b56b;--text:#e5f1e9;--text-dim:#a9bcaf;--border:#2d4437;--accent:#a4e9c3;background:#0f1b15;color:var(--text);font-size:16px;line-height:1.7;font-family:'Noto Sans JP',system-ui,sans-serif}
.biot-test header{min-height:64px;padding:10px 24px;background:#0f1b15ed}
.biot-test .logo-text h1{text-shadow:none;letter-spacing:.12em}
.biot-test .logo-text p{font-size:11px;letter-spacing:.06em}
.biot-test .wrap{max-width:1200px;padding:20px 24px 100px}
.biot-test .biot-nav{top:64px;margin-bottom:16px;padding:3px;box-shadow:none}
.biot-test .biot-primary button{min-height:46px}
.biot-test .dash-grid{gap:20px;align-items:start}
.biot-test .biot-breadcrumb{display:none}
.biot-test .biot-heading{margin:0}
.biot-test .biot-heading h2{font-size:28px}
.biot-test .biot-subnav{margin-top:12px}
.biot-test .biot-profile-summary{padding:0 2px;border:0;background:none;margin-top:-12px;min-height:44px}
.biot-test .biot-profile-summary span{font-size:13px}
.biot-test .biot-profile-summary button{border:0;font-size:13px}
.biot-test .panel{padding:24px;background:linear-gradient(130deg,#182f23,#14271d);border-color:var(--border);box-shadow:none;border-radius:16px;animation:none}
.biot-test .panel-title{font-size:19px;line-height:1.5;letter-spacing:0;color:var(--text);padding-bottom:14px;margin-bottom:18px}
.biot-test .panel-title::before{content:none}
.biot-test .reading,.biot-test .act-row{font-size:16px;line-height:1.8}
.biot-test .note,.biot-test .disc,.biot-test .biot-effects-note{font-size:13px;line-height:1.8;color:var(--text-dim)}
.biot-test .biot-copy-small{font-size:13px!important;line-height:1.7}
.biot-test .biot-copy-body{font-size:15px!important;line-height:1.75}
.biot-test .mini-label{font-size:13px;color:var(--text-dim)}
.biot-test .mini-val{font-size:16px;line-height:1.7}
.biot-test :is(button,input,select,textarea){font-family:inherit}
.biot-test :is(input,select,textarea){font-size:16px!important;border-radius:10px!important;min-height:46px;color:var(--text);background:#102018;border-color:var(--border)}
.biot-test textarea{min-height:110px;line-height:1.7}
.biot-test label{font:inherit;font-size:13px;letter-spacing:.03em;color:var(--text-dim)}
.biot-test .panel button:not(.biot-star-node):not(.biot-element-row):not(.biot-curve-point){min-height:44px;font-size:14px!important;border-radius:10px!important;text-shadow:none!important;font-family:inherit!important}
.biot-test .panel button[style*="border:"]{border-color:#5c836b!important;color:var(--green)!important;background:#1a3023!important}
.biot-test :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #a4e9c3;outline-offset:3px}
.biot-test .profile-hero{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr)!important;gap:22px!important;border-color:#42634d!important;box-shadow:none!important;background:radial-gradient(ellipse at 0 0,#31553d80,transparent 70%),#152a20}
.biot-test .profile-hero .biot-star-intro{grid-column:1/-1;margin:0}
.biot-test .biot-star-intro svg{width:140px;max-height:60px}
.biot-test .hero-name{font-size:30px!important;text-shadow:none!important;color:var(--text)!important}
.biot-test .hero-date-dual{font-size:14px!important;line-height:1.8}
.biot-test .biot-hero-badges{display:flex!important;flex-wrap:wrap;gap:8px!important;justify-content:flex-start!important;align-content:center!important;max-width:400px}
.biot-test .hero-badge{font-size:13px!important;border:0!important;border-radius:8px;background:#ffffff06;padding:7px 10px}
.biot-test .share-now-btn{order:10;flex-basis:100%;max-width:160px;margin-top:8px;min-height:44px;padding:8px 14px;font-size:14px;background:transparent;border-color:#486952;color:var(--text-dim)}
.biot-test [data-nav-panel="step"]{border-left:3px solid var(--green);background:#1a3023}
.biot-test [data-nav-panel="plan"],.biot-test [data-nav-panel="decade"]{grid-column:span 12}
.biot-test :is([data-nav-panel="nameViewPanel"],[data-nav-panel="seimeiPanel"],[data-nav-panel="comparePanel"],[data-nav-panel="dreamPanel"],[data-nav-panel="qscanPanel"]){width:100%;max-width:820px;justify-self:center}
.biot-test .biot-disclosure>summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;min-height:44px}
.biot-test .biot-disclosure>summary::-webkit-details-marker{display:none}
.biot-test .biot-disclosure>summary::after{content:'+';font-size:22px;color:var(--green);margin-left:auto}
.biot-test .biot-disclosure[open]>summary::after{content:'−'}
.biot-test .biot-disclosure>summary .panel-title{margin:0;padding:0;border:0;flex:1}
.biot-test .biot-disclosure-hint{font-size:12px;color:var(--text-dim);white-space:nowrap}
.biot-test .biot-disclosure[open]>.biot-disclosure-body{padding-top:20px;margin-top:16px;border-top:1px solid var(--border)}
.biot-test .biot-cultural-note{padding:10px 14px;border-radius:8px;background:#ffffff05;font-size:13px;color:var(--text-dim);margin-bottom:12px}
.biot-test .biot-dream-reference{margin:20px 0;color:var(--text-dim);font-size:14px}
.biot-test .biot-dream-reference>summary{cursor:pointer;padding:12px 0}
.biot-test .biot-type-face{display:grid!important;grid-template-columns:1fr 1fr;gap:20px!important;align-items:center}
.biot-test .biot-type-face>div:last-child{grid-column:2;grid-row:1/3;display:flex!important;flex-direction:column;margin-left:0!important;text-align:center}
.biot-test .biot-type-portrait{width:160px!important;height:160px!important;border-radius:18px!important;box-shadow:none!important}
.biot-test .biot-type-portrait img{border-radius:16px!important}
.biot-test .biot-type-face span[style*="font-size:34px"]{font-size:30px!important;text-shadow:none!important;color:var(--green)!important}
.biot-test .biot-flip-shell{max-width:860px;margin:0 auto 24px}
.biot-test .biot-flip-front,.biot-test .biot-flip-back{padding:24px}
.biot-test .biot-type-summary{font-size:16px!important}
.biot-test .biot-guardian-names{flex-basis:100%;font-size:13px;color:var(--text-dim)}.biot-test .biot-guardian-names summary{cursor:pointer;padding:8px 0}.biot-test .biot-guardian-names .hero-badge{display:inline-block;margin:4px}
.biot-test .biot-wave-collapsed>.biot-wave-row{display:none!important}
.biot-test .biot-wave-toggle{display:block;width:100%;margin:16px 0;padding:10px;border:1px solid var(--border);background:#1a3023;color:var(--green)}
.biot-test .biot-calendar-legend{font-size:14px;color:var(--text-dim);margin-top:16px}.biot-test .biot-calendar-legend>summary{cursor:pointer;padding:12px 0}
.biot-test .biot-star-reference{margin:16px 0}.biot-test .biot-star-reference>summary{cursor:pointer;padding:12px 0;font-size:14px;color:var(--text-dim)}
.biot-test .biot-star-reading,.biot-test .biot-curve-detail{font-size:15px;line-height:1.8}.biot-test .biot-star-reading h3{font-size:18px}
.biot-test .biot-map-star text{font-size:14px}.biot-test .biot-curve-svg text{font-size:12px}.biot-test .biot-curve-svg{min-width:720px}
.biot-test .biot-subnav{scrollbar-width:none}.biot-test .biot-subnav::-webkit-scrollbar{display:none}
.biot-test .biot-day{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid var(--border)!important;border-radius:10px!important;background:#ffffff03!important}
.biot-test .biot-day>div:first-child{font-family:inherit!important;font-size:16px!important;line-height:1.5}
.biot-test .biot-day>div:last-child{font-size:12px!important}
.biot-test .biot-day .cal-cell-lunar{display:none}
.biot-test .biot-day[aria-pressed="true"]{background:#294634!important;border-color:#a4e9c3!important;box-shadow:inset 0 0 0 1px #a4e9c3!important}
.biot-test #calDetail{font-size:15px!important;padding:16px!important;line-height:1.8;scroll-margin-bottom:160px}
.biot-test .biot-calendar-help{font-size:13px;color:var(--text-dim);margin-top:12px}
.biot-test .cmp-row{grid-template-columns:2fr 1.2fr 1fr 1fr!important;gap:12px!important;padding:16px;border:1px solid var(--border);border-radius:12px;margin-bottom:12px!important}
.biot-test .biot-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.biot-test .biot-field input{width:100%;min-width:0}
.biot-test .biot-name-help{padding:24px 0;max-width:60ch;font-size:15px;line-height:1.8}
.biot-test .biot-action{margin-top:20px;padding:10px 18px;background:#a4e9c3;border:0;color:#102318;font-weight:700}
.biot-test .biot-album-controls{display:flex;align-items:center;gap:10px;margin:18px 0;flex-wrap:wrap}
.biot-test .biot-album-controls select{flex:1;min-width:150px}
.biot-test .biot-album-controls button{padding:8px 12px;border:1px solid var(--border);color:var(--green);background:#1a3023}
.biot-test .biot-album-controls button:disabled{opacity:.35;cursor:default}
.biot-test .biot-album-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:none!important;overflow:visible!important}
.biot-test .biot-album-item{margin:0!important;padding:18px 10px!important;text-align:center;font-size:14px!important;border-radius:10px!important;color:var(--text-dim)!important;background:#ffffff04}
.biot-test .biot-album-item[hidden],.biot-test .biot-album-empty[hidden]{display:none!important}
.biot-test .biot-album-empty{padding:24px;border:1px dashed var(--border);border-radius:12px;color:var(--text-dim);font-size:15px}
.biot-test .biot-share-preview{display:grid;grid-template-columns:minmax(180px,.75fr) 1.25fr;align-items:center;gap:32px;max-width:850px;margin:24px auto 32px}
.biot-test .biot-preview-art{aspect-ratio:4/5;max-width:260px;width:100%;justify-self:center;background:radial-gradient(ellipse at 40% 30%,#375e46,#0b1610 80%);border:1px solid #79947c;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;box-shadow:0 16px 40px #0004;padding:24px;text-align:center}
.biot-test .biot-preview-art small{font:11px Orbitron,monospace;letter-spacing:.12em}
.biot-test .biot-preview-art>span:last-child{font-size:10px;letter-spacing:.1em;color:#afc5b6}
.biot-test .biot-preview-star{font-size:70px;line-height:1;color:#d8b56b}
.biot-test .biot-eyebrow{font-size:12px;color:var(--green);letter-spacing:.12em;margin-bottom:12px}
.biot-test .biot-share-preview h3{font-size:24px;margin-bottom:16px}
.biot-test .biot-share-preview p{margin-top:12px;color:var(--text-dim);font-size:15px}
.biot-test .biot-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.biot-test .biot-share-actions button{flex:1;min-width:200px}
.biot-test .biot-share-warning{font-size:13px;color:var(--text-dim);margin-bottom:16px}
.biot-test.biot-editing-profile .input-intro{display:none}
.biot-test.biot-editing-profile .input-shell{display:block;max-width:680px;margin:auto}
.biot-test .biot-edit-cancel{width:100%;padding:12px;margin-top:12px;background:transparent;color:var(--green);border:1px solid var(--border)}
.biot-test .biot-quantum-steps{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 28px}
.biot-test .biot-quantum-steps li{counter-increment:step;padding:18px;border:1px solid var(--border);border-radius:12px}
.biot-test .biot-quantum-steps li::before{content:'0' counter(step);display:block;color:var(--green);font-size:13px;margin-bottom:12px}
.biot-test .biot-quantum-steps b{display:block;font-size:15px}
.biot-test .biot-quantum-steps span{font-size:13px;color:var(--text-dim)}
.biot-test .biot-experience-card{min-height:190px}
.biot-test .biot-card-description{font-size:14px}
.biot-test .input-shell{gap:40px;min-height:0;padding:26px 0}
.biot-test .input-intro h2{font-size:clamp(26px,3.5vw,42px);line-height:1.5;word-break:normal;overflow-wrap:normal}
.biot-test .input-intro p{font-size:16px}
.biot-test .intro-pills span{font-size:13px}
.biot-test .oracle-fab{width:48px;height:48px;box-shadow:0 4px 15px #0004}
.biot-test .oracle-fab small{display:none}
@media(max-width:820px){
 .biot-test .wrap{padding:14px 16px 164px}.biot-test header{padding:10px 12px}.biot-test .logo-text p{display:none}
 .biot-test .dash-grid{gap:16px}.biot-test .panel{padding:18px}.biot-test .panel-title{font-size:18px}
 .biot-test .biot-heading h2{font-size:25px}.biot-test .biot-subnav{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0 0 6px;scrollbar-width:none}.biot-test .biot-subnav button{flex:0 0 auto;padding:9px 14px;font-size:14px}
 .biot-test .biot-profile-summary{margin-top:-10px}.biot-test .biot-dock button{font-size:12px}
 .biot-test .profile-hero{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}.biot-test .hero-name{font-size:26px!important}.biot-test .biot-hero-badges{max-width:none}.biot-test .hero-badge{font-size:12px!important;padding:5px 8px}
 .biot-test .share-now-btn{flex-basis:auto;margin-top:0}.biot-test .biot-star-intro svg{width:110px}
 .biot-test .biot-disclosure-hint{display:none}.biot-test .biot-disclosure>summary .panel-title{font-size:17px}
 .biot-test .biot-type-face{grid-template-columns:1fr!important;gap:12px!important;text-align:center}.biot-test .biot-type-face>div:last-child{grid-column:1;grid-row:1}.biot-test .biot-type-portrait{width:120px!important;height:120px!important}.biot-test .biot-flip-front,.biot-test .biot-flip-back{padding:18px}
 .biot-test .biot-day{min-height:64px}.biot-test .biot-day>div:first-child{font-size:14px!important}.biot-test .biot-day>div:last-child{font-size:12px!important}
 .biot-test .cmp-row{grid-template-columns:1.2fr 1fr 1fr!important;padding:12px;gap:8px!important}.biot-test .biot-field:first-child{grid-column:1/-1}
 .biot-test .biot-album-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .biot-test .biot-share-preview{grid-template-columns:80px minmax(0,1fr);gap:16px;margin:20px 0}.biot-test .biot-preview-art{max-width:80px;gap:6px;padding:8px;border-radius:8px}.biot-test .biot-preview-art small{font-size:7px}.biot-test .biot-preview-art strong{font-size:10px}.biot-test .biot-preview-star{font-size:30px}.biot-test .biot-preview-art>span:last-child{display:none}.biot-test .biot-share-preview h3{font-size:18px;margin-bottom:8px}.biot-test .biot-share-preview p{font-size:13px}.biot-test .biot-share-preview .biot-copy-small{display:none}.biot-test .biot-share-actions button{width:100%;min-width:0;flex-basis:100%}
 .biot-test .biot-quantum-steps{grid-template-columns:1fr;gap:8px}.biot-test .biot-quantum-steps li{padding:12px 16px}.biot-test .biot-quantum-steps li::before{display:inline-block;float:left;margin:0 16px 0 0;line-height:3}
 .biot-test .input-shell{display:block;padding:0}.biot-test .input-intro{padding:20px 0 24px}.biot-test .input-intro h2{font-size:26px;margin-bottom:12px}.biot-test .intro-pills{display:none}.biot-test .input-center{max-width:none}
 .biot-test .biot-experience-grid{grid-template-columns:1fr}.biot-test .biot-experience-card{min-height:0;padding:18px}.biot-test .biot-card-content{display:grid;grid-template-columns:44px 1fr;gap:4px 14px}.biot-test .biot-card-top{grid-row:1/3}.biot-test .biot-card-number,.biot-test .biot-card-arrow{display:none}.biot-test .biot-experience-card b{font-size:17px}.biot-test .biot-card-description{font-size:14px}
}

/* Today only: complete rows instead of mixing orphaned 6/8/4-column cards. */
.biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>:where([data-ui-section="today"][data-ui-sub="now"]){grid-column:1/-1;align-self:stretch}
@media(min-width:821px){
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>:is([data-nav-panel="color"],[data-nav-panel="scent"],[data-nav-panel="health"]){grid-column:span 4}
}
@media(min-width:1100px){
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>[data-nav-panel="askPanel"]{grid-column:span 8}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>[data-nav-panel="vsSnap"]{grid-column:span 4}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="actions"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="actions"]>.panel-title{grid-column:1/-1}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="actions"]>.act-row{margin:0;padding:0;align-items:flex-start}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="actions"]>.act-row:not(:nth-child(2)){border-left:1px solid var(--border);padding-left:24px}
}

/* Windows のハイコントラスト(forced-colors: active)では背景色・影が消え、選んだタブ・選んだ日・枠の無いボタンが見分けられなくなる(2026-10-07)。
   この表示のときだけ: ボタンに細い枠、選んでいる物に内側の太い枠(Highlight)と下線。ふつうの表示は変えない。検査 tools/qa/forced_check.mjs */
@media (forced-colors: active){
 .biot-test :is(button,[role=button],[role=tab],[role=radio]):not(svg *){border:1px solid ButtonText!important}
 .biot-test :is([aria-current=page],[aria-selected=true],[aria-pressed=true],[aria-checked=true],button.active):not(svg *){outline:3px solid Highlight!important;outline-offset:-4px!important;text-decoration:underline 2px!important;text-underline-offset:3px}
 .biot-test :is([aria-current=page],[aria-selected=true],[aria-pressed=true],[aria-checked=true],button.active):not(svg *):focus-visible{outline:4px double Highlight!important;outline-offset:2px!important}
 /* 八字パネルの干支の関係のチップ: 合(水色)=「+」、冲・刑(橙)=「!」、害(薄い橙)=「△」(sanmei-bazi.js の data-bz-k。2026-10-07。検査 tools/qa/forced_color_check.mjs) */
 .biot-test [data-bz-k=g]::before{content:"+ " / ""}
 .biot-test [data-bz-k=b]::before{content:"! " / ""}
 .biot-test [data-bz-k=h]::before{content:"△ " / ""}
}
