:root{
  --bg:#fafafa;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0f766e;
  --yes:#16a34a;
  --no:#dc2626;
  --glass: rgba(0,0,0,0.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,var(--bg),#f3f4f6);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.card{
  width:100%;
  max-width:520px;
  background:var(--card);
  border-radius:14px;
  padding:16px;
  box-shadow:0 8px 30px var(--glass);
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}

.result{
  height:118px;
  border-radius:10px;
  background:linear-gradient(180deg,#ffffff,var(--glass));
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px;
  font-size:18px;
  color:var(--muted);
  user-select:none;
}

.controls{display:flex;flex-direction:column;gap:8px}
.question{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e6e7ea;
  font-size:16px;
  outline:none;
}

.row{
  display:flex;
  gap:8px;
  align-items:center;
}

.file-btn{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:10px;
  background:#f8faf9;
  color:var(--accent);
  font-weight:600;
  cursor:pointer;
  border:1px solid #e6eee9;
}
.file-btn input{display:none}

.ask{
  padding:10px 14px;
  border-radius:10px;
  background:var(--accent);
  color:white;
  border:0;
  font-weight:700;
  min-width:96px;
  height:44px;
  cursor:pointer;
}

.thumb-wrap{
  margin-top:6px;
  position:relative;
  width:100%;
  height:120px;
  border-radius:10px;
  overflow:hidden;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hidden{display:none}

.thumb{
  max-width:100%;
  max-height:100%;
  object-fit:cover;
  width:100%;
  height:100%;
}

.clear{
  position:absolute;
  top:8px;
  right:8px;
  background:rgba(0,0,0,0.6);
  color:white;
  border:0;
  width:36px;
  height:36px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}

.foot{
  margin-top:12px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  opacity:0.9;
}