/* Mimone Health 0.9.4: actual Mimone base design rules, from Mimone index.html.
   Scoped to existing Health DOM; loaded last to override legacy Health themes. */
:root{--green:#176b55!important;--green2:#e7f4ef!important;--ink:#17221f!important;--muted:#6c7975!important;--line:#e2e9e6!important;--bg:#f4f7f5!important;--white:#fff!important;--card:#fff!important;--accent:#176b55!important}
html,body{background:#f4f7f5!important;color:#17221f!important;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif!important;line-height:1.5}
body>header.m3-header{display:block!important;max-width:none!important;margin:0!important;padding:22px 16px 25px!important;background:linear-gradient(135deg,#176b55,#2d8a70)!important;border-radius:0 0 22px 22px!important;border:0!important;box-shadow:none!important;color:#fff!important}
body>header.m3-header .m3-head-inner{max-width:900px!important;margin:auto!important;padding:0!important;display:block!important}
body>header.m3-header h1{font-size:23px!important;line-height:1.3!important;margin:4px 0!important;color:#fff!important}
body>header.m3-header :is(.m3-eyebrow,.m3-tagline,.m3-leaf,.m3-healthword,.m3-brand-dot){color:#fff!important}
body>header.m3-header .m3-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
body>header.m3-header .m3-version{background:#e7f4ef!important;color:#176b55!important;border:1px solid #d4e8df!important;border-radius:999px!important;padding:5px 9px!important}
body>main{max-width:900px!important;padding:14px 12px 100px!important;margin:auto!important}
body>main .card,body>main .panel,body>main .m3-greeting,body>main .m3-quick-card,body>main .m3-quick-item,body>main .mh-mimone-link-card,#mhHealthAI .mhai-card{background:#fff!important;border:1px solid #e2e9e6!important;border-radius:15px!important;padding:13px!important;box-shadow:0 3px 12px #183c2d08!important;color:#17221f!important}
body>main :is(.card,.panel,.m3-greeting,.m3-quick-card) :is(h2,h3,strong){color:#17221f!important}
body>main .m3-greeting{margin:0 0 14px!important;background:#fff!important;display:block!important}
body>main .m3-greeting :is(.m3-flower,.m3-sparkle){color:#176b55!important}
body>main .field{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
body>main label{font-size:12px!important;color:#52615c!important;font-weight:700!important}
body>main :is(input:not([type=checkbox]):not([type=radio]),select,textarea),#mhHealthAI :is(textarea,select){width:100%!important;min-width:0!important;border:1px solid #d6e0db!important;border-radius:10px!important;background:#fff!important;padding:11px!important;font:inherit!important;font-size:16px!important;color:#17221f!important;outline:none!important;box-shadow:none!important}
body>main :is(input,select,textarea):focus,#mhHealthAI :is(textarea,select):focus{border-color:#176b55!important;box-shadow:0 0 0 3px #176b5518!important}
body :is(.btn,.primary,button.m3-quick-item){border-radius:10px!important;font-weight:750!important}
body .btn:not(.secondary):not(.danger),body .primary{background:#176b55!important;color:#fff!important;border:0!important}
body .btn.secondary,body button.secondary{background:#e7f4ef!important;color:#176b55!important;border:1px solid #d6e0db!important}
body>nav.tabs.m3-tabs{background:#ffffffed!important;backdrop-filter:blur(12px)!important;border-top:1px solid #e2e9e6!important;box-shadow:0 -3px 15px #183c2d0a!important}
body>nav.tabs.m3-tabs button{color:#6c7975!important;background:transparent!important;border-radius:10px!important}
body>nav.tabs.m3-tabs button.active{color:#176b55!important;background:#e7f4ef!important}
#mhHealthAI .mhai-messages{background:#f4f7f5!important;border-color:#e2e9e6!important;border-radius:12px!important}
#mhHealthAI .mhai-logo{background:#e7f4ef!important;color:#176b55!important}
@media(max-width:600px){body>header.m3-header{padding:20px 14px 23px!important}body>main{padding:12px 12px 110px!important}}
