*{box-sizing:border-box}
:root{--e:#0b5d46;--bg:#f3f6f5;--text:#17231f}
body{margin:0;background:var(--bg);font-family:Arial,sans-serif;color:var(--text)}
main{max-width:720px;margin:auto;padding:14px}
header{display:flex;justify-content:space-between;align-items:center}
header h1{margin:0}header p{margin:4px 0 12px;color:#64736d}header a{color:var(--e);text-decoration:none;font-weight:bold}
.diagnostic,.capture-card,.settings,.actions,.log{background:#fff;padding:12px;border-radius:12px;margin-bottom:10px}
.diagnostic h2,.log h2{margin-top:0;font-size:1.05rem}
.row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e4ebe8}.row span{color:#64736d}.row strong{text-align:right;overflow-wrap:anywhere}
#takePhoto{width:100%;min-height:210px;border:2px dashed #9eb8ad;border-radius:14px;background:#f7fbf9;color:var(--e);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
#takePhoto span{font-size:3rem}#takePhoto strong{font-size:1.08rem}#takePhoto small{color:#64736d}
#preview{display:block;width:100%;max-height:320px;object-fit:contain;margin-top:10px;background:#111;border-radius:8px}
.settings label{display:block;margin:8px 0}.settings input[type=text]{width:100%;padding:10px;border:1px solid #c9d2ce;border-radius:8px;margin-top:4px}
.settings button,.actions button{padding:11px;border:0;border-radius:8px;background:var(--e);color:#fff;font-weight:bold}
.actions{display:flex;gap:8px}.actions button{flex:1}
pre{white-space:pre-wrap;word-break:break-word;background:#111;color:#d7ffe8;padding:10px;border-radius:8px;min-height:130px}
.hidden{display:none!important}
.ok{color:#0a7b43}.error{color:#b3261e}
