:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202020;background:#fff;font-size:16px}*{box-sizing:border-box}body{margin:0}.wrap{max-width:700px;margin:auto;padding:20px 15px 60px}header{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap}h1{font-size:26px;margin:0;font-weight:650}nav{display:flex;gap:6px;flex-wrap:wrap}button{font:inherit;border:1px solid #d6d6d6;background:white;border-radius:8px;padding:9px 12px;cursor:pointer;color:inherit}button:active{background:#eee}.head-fields{display:grid;gap:12px;margin-bottom:20px}label{display:block;font-size:14px;line-height:1.4}input[type=text],input:not([type]),input[type=number]{display:block;width:100%;height:43px;padding:8px 10px;border:1px solid #ccc;border-radius:7px;font:inherit;background:#fff;color:#222;margin-top:5px;min-width:0}input:focus{outline:2px solid #aaa;outline-offset:1px}.section{border:1px solid #ddd;border-radius:9px;margin:9px 0;overflow:hidden}.section>summary{padding:14px;font-weight:650;cursor:pointer;list-style:none}.section>summary::-webkit-details-marker{display:none}.section>summary:after{content:'⌄';float:right;color:#666;font-size:23px;line-height:18px;width:22px;text-align:center}.section[open]>summary:after{content:'⌃'}.inner{padding:4px 14px 16px;border-top:1px solid #eee}.group{padding:14px 0;border-bottom:1px solid #eee}.group:last-child{border-bottom:0;padding-bottom:0}.group-title{font-weight:600;margin-bottom:10px}.options{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.option{display:flex;gap:7px;align-items:center;font-size:15px;padding:4px 0;cursor:pointer}.option input{width:17px;height:17px;margin:0;accent-color:#444}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields.one{grid-template-columns:1fr}.fields label{font-size:13px}.single-check{margin-top:13px}footer{border-top:1px solid #eee;padding-top:20px;margin-top:22px;display:grid;gap:15px}#saveStatus{font-size:13px;color:#666}.footer-actions{display:flex;flex-wrap:wrap;gap:8px}dialog{border:1px solid #ccc;border-radius:12px;width:min(94vw,550px);max-height:80vh;padding:16px}dialog::backdrop{background:#0005}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:10px}.dialoghead h2{font-size:20px}.record{padding:13px 0;border-bottom:1px solid #eee}.record strong{display:block;margin-bottom:5px}.record small{color:#777}.record .actions{display:flex;gap:7px;margin-top:9px}.danger{color:#a22}@media(max-width:390px){nav button{padding:7px 9px;font-size:14px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Prevent iOS Safari focus zoom: editable controls must use at least 16px. */
input, textarea, select { font-size:16px !important; }
html { max-width:100%; }
body { max-width:100%; overflow-x:hidden; }

/* iPhone Safari: inputs must be >=16px to avoid focus zoom. */
input,textarea,select{font-size:16px!important}
body,.wrap{max-width:100%;overflow-x:clip}
.item-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:9px}
.item-row>button{height:43px;font-size:26px;line-height:1;padding:0}
.save-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:19px}
#saveBtn{background:#202020;color:white;border-color:#202020;flex:1}
#listBottomBtn{flex:1}

/* Stable arrow glyphs in both collapsed and expanded states. */
.section>summary{position:relative;padding-right:49px}
.section>summary:after{content:'' !important;float:none;position:absolute;right:19px;top:50%;width:13px;height:13px;border-right:2px solid #666;border-bottom:2px solid #666;transform:translateY(-70%) rotate(45deg);box-sizing:border-box}
.section[open]>summary:after{transform:translateY(-25%) rotate(225deg)}
#reportText{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;margin:15px 0;max-height:55vh;overflow:auto}
.report-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}

/* Полноэкранный отчёт вместо всплывающего окна. */
[hidden]{display:none!important}
.report-page{min-height:100vh;min-height:100dvh;background:#fff;color:#222;padding:0 16px 32px}
.report-wrap{max-width:680px;margin:0 auto}
.report-top{padding:19px 0 15px;border-bottom:1px solid #e5e5e5}
.report-top h1{font-size:23px;line-height:1.3;margin:17px 0 0;font-weight:650}
.report-back{font-size:16px;min-height:42px;padding:8px 12px}
.report-intro{padding:23px 0 18px}
.report-intro h2{font-size:21px;overflow-wrap:anywhere;line-height:1.35;margin:0 0 7px}
.report-intro p{font-size:15px;color:#666;margin:0}
.report-item{padding:21px 17px;border:1px solid #dedede;border-radius:10px;margin:0 0 17px;overflow-wrap:anywhere}
.report-item>h2{font-size:19px;line-height:1.35;margin:0 0 16px;font-weight:650}
.report-section{padding:15px 0;border-top:1px solid #eee}
.report-section:last-child{padding-bottom:0}
.report-section h3{font-size:16px;margin:0 0 10px;line-height:1.4}
.report-section>ul{margin:0;padding-left:20px;list-style-type:disc}
.report-section>ul>li{padding:0 0 10px;line-height:1.45}
.report-section>ul>li:last-child{padding-bottom:0}
.report-section ul ul{margin:5px 0 0;padding-left:19px;list-style-type:'–  '}
.report-section ul ul li{padding:2px 0;color:#3b3b3b;font-size:15px}
.report-group-name{font-size:15px;font-weight:550}
.report-empty{color:#666;padding:12px 0 28px}
.report-page .report-actions{margin:24px 0;display:flex;gap:10px}
.report-page .report-actions button{min-height:44px;flex:1}
@media(max-width:400px){.report-page{padding-left:12px;padding-right:12px}.report-item{padding:17px 13px}}

/* Compact report: one clean line per selected parameter. */
.report-section>ul{list-style:none;margin:0;padding:0}
.report-section>ul>li{padding:4px 0 4px 16px;position:relative;font-size:15px;line-height:1.5}
.report-section>ul>li:before{content:'–';position:absolute;left:0;color:#555}

/* Список замеров: отдельная страница, без диалогового окна. */
.records-list{padding:12px 0 30px}
.records-list .record{border:1px solid #dedede;border-radius:10px;padding:16px;margin:10px 0 14px}
.records-list .record strong{font-size:17px}
.records-list .record .actions{flex-wrap:wrap}
.records-list .record .actions button{min-height:42px}
.offline-status{display:block;font-size:13px;color:#555;margin-top:5px}
.report-section>ul>li.report-subrow{padding-left:19px;margin-top:-2px}
.report-section>ul>li.report-subrow:before{content:none}
