/* Only TEST and its explicitly linked companion pages load this design layer. */
body.biot-test,body.biot-companion{--bg:#1b180f;--panel:#272216;--green:#ebd5a2;--cyan:#a6d5d5;--orange:#d8b56b;--text:#f1eee5;--text-dim:#a9bcaf;--border:#453d2c;--accent:#ebd5a2;background:#1b180f;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,#302817,#272114);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}
/* 2026-10-19 会長指示「全体的にバランスを整えるように」: この決まりはもともと文字を打つ欄のためのもの
   (iPhone で画面が拡大しないよう16px・指で押せるよう高さ46px)。チェックボックスとラジオにも当たっていて、
   人生設計図などで「巨大な白い四角」になっていたので、チェックの類は外して別の決まりにした */
.biot-test :is(input,select,textarea):not([type=checkbox]):not([type=radio]){font-size:16px!important;border-radius:10px!important;min-height:46px;color:var(--text);background:#201b10;border-color:var(--border)}
.biot-test :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;min-height:0;flex:0 0 auto;accent-color:var(--green,#FFC850);background:transparent;cursor:pointer}
.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:#84785b!important;color:var(--green)!important;background:#312a19!important}
.biot-test :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #ebd5a2;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:#645941!important;box-shadow:none!important;background:radial-gradient(ellipse at 0 0,#31553d80,transparent 70%),#2b2414}
.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:#6a5f47;color:var(--text-dim)}
/* 2026-10-19 会長指示「全体的にバランスを整えるように」: 画面の中の .btn が40か所、
   ブラウザ既定の白いボタン(白地に黒文字)のまま出ていて、暗い画面の中で浮いていた。
   取扱説明書の印刷・人生設計図の「この日を入れる」・今週の計画・金運・2027年のあなた など。
   見た目は「もっと詳しく見る」(scouter_readmore.js の .more-btn)にそろえる。
   btn-primary(緑の大きなボタン)は別の決まりがあるので触らない */
.biot-test .panel .btn:not(.btn-primary){
  display:inline-block;padding:10px 16px;min-height:44px;
  background:rgba(255,196,60,.06);border:1px solid var(--green,#FFC43C);border-radius:8px;
  color:var(--green,#FFC43C);font:inherit;font-size:13px;line-height:1.5;
  cursor:pointer;text-align:center;text-decoration:none;-webkit-tap-highlight-color:transparent}
.biot-test .panel .btn:not(.btn-primary):hover{background:rgba(255,196,60,.13);box-shadow:0 0 14px rgba(255,196,60,.22)}
.biot-test .panel .btn:not(.btn-primary)[disabled]{opacity:.45;cursor:default;box-shadow:none}
/* 2026-10-19 会長指示「壊れて見える箇所がないか」: class の付いていないリンクが
   ブラウザ既定の青(rgb(0,0,238))のまま暗い画面に出ていた(金運の「事業の設計図をひらく」など)。
   class を持つリンクと、style で色を書いたリンクはそちらが勝つので触らない */
.biot-test .panel a:not([class]){color:var(--cyan,#61dafb);text-decoration:underline;text-underline-offset:2px}
.biot-test .panel a:not([class]):hover{color:#ebd5a2}
.biot-test [data-nav-panel="step"]{border-left:3px solid var(--green);background:#312a19}
.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:#312a19;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:#473e28!important;border-color:#ebd5a2!important;box-shadow:inset 0 0 0 1px #ebd5a2!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:#ebd5a2;border:0;color:#231d10;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:#312a19}
.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%,#5f5336,#16130b 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:#c6bfae}
.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. */
/* 2026-10-19 会長指示「無駄にスペースがあったり」: align-self:stretch をやめた。
   隣の背の高いパネルに高さをそろえていたので、短いパネルの下に200px以上の空白ができていた。
   グリッドは align-items:start なので、外すと中身の高さのままになる。測り直しは tools/qa/space_check.mjs */
.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}
@media(min-width:821px){
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>:is([data-nav-panel="scent"],[data-nav-panel="health"]){grid-column:span 4}
 /* 2026-10-19 会長指示「無駄にスペースがあったり」: 「今日のヒント」は1枚だけ残ったので、4列のままだと右に806px空いていた。
    横いっぱいにして、中の3つ(色・香り・体調)を3列に並べる。文面・順番は変えていない */
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>[data-nav-panel="color"]{grid-column:1/-1}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="color"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px;row-gap:0;align-items:start}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="color"]>.panel-title,
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="color"]>[data-hint-note]{grid-column:1/-1}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="color"]>[data-hint-col]:not(:first-of-type){border-left:1px solid var(--border);padding-left:26px}
 .biot-test[data-dash-view="today"][data-dash-sub="now"] [data-nav-panel="color"]>[data-hint-col] .mini-label{margin-top:0!important}
}
@media(min-width:1100px){
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>[data-nav-panel="askPanel"]{grid-column:span 8}
 /* 2026-10-19: vsSnap は 4列だと「今日の一枚」(6列)と並んで右に203px余るので 6列に(askPanel は biot-merge.js で畳まれて今は隣に来ない) */
 .biot-test[data-dash-view="today"][data-dash-sub="now"] .dash-grid>[data-nav-panel="vsSnap"]{grid-column:span 6}
 .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:"△ " / ""}
}
