:root{font:16px/1.5 Arial,Helvetica,sans-serif;color:#14334a;background:#f3f7fa;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}input,select,textarea{max-width:100%;width:100%;padding:11px;border:1px solid #bdcdd8;border-radius:6px;background:#fff;color:#14334a;min-height:44px}textarea{min-height:96px;resize:vertical}input[type=file]{padding:9px;font-size:14px}label{display:block;font-weight:600}label>span{display:block;margin-bottom:6px}small,.hint{font-weight:400;color:#526879;font-size:14px}h1{font-size:26px;margin:0 0 8px}h2{font-size:20px;margin:0 0 12px}h3{font-size:17px;margin:0 0 8px}p{margin:8px 0 16px}.header{display:flex;align-items:center;gap:14px;background:#072545;color:white;padding:14px max(16px,calc((100% - 900px)/2));flex-wrap:wrap}.header img{width:100px;height:auto;background:white;border-radius:5px;padding:5px}.header strong,.header span{display:block}.header strong{font-size:18px}.header>div>span{font-size:13px;color:#d4e4ed}.connection{margin-left:auto;font-size:13px;background:#21435c;border-radius:20px;padding:6px 12px}main{max-width:920px;margin:24px auto;padding:0 16px 50px}.panel{background:#fff;border:1px solid #d9e3e9;border-radius:9px;padding:22px;margin:0 0 18px}.narrow{max-width:500px;margin:40px auto}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide{grid-column:1/-1}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #bfd0da;border-radius:6px;text-decoration:none;background:#fff;color:#14334a;font-weight:600}.primary{background:#108430;border-color:#108430;color:#fff}.warning{background:#fff7e7;border-left:4px solid #ad731a;padding:12px;border-radius:5px}.error{color:#8c1f28;background:#fff0f1;border-left:4px solid #bf2634;padding:12px;border-radius:5px;white-space:pre-wrap}.good{color:#126431;background:#ecf7ef;padding:12px;border-radius:5px}.badge{display:inline-block;font-size:13px;font-weight:600;background:#edf3f7;color:#244c68;border-radius:16px;padding:4px 10px}.badge.received{background:#dff3e4;color:#176531}.badge.attention{background:#fde7e9;color:#8c1f28}.badge.queued,.badge.sending{background:#fff0d3;color:#81580e}.record{padding:17px 0;border-top:1px solid #dae4e9}.record:first-of-type{border-top:0}.record h3{margin-bottom:3px}.record p{margin-bottom:7px}.entry{border:1px solid #d9e3e9;border-radius:7px;padding:15px;margin-bottom:12px;background:#f8fafc}.entry>.row{margin-bottom:12px}.subtle{background:transparent;border:0;color:#8c2832;min-height:44px;padding:8px}.section{border-top:1px solid #d9e3e9;margin-top:24px;padding-top:20px}.status{font-size:14px;color:#526879;margin:8px 0}.status:empty{display:none}.file-row{padding:12px 0;border-bottom:1px solid #d9e3e9;display:flex;gap:12px;justify-content:space-between;align-items:center;overflow-wrap:anywhere}.file-row span{min-width:0}details{margin:12px 0}summary{cursor:pointer;min-height:44px;padding:9px 0;font-weight:600}[hidden]{display:none!important}@media(max-width:560px){.grid{grid-template-columns:1fr}.panel{padding:16px}.header{gap:10px}.header img{width:82px}.header strong{font-size:16px}.connection{font-size:12px;padding:4px 8px}.buttons>.btn{flex:1}h1{font-size:23px}.row{align-items:flex-start}.file-row .subtle{flex-shrink:0}}

.device-check{max-width:920px;margin:-24px auto 32px;padding:0 16px}.device-check details{border:1px solid #d9e3e9;border-radius:9px;padding:0 16px 12px;background:#fff}.device-check summary{font-size:14px;color:#526879}

.part-quantity{display:grid;gap:8px;min-width:0;align-content:start}.part-quantity select{cursor:pointer}.part-quantity input{font-size:16px}

.part-quantity-current{font-size:12px;line-height:1.35;color:#526a76;overflow-wrap:anywhere;white-space:normal}

.part-photo-control{margin-top:12px}.part-photo-label{display:block;font-weight:600;margin-bottom:6px}.part-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.part-photo-button{font-size:14px;padding:8px 12px;min-height:44px}.part-photo-preview{display:flex;align-items:center;gap:10px;min-width:0;margin-top:8px}.part-photo-preview img,.part-photo-placeholder{width:64px;height:64px;flex:0 0 64px;border:1px solid #bdcdd8;border-radius:6px;background:#fff;object-fit:cover}.part-photo-placeholder{display:flex;align-items:center;justify-content:center;color:#526879;font-size:13px}.part-photo-details{min-width:0;display:grid;gap:3px}.part-photo-details strong{font-size:14px}.part-photo-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
