:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#7b8594;
  --accent:#5865f2;
  --success:#36b37e;
  --danger:#ff6b6b;
  --glass: rgba(255,255,255,0.6);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:#14161a;
  font-synthesis: none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.app-container{max-width:1100px;margin:28px auto;padding:20px}
.app-header{margin-bottom:18px}
.app-header h1{margin:0;font-weight:700}
.sub{margin:6px 0 0;color:var(--muted)}
.panels{display:grid;grid-template-columns:1fr 420px;gap:20px}
.card{background:var(--card);border-radius:12px;box-shadow:0 6px 18px rgba(20,24,40,0.06);padding:18px}
.left-panel{display:flex;flex-direction:column;gap:16px}
.drop-area{border:2px dashed rgba(96,110,136,0.16);border-radius:10px;padding:18px;display:flex;align-items:center;justify-content:center;min-height:160px;cursor:pointer}
.file-label{display:flex;align-items:center;justify-content:center;min-height:120px;width:100%;cursor:pointer}
.file-label input{display:none}
.drop-area.over{border-color:var(--accent);box-shadow:0 10px 30px rgba(88,101,242,0.06)}
.placeholder{display:flex;flex-direction:column;align-items:center;color:var(--muted);gap:8px}
.placeholder .text{font-weight:600}
.hint{font-size:12px;color:var(--muted);opacity:0.9}
.preview-wrap{display:flex;gap:12px}
.preview-card{display:flex;flex-direction:column;align-items:center;padding:14px}
.preview-inner{width:100%;height:250px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));overflow:hidden}
.preview-inner.empty{border:1px dashed rgba(96,110,136,0.06)}
.preview-inner img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.preview-placeholder{color:var(--muted)}
.file-name{font-size:13px;color:var(--muted);margin-top:8px}

.right-panel .summary{margin-bottom:12px}
.right-panel h2{margin:0;font-size:18px}
.score-row{display:flex;align-items:baseline;gap:12px;margin-top:10px}
.big-score{font-size:44px;font-weight:800;color:var(--accent)}
.meta{color:var(--muted);font-size:13px}
.status-text{color:var(--muted);margin-top:8px}

.results{display:flex;flex-direction:column;gap:14px}
.result-section{padding-top:6px}
.section-title{font-weight:600;margin-bottom:8px}
.bar-wrap{display:flex;align-items:center;gap:12px}
.bar-bg{flex:1;height:12px;background:#eef1f6;border-radius:999px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--accent),#7b61ff);width:0%;transition:width 600ms ease}
.bar-val{width:44px;text-align:right;font-weight:600;color:var(--muted)}
.model-list{margin-top:8px;padding-left:6px;font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:6px}
.model{display:flex;justify-content:space-between}

.app-footer{margin-top:18px;color:var(--muted);font-size:13px;text-align:center}

@media (max-width:900px){
  .panels{grid-template-columns:1fr;}
  .right-panel{order:2}
  .left-panel{order:1}
}
