
/* PersonaScope RC37: 心の健康 気づきチェック・受診メモ */
.health-tools{margin:18px 0;border:1px solid rgba(105,191,255,.24);border-radius:18px;background:linear-gradient(155deg,rgba(31,96,150,.16),rgba(255,255,255,.035));overflow:hidden}
.health-tools>summary,.health-subtool>summary{list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.health-tools>summary::-webkit-details-marker,.health-subtool>summary::-webkit-details-marker{display:none}
.health-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;min-height:58px}
.health-tools>summary b{display:block;font-size:1rem;line-height:1.45;color:var(--text,#f4f7fb)}
.health-tools>summary small{display:block;margin-top:3px;color:var(--muted,#aab5c6);font-size:.78rem;line-height:1.45}
.health-chevron{width:10px;height:10px;border-right:2px solid rgba(219,239,255,.75);border-bottom:2px solid rgba(219,239,255,.75);transform:rotate(45deg);transition:transform .2s ease;flex:0 0 auto;margin-right:4px}
.health-tools[open]>summary .health-chevron,.health-subtool[open]>summary .health-chevron{transform:rotate(225deg)}
.health-tools-body{padding:0 14px 16px}
.health-storage-warning{padding:13px 14px;border-radius:14px;background:rgba(59,145,205,.12);border:1px solid rgba(105,191,255,.2)}
.health-storage-warning b{display:block;font-size:.88rem;color:#dff2ff;margin-bottom:4px}
.health-storage-warning p,.health-tools-intro,.health-help,.health-consult-note{margin:0;color:var(--muted,#b4bfd0);font-size:.82rem;line-height:1.7}
.health-tools-intro{padding:12px 2px 10px}
.health-subtools{display:grid;gap:8px}
.health-subtool{border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(4,13,25,.35);overflow:hidden}
.health-subtool>summary{display:grid;grid-template-columns:30px 1fr 12px;align-items:center;gap:10px;padding:13px 14px;min-height:51px;font-weight:700;color:var(--text,#edf5ff)}
.health-number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(89,174,232,.16);border:1px solid rgba(105,191,255,.2);font-size:.78rem;color:#dff2ff}
.health-subtool-body{padding:0 14px 15px;border-top:1px solid rgba(255,255,255,.07)}
.health-subtool-body>.health-help{padding:12px 0 8px}
.health-check-list{display:grid;gap:8px;padding-top:12px}
.health-check-list label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.045);line-height:1.55;font-size:.88rem;cursor:pointer}
.health-check-list input{appearance:none;width:20px;height:20px;min-width:20px;margin:1px 0 0;border:1px solid rgba(193,220,240,.45);border-radius:6px;background:rgba(0,0,0,.18);display:grid;place-items:center}
.health-check-list input:checked{background:#5ca7d4;border-color:#8ed1f6}
.health-check-list input:checked::after{content:'✓';font-size:14px;font-weight:800;color:#06111d}
.health-field{display:block;padding-top:12px}
.health-field>span{display:block;margin-bottom:7px;font-size:.8rem;color:#c8d5e3;line-height:1.5}
.health-field textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:96px;padding:12px 13px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(1,8,16,.48);color:var(--text,#f5f8fc);font:inherit;font-size:.9rem;line-height:1.65}
.health-field textarea:focus{outline:2px solid rgba(99,190,245,.35);border-color:rgba(99,190,245,.6)}
.health-save-actions,.health-share-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:13px}
.health-save-actions .button,.health-share-actions .button{flex:1 1 145px;min-height:44px}
.health-edit-status{margin:10px 0 0;padding:9px 11px;border-radius:10px;background:rgba(75,164,218,.11);font-size:.8rem;color:#d9effd}
.health-records{display:grid;gap:8px;margin-top:14px}
.health-record{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.035)}
.health-record>div:first-child{min-width:0}.health-record b{display:block;font-size:.82rem;color:#e9f5fc}.health-record small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px;margin-top:3px;color:var(--muted,#aab5c6)}
.health-record>div:last-child{display:flex;gap:5px;flex:0 0 auto}.health-record button,.health-delete-all{border:1px solid rgba(255,255,255,.13);border-radius:9px;background:rgba(255,255,255,.055);color:#dcebf5;padding:7px 9px;font-weight:700;font-size:.76rem}
.health-record button[data-health-delete],.health-delete-all{color:#e6c9c9}
.health-delete-all{width:100%;margin-top:10px;min-height:40px}
.health-empty{margin:0;padding:12px;text-align:center;color:var(--muted,#aab5c6);font-size:.82rem}
.health-summary-preview{margin-top:12px;padding:13px;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(0,0,0,.18);white-space:pre-wrap;font-size:.82rem;line-height:1.65;color:#e1ebf2;max-height:330px;overflow:auto}
.health-summary-preview.empty{color:var(--muted,#aab5c6)}
.health-consult-note{margin-top:13px;padding:12px 2px 0}
.health-confirm-dialog[hidden]{display:none}.health-confirm-dialog{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px}.health-confirm-backdrop{position:absolute;inset:0;background:rgba(0,5,12,.76);backdrop-filter:blur(8px)}
.health-confirm-panel{position:relative;width:min(440px,100%);padding:20px;border-radius:20px;border:1px solid rgba(255,255,255,.16);background:#0c1727;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.health-confirm-panel h2{margin:5px 0 10px;font-size:1.2rem}.health-confirm-panel>p:not(.eyebrow){margin:0;color:var(--muted,#b5c0cf);line-height:1.75}.health-confirm-actions{display:flex;gap:9px;margin-top:18px}.health-confirm-actions .button{flex:1}.health-confirm-actions .danger{background:#49505d;border-color:#69717e}
body.health-dialog-open{overflow:hidden}.health-toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));z-index:10060;max-width:calc(100vw - 36px);transform:translate(-50%,18px);opacity:0;pointer-events:none;padding:10px 14px;border-radius:12px;background:#e6f4fc;color:#07101c;font-weight:800;font-size:.82rem;box-shadow:0 12px 35px rgba(0,0,0,.35);transition:.2s ease}.health-toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:560px){.health-tools>summary{padding:15px}.health-tools-body{padding:0 10px 12px}.health-subtool>summary{padding:12px}.health-subtool-body{padding:0 11px 13px}.health-record{align-items:flex-start;flex-direction:column}.health-record>div:last-child{width:100%}.health-record button{flex:1}.health-record small{max-width:72vw}.health-confirm-actions{flex-direction:column-reverse}}
