*{box-sizing:border-box}
html,body{margin:0;font-family:Arial,sans-serif;background:#f4f6fb;color:#111}
.top{background:#111;color:white;padding:28px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.top h1{margin:4px 0 8px;font-size:32px;line-height:1.1}
.top p{margin:0;color:#ccc;line-height:1.5}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#8fd0ff;font-weight:900}
.install{background:#fff;color:#111}
.layout{display:grid;grid-template-columns:280px 1fr;gap:18px;max-width:1280px;margin:0 auto;padding:18px}
.sidebar-card,.card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 10px 35px rgba(0,0,0,.08)}
.sidebar-card{height:max-content;position:sticky;top:18px}
.card{margin-bottom:18px}
.card h2,.sidebar-card h3{margin:0 0 12px}
.muted{color:#666;line-height:1.6}
.primary{background:#087fff!important;color:#fff!important}
.full,.big{width:100%}
button,.upload-label{border:0;background:#111;color:#fff;border-radius:16px;padding:14px 16px;font-weight:900;font-size:15px;cursor:pointer;text-align:center}
button:disabled{opacity:.45;cursor:not-allowed}
.project-list{display:grid;gap:8px;margin-top:12px}
.project-item{background:#f7f7f7;color:#111;text-align:left;border:1px solid #eee}
.project-item.active{background:#111;color:#fff}
.project-item span{display:block;font-size:11px;opacity:.75;margin-top:5px;word-break:break-word}
.empty{background:#f7f7f7;border-radius:14px;padding:14px;color:#666}
.card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.project-title{min-width:260px}
input,select{display:block;width:100%;border:1px solid #ddd;border-radius:14px;padding:14px;font-size:15px;background:#fff;margin-top:8px}
label{font-weight:900;color:#333}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}
.step{background:#f4f4f4;color:#111;border:1px solid #ddd}
.step.active{background:#111;color:#fff}
.step.done{background:#e8fff0;color:#0b702e;border-color:#49c77a}
.camera-box{background:#fafafa;border:1px solid #eee;border-radius:22px;padding:16px}
.guide{display:grid;gap:6px;margin-bottom:12px}
.guide strong{font-size:20px}
.guide span{color:#666;line-height:1.5}
video{width:100%;min-height:360px;background:#111;border-radius:18px;object-fit:cover}
.camera-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:12px}
.upload-label{background:#f1f1f1;color:#111}
.upload-label input{display:none}
.shot-grid,.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:16px}
.shot-card,.result-card{background:#fff;border:1px solid #eee;border-radius:16px;padding:10px}
.shot-card img,.result-card img{width:100%;border-radius:12px;display:block}
.shot-card strong,.result-card strong{display:block;margin:8px 0 4px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.status{margin-top:14px;color:#333;line-height:1.6}
.loading{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:9999;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.loading[hidden]{display:none}
.spinner{width:54px;height:54px;border:5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
a{color:#087fff;font-weight:900;text-decoration:none}
@media(max-width:900px){
  .top{display:block}
  .layout{grid-template-columns:1fr}
  .sidebar-card{position:static}
  .card-head{display:block}
  .project-title{min-width:0}
  .steps{grid-template-columns:1fr}
  .camera-actions{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  video{min-height:260px}
}
